Message ID | 20210322105056.30571-2-raviteja.narayanam@xilinx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | iio: adc: Add driver for INA260 | expand |
On Mon, Mar 22, 2021 at 04:20:55PM +0530, Raviteja Narayanam wrote: > Add a binding for Texas Instruments INA260 power monitor device. > > Signed-off-by: Raviteja Narayanam <raviteja.narayanam@xilinx.com> > --- > .../bindings/iio/adc/ti,ina260.yaml | 57 +++++++++++++++++++ > 1 file changed, 57 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml > > diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml > new file mode 100644 > index 000000000000..97c68188e53d > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml > @@ -0,0 +1,57 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/ti,ina260.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Texas Instruments INA260 power monitor > + > +maintainers: > + - Raviteja Narayanam <raviteja.narayanam@xilinx.com> > + > +description: | > + The INA260 is a digital-output, current, power and voltage monitor > + with an I2C and SMBUS compatible interface with an integrated shunt > + resistor. It features up to 16 programmable addresses on I2C compatible > + interface. Datasheet - https://www.ti.com/lit/ds/symlink/ina260.pdf?ts=1608607288391 > + > +properties: > + compatible: > + enum: > + - ti,ina260 > + > + reg: > + description: | > + The 7-bits long I2c address of the device Just 'maxItems: 1' > + > + "#io-channel-cells": > + const: 1 > + > + interrupts: > + description: | > + IRQ line for the device That's every 'interrupts' property. Drop. You need to say how many: maxItems: 1 > + > + label: > + description: | > + A symbolic name for the device > + > +required: > + - compatible > + - reg > + - "#io-channel-cells" > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ina260@40 { > + compatible = "ti,ina260"; > + reg = <0x40>; > + #io-channel-cells = <1>; > + }; > + }; > +... > -- > 2.17.1 >
diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml new file mode 100644 index 000000000000..97c68188e53d --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,ina260.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments INA260 power monitor + +maintainers: + - Raviteja Narayanam <raviteja.narayanam@xilinx.com> + +description: | + The INA260 is a digital-output, current, power and voltage monitor + with an I2C and SMBUS compatible interface with an integrated shunt + resistor. It features up to 16 programmable addresses on I2C compatible + interface. Datasheet - https://www.ti.com/lit/ds/symlink/ina260.pdf?ts=1608607288391 + +properties: + compatible: + enum: + - ti,ina260 + + reg: + description: | + The 7-bits long I2c address of the device + + "#io-channel-cells": + const: 1 + + interrupts: + description: | + IRQ line for the device + + label: + description: | + A symbolic name for the device + +required: + - compatible + - reg + - "#io-channel-cells" + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + ina260@40 { + compatible = "ti,ina260"; + reg = <0x40>; + #io-channel-cells = <1>; + }; + }; +...
Add a binding for Texas Instruments INA260 power monitor device. Signed-off-by: Raviteja Narayanam <raviteja.narayanam@xilinx.com> --- .../bindings/iio/adc/ti,ina260.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ina260.yaml