diff options
author | Tony Lindgren <tony@atomide.com> | 2017-05-31 20:19:20 -0400 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2017-06-08 07:05:49 -0400 |
commit | 1483384b0caac0a84896d03ebc53737bb889064e (patch) | |
tree | cb8a19c7fa48dcc70ffd9af2d277b2b1f9710d54 | |
parent | 1d2495e8c2d976208e8bb52d52b4e529e3b1ff75 (diff) |
dt-bindings: power: supply: cpcap-battery: Add binding
Add binding for cpcap pmic battery.
Cc: devicetree@vger.kernel.org
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
-rw-r--r-- | Documentation/devicetree/bindings/power/supply/cpcap-battery.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/cpcap-battery.txt b/Documentation/devicetree/bindings/power/supply/cpcap-battery.txt new file mode 100644 index 000000000000..d21b1cdf530f --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/cpcap-battery.txt | |||
@@ -0,0 +1,27 @@ | |||
1 | Motorola CPCAP PMIC battery driver binding | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: Shall be "motorola,cpcap-battery" | ||
5 | - interrupts: Interrupt specifier for each name in interrupt-names | ||
6 | - interrupt-names: Should contain the following entries: | ||
7 | "lowbph", "lowbpl", "chrgcurr1", "battdetb" | ||
8 | - io-channels: IIO ADC channel specifier for each name in io-channel-names | ||
9 | - io-channel-names: Should contain the following entries: | ||
10 | "battdetb", "battp", "chg_isense", "batti" | ||
11 | |||
12 | Example: | ||
13 | |||
14 | cpcap_battery: battery { | ||
15 | compatible = "motorola,cpcap-battery"; | ||
16 | interrupts-extended = < | ||
17 | &cpcap 5 0 &cpcap 3 0 | ||
18 | &cpcap 20 0 &cpcap 54 0 | ||
19 | >; | ||
20 | interrupt-names = | ||
21 | "lowbph", "lowbpl", | ||
22 | "chrgcurr1", "battdetb"; | ||
23 | io-channels = <&cpcap_adc 0 &cpcap_adc 1 | ||
24 | &cpcap_adc 5 &cpcap_adc 6>; | ||
25 | io-channel-names = "battdetb", "battp", | ||
26 | "chg_isense", "batti"; | ||
27 | }; | ||