forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 ...
- Loading branch information
Showing
35 changed files
with
2,224 additions
and
604 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,45 @@ Description: | |
Valid values: | ||
- 5, 6 or 7 (hours), | ||
- 0: disabled. | ||
|
||
What: /sys/class/power_supply/max77693-charger/device/fast_charge_timer | ||
Date: January 2015 | ||
KernelVersion: 3.19.0 | ||
Contact: Krzysztof Kozlowski <[email protected]> | ||
Description: | ||
This entry shows and sets the maximum time the max77693 | ||
charger operates in fast-charge mode. When the timer expires | ||
the device will terminate fast-charge mode (charging current | ||
will drop to 0 A) and will trigger interrupt. | ||
|
||
Valid values: | ||
- 4 - 16 (hours), step by 2 (rounded down) | ||
- 0: disabled. | ||
|
||
What: /sys/class/power_supply/max77693-charger/device/top_off_threshold_current | ||
Date: January 2015 | ||
KernelVersion: 3.19.0 | ||
Contact: Krzysztof Kozlowski <[email protected]> | ||
Description: | ||
This entry shows and sets the charging current threshold for | ||
entering top-off charging mode. When charging current in fast | ||
charge mode drops below this value, the charger will trigger | ||
interrupt and start top-off charging mode. | ||
|
||
Valid values: | ||
- 100000 - 200000 (microamps), step by 25000 (rounded down) | ||
- 200000 - 350000 (microamps), step by 50000 (rounded down) | ||
- 0: disabled. | ||
|
||
What: /sys/class/power_supply/max77693-charger/device/top_off_timer | ||
Date: January 2015 | ||
KernelVersion: 3.19.0 | ||
Contact: Krzysztof Kozlowski <[email protected]> | ||
Description: | ||
This entry shows and sets the maximum time the max77693 | ||
charger operates in top-off charge mode. When the timer expires | ||
the device will terminate top-off charge mode (charging current | ||
will drop to 0 A) and will trigger interrupt. | ||
|
||
Valid values: | ||
- 0 - 70 (minutes), step by 10 (rounded down) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
binding for LTC2941 and LTC2943 battery gauges | ||
|
||
Both the LTC2941 and LTC2943 measure battery capacity. | ||
The LTC2943 is compatible with the LTC2941, it adds voltage and | ||
temperature monitoring, and uses a slightly different conversion | ||
formula for the charge counter. | ||
|
||
Required properties: | ||
- compatible: Should contain "ltc2941" or "ltc2943" which also indicates the | ||
type of I2C chip attached. | ||
- reg: The 7-bit I2C address. | ||
- lltc,resistor-sense: The sense resistor value in milli-ohms. Can be a 32-bit | ||
negative value when the battery has been connected to the wrong end of the | ||
resistor. | ||
- lltc,prescaler-exponent: The prescaler exponent as explained in the datasheet. | ||
This determines the range and accuracy of the gauge. The value is programmed | ||
into the chip only if it differs from the current setting. The setting is | ||
lost when the battery is disconnected. | ||
|
||
Example from the Topic Miami Florida board: | ||
|
||
fuelgauge: ltc2943@64 { | ||
compatible = "ltc2943"; | ||
reg = <0x64>; | ||
lltc,resistor-sense = <15>; | ||
lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */ | ||
}; |
13 changes: 8 additions & 5 deletions
13
Documentation/devicetree/bindings/power/reset/ltc2952-poweroff.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6165,6 +6165,13 @@ F: Documentation/devicetree/bindings/i2c/max6697.txt | |
F: drivers/hwmon/max6697.c | ||
F: include/linux/platform_data/max6697.h | ||
|
||
MAXIM MUIC CHARGER DRIVERS FOR EXYNOS BASED BOARDS | ||
M: Krzysztof Kozlowski <[email protected]> | ||
L: [email protected] | ||
S: Supported | ||
F: drivers/power/max14577_charger.c | ||
F: drivers/power/max77693_charger.c | ||
|
||
MAXIRADIO FM RADIO RECEIVER DRIVER | ||
M: Hans Verkuil <[email protected]> | ||
L: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.