aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Dannenberg <dannenberg@ti.com>2015-09-28 18:33:49 -0400
committerSebastian Reichel <sre@kernel.org>2015-09-29 10:49:58 -0400
commitfff59df1054a56b7960b3a0aa96d86d955dacf55 (patch)
treeca5b6e0c4a73a0a700eee48cf62bfc6f2da13d76
parent3b84b8efef054ba59e7679d1d430afb437aa4640 (diff)
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>
-rw-r--r--Documentation/devicetree/bindings/power/bq24257.txt53
1 files changed, 48 insertions, 5 deletions
diff --git a/Documentation/devicetree/bindings/power/bq24257.txt b/Documentation/devicetree/bindings/power/bq24257.txt
index 5c9d3940d07c..d693702c9c1e 100644
--- a/Documentation/devicetree/bindings/power/bq24257.txt
+++ b/Documentation/devicetree/bindings/power/bq24257.txt
@@ -1,21 +1,64 @@
1Binding for TI bq24257 Li-Ion Charger 1Binding for TI bq24250/bq24251/bq24257 Li-Ion Charger
2 2
3Required properties: 3Required properties:
4- compatible: Should contain one of the following: 4- compatible: Should contain one of the following:
5 * "ti,bq24250"
6 * "ti,bq24251"
5 * "ti,bq24257" 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- ti,battery-regulation-voltage: integer, maximum charging voltage in uV. 13- ti,battery-regulation-voltage: integer, maximum charging voltage in uV.
8- ti,charge-current: integer, maximum charging current in uA. 14- ti,charge-current: integer, maximum charging current in uA.
9- ti,termination-current: integer, charge will be terminated when current in 15- ti,termination-current: integer, charge will be terminated when current in
10 constant-voltage phase drops below this value (in uA). 16 constant-voltage phase drops below this value (in uA).
17
18Optional 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
12Example: 35Example:
13 36
14bq24257 { 37bq24257 {
15 compatible = "ti,bq24257"; 38 compatible = "ti,bq24257";
16 reg = <0x6a>; 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 ti,battery-regulation-voltage = <4200000>; 45 ti,battery-regulation-voltage = <4200000>;
19 ti,charge-current = <1000000>; 46 ti,charge-current = <1000000>;
20 ti,termination-current = <50000>; 47 ti,termination-current = <50000>;
21}; 48};
49
50Example:
51
52bq24250 {
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};