]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - Documentation/devicetree/bindings/power_supply/max17042_battery.txt
power_supply: max17042: Add OF support for setting thresholds
[karo-tx-linux.git] / Documentation / devicetree / bindings / power_supply / max17042_battery.txt
index 5bc9b685cf8aec18057a9f7ea432b99d3049fed6..3f3894aaeebcf9f02f3505f4ad675c99e0d14460 100644 (file)
@@ -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>;
        };