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