Motorola CPCAP PMIC battery

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/cpcap-battery.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>", "Sebastian Reichel <sre@kernel.org>"

Motorola CPCAP is a PMIC found in some mobile phones, e.g. the Droid 4. This binding describes its battery fuel gauge sub-function.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "motorola,cpcap-battery"

interrupts — required here #

Array item rules (items) #

Item 1

eol interrupt

Item 2

low battery percentage interrupt

Item 3

critical battery percentage interrupt

Item 4

charger detect interrupt

Item 5

battery detect interrupt

Item 6

coulomb counter calibration interrupt

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "eol"

Item 2

Exact value (const): "lowbph"

Item 3

Exact value (const): "lowbpl"

Item 4

Exact value (const): "chrgcurr1"

Item 5

Exact value (const): "battdetb"

Item 6

Exact value (const): "cccal"

io-channels — required here #

Array item rules (items) #

Item 1

battery temperature

Item 2

battery voltage

Item 3

battery charge current

Item 4

battery current

io-channel-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "battdetb"

Item 2

Exact value (const): "battp"

Item 3

Exact value (const): "chg_isense"

Item 4

Exact value (const): "batti"

power-supplies — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "interrupts", "interrupt-names", "io-channels", "io-channel-names", "power-supplies"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

cpcap {
  battery {
    compatible = "motorola,cpcap-battery";
    interrupts-extended =
            <&cpcap 6 0>, <&cpcap 5 0>, <&cpcap 3 0>,
            <&cpcap 20 0>, <&cpcap 54 0>, <&cpcap 57 0>;
    interrupt-names =
            "eol", "lowbph", "lowbpl",
            "chrgcurr1", "battdetb", "cccal";
    io-channels = <&cpcap_adc 0>, <&cpcap_adc 1>,
                  <&cpcap_adc 5>, <&cpcap_adc 6>;
    io-channel-names = "battdetb", "battp",
                       "chg_isense", "batti";
    power-supplies = <&cpcap_charger>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 2: Copyright (C) 2021 Sebastian Reichel

Edit this page