diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-18 18:35:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-18 18:35:09 -0500 |
commit | a709bd585f291b9a6d0a3691ab4a0b9d3300a7a1 (patch) | |
tree | e35ef74281f1aefd23bcdb712832685ddb6f0668 /Documentation | |
parent | 3ea369eea07eb64adf36a6fb7fddb5d082c84143 (diff) | |
parent | c8024234c20eaf7b163cc4dbd963cb9cd03a4ff1 (diff) |
Merge tag 'for-v3.13' of git://git.infradead.org/battery-2.6
Pull battery updates from Anton Vorontsov:
"Highlights:
- A new driver for TI BQ24735 Battery Chargers, courtesy of NVidia.
- Device tree bindings for TWL4030 chips.
- Random fixes and cleanups"
* tag 'for-v3.13' of git://git.infradead.org/battery-2.6:
pm2301-charger: Remove unneeded NULL checks
twl4030_charger: Add devicetree support
power_supply: Fix documentation for TEMP_*ALERT* properties
max17042_battery: Support regmap to access device's registers
max17042_battery: Use SIMPLE_DEV_PM_OPS
charger-manager : Replace kzalloc to devm_kzalloc and remove uneccessary code
bq2415x_charger: Fix max battery regulation voltage
tps65090-charger: Use "IS_ENABLED(CONFIG_OF)" for DT code
tps65090-charger: Drop devm_free_irq of devm_ allocated irq
power_supply: Add support for bq24735 charger
pm2301-charger: Staticize pm2xxx_charger_die_therm_mngt
pm2301-charger: Check return value of regulator_enable
ab8500-charger: Remove redundant break
ab8500-charger: Check return value of regulator_enable
isp1704_charger: Fix driver to work with changes introduced in v3.5
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/power/twl-charger.txt | 20 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/power_supply/ti,bq24735.txt | 32 | ||||
-rw-r--r-- | Documentation/power/power_supply_class.txt | 8 |
3 files changed, 56 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/power/twl-charger.txt b/Documentation/devicetree/bindings/power/twl-charger.txt new file mode 100644 index 000000000000..d5c706216df5 --- /dev/null +++ b/Documentation/devicetree/bindings/power/twl-charger.txt | |||
@@ -0,0 +1,20 @@ | |||
1 | TWL BCI (Battery Charger Interface) | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: | ||
5 | - "ti,twl4030-bci" | ||
6 | - interrupts: two interrupt lines from the TWL SIH (secondary | ||
7 | interrupt handler) - interrupts 9 and 2. | ||
8 | |||
9 | Optional properties: | ||
10 | - ti,bb-uvolt: microvolts for charging the backup battery. | ||
11 | - ti,bb-uamp: microamps for charging the backup battery. | ||
12 | |||
13 | Examples: | ||
14 | |||
15 | bci { | ||
16 | compatible = "ti,twl4030-bci"; | ||
17 | interrupts = <9>, <2>; | ||
18 | ti,bb-uvolt = <3200000>; | ||
19 | ti,bb-uamp = <150>; | ||
20 | }; | ||
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 | } | ||
diff --git a/Documentation/power/power_supply_class.txt b/Documentation/power/power_supply_class.txt index 3f10b39b0346..89a8816990ff 100644 --- a/Documentation/power/power_supply_class.txt +++ b/Documentation/power/power_supply_class.txt | |||
@@ -135,11 +135,11 @@ CAPACITY_LEVEL - capacity level. This corresponds to | |||
135 | POWER_SUPPLY_CAPACITY_LEVEL_*. | 135 | POWER_SUPPLY_CAPACITY_LEVEL_*. |
136 | 136 | ||
137 | TEMP - temperature of the power supply. | 137 | TEMP - temperature of the power supply. |
138 | TEMP_ALERT_MIN - minimum battery temperature alert value in milli centigrade. | 138 | TEMP_ALERT_MIN - minimum battery temperature alert. |
139 | TEMP_ALERT_MAX - maximum battery temperature alert value in milli centigrade. | 139 | TEMP_ALERT_MAX - maximum battery temperature alert. |
140 | TEMP_AMBIENT - ambient temperature. | 140 | TEMP_AMBIENT - ambient temperature. |
141 | TEMP_AMBIENT_ALERT_MIN - minimum ambient temperature alert value in milli centigrade. | 141 | TEMP_AMBIENT_ALERT_MIN - minimum ambient temperature alert. |
142 | TEMP_AMBIENT_ALERT_MAX - maximum ambient temperature alert value in milli centigrade. | 142 | TEMP_AMBIENT_ALERT_MAX - maximum ambient temperature alert. |
143 | 143 | ||
144 | TIME_TO_EMPTY - seconds left for battery to be considered empty (i.e. | 144 | TIME_TO_EMPTY - seconds left for battery to be considered empty (i.e. |
145 | while battery powers a load) | 145 | while battery powers a load) |