From 4e87d8c960256166fed7e6edd228b418bbe1aa08 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Sun, 13 Apr 2014 12:18:37 +0530 Subject: power: lc709203f: Update DT document for battery current meaurement 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 Reviewed-on: http://git-master/r/395551 --- .../devicetree/bindings/power_supply/lc709203f_battery.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Documentation') diff --git a/Documentation/devicetree/bindings/power_supply/lc709203f_battery.txt b/Documentation/devicetree/bindings/power_supply/lc709203f_battery.txt index cab288316776..74c32afe7cf3 100644 --- a/Documentation/devicetree/bindings/power_supply/lc709203f_battery.txt +++ b/Documentation/devicetree/bindings/power_supply/lc709203f_battery.txt @@ -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 { -- cgit v1.2.3