HiSilicon SPMI controller

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

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

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

The HiSilicon SPMI BUS controller is found on some Kirin-based designs. It is a MIPI System Power Management (SPMI) controller.

The PMIC part is provided by Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): spmi.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

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

compatible — required here #

Exact value (const): "hisilicon,kirin970-spmi-controller"

reg — required here #

Maximum number of items (maxItems): 1

hisilicon,spmi-channel — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

number of the Kirin 970 SPMI channel where the SPMI devices are connected.

Required in this object (required): "compatible", "reg", "hisilicon,spmi-channel"

Properties matching a name pattern (patternProperties) #

@[0-9a-f]$ — name matches this regular expression #

Value type (type): "object"

PMIC properties, which are specific to the used SPMI PMIC device(s). When used in combination with HiSilicon 6421v600, the properties are documented at Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

spmi@fff24000 {
    compatible = "hisilicon,kirin970-spmi-controller";
    reg = <0xfff24000 0x1000>;
    #address-cells = <2>;
    #size-cells = <0>;
    hisilicon,spmi-channel = <2>;

    pmic@0 {
        reg = <0 SPMI_USID>;
        /* pmic properties */
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page