diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-10 14:13:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-10 14:13:00 -0400 |
commit | 7d3107d26b522a0fe92af6279256fa65fe3db771 (patch) | |
tree | 9c9fd7653737c6725752033421344579e2679aa4 /Documentation | |
parent | 3aa78e0cb5c9b8b4ed2a617bb1e1542bfb508379 (diff) | |
parent | 5a6c2208455f25b3e6f939adc2da59aa00d4806e (diff) |
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()
...
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/power_supply/lp8727_charger.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power_supply/lp8727_charger.txt b/Documentation/devicetree/bindings/power_supply/lp8727_charger.txt new file mode 100644 index 000000000000..2246bc5c874b --- /dev/null +++ b/Documentation/devicetree/bindings/power_supply/lp8727_charger.txt | |||
@@ -0,0 +1,44 @@ | |||
1 | Binding for TI/National Semiconductor LP8727 Charger | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "ti,lp8727" | ||
5 | - reg: I2C slave address 27h | ||
6 | |||
7 | Optional properties: | ||
8 | - interrupt-parent: interrupt controller node (see interrupt binding[0]) | ||
9 | - interrupts: interrupt specifier (see interrupt binding[0]) | ||
10 | - debounce-ms: interrupt debounce time. (u32) | ||
11 | |||
12 | AC and USB charging parameters | ||
13 | - charger-type: "ac" or "usb" (string) | ||
14 | - eoc-level: value of 'enum lp8727_eoc_level' (u8) | ||
15 | - charging-current: value of 'enum lp8727_ichg' (u8) | ||
16 | |||
17 | [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | ||
18 | |||
19 | Example) | ||
20 | |||
21 | lp8727@27 { | ||
22 | compatible = "ti,lp8727"; | ||
23 | reg = <0x27>; | ||
24 | |||
25 | /* GPIO 134 is used for LP8728 interrupt pin */ | ||
26 | interrupt-parent = <&gpio5>; /* base = 128 */ | ||
27 | interrupts = <6 0x2>; /* offset = 6, falling edge type */ | ||
28 | |||
29 | debounce-ms = <300>; | ||
30 | |||
31 | /* AC charger: 5% EOC and 500mA charging current */ | ||
32 | ac { | ||
33 | charger-type = "ac"; | ||
34 | eoc-level = /bits/ 8 <0>; | ||
35 | charging-current = /bits/ 8 <4>; | ||
36 | }; | ||
37 | |||
38 | /* USB charger: 10% EOC and 400mA charging current */ | ||
39 | usb { | ||
40 | charger-type = "usb"; | ||
41 | eoc-level = /bits/ 8 <1>; | ||
42 | charging-current = /bits/ 8 <2>; | ||
43 | }; | ||
44 | }; | ||