diff options
author | Darbha Sriharsha <dsriharsha@nvidia.com> | 2013-10-11 17:15:43 -0400 |
---|---|---|
committer | Anton Vorontsov <anton@enomsg.org> | 2013-10-25 18:56:51 -0400 |
commit | ce77399226313a72578b5b0d67e289d3f165b8ba (patch) | |
tree | f9538d6d47edfa9988d523ad96f77b90d97af371 /Documentation/devicetree/bindings | |
parent | 83bd57aeb06b1d6db2729082dd90a0286f3e3674 (diff) |
power_supply: Add support for bq24735 charger
Adds support for the bq24735 charger chipset. The bq24735 is a
high-efficiency, synchronous battery charger.
It allows control of the charging current, input current, and the charger
voltage DAC's through SMBus.
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Thanks-to: Stephen Warren <swarren@wwwdotorg.org>
Thanks-to: Thierry Reding <thierry.reding@gmail.com>
Thanks-to: Manish Badarkhe <badarkhe.manish@gmail.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'Documentation/devicetree/bindings')
-rw-r--r-- | Documentation/devicetree/bindings/power_supply/ti,bq24735.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power_supply/ti,bq24735.txt b/Documentation/devicetree/bindings/power_supply/ti,bq24735.txt new file mode 100644 index 000000000000..4f6a550184d0 --- /dev/null +++ b/Documentation/devicetree/bindings/power_supply/ti,bq24735.txt | |||
@@ -0,0 +1,32 @@ | |||
1 | TI BQ24735 Charge Controller | ||
2 | ~~~~~~~~~~ | ||
3 | |||
4 | Required properties : | ||
5 | - compatible : "ti,bq24735" | ||
6 | |||
7 | Optional properties : | ||
8 | - interrupts : Specify the interrupt to be used to trigger when the AC | ||
9 | adapter is either plugged in or removed. | ||
10 | - ti,ac-detect-gpios : This GPIO is optionally used to read the AC adapter | ||
11 | presence. This is a Host GPIO that is configured as an input and | ||
12 | connected to the bq24735. | ||
13 | - ti,charge-current : Used to control and set the charging current. This value | ||
14 | must be between 128mA and 8.128A with a 64mA step resolution. The POR value | ||
15 | is 0x0000h. This number is in mA (e.g. 8192), see spec for more information | ||
16 | about the ChargeCurrent (0x14h) register. | ||
17 | - ti,charge-voltage : Used to control and set the charging voltage. This value | ||
18 | must be between 1.024V and 19.2V with a 16mV step resolution. The POR value | ||
19 | is 0x0000h. This number is in mV (e.g. 19200), see spec for more information | ||
20 | about the ChargeVoltage (0x15h) register. | ||
21 | - ti,input-current : Used to control and set the charger input current. This | ||
22 | value must be between 128mA and 8.064A with a 128mA step resolution. The | ||
23 | POR value is 0x1000h. This number is in mA (e.g. 8064), see the spec for | ||
24 | more information about the InputCurrent (0x3fh) register. | ||
25 | |||
26 | Example: | ||
27 | |||
28 | bq24735@9 { | ||
29 | compatible = "ti,bq24735"; | ||
30 | reg = <0x9>; | ||
31 | ti,ac-detect-gpios = <&gpio 72 0x1>; | ||
32 | } | ||