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