]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
power: lc709203f: Update DT document for battery current meaurement
authorLaxman Dewangan <ldewangan@nvidia.com>
Sun, 13 Apr 2014 06:48:37 +0000 (12:18 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Sun, 13 Apr 2014 12:38:45 +0000 (05:38 -0700)
The lc709203f driver provided the property to measure battery current now.
The battery current can be read from the IIO interface with monitor.

This patch explain about the properties on nodes to measure the current.

bug 1413219

Change-Id: Ib1346f445f90d3a40cbf7ab7338c382ae8b3d120
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/395551

Documentation/devicetree/bindings/power_supply/lc709203f_battery.txt

index cab2883167762ab79a58db42cf517805bb99c6bf..74c32afe7cf3914dca363efedcfd4ef1f1bd4e55 100644 (file)
@@ -34,6 +34,16 @@ if battery thermistor isnot connected to device and temperature is read from
 other source then following properties are required:
        onsemi,tz-name
 
+Battery current monitoring:
+       Driver supports the battery current monitoring through IIO interface
+       and if platform supports it then following properties are required to
+       enable it as per iio-binding.txt.
+
+       io-channels = <&ina3221x INA3221_CHAN_INDEX(0, CURRENT, NORMAL)>;
+       io-channel-names = "battery-current";
+
+       Here iio-channel name for battry current is "battery-current".
+
 Example:
 
        lc709203f@0b {