1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2021 Sebastian Reichel
5 $id: http://devicetree.org/schemas/power/supply/cpcap-charger.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Motorola CPCAP PMIC charger
11 - Tony Lindgren <tony@atomide.com>
12 - Sebastian Reichel <sre@kernel.org>
15 Motorola CPCAP is a PMIC found in some mobile phones, e.g.
16 the Droid 4. This binding describes its battery charger
20 - $ref: power-supply.yaml#
24 const: motorola,mapphone-cpcap-charger
28 - description: charger detection interrupt
29 - description: reverse charge interrupt
30 - description: SE1 charger detection interrupt
31 - description: SE0 charger detection interrupt
32 - description: reverse mode interrupt
33 - description: charge current 2 interrupt
34 - description: charge current 1 interrupt
35 - description: VBUS valid interrupt
36 - description: battery detect interrupt
52 - description: battery temperature
53 - description: battery voltage
54 - description: VBUS voltage
55 - description: battery charge current
56 - description: battery current
68 Optionally CPCAP charger can have a companion wireless
69 charge controller that is controlled with two GPIOs
81 additionalProperties: false
85 #include <dt-bindings/gpio/gpio.h>
88 compatible = "motorola,mapphone-cpcap-charger";
90 <&cpcap 13 0>, <&cpcap 12 0>, <&cpcap 29 0>, <&cpcap 28 0>,
91 <&cpcap 22 0>, <&cpcap 21 0>, <&cpcap 20 0>, <&cpcap 19 0>,
94 "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
95 "rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld",
97 mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW>,
98 <&gpio3 23 GPIO_ACTIVE_LOW>;
99 io-channels = <&cpcap_adc 0>, <&cpcap_adc 1>,
100 <&cpcap_adc 2>, <&cpcap_adc 5>,
102 io-channel-names = "battdetb", "battp",
103 "vbus", "chg_isense",