| 1 | max17042_battery |
| 2 | ~~~~~~~~~~~~~~~~ |
| 3 | |
| 4 | Required properties : |
| 5 | - compatible : "maxim,max17042" |
| 6 | |
| 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. |
| 11 | |
| 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). |
| 22 | |
| 23 | Example: |
| 24 | |
| 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 | }; |