diff options
author | Karol Lewandowski <k.lewandowsk@samsung.com> | 2012-02-22 19:06:22 +0100 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-03-26 20:40:51 +0400 |
commit | 3832246ddd83391187edff8af328f9e9684d3177 (patch) | |
tree | 7bff3e3b63074d1397a256acc145ab8e97e74bab /Documentation | |
parent | 2f3b43423c70a340b715396f15096c496da959bb (diff) | |
download | op-kernel-dev-3832246ddd83391187edff8af328f9e9684d3177.zip op-kernel-dev-3832246ddd83391187edff8af328f9e9684d3177.tar.gz |
max17042_battery: Make it possible to instantiate driver from DT
Allow both device tree (preferred) and platform data-based driver
instantiation.
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/power_supply/max17042_battery.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power_supply/max17042_battery.txt b/Documentation/devicetree/bindings/power_supply/max17042_battery.txt new file mode 100644 index 0000000..5bc9b68 --- /dev/null +++ b/Documentation/devicetree/bindings/power_supply/max17042_battery.txt @@ -0,0 +1,18 @@ +max17042_battery +~~~~~~~~~~~~~~~~ + +Required properties : + - compatible : "maxim,max17042" + +Optional properties : + - maxim,rsns-microohm : Resistance of rsns resistor in micro Ohms + (datasheet-recommended value is 10000). + Defining this property enables current-sense functionality. + +Example: + + battery-charger@36 { + compatible = "maxim,max17042"; + reg = <0x36>; + maxim,rsns-microohm = <10000>; + }; |