diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2014-02-17 19:51:08 +0530 |
---|---|---|
committer | Laxman Dewangan <ldewangan@nvidia.com> | 2014-02-24 00:47:09 -0800 |
commit | 1f54ff8278f50237529310db992d0758a155b4a8 (patch) | |
tree | 80be3916b3c11455fe66d54da1ae82ca7f71688d /Documentation | |
parent | ff7583515b64e5e60a1835a4fdef295fcfd29884 (diff) |
iio: meter: ina219: add DT binding document for ina219 driver
Add devicetree binding document and example for the iio/meter
based ina219 driver.
Change-Id: I7d3fac2b852992f3e91982964b356d049094aa1c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/372860
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/iio/meter/ina219.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/meter/ina219.txt b/Documentation/devicetree/bindings/iio/meter/ina219.txt new file mode 100644 index 000000000000..5e4334fef130 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/meter/ina219.txt @@ -0,0 +1,34 @@ +DT binding document for INA219 iio/meter driver. + +Required properties: +- compatible: Must be one of + "ti,ina219" +- reg: I2C slave address of device. + +- ti,rail-name: Name of the rail for whose monitoring is required. +- ti,trigger-config: Trigger configuration for the device in trigger mode. +- ti,continuous-config: Device configuration in continuous mode. In this mode + device will keep scanning the inputs. +- address-cells: Number of address in child node. Must be 1. +- size-cells: Size of address cell. Must be 0. + +Optional properties: +- ti,calibration-data: Calibration data. +- ti,power-lsb: LSB power. +- ti,divisor: Divisor. +- ti,shunt-resistor-mohm: Shunt resistance in milliohm. +- ti,precision-multiplier: Precision multplier. + +Example: + ina219@41{ + compatible = "ti,ina219x"; + reg = <0x41>; + ti,rail-name = "VDD_BAT_CHG"; + ti,continuous-config = <0x0407>; + ti,trigger-config = <0x0403>; + ti,calibration-data = <0x0E90>; + ti,power-lsb = <6866>; + ti,divisor = <25>; + ti,precision-multiplier = <1000>; + }; + |