1*4882a593SmuzhiyunBinding for TI bq24250/bq24251/bq24257 Li-Ion Charger 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunRequired properties: 4*4882a593Smuzhiyun- compatible: Should contain one of the following: 5*4882a593Smuzhiyun * "ti,bq24250" 6*4882a593Smuzhiyun * "ti,bq24251" 7*4882a593Smuzhiyun * "ti,bq24257" 8*4882a593Smuzhiyun- reg: integer, i2c address of the device. 9*4882a593Smuzhiyun- interrupts: Interrupt mapping for GPIO IRQ (configure for both edges). Use in 10*4882a593Smuzhiyun conjunction with "interrupt-parent". 11*4882a593Smuzhiyun- ti,battery-regulation-voltage: integer, maximum charging voltage in uV. 12*4882a593Smuzhiyun- ti,charge-current: integer, maximum charging current in uA. 13*4882a593Smuzhiyun- ti,termination-current: integer, charge will be terminated when current in 14*4882a593Smuzhiyun constant-voltage phase drops below this value (in uA). 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunOptional properties: 17*4882a593Smuzhiyun- pg-gpios: GPIO used for connecting the bq2425x device PG (Power Good) pin. 18*4882a593Smuzhiyun This pin is not available on all devices however it should be used if 19*4882a593Smuzhiyun possible as this is the recommended way to obtain the charger's input PG 20*4882a593Smuzhiyun state. If this pin is not specified a software-based approach for PG 21*4882a593Smuzhiyun detection is used. 22*4882a593Smuzhiyun- ti,current-limit: The maximum current to be drawn from the charger's input 23*4882a593Smuzhiyun (in uA). If this property is not specified, the input limit current is 24*4882a593Smuzhiyun set automatically using USB D+/D- signal based charger type detection. 25*4882a593Smuzhiyun If the hardware does not support the D+/D- based detection, a default 26*4882a593Smuzhiyun of 500,000 is used (=500mA) instead. 27*4882a593Smuzhiyun- ti,ovp-voltage: Configures the over voltage protection voltage (in uV). If 28*4882a593Smuzhiyun not specified a default of 6,5000,000 (=6.5V) is used. 29*4882a593Smuzhiyun- ti,in-dpm-voltage: Configures the threshold input voltage for the dynamic 30*4882a593Smuzhiyun power path management (in uV). If not specified a default of 4,360,000 31*4882a593Smuzhiyun (=4.36V) is used. 32*4882a593Smuzhiyun 33*4882a593SmuzhiyunExample: 34*4882a593Smuzhiyun 35*4882a593Smuzhiyunbq24257 { 36*4882a593Smuzhiyun compatible = "ti,bq24257"; 37*4882a593Smuzhiyun reg = <0x6a>; 38*4882a593Smuzhiyun interrupt-parent = <&gpio1>; 39*4882a593Smuzhiyun interrupts = <16 IRQ_TYPE_EDGE_BOTH>; 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun pg-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun ti,battery-regulation-voltage = <4200000>; 44*4882a593Smuzhiyun ti,charge-current = <1000000>; 45*4882a593Smuzhiyun ti,termination-current = <50000>; 46*4882a593Smuzhiyun}; 47*4882a593Smuzhiyun 48*4882a593SmuzhiyunExample: 49*4882a593Smuzhiyun 50*4882a593Smuzhiyunbq24250 { 51*4882a593Smuzhiyun compatible = "ti,bq24250"; 52*4882a593Smuzhiyun reg = <0x6a>; 53*4882a593Smuzhiyun interrupt-parent = <&gpio1>; 54*4882a593Smuzhiyun interrupts = <16 IRQ_TYPE_EDGE_BOTH>; 55*4882a593Smuzhiyun 56*4882a593Smuzhiyun ti,battery-regulation-voltage = <4200000>; 57*4882a593Smuzhiyun ti,charge-current = <500000>; 58*4882a593Smuzhiyun ti,termination-current = <50000>; 59*4882a593Smuzhiyun ti,current-limit = <900000>; 60*4882a593Smuzhiyun ti,ovp-voltage = <9500000>; 61*4882a593Smuzhiyun ti,in-dpm-voltage = <4440000>; 62*4882a593Smuzhiyun}; 63