Motorola CPCAP PMIC ADC

Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/motorola,cpcap-adc.yaml#"

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

Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>"

On Motorola phones like droid 4 there is a custom CPCAP PMIC. This PMIC has ADCs that are used for battery charging and USB PHY VBUS and ID pin detection.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "motorola,cpcap-adc", "motorola,mapphone-cpcap-adc"

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here #

Exact value (const): "adcdone"

#io-channel-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "interrupts", "#io-channel-cells"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
pmic {
    #address-cells = <1>;
    #size-cells = <0>;
    adc {
        compatible = "motorola,mapphone-cpcap-adc";
        interrupt-parent = <&cpcap>;
        interrupts = <8 IRQ_TYPE_NONE>;
        interrupt-names = "adcdone";
        #io-channel-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page