forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
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.11' of git://git.infradead.org/battery-2.6
Pull battery subsystem update from Anton Vorontsov: "Nothing exciting this time, just assorted fixes and cleanups" * tag 'for-v3.11' of git://git.infradead.org/battery-2.6: (25 commits) charger-manager: Fix regulator_get() return check charger-manager: Fix a bug when it unregisters notifier block of extcon tps65090-charger: Add dt node to power_supply sbs-battery: Add dt to power_supply struct power_supply: Add of_node_put to fix refcount power_supply: Move of_node out of the #ifdef CONFIG_OF power/reset: Make the vexpress driver optional on arm and arm64 charger-manager: Add missing newlines, fix a couple of typos, add pr_fmt tps65090-charger: Fix AC detect MAINTAINERS: Update email address for Anton Vorontsov charger-manager: Ensure event is not used as format string power_supply: Replace strict_strtoul() with kstrtoul() generic-adc-battery: Fix checking if none of the channels are supported power: Use platform_{get,set}_drvdata() pm2301_charger: Return error if create_singlethread_workqueue fails pm2301_charger: Fix NULL pointer dereference lp8727_charger: Support the device tree feature twl4030_charger: Remove unnecessary platform_set_drvdata() rx51_battery: Remove unnecessary platform_set_drvdata() jz4740-battery: Remove unnecessary platform_set_drvdata() ...
- Loading branch information
Showing
24 changed files
with
241 additions
and
130 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
Documentation/devicetree/bindings/power_supply/lp8727_charger.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Binding for TI/National Semiconductor LP8727 Charger | ||
|
||
Required properties: | ||
- compatible: "ti,lp8727" | ||
- reg: I2C slave address 27h | ||
|
||
Optional properties: | ||
- interrupt-parent: interrupt controller node (see interrupt binding[0]) | ||
- interrupts: interrupt specifier (see interrupt binding[0]) | ||
- debounce-ms: interrupt debounce time. (u32) | ||
|
||
AC and USB charging parameters | ||
- charger-type: "ac" or "usb" (string) | ||
- eoc-level: value of 'enum lp8727_eoc_level' (u8) | ||
- charging-current: value of 'enum lp8727_ichg' (u8) | ||
|
||
[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | ||
|
||
Example) | ||
|
||
lp8727@27 { | ||
compatible = "ti,lp8727"; | ||
reg = <0x27>; | ||
|
||
/* GPIO 134 is used for LP8728 interrupt pin */ | ||
interrupt-parent = <&gpio5>; /* base = 128 */ | ||
interrupts = <6 0x2>; /* offset = 6, falling edge type */ | ||
|
||
debounce-ms = <300>; | ||
|
||
/* AC charger: 5% EOC and 500mA charging current */ | ||
ac { | ||
charger-type = "ac"; | ||
eoc-level = /bits/ 8 <0>; | ||
charging-current = /bits/ 8 <4>; | ||
}; | ||
|
||
/* USB charger: 10% EOC and 400mA charging current */ | ||
usb { | ||
charger-type = "usb"; | ||
eoc-level = /bits/ 8 <1>; | ||
charging-current = /bits/ 8 <2>; | ||
}; | ||
}; |
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 |
---|---|---|
|
@@ -752,7 +752,7 @@ S: Maintained | |
F: arch/arm/mach-highbank/ | ||
|
||
ARM/CAVIUM NETWORKS CNS3XXX MACHINE SUPPORT | ||
M: Anton Vorontsov <[email protected]> | ||
M: Anton Vorontsov <[email protected]> | ||
S: Maintained | ||
F: arch/arm/mach-cns3xxx/ | ||
T: git git://git.infradead.org/users/cbou/linux-cns3xxx.git | ||
|
@@ -6406,7 +6406,7 @@ F: include/linux/timer* | |
F: kernel/*timer* | ||
|
||
POWER SUPPLY CLASS/SUBSYSTEM and DRIVERS | ||
M: Anton Vorontsov <[email protected]> | ||
M: Anton Vorontsov <[email protected]> | ||
M: David Woodhouse <[email protected]> | ||
T: git git://git.infradead.org/battery-2.6.git | ||
S: Maintained | ||
|
@@ -6516,7 +6516,7 @@ S: Maintained | |
F: drivers/block/ps3vram.c | ||
|
||
PSTORE FILESYSTEM | ||
M: Anton Vorontsov <[email protected]> | ||
M: Anton Vorontsov <[email protected]> | ||
M: Colin Cross <[email protected]> | ||
M: Kees Cook <[email protected]> | ||
M: Tony Luck <[email protected]> | ||
|
@@ -7214,7 +7214,7 @@ F: drivers/mmc/host/sdhci.* | |
F: drivers/mmc/host/sdhci-pltfm.[ch] | ||
|
||
SECURE DIGITAL HOST CONTROLLER INTERFACE, OPEN FIRMWARE BINDINGS (SDHCI-OF) | ||
M: Anton Vorontsov <[email protected]> | ||
M: Anton Vorontsov <[email protected]> | ||
L: [email protected] | ||
L: [email protected] | ||
S: Maintained | ||
|
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
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.