HiSilicon 6421v600 SPMI PMIC

Schema identifier ($id): "http://devicetree.org/schemas/mfd/hisilicon,hi6421-spmi-pmic.yaml#"

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

Maintainers (maintainers): "Mauro Carvalho Chehab <mchehab+huawei@kernel.org>"

HiSilicon 6421v600 should be connected inside a MIPI System Power Management (SPMI) bus. It provides interrupts and power supply.

The GPIO and interrupt settings are represented as part of the top-level PMIC node.

The SPMI controller part is provided by Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "pmic@[0-9a-f]"

compatible — required here #

Exact value (const): "hisilicon,hi6421v600-spmi"

reg — required here #

Maximum number of items (maxItems): 1

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

regulators — required here #

Value type (type): "object"

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

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^ldo[0-9]+$ — 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.

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/spmi/spmi.h>

spmi {
    #address-cells = <2>;
    #size-cells = <0>;

    pmic@0 {
        compatible = "hisilicon,hi6421v600-spmi";
        reg = <0 SPMI_USID>;

        #interrupt-cells = <2>;
        interrupt-controller;
        interrupt-parent = <&gpio28>;
        interrupts = <0 0>;

        regulators {
            ldo3 {
                regulator-name = "ldo3";
                regulator-min-microvolt = <1500000>;
                regulator-max-microvolt = <2000000>;
                regulator-boot-on;
            };

            ldo4 {
                regulator-name = "ldo4";
                regulator-min-microvolt = <1725000>;
                regulator-max-microvolt = <1900000>;
                regulator-boot-on;
            };

            ldo9 {
                regulator-name = "ldo9";
                regulator-min-microvolt = <1750000>;
                regulator-max-microvolt = <3300000>;
                regulator-boot-on;
            };

            ldo15 {
                regulator-name = "ldo15";
                regulator-min-microvolt = <1800000>;
                regulator-max-microvolt = <3000000>;
                regulator-always-on;
            };

            ldo16 {
                regulator-name = "ldo16";
                regulator-min-microvolt = <1800000>;
                regulator-max-microvolt = <3000000>;
                regulator-boot-on;
            };

            ldo17 {
                regulator-name = "ldo17";
                regulator-min-microvolt = <2500000>;
                regulator-max-microvolt = <3300000>;
            };

            ldo33 {
                regulator-name = "ldo33";
                regulator-min-microvolt = <2500000>;
                regulator-max-microvolt = <3300000>;
                regulator-boot-on;
            };

            ldo34 {
                regulator-name = "ldo34";
                regulator-min-microvolt = <2600000>;
                regulator-max-microvolt = <3300000>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page