18c2ecf20Sopenharmony_ciBinding for TI bq24250/bq24251/bq24257 Li-Ion Charger 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible: Should contain one of the following: 58c2ecf20Sopenharmony_ci * "ti,bq24250" 68c2ecf20Sopenharmony_ci * "ti,bq24251" 78c2ecf20Sopenharmony_ci * "ti,bq24257" 88c2ecf20Sopenharmony_ci- reg: integer, i2c address of the device. 98c2ecf20Sopenharmony_ci- interrupts: Interrupt mapping for GPIO IRQ (configure for both edges). Use in 108c2ecf20Sopenharmony_ci conjunction with "interrupt-parent". 118c2ecf20Sopenharmony_ci- ti,battery-regulation-voltage: integer, maximum charging voltage in uV. 128c2ecf20Sopenharmony_ci- ti,charge-current: integer, maximum charging current in uA. 138c2ecf20Sopenharmony_ci- ti,termination-current: integer, charge will be terminated when current in 148c2ecf20Sopenharmony_ci constant-voltage phase drops below this value (in uA). 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciOptional properties: 178c2ecf20Sopenharmony_ci- pg-gpios: GPIO used for connecting the bq2425x device PG (Power Good) pin. 188c2ecf20Sopenharmony_ci This pin is not available on all devices however it should be used if 198c2ecf20Sopenharmony_ci possible as this is the recommended way to obtain the charger's input PG 208c2ecf20Sopenharmony_ci state. If this pin is not specified a software-based approach for PG 218c2ecf20Sopenharmony_ci detection is used. 228c2ecf20Sopenharmony_ci- ti,current-limit: The maximum current to be drawn from the charger's input 238c2ecf20Sopenharmony_ci (in uA). If this property is not specified, the input limit current is 248c2ecf20Sopenharmony_ci set automatically using USB D+/D- signal based charger type detection. 258c2ecf20Sopenharmony_ci If the hardware does not support the D+/D- based detection, a default 268c2ecf20Sopenharmony_ci of 500,000 is used (=500mA) instead. 278c2ecf20Sopenharmony_ci- ti,ovp-voltage: Configures the over voltage protection voltage (in uV). If 288c2ecf20Sopenharmony_ci not specified a default of 6,5000,000 (=6.5V) is used. 298c2ecf20Sopenharmony_ci- ti,in-dpm-voltage: Configures the threshold input voltage for the dynamic 308c2ecf20Sopenharmony_ci power path management (in uV). If not specified a default of 4,360,000 318c2ecf20Sopenharmony_ci (=4.36V) is used. 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciExample: 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_cibq24257 { 368c2ecf20Sopenharmony_ci compatible = "ti,bq24257"; 378c2ecf20Sopenharmony_ci reg = <0x6a>; 388c2ecf20Sopenharmony_ci interrupt-parent = <&gpio1>; 398c2ecf20Sopenharmony_ci interrupts = <16 IRQ_TYPE_EDGE_BOTH>; 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci pg-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci ti,battery-regulation-voltage = <4200000>; 448c2ecf20Sopenharmony_ci ti,charge-current = <1000000>; 458c2ecf20Sopenharmony_ci ti,termination-current = <50000>; 468c2ecf20Sopenharmony_ci}; 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ciExample: 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_cibq24250 { 518c2ecf20Sopenharmony_ci compatible = "ti,bq24250"; 528c2ecf20Sopenharmony_ci reg = <0x6a>; 538c2ecf20Sopenharmony_ci interrupt-parent = <&gpio1>; 548c2ecf20Sopenharmony_ci interrupts = <16 IRQ_TYPE_EDGE_BOTH>; 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci ti,battery-regulation-voltage = <4200000>; 578c2ecf20Sopenharmony_ci ti,charge-current = <500000>; 588c2ecf20Sopenharmony_ci ti,termination-current = <50000>; 598c2ecf20Sopenharmony_ci ti,current-limit = <900000>; 608c2ecf20Sopenharmony_ci ti,ovp-voltage = <9500000>; 618c2ecf20Sopenharmony_ci ti,in-dpm-voltage = <4440000>; 628c2ecf20Sopenharmony_ci}; 63