1*4882a593SmuzhiyunTI BQ24735 Charge Controller 2*4882a593Smuzhiyun~~~~~~~~~~ 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunRequired properties : 5*4882a593Smuzhiyun - compatible : "ti,bq24735" 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunOptional properties : 8*4882a593Smuzhiyun - interrupts : Specify the interrupt to be used to trigger when the AC 9*4882a593Smuzhiyun adapter is either plugged in or removed. 10*4882a593Smuzhiyun - ti,ac-detect-gpios : This GPIO is optionally used to read the AC adapter 11*4882a593Smuzhiyun status. This is a Host GPIO that is configured as an input and connected 12*4882a593Smuzhiyun to the ACOK pin on the bq24735. Note: for backwards compatibility reasons, 13*4882a593Smuzhiyun the GPIO must be active on AC adapter absence despite ACOK being active 14*4882a593Smuzhiyun (high) on AC adapter presence. 15*4882a593Smuzhiyun - ti,charge-current : Used to control and set the charging current. This value 16*4882a593Smuzhiyun must be between 128mA and 8.128A with a 64mA step resolution. The POR value 17*4882a593Smuzhiyun is 0x0000h. This number is in mA (e.g. 8192), see spec for more information 18*4882a593Smuzhiyun about the ChargeCurrent (0x14h) register. 19*4882a593Smuzhiyun - ti,charge-voltage : Used to control and set the charging voltage. This value 20*4882a593Smuzhiyun must be between 1.024V and 19.2V with a 16mV step resolution. The POR value 21*4882a593Smuzhiyun is 0x0000h. This number is in mV (e.g. 19200), see spec for more information 22*4882a593Smuzhiyun about the ChargeVoltage (0x15h) register. 23*4882a593Smuzhiyun - ti,input-current : Used to control and set the charger input current. This 24*4882a593Smuzhiyun value must be between 128mA and 8.064A with a 128mA step resolution. The 25*4882a593Smuzhiyun POR value is 0x1000h. This number is in mA (e.g. 8064), see the spec for 26*4882a593Smuzhiyun more information about the InputCurrent (0x3fh) register. 27*4882a593Smuzhiyun - ti,external-control : Indicates that the charger is configured externally 28*4882a593Smuzhiyun and that the host should not attempt to enable/disable charging or set the 29*4882a593Smuzhiyun charge voltage/current. 30*4882a593Smuzhiyun - poll-interval : In case 'interrupts' is not specified, poll AC adapter 31*4882a593Smuzhiyun presence with this interval (milliseconds). 32*4882a593Smuzhiyun 33*4882a593SmuzhiyunExample: 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun bq24735@9 { 36*4882a593Smuzhiyun compatible = "ti,bq24735"; 37*4882a593Smuzhiyun reg = <0x9>; 38*4882a593Smuzhiyun ti,ac-detect-gpios = <&gpio 72 0x1>; 39*4882a593Smuzhiyun } 40