Merge tag 'linux-kselftest-kunit-fixes-5.11-rc3' of git://git.kernel.org/pub/scm...
[linux/fpc-iii.git] / Documentation / devicetree / bindings / power / supply / cpcap-charger.txt
blob6048f636783fc4a411159a7fd881769a010bbb8f
1 Motorola CPCAP PMIC battery charger binding
3 Required properties:
4 - compatible: Shall be "motorola,mapphone-cpcap-charger"
5 - interrupts: Interrupt specifier for each name in interrupt-names
6 - interrupt-names: Should contain the following entries:
7                    "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
8                    "rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld",
9                    "battdetb"
10 - io-channels: IIO ADC channel specifier for each name in io-channel-names
11 - io-channel-names: Should contain the following entries:
12                     "battdetb", "battp", "vbus", "chg_isense", "batti"
14 Optional properties:
15 - mode-gpios: Optionally CPCAP charger can have a companion wireless
16               charge controller that is controlled with two GPIOs
17               that are active low.
19 Example:
21 cpcap_charger: charger {
22         compatible = "motorola,mapphone-cpcap-charger";
23         interrupts-extended = <
24                 &cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0
25                 &cpcap 22 0 &cpcap 21 0 &cpcap 20 0 &cpcap 19 0
26                 &cpcap 54 0
27         >;
28         interrupt-names =
29                 "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
30                 "rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld",
31                 "battdetb";
32         mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW
33                       &gpio3 23 GPIO_ACTIVE_LOW>;
34         io-channels = <&cpcap_adc 0 &cpcap_adc 1
35                        &cpcap_adc 2 &cpcap_adc 5
36                        &cpcap_adc 6>;
37         io-channel-names = "battdetb", "battp",
38                            "vbus", "chg_isense",
39                            "batti";