1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2021 Sebastian Reichel
5 $id: http://devicetree.org/schemas/power/supply/cpcap-battery.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Motorola CPCAP PMIC battery
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 fuel gauge
20 - $ref: power-supply.yaml#
24 const: motorola,cpcap-battery
28 - description: eol interrupt
29 - description: low battery percentage interrupt
30 - description: critical battery percentage interrupt
31 - description: charger detect interrupt
32 - description: battery detect interrupt
33 - description: coulomb counter calibration interrupt
46 - description: battery temperature
47 - description: battery voltage
48 - description: battery charge current
49 - description: battery current
68 additionalProperties: false
74 compatible = "motorola,cpcap-battery";
76 <&cpcap 6 0>, <&cpcap 5 0>, <&cpcap 3 0>,
77 <&cpcap 20 0>, <&cpcap 54 0>, <&cpcap 57 0>;
79 "eol", "lowbph", "lowbpl",
80 "chrgcurr1", "battdetb", "cccal";
81 io-channels = <&cpcap_adc 0>, <&cpcap_adc 1>,
82 <&cpcap_adc 5>, <&cpcap_adc 6>;
83 io-channel-names = "battdetb", "battp",
84 "chg_isense", "batti";
85 power-supplies = <&cpcap_charger>;