diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2014-02-17 19:51:08 +0530 |
---|---|---|
committer | Laxman Dewangan <ldewangan@nvidia.com> | 2014-02-17 22:29:11 -0800 |
commit | 40e8d99640320042a59652f8501a7e55fa8415f6 (patch) | |
tree | 1ba3a329d7e2e05a29db30cfdff3bdaa3279753e /Documentation | |
parent | 4b58dc2f1e53eb6b0795b882c9b4a1a613dd8ede (diff) |
iio: meter: ina230: add DT binding document for ina230 driver
Add devicetree binding document and example for the iio/meter
based ina230 driver.
Change-Id: I4e67aeb9c5eba42244fa6cfcd50aa0f7a657ec50
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/368427
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/iio/meter/ina230.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/meter/ina230.txt b/Documentation/devicetree/bindings/iio/meter/ina230.txt new file mode 100644 index 000000000000..576f27edae3c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/meter/ina230.txt @@ -0,0 +1,41 @@ +DT binding document for INA230 iio/meter driver. + +Required properties: +- compatible: Must be one of + "ti,ina226", "ti,ina230", "ti,hpa01112", "ti,hpa02149". +- 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,current-threshold: Threshold current for alert generation. +- ti,enable-alert-latch: Boolean to tell whether alert is latched or not. +- ti,resistor: Resistor value. +- ti,minimum-core-online: Minimum online cpu for starting the monitoring. +- 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. +- ti,shunt-polartiy-inverted: Boolean to tell whether shunt polarity is + inverted or not. + +Example: + ina230@41{ + compatible = "ti,ina230x"; + reg = <0x41>; + ti,rail-name = "VDD_BAT_CHG"; + ti,continuous-config = <0x0407>; + ti,trigger-config = <0x0403>; + ti,calibration-data = <0x0E90>; + ti,resistor = <5>; + ti,power-lsb = <6866>; + ti,divisor = <25>; + ti,precision-multiplier = <1000>; + }; + |