18c2ecf20Sopenharmony_ciTI BQ24735 Charge Controller 28c2ecf20Sopenharmony_ci~~~~~~~~~~ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciRequired properties : 58c2ecf20Sopenharmony_ci - compatible : "ti,bq24735" 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciOptional properties : 88c2ecf20Sopenharmony_ci - interrupts : Specify the interrupt to be used to trigger when the AC 98c2ecf20Sopenharmony_ci adapter is either plugged in or removed. 108c2ecf20Sopenharmony_ci - ti,ac-detect-gpios : This GPIO is optionally used to read the AC adapter 118c2ecf20Sopenharmony_ci status. This is a Host GPIO that is configured as an input and connected 128c2ecf20Sopenharmony_ci to the ACOK pin on the bq24735. Note: for backwards compatibility reasons, 138c2ecf20Sopenharmony_ci the GPIO must be active on AC adapter absence despite ACOK being active 148c2ecf20Sopenharmony_ci (high) on AC adapter presence. 158c2ecf20Sopenharmony_ci - ti,charge-current : Used to control and set the charging current. This value 168c2ecf20Sopenharmony_ci must be between 128mA and 8.128A with a 64mA step resolution. The POR value 178c2ecf20Sopenharmony_ci is 0x0000h. This number is in mA (e.g. 8192), see spec for more information 188c2ecf20Sopenharmony_ci about the ChargeCurrent (0x14h) register. 198c2ecf20Sopenharmony_ci - ti,charge-voltage : Used to control and set the charging voltage. This value 208c2ecf20Sopenharmony_ci must be between 1.024V and 19.2V with a 16mV step resolution. The POR value 218c2ecf20Sopenharmony_ci is 0x0000h. This number is in mV (e.g. 19200), see spec for more information 228c2ecf20Sopenharmony_ci about the ChargeVoltage (0x15h) register. 238c2ecf20Sopenharmony_ci - ti,input-current : Used to control and set the charger input current. This 248c2ecf20Sopenharmony_ci value must be between 128mA and 8.064A with a 128mA step resolution. The 258c2ecf20Sopenharmony_ci POR value is 0x1000h. This number is in mA (e.g. 8064), see the spec for 268c2ecf20Sopenharmony_ci more information about the InputCurrent (0x3fh) register. 278c2ecf20Sopenharmony_ci - ti,external-control : Indicates that the charger is configured externally 288c2ecf20Sopenharmony_ci and that the host should not attempt to enable/disable charging or set the 298c2ecf20Sopenharmony_ci charge voltage/current. 308c2ecf20Sopenharmony_ci - poll-interval : In case 'interrupts' is not specified, poll AC adapter 318c2ecf20Sopenharmony_ci presence with this interval (milliseconds). 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciExample: 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci bq24735@9 { 368c2ecf20Sopenharmony_ci compatible = "ti,bq24735"; 378c2ecf20Sopenharmony_ci reg = <0x9>; 388c2ecf20Sopenharmony_ci ti,ac-detect-gpios = <&gpio 72 0x1>; 398c2ecf20Sopenharmony_ci } 40