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