WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / power / supply / cpcap-battery.txt
bloba04efa22da0181911f446bb95f93c3fb431935a8
1 Motorola CPCAP PMIC battery driver binding
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.
15 Example:
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>;