xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/max17042_battery.txt (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1max17042_battery
2~~~~~~~~~~~~~~~~
3
4Required properties :
5 - compatible : one of the following
6 * "maxim,max17042"
7 * "maxim,max17047"
8 * "maxim,max17050"
9 * "maxim,max17055"
10
11Optional properties :
12 - maxim,rsns-microohm : Resistance of rsns resistor in micro Ohms
13                         (datasheet-recommended value is 10000).
14   Defining this property enables current-sense functionality.
15
16Optional threshold properties :
17 If skipped the condition won't be reported.
18 - maxim,cold-temp :      Temperature threshold to report battery
19                          as cold (in tenths of degree Celsius).
20 - maxim,over-heat-temp : Temperature threshold to report battery
21                          as over heated (in tenths of degree Celsius).
22 - maxim,dead-volt :      Voltage threshold to report battery
23                          as dead (in mV).
24 - maxim,over-volt :      Voltage threshold to report battery
25                          as over voltage (in mV).
26
27Example:
28
29	battery-charger@36 {
30		compatible = "maxim,max17042";
31		reg = <0x36>;
32		maxim,rsns-microohm = <10000>;
33		maxim,over-heat-temp = <600>;
34		maxim,over-volt = <4300>;
35	};
36