SpacemiT P1 Power Management Integrated Circuit

Schema identifier ($id): "http://devicetree.org/schemas/mfd/spacemit,p1.yaml#"

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

Maintainers (maintainers): "Troy Mitchell <troy.mitchell@linux.spacemit.com>"

P1 is an I2C-controlled PMIC produced by SpacemiT. It implements six constant-on-time buck converters and twelve low-dropout regulators. It also contains a load switch, watchdog timer, real-time clock, eight 12-bit ADC channels, and six GPIOs. Additional details are available in the "Power Stone/P1" section at the following link. https://developer.spacemit.com/documentation

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "spacemit,p1"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

vin-supply — not listed as required here #

Input supply phandle.

regulators — not listed as required here #

Value type (type): "object"

Properties matching a name pattern (patternProperties) #

^(buck[1-6]|aldo[1-4]|dldo[1-7])$ — name matches this regular expression

Value type (type): "object"

Shared schema rule ($ref): /schemas/regulator/regulator.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    pmic@41 {
        compatible = "spacemit,p1";
        reg = <0x41>;
        interrupts = <64>;

        regulators {
            buck1 {
                regulator-name = "buck1";
                regulator-min-microvolt = <500000>;
                regulator-max-microvolt = <3450000>;
                regulator-ramp-delay = <5000>;
                regulator-always-on;
            };

            aldo1 {
                regulator-name = "aldo1";
                regulator-min-microvolt = <500000>;
                regulator-max-microvolt = <3400000>;
                regulator-boot-on;
            };

            dldo1 {
                regulator-name = "dldo1";
                regulator-min-microvolt = <500000>;
                regulator-max-microvolt = <3400000>;
                regulator-boot-on;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page