]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/power/supply/cpcap-battery.txt
Merge tag 'renesas-fixes4-for-v4.13' of https://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / Documentation / devicetree / bindings / power / supply / cpcap-battery.txt
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 - power-supplies: List of phandles for power-supplying devices, as
12                   described in power_supply.txt. Typically a reference
13                   to cpcap_charger.
14
15 Example:
16
17 cpcap_battery: battery {
18         compatible = "motorola,cpcap-battery";
19         interrupts-extended = <
20                 &cpcap 5 0 &cpcap 3 0
21                 &cpcap 20 0 &cpcap 54 0
22         >;
23         interrupt-names =
24                 "lowbph", "lowbpl",
25                 "chrgcurr1", "battdetb";
26         io-channels = <&cpcap_adc 0 &cpcap_adc 1
27                        &cpcap_adc 5 &cpcap_adc 6>;
28         io-channel-names = "battdetb", "battp",
29                            "chg_isense", "batti";
30         power-supplies = <&cpcap_charger>;
31 };