System Power Management Interface (SPMI) Controller

Schema identifier ($id): "http://devicetree.org/schemas/spmi/spmi.yaml#"

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

Maintainers (maintainers): "Stephen Boyd <sboyd@kernel.org>"

The System Power Management (SPMI) controller is a 2-wire bus defined by the MIPI Alliance for power management control to be used on SoC designs.

SPMI controllers are modelled in device tree using a generic set of bindings defined here, plus any bus controller specific properties, if needed.

Each SPMI controller has zero or more child nodes (up to 16 ones), each one representing an unique slave at the bus.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^spmi@.*"

#address-cells — not listed as required here #

Exact value (const): 2

#size-cells — not listed as required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

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

up to 16 child PMIC nodes

Value type (type): "object"

Properties and child nodes (properties) #

reg — required here

Array item rules (items)

Item 1

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Minimum value (minimum): 0

Maximum value (maximum): 15

Item 2

Allowed values (enum): 0

0 means user ID address. 1 is reserved for group ID address.

Required in this object (required): "reg"

Required in this object (required): "reg"

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

true

Allowed by this rule.

Examples (examples) #

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

spmi@0 {
  reg = <0 0>;

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

  child@0 {
    reg = <0 SPMI_USID>;
  };

  child@7 {
    reg = <7 SPMI_USID>;
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page