18c2ecf20Sopenharmony_ciBinding for TI bq25890 Li-Ion Charger 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThis driver will support the bq25892, the bq25896 and the bq25890. There are 48c2ecf20Sopenharmony_ciother ICs in the same family but those have not been tested. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciRequired properties: 78c2ecf20Sopenharmony_ci- compatible: Should contain one of the following: 88c2ecf20Sopenharmony_ci * "ti,bq25890" 98c2ecf20Sopenharmony_ci * "ti,bq25892" 108c2ecf20Sopenharmony_ci * "ti,bq25895" 118c2ecf20Sopenharmony_ci * "ti,bq25896" 128c2ecf20Sopenharmony_ci- reg: integer, i2c address of the device. 138c2ecf20Sopenharmony_ci- interrupts: interrupt line; 148c2ecf20Sopenharmony_ci- ti,battery-regulation-voltage: integer, maximum charging voltage (in uV); 158c2ecf20Sopenharmony_ci- ti,charge-current: integer, maximum charging current (in uA); 168c2ecf20Sopenharmony_ci- ti,termination-current: integer, charge will be terminated when current in 178c2ecf20Sopenharmony_ci constant-voltage phase drops below this value (in uA); 188c2ecf20Sopenharmony_ci- ti,precharge-current: integer, maximum charge current during precharge 198c2ecf20Sopenharmony_ci phase (in uA); 208c2ecf20Sopenharmony_ci- ti,minimum-sys-voltage: integer, when battery is charging and it is below 218c2ecf20Sopenharmony_ci minimum system voltage, the system will be regulated above 228c2ecf20Sopenharmony_ci minimum-sys-voltage setting (in uV); 238c2ecf20Sopenharmony_ci- ti,boost-voltage: integer, VBUS voltage level in boost mode (in uV); 248c2ecf20Sopenharmony_ci- ti,boost-max-current: integer, maximum allowed current draw in boost mode 258c2ecf20Sopenharmony_ci (in uA). 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciOptional properties: 288c2ecf20Sopenharmony_ci- ti,boost-low-freq: boolean, if present boost mode frequency will be 500kHz, 298c2ecf20Sopenharmony_ci otherwise 1.5MHz; 308c2ecf20Sopenharmony_ci- ti,use-ilim-pin: boolean, if present the ILIM resistor will be used and the 318c2ecf20Sopenharmony_ci input current will be the lower between the resistor setting and the IINLIM 328c2ecf20Sopenharmony_ci register setting; 338c2ecf20Sopenharmony_ci- ti,thermal-regulation-threshold: integer, temperature above which the charge 348c2ecf20Sopenharmony_ci current is lowered, to avoid overheating (in degrees Celsius). If omitted, 358c2ecf20Sopenharmony_ci the default setting will be used (120 degrees); 368c2ecf20Sopenharmony_ci- ti,ibatcomp-micro-ohms: integer, value of a resistor in series with 378c2ecf20Sopenharmony_ci the battery; 388c2ecf20Sopenharmony_ci- ti,ibatcomp-clamp-microvolt: integer, maximum charging voltage adjustment due 398c2ecf20Sopenharmony_ci to expected voltage drop on in-series resistor; 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciExample: 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_cibq25890 { 448c2ecf20Sopenharmony_ci compatible = "ti,bq25890"; 458c2ecf20Sopenharmony_ci reg = <0x6a>; 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci interrupt-parent = <&gpio1>; 488c2ecf20Sopenharmony_ci interrupts = <16 IRQ_TYPE_EDGE_FALLING>; 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci ti,battery-regulation-voltage = <4200000>; 518c2ecf20Sopenharmony_ci ti,charge-current = <1000000>; 528c2ecf20Sopenharmony_ci ti,termination-current = <50000>; 538c2ecf20Sopenharmony_ci ti,precharge-current = <128000>; 548c2ecf20Sopenharmony_ci ti,minimum-sys-voltage = <3600000>; 558c2ecf20Sopenharmony_ci ti,boost-voltage = <5000000>; 568c2ecf20Sopenharmony_ci ti,boost-max-current = <1000000>; 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci ti,use-ilim-pin; 598c2ecf20Sopenharmony_ci ti,thermal-regulation-threshold = <120>; 608c2ecf20Sopenharmony_ci}; 61