Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt: power: bq24257-charger: Cover additional devices

Extend the bq24257 charger's device tree documentation to cover the
bq24250 and bq24251 devices as well feature additions.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>

authored by

Andreas Dannenberg and committed by
Sebastian Reichel
fff59df1 3b84b8ef

+48 -5
+48 -5
Documentation/devicetree/bindings/power/bq24257.txt
··· 1 - Binding for TI bq24257 Li-Ion Charger 1 + Binding for TI bq24250/bq24251/bq24257 Li-Ion Charger 2 2 3 3 Required properties: 4 4 - compatible: Should contain one of the following: 5 + * "ti,bq24250" 6 + * "ti,bq24251" 5 7 * "ti,bq24257" 6 - - reg: integer, i2c address of the device. 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". 7 13 - ti,battery-regulation-voltage: integer, maximum charging voltage in uV. 8 - - ti,charge-current: integer, maximum charging current in uA. 9 - - ti,termination-current: integer, charge will be terminated when current in 10 - constant-voltage phase drops below this value (in uA). 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. 11 34 12 35 Example: 13 36 14 37 bq24257 { 15 38 compatible = "ti,bq24257"; 16 39 reg = <0x6a>; 40 + interrupt-parent = <&gpio1>; 41 + interrupts = <16 IRQ_TYPE_EDGE_BOTH>; 42 + 43 + pg-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; 17 44 18 45 ti,battery-regulation-voltage = <4200000>; 19 46 ti,charge-current = <1000000>; 20 47 ti,termination-current = <50000>; 48 + }; 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>; 21 64 };