12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 22eb4d8dcSEmmanuel Vadot# Copyright (C) 2021 Sebastian Reichel 32eb4d8dcSEmmanuel Vadot%YAML 1.2 42eb4d8dcSEmmanuel Vadot--- 5*b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/cpcap-battery.yaml# 6*b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 72eb4d8dcSEmmanuel Vadot 82eb4d8dcSEmmanuel Vadottitle: Motorola CPCAP PMIC battery 92eb4d8dcSEmmanuel Vadot 102eb4d8dcSEmmanuel Vadotmaintainers: 112eb4d8dcSEmmanuel Vadot - Tony Lindgren <tony@atomide.com> 122eb4d8dcSEmmanuel Vadot - Sebastian Reichel <sre@kernel.org> 132eb4d8dcSEmmanuel Vadot 142eb4d8dcSEmmanuel Vadotdescription: | 152eb4d8dcSEmmanuel Vadot Motorola CPCAP is a PMIC found in some mobile phones, e.g. 162eb4d8dcSEmmanuel Vadot the Droid 4. This binding describes its battery fuel gauge 172eb4d8dcSEmmanuel Vadot sub-function. 182eb4d8dcSEmmanuel Vadot 192eb4d8dcSEmmanuel VadotallOf: 202eb4d8dcSEmmanuel Vadot - $ref: power-supply.yaml# 212eb4d8dcSEmmanuel Vadot 222eb4d8dcSEmmanuel Vadotproperties: 232eb4d8dcSEmmanuel Vadot compatible: 242eb4d8dcSEmmanuel Vadot const: motorola,cpcap-battery 252eb4d8dcSEmmanuel Vadot 262eb4d8dcSEmmanuel Vadot interrupts: 272eb4d8dcSEmmanuel Vadot items: 282eb4d8dcSEmmanuel Vadot - description: eol interrupt 292eb4d8dcSEmmanuel Vadot - description: low battery percentage interrupt 302eb4d8dcSEmmanuel Vadot - description: critical battery percentage interrupt 312eb4d8dcSEmmanuel Vadot - description: charger detect interrupt 322eb4d8dcSEmmanuel Vadot - description: battery detect interrupt 332eb4d8dcSEmmanuel Vadot - description: coulomb counter calibration interrupt 342eb4d8dcSEmmanuel Vadot 352eb4d8dcSEmmanuel Vadot interrupt-names: 362eb4d8dcSEmmanuel Vadot items: 372eb4d8dcSEmmanuel Vadot - const: eol 382eb4d8dcSEmmanuel Vadot - const: lowbph 392eb4d8dcSEmmanuel Vadot - const: lowbpl 402eb4d8dcSEmmanuel Vadot - const: chrgcurr1 412eb4d8dcSEmmanuel Vadot - const: battdetb 422eb4d8dcSEmmanuel Vadot - const: cccal 432eb4d8dcSEmmanuel Vadot 442eb4d8dcSEmmanuel Vadot io-channels: 452eb4d8dcSEmmanuel Vadot items: 462eb4d8dcSEmmanuel Vadot - description: battery temperature 472eb4d8dcSEmmanuel Vadot - description: battery voltage 482eb4d8dcSEmmanuel Vadot - description: battery charge current 492eb4d8dcSEmmanuel Vadot - description: battery current 502eb4d8dcSEmmanuel Vadot 512eb4d8dcSEmmanuel Vadot io-channel-names: 522eb4d8dcSEmmanuel Vadot items: 532eb4d8dcSEmmanuel Vadot - const: battdetb 542eb4d8dcSEmmanuel Vadot - const: battp 552eb4d8dcSEmmanuel Vadot - const: chg_isense 562eb4d8dcSEmmanuel Vadot - const: batti 572eb4d8dcSEmmanuel Vadot 582eb4d8dcSEmmanuel Vadot power-supplies: true 592eb4d8dcSEmmanuel Vadot 602eb4d8dcSEmmanuel Vadotrequired: 612eb4d8dcSEmmanuel Vadot - compatible 622eb4d8dcSEmmanuel Vadot - interrupts 632eb4d8dcSEmmanuel Vadot - interrupt-names 642eb4d8dcSEmmanuel Vadot - io-channels 652eb4d8dcSEmmanuel Vadot - io-channel-names 662eb4d8dcSEmmanuel Vadot - power-supplies 672eb4d8dcSEmmanuel Vadot 682eb4d8dcSEmmanuel VadotadditionalProperties: false 692eb4d8dcSEmmanuel Vadot 702eb4d8dcSEmmanuel Vadotexamples: 712eb4d8dcSEmmanuel Vadot - | 722eb4d8dcSEmmanuel Vadot cpcap { 732eb4d8dcSEmmanuel Vadot battery { 742eb4d8dcSEmmanuel Vadot compatible = "motorola,cpcap-battery"; 752eb4d8dcSEmmanuel Vadot interrupts-extended = 762eb4d8dcSEmmanuel Vadot <&cpcap 6 0>, <&cpcap 5 0>, <&cpcap 3 0>, 772eb4d8dcSEmmanuel Vadot <&cpcap 20 0>, <&cpcap 54 0>, <&cpcap 57 0>; 782eb4d8dcSEmmanuel Vadot interrupt-names = 792eb4d8dcSEmmanuel Vadot "eol", "lowbph", "lowbpl", 802eb4d8dcSEmmanuel Vadot "chrgcurr1", "battdetb", "cccal"; 812eb4d8dcSEmmanuel Vadot io-channels = <&cpcap_adc 0>, <&cpcap_adc 1>, 822eb4d8dcSEmmanuel Vadot <&cpcap_adc 5>, <&cpcap_adc 6>; 832eb4d8dcSEmmanuel Vadot io-channel-names = "battdetb", "battp", 842eb4d8dcSEmmanuel Vadot "chg_isense", "batti"; 852eb4d8dcSEmmanuel Vadot power-supplies = <&cpcap_charger>; 862eb4d8dcSEmmanuel Vadot }; 872eb4d8dcSEmmanuel Vadot }; 88