diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-11 11:39:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-11 11:39:19 -0500 |
commit | 13c071907b237058b38ac85b35742a543e522059 (patch) | |
tree | f3c09fd1fe1617140e521ae3448e3698002f85b3 /Documentation/devicetree/bindings | |
parent | c5ce28df0e7c01a1de23c36ebdefcd803f2b6cbb (diff) | |
parent | 24727b45b484e8937dcde53fa8d1aa70ac30ec0c (diff) |
Merge tag 'for-v3.20' of git://git.infradead.org/battery-2.6
Pull power supply and reset changes from Sebastian Reichel:
"New drivers:
- charger driver for Maxim 77693
- battery gauge driver for LTC 2941/2943
- battery gauge driver for RT5033
- reset driver for R-Mobile platforms
Convert drivers to restart handler framework:
- arm-versatile
- at91
- st-poweroff
Misc:
- remove deprecated sun6i reboot driver
- use alarmtimer instead of rtc in charger-manager
- misc fixes"
* tag 'for-v3.20' of git://git.infradead.org/battery-2.6: (48 commits)
power_supply: 88pm860x: Fix leaked power supply on probe fail
power/reset: restart-poweroff: Remove arm dependencies
power/reset: st-poweroff: Fix misleading Kconfig description
power/reset: st-poweroff: Register with kernel restart handler
power/reset: Remove sun6i reboot driver
power/reset: at91: Register with kernel restart handler
power/reset: arm-versatile: Register with kernel restart handler
power: test_power: Use enum as index for array of supplies
Add devicetree binding documentation for the LTC2941/LTC2943 driver
Add LTC2941/LTC2943 Battery Gauge Driver
power/reset: brcmstb: Add support for old 65nm chips
power/reset: brcmstb: Use the DT "compatible" string to indicate bit positions
power/reset: brcmstb: Make the driver buildable on MIPS
power: charger-manager: Use alarmtimer for battery monitoring in suspend.
power/reset: at91-poweroff: Fix error handling and other compiler warnings
bq27x00_battery: Call power_supply_changed only when capacity changed
bq27x00_battery: fix register offset for bq27425
power: max14577: Remove SYSFS dependency from Kconfig
power: bq24190_charger: suppress build warning
power: reset: Add reset driver for R-Mobile platforms
...
Diffstat (limited to 'Documentation/devicetree/bindings')
4 files changed, 83 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/arm/brcm-brcmstb.txt b/Documentation/devicetree/bindings/arm/brcm-brcmstb.txt index 3c436cc4f35d..430608ec09f0 100644 --- a/Documentation/devicetree/bindings/arm/brcm-brcmstb.txt +++ b/Documentation/devicetree/bindings/arm/brcm-brcmstb.txt | |||
@@ -79,7 +79,9 @@ reboot | |||
79 | Required properties | 79 | Required properties |
80 | 80 | ||
81 | - compatible | 81 | - compatible |
82 | The string property "brcm,brcmstb-reboot". | 82 | The string property "brcm,brcmstb-reboot" for 40nm/28nm chips with |
83 | the new SYS_CTRL interface, or "brcm,bcm7038-reboot" for 65nm | ||
84 | chips with the old SUN_TOP_CTRL interface. | ||
83 | 85 | ||
84 | - syscon | 86 | - syscon |
85 | A phandle / integer array that points to the syscon node which describes | 87 | A phandle / integer array that points to the syscon node which describes |
diff --git a/Documentation/devicetree/bindings/mfd/max77693.txt b/Documentation/devicetree/bindings/mfd/max77693.txt index 01e9f30fe678..38e64405e98d 100644 --- a/Documentation/devicetree/bindings/mfd/max77693.txt +++ b/Documentation/devicetree/bindings/mfd/max77693.txt | |||
@@ -41,6 +41,41 @@ Optional properties: | |||
41 | To get more informations, please refer to documentaion. | 41 | To get more informations, please refer to documentaion. |
42 | [*] refer Documentation/devicetree/bindings/pwm/pwm.txt | 42 | [*] refer Documentation/devicetree/bindings/pwm/pwm.txt |
43 | 43 | ||
44 | - charger : Node configuring the charger driver. | ||
45 | If present, required properties: | ||
46 | - compatible : Must be "maxim,max77693-charger". | ||
47 | |||
48 | Optional properties (if not set, defaults will be used): | ||
49 | - maxim,constant-microvolt : Battery constant voltage in uV. The charger | ||
50 | will operate in fast charge constant current mode till battery voltage | ||
51 | reaches this level. Then the charger will switch to fast charge constant | ||
52 | voltage mode. Also vsys (system voltage) will be set to this value when | ||
53 | DC power is supplied but charger is not enabled. | ||
54 | Valid values: 3650000 - 4400000, step by 25000 (rounded down) | ||
55 | Default: 4200000 | ||
56 | |||
57 | - maxim,min-system-microvolt : Minimal system voltage in uV. | ||
58 | Valid values: 3000000 - 3700000, step by 100000 (rounded down) | ||
59 | Default: 3600000 | ||
60 | |||
61 | - maxim,thermal-regulation-celsius : Temperature in Celsius for entering | ||
62 | high temperature charging mode. If die temperature exceeds this value | ||
63 | the charging current will be reduced by 105 mA/Celsius. | ||
64 | Valid values: 70, 85, 100, 115 | ||
65 | Default: 100 | ||
66 | |||
67 | - maxim,battery-overcurrent-microamp : Overcurrent protection threshold | ||
68 | in uA (current from battery to system). | ||
69 | Valid values: 2000000 - 3500000, step by 250000 (rounded down) | ||
70 | Default: 3500000 | ||
71 | |||
72 | - maxim,charge-input-threshold-microvolt : Threshold voltage in uV for | ||
73 | triggering input voltage regulation loop. If input voltage decreases | ||
74 | below this value, the input current will be reduced to reach the | ||
75 | threshold voltage. | ||
76 | Valid values: 4300000, 4700000, 4800000, 4900000 | ||
77 | Default: 4300000 | ||
78 | |||
44 | Example: | 79 | Example: |
45 | max77693@66 { | 80 | max77693@66 { |
46 | compatible = "maxim,max77693"; | 81 | compatible = "maxim,max77693"; |
@@ -73,4 +108,14 @@ Example: | |||
73 | pwms = <&pwm 0 40000 0>; | 108 | pwms = <&pwm 0 40000 0>; |
74 | pwm-names = "haptic"; | 109 | pwm-names = "haptic"; |
75 | }; | 110 | }; |
111 | |||
112 | charger { | ||
113 | compatible = "maxim,max77693-charger"; | ||
114 | |||
115 | maxim,constant-microvolt = <4200000>; | ||
116 | maxim,min-system-microvolt = <3600000>; | ||
117 | maxim,thermal-regulation-celsius = <75>; | ||
118 | maxim,battery-overcurrent-microamp = <3000000>; | ||
119 | maxim,charge-input-threshold-microvolt = <4300000>; | ||
120 | }; | ||
76 | }; | 121 | }; |
diff --git a/Documentation/devicetree/bindings/power/ltc2941.txt b/Documentation/devicetree/bindings/power/ltc2941.txt new file mode 100644 index 000000000000..ea42ae12d924 --- /dev/null +++ b/Documentation/devicetree/bindings/power/ltc2941.txt | |||
@@ -0,0 +1,27 @@ | |||
1 | binding for LTC2941 and LTC2943 battery gauges | ||
2 | |||
3 | Both the LTC2941 and LTC2943 measure battery capacity. | ||
4 | The LTC2943 is compatible with the LTC2941, it adds voltage and | ||
5 | temperature monitoring, and uses a slightly different conversion | ||
6 | formula for the charge counter. | ||
7 | |||
8 | Required properties: | ||
9 | - compatible: Should contain "ltc2941" or "ltc2943" which also indicates the | ||
10 | type of I2C chip attached. | ||
11 | - reg: The 7-bit I2C address. | ||
12 | - lltc,resistor-sense: The sense resistor value in milli-ohms. Can be a 32-bit | ||
13 | negative value when the battery has been connected to the wrong end of the | ||
14 | resistor. | ||
15 | - lltc,prescaler-exponent: The prescaler exponent as explained in the datasheet. | ||
16 | This determines the range and accuracy of the gauge. The value is programmed | ||
17 | into the chip only if it differs from the current setting. The setting is | ||
18 | lost when the battery is disconnected. | ||
19 | |||
20 | Example from the Topic Miami Florida board: | ||
21 | |||
22 | fuelgauge: ltc2943@64 { | ||
23 | compatible = "ltc2943"; | ||
24 | reg = <0x64>; | ||
25 | lltc,resistor-sense = <15>; | ||
26 | lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */ | ||
27 | }; | ||
diff --git a/Documentation/devicetree/bindings/power/reset/ltc2952-poweroff.txt b/Documentation/devicetree/bindings/power/reset/ltc2952-poweroff.txt index 0c94c637f63b..cd2d7f58a9d7 100644 --- a/Documentation/devicetree/bindings/power/reset/ltc2952-poweroff.txt +++ b/Documentation/devicetree/bindings/power/reset/ltc2952-poweroff.txt | |||
@@ -1,20 +1,23 @@ | |||
1 | Binding for the LTC2952 PowerPath controller | 1 | Binding for the LTC2952 PowerPath controller |
2 | 2 | ||
3 | This chip is used to externally trigger a system shut down. Once the trigger has | 3 | This chip is used to externally trigger a system shut down. Once the trigger has |
4 | been sent, the chips' watchdog has to be reset to gracefully shut down. | 4 | been sent, the chip's watchdog has to be reset to gracefully shut down. |
5 | If the Linux systems decides to shut down it powers off the platform via the | 5 | A full powerdown can be triggered via the kill signal. |
6 | kill signal. | ||
7 | 6 | ||
8 | Required properties: | 7 | Required properties: |
9 | 8 | ||
10 | - compatible: Must contain: "lltc,ltc2952" | 9 | - compatible: Must contain: "lltc,ltc2952" |
11 | - trigger-gpios: phandle + gpio-specifier for the GPIO connected to the | ||
12 | chip's trigger line | ||
13 | - watchdog-gpios: phandle + gpio-specifier for the GPIO connected to the | 10 | - watchdog-gpios: phandle + gpio-specifier for the GPIO connected to the |
14 | chip's watchdog line | 11 | chip's watchdog line |
15 | - kill-gpios: phandle + gpio-specifier for the GPIO connected to the | 12 | - kill-gpios: phandle + gpio-specifier for the GPIO connected to the |
16 | chip's kill line | 13 | chip's kill line |
17 | 14 | ||
15 | Optional properties: | ||
16 | - trigger-gpios: phandle + gpio-specifier for the GPIO connected to the | ||
17 | chip's trigger line. If this property is not set, the | ||
18 | trigger function is ignored and the chip is kept alive | ||
19 | until an explicit kill signal is received | ||
20 | |||
18 | Example: | 21 | Example: |
19 | 22 | ||
20 | ltc2952 { | 23 | ltc2952 { |