diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-06-08 01:11:38 (GMT) |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-06-10 14:14:03 (GMT) |
commit | a6e6b63ee2798f18e0e786feb407cc7846077ea3 (patch) | |
tree | 936d2fcd154eb8fe50ffc7eb9624cb1dc00904a3 /Documentation/devicetree/bindings/power_supply | |
parent | 5c6e3a97e969e978368df83239583771c936efea (diff) | |
download | linux-a6e6b63ee2798f18e0e786feb407cc7846077ea3.tar.xz |
power_supply: max17042: Add OF support for setting thresholds
The commit edd4ab055931 ("power: max17042_battery: add HEALTH and TEMP_*
properties support") added support for setting voltage and temperature
thresholds with platform data. For DeviceTree default of 0 was always
used.
This caused reporting battery health always as over voltage or
over heated.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Fixes: edd4ab055931 ("power: max17042_battery: add HEALTH and TEMP_* properties support")
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/power_supply')
-rw-r--r-- | Documentation/devicetree/bindings/power_supply/max17042_battery.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power_supply/max17042_battery.txt b/Documentation/devicetree/bindings/power_supply/max17042_battery.txt index 5bc9b68..3f3894a 100644 --- a/Documentation/devicetree/bindings/power_supply/max17042_battery.txt +++ b/Documentation/devicetree/bindings/power_supply/max17042_battery.txt @@ -9,10 +9,23 @@ Optional properties : (datasheet-recommended value is 10000). Defining this property enables current-sense functionality. +Optional threshold properties : + If skipped the condition won't be reported. + - maxim,cold-temp : Temperature threshold to report battery + as cold (in tenths of degree Celsius). + - maxim,over-heat-temp : Temperature threshold to report battery + as over heated (in tenths of degree Celsius). + - maxim,dead-volt : Voltage threshold to report battery + as dead (in mV). + - maxim,over-volt : Voltage threshold to report battery + as over voltage (in mV). + Example: battery-charger@36 { compatible = "maxim,max17042"; reg = <0x36>; maxim,rsns-microohm = <10000>; + maxim,over-heat-temp = <600>; + maxim,over-volt = <4300>; }; |