power_supply: max17042: Add OF support for setting thresholds
[linux-2.6/btrfs-unstable.git] / Documentation / devicetree / bindings / power_supply / max17042_battery.txt
blob3f3894aaeebcf9f02f3505f4ad675c99e0d14460
1 max17042_battery
2 ~~~~~~~~~~~~~~~~
4 Required properties :
5  - compatible : "maxim,max17042"
7 Optional properties :
8  - maxim,rsns-microohm : Resistance of rsns resistor in micro Ohms
9                          (datasheet-recommended value is 10000).
10    Defining this property enables current-sense functionality.
12 Optional threshold properties :
13  If skipped the condition won't be reported.
14  - maxim,cold-temp :      Temperature threshold to report battery
15                           as cold (in tenths of degree Celsius).
16  - maxim,over-heat-temp : Temperature threshold to report battery
17                           as over heated (in tenths of degree Celsius).
18  - maxim,dead-volt :      Voltage threshold to report battery
19                           as dead (in mV).
20  - maxim,over-volt :      Voltage threshold to report battery
21                           as over voltage (in mV).
23 Example:
25         battery-charger@36 {
26                 compatible = "maxim,max17042";
27                 reg = <0x36>;
28                 maxim,rsns-microohm = <10000>;
29                 maxim,over-heat-temp = <600>;
30                 maxim,over-volt = <4300>;
31         };