Spmi bindings
Single-page view · as markdown
Apple SPMI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spmi/apple,spmi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sasha Finkelstein <fnkl.kernel@gmail.com>"
A SPMI controller present on most Apple SoCs
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spmi.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"apple,t6020-spmi","apple,t8012-spmi","apple,t8015-spmi"Item 2
Exact value (
const):"apple,t8103-spmi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"apple,t8103-spmi","apple,t6000-spmi","apple,t8112-spmi"Item 2
Exact value (
const):"apple,spmi"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/spmi/spmi.h>
spmi@920a1300 {
compatible = "apple,t6000-spmi", "apple,spmi";
reg = <0x920a1300 0x100>;
#address-cells = <2>;
#size-cells = <0>;
pmic@f {
reg = <0xf SPMI_USID>;
/* PMIC-specific properties */
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 28: Do not add additional SoC to this list.
HiSilicon SPMI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spmi bindings
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
MediaTek MT8196 SPMI 2.0 Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spmi/mediatek,mt8196-spmi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>", "AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>"
The MediaTek MT8196 SoC features a SPMI version 2.0 compliant controller, with internal wrapping arbitration logic to allow for multiple on-chip devices to control up to two SPMI buses. The main arbiter also acts as an interrupt controller, arbitering also the interrupts coming from SPMI-connected devices into each of the nested interrupt controllers from any of the present SPMI buses.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mediatek,mt8196-spmi"
ranges — required here #
true — No constraints added by this property rule.
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 1
Properties matching a name pattern (patternProperties) #
^spmi@[a-f0-9]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/spmi/spmi.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Array item rules (items)
Item 1
controller interface registers
Item 2
spmi master controller registers
reg-names — required here
Array item rules (items)
Item 1
Exact value (
const):"pmif"
Item 2
Exact value (
const):"spmimst"
clocks — required here
Array item rules (items)
Item 1
controller interface system clock
Item 2
controller interface timer clock
Item 3
spmi controller master clock
clock-names — required here
Array item rules (items)
Item 1
Exact value (
const):"pmif_sys_ck"
Item 2
Exact value (
const):"pmif_tmr_ck"
Item 3
Exact value (
const):"spmimst_clk_mux"
interrupts — required here
Maximum number of items (maxItems): 1
interrupt-names — required here
Exact value (const): "rcs"
interrupt-controller — required here
true — No constraints added by this property rule.
#interrupt-cells — required here
Exact value (const): 3
cell 1: slave ID for the requested interrupt (0-15)
cell 2: the requested peripheral interrupt (0-7)
cell 3: interrupt flags indicating level-sense information,
as defined in dt-bindings/interrupt-controller/irq.h
Required in this object (required): "reg", "reg-names", "clocks", "clock-names", "interrupts", "interrupt-names", "interrupt-controller", "#interrupt-cells"
Required in this object (required): "compatible", "ranges", "#address-cells", "#size-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/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
spmi-arbiter@1c018000 {
compatible = "mediatek,mt8196-spmi";
ranges = <0 0 0x1c018000 0x4900>;
#address-cells = <1>;
#size-cells = <1>;
spmi@0 {
reg = <0 0x900>, <0x4800 0x100>;
reg-names = "pmif", "spmimst";
interrupts-extended = <&pio 292 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "rcs";
interrupt-controller;
#interrupt-cells = <3>;
clocks = <&pmif_sys>, <&pmif_tmr>, <&spmi_mst>;
clock-names = "pmif_sys_ck", "pmif_tmr_ck", "spmimst_clk_mux";
};
spmi@2000 {
reg = <0x2000 0x900>, <0x4000 0x100>;
reg-names = "pmif", "spmimst";
interrupts-extended = <&pio 291 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "rcs";
interrupt-controller;
#interrupt-cells = <3>;
clocks = <&pmif_sys>, <&pmif_tmr>, <&spmi_mst>;
clock-names = "pmif_sys_ck", "pmif_tmr_ck", "spmimst_clk_mux";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Mediatek SPMI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spmi/mtk,spmi-mtk-pmif.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>"
On MediaTek SoCs the PMIC is connected via SPMI and the controller allows for multiple SoCs to control a single SPMI master.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spmi.yaml
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"mediatek,mt6873-spmi","mediatek,mt8195-spmi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt8186-spmi","mediatek,mt8188-spmi","mediatek,mt8189-spmi"Item 2
Exact value (
const):"mediatek,mt8195-spmi"
reg — required here #
Maximum number of items (maxItems): 2
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pmif"
Item 2
Exact value (
const):"spmimst"
clocks — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pmif_sys_ck"
Item 2
Exact value (
const):"pmif_tmr_ck"
Item 3
Exact value (
const):"spmimst_clk_mux"
assigned-clocks — not listed as required here #
Maximum number of items (maxItems): 1
assigned-clock-parents — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt8192-clk.h>
spmi: spmi@10027000 {
compatible = "mediatek,mt6873-spmi";
reg = <0x10027000 0xe00>,
<0x10029000 0x100>;
reg-names = "pmif", "spmimst";
clocks = <&infracfg CLK_INFRA_PMIC_AP>,
<&infracfg CLK_INFRA_PMIC_TMR>,
<&topckgen CLK_TOP_SPMI_MST_SEL>;
clock-names = "pmif_sys_ck",
"pmif_tmr_ck",
"spmimst_clk_mux";
assigned-clocks = <&topckgen CLK_TOP_PWRAP_ULPOSC_SEL>;
assigned-clock-parents = <&topckgen CLK_TOP_OSC_D10>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm Technologies, Inc. Glymur SPMI Controller (PMIC Arbiter v8)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spmi/qcom,glymur-spmi-pmic-arb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David Collins <david.collins@oss.qualcomm.com>"
The Glymur SPMI PMIC Arbiter implements HW version 8 and it's an SPMI controller with wrapping arbitration logic to allow for multiple on-chip devices to control up to 4 SPMI separate buses.
The PMIC Arbiter can also act as an interrupt controller, providing interrupts to slave devices.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spmi/qcom,spmi-pmic-arb-common.yaml
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,glymur-spmi-pmic-arb"
Rule 2
reg — not listed as required here #
Array item rules (items) #
Item 1
core registers
Item 2
tx-channel per virtual slave registers
Item 3
rx-channel (called observer) per virtual slave registers
Item 4
channel to PMIC peripheral mapping registers
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"chnls"
Item 3
Exact value (
const):"obsrvr"
Item 4
Exact value (
const):"chnl_map"
ranges — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 2
#size-cells — not listed as required here #
Exact value (const): 2
Properties matching a name pattern (patternProperties) #
^spmi@[a-f0-9]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/spmi/spmi.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Array item rules (items)
Item 1
configuration registers
Item 2
interrupt controller registers
Item 3
channel owner EE mapping registers
reg-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"cnfg"
Item 2
Exact value (
const):"intr"
Item 3
Exact value (
const):"chnl_owner"
interrupts — not listed as required here
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here
Exact value (const): "periph_irq"
interrupt-controller — not listed as required here
true — No constraints added by this property rule.
#interrupt-cells — not listed as required here
Exact value (const): 4
cell 1: slave ID for the requested interrupt (0-15)
cell 2: peripheral ID for requested interrupt (0-255)
cell 3: the requested peripheral interrupt (0-7)
cell 4: interrupt flags indicating level-sense information,
as defined in dt-bindings/interrupt-controller/irq.h
Required in this object (required): "compatible", "reg-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
arbiter@c400000 {
compatible = "qcom,glymur-spmi-pmic-arb";
reg = <0x0 0xc400000 0x0 0x3000>,
<0x0 0xc900000 0x0 0x400000>,
<0x0 0xc4c0000 0x0 0x400000>,
<0x0 0xc403000 0x0 0x8000>;
reg-names = "core", "chnls", "obsrvr", "chnl_map";
qcom,ee = <0>;
qcom,channel = <0>;
#address-cells = <2>;
#size-cells = <2>;
ranges;
spmi@c426000 {
reg = <0x0 0xc426000 0x0 0x4000>,
<0x0 0xc8c0000 0x0 0x10000>,
<0x0 0xc42a000 0x0 0x8000>;
reg-names = "cnfg", "intr", "chnl_owner";
interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "periph_irq";
interrupt-controller;
#interrupt-cells = <4>;
#address-cells = <2>;
#size-cells = <0>;
};
spmi@c437000 {
reg = <0x0 0xc437000 0x0 0x4000>,
<0x0 0xc8d0000 0x0 0x10000>,
<0x0 0xc43b000 0x0 0x8000>;
reg-names = "cnfg", "intr", "chnl_owner";
interrupts-extended = <&pdc 3 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "periph_irq";
interrupt-controller;
#interrupt-cells = <4>;
#address-cells = <2>;
#size-cells = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm Technologies, Inc. SPMI Controller (common)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spmi/qcom,spmi-pmic-arb-common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David Collins <david.collins@oss.qualcomm.com>"
This defines some common properties used to define Qualcomm SPMI controllers for PMIC arbiter.
Properties and child nodes (properties) #
qcom,ee — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 5
indicates the active Execution Environment identifier
qcom,channel — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 5
which of the PMIC Arb provided channels to use for accesses
Required in this object (required): "qcom,ee", "qcom,channel"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm SPMI Controller (PMIC Arbiter)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spmi/qcom,spmi-pmic-arb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stephen Boyd <sboyd@kernel.org>"
The SPMI PMIC Arbiter is found on Snapdragon chipsets. It is an SPMI controller with wrapping arbitration logic to allow for multiple on-chip devices to control a single SPMI master.
The PMIC Arbiter can also act as an interrupt controller, providing interrupts to slave devices.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spmi.yaml
Rule 2 #
Shared schema rule (
$ref):qcom,spmi-pmic-arb-common.yaml
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qcom,spmi-pmic-arb"
reg — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
core registers
Item 2
interrupt controller registers
Item 3
configuration registers
Rule 2
Array item rules (
items)Item 1
core registers
Item 2
tx-channel per virtual slave regosters
Item 3
rx-channel (called observer) per virtual slave registers
Item 4
interrupt controller registers
Item 5
configuration registers
reg-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"core"Item 2
Exact value (
const):"intr"Item 3
Exact value (
const):"cnfg"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"core"Item 2
Exact value (
const):"chnls"Item 3
Exact value (
const):"obsrvr"Item 4
Exact value (
const):"intr"Item 5
Exact value (
const):"cnfg"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Exact value (const): "periph_irq"
interrupt-controller — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
true — No constraints added by this property rule.
#interrupt-cells — not listed as required here #
Exact value (const): 4
cell 1: slave ID for the requested interrupt (0-15)
cell 2: peripheral ID for requested interrupt (0-255)
cell 3: the requested peripheral interrupt (0-7)
cell 4: interrupt flags indicating level-sense information,
as defined in dt-bindings/interrupt-controller/irq.h
#size-cells — not listed as required here #
true — No constraints added by this property rule.
qcom,bus-id — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 1
SPMI bus instance. only applicable to PMIC arbiter version 7 and beyond. Supported values, 0 = primary bus, 1 = secondary bus
Deprecated (deprecated): true
Required in this object (required): "compatible", "reg-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spmi@fc4cf000 {
compatible = "qcom,spmi-pmic-arb";
reg-names = "core", "intr", "cnfg";
reg = <0xfc4cf000 0x1000>,
<0xfc4cb000 0x1000>,
<0xfc4ca000 0x1000>;
interrupt-names = "periph_irq";
interrupts = <0 190 0>;
qcom,ee = <0>;
qcom,channel = <0>;
#address-cells = <2>;
#size-cells = <0>;
interrupt-controller;
#interrupt-cells = <4>;
qcom,bus-id = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 30: V1
Line 34: V2
Qualcomm X1E80100 SPMI Controller (PMIC Arbiter v7)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spmi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spmi/qcom,x1e80100-spmi-pmic-arb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stephen Boyd <sboyd@kernel.org>"
The X1E80100 SPMI PMIC Arbiter implements HW version 7 and it's an SPMI controller with wrapping arbitration logic to allow for multiple on-chip devices to control up to 2 SPMI separate buses.
The PMIC Arbiter can also act as an interrupt controller, providing interrupts to slave devices.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):qcom,spmi-pmic-arb-common.yaml
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"qcom,sar2130p-spmi-pmic-arb"Item 2
Exact value (
const):"qcom,x1e80100-spmi-pmic-arb"
Rule 2
Exact value (
const):"qcom,x1e80100-spmi-pmic-arb"
reg — not listed as required here #
Array item rules (items) #
Item 1
core registers
Item 2
tx-channel per virtual slave registers
Item 3
rx-channel (called observer) per virtual slave registers
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"chnls"
Item 3
Exact value (
const):"obsrvr"
ranges — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 2
#size-cells — not listed as required here #
Exact value (const): 2
Properties matching a name pattern (patternProperties) #
^spmi@[a-f0-9]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/spmi/spmi.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Array item rules (items)
Item 1
configuration registers
Item 2
interrupt controller registers
reg-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"cnfg"
Item 2
Exact value (
const):"intr"
interrupts — not listed as required here
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here
Exact value (const): "periph_irq"
interrupt-controller — not listed as required here
true — No constraints added by this property rule.
#interrupt-cells — not listed as required here
Exact value (const): 4
cell 1: slave ID for the requested interrupt (0-15)
cell 2: peripheral ID for requested interrupt (0-255)
cell 3: the requested peripheral interrupt (0-7)
cell 4: interrupt flags indicating level-sense information,
as defined in dt-bindings/interrupt-controller/irq.h
Required in this object (required): "compatible", "reg-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
spmi: arbiter@c400000 {
compatible = "qcom,x1e80100-spmi-pmic-arb";
reg = <0 0x0c400000 0 0x3000>,
<0 0x0c500000 0 0x4000000>,
<0 0x0c440000 0 0x80000>;
reg-names = "core", "chnls", "obsrvr";
qcom,ee = <0>;
qcom,channel = <0>;
#address-cells = <2>;
#size-cells = <2>;
ranges;
spmi_bus0: spmi@c42d000 {
reg = <0 0x0c42d000 0 0x4000>,
<0 0x0c4c0000 0 0x10000>;
reg-names = "cnfg", "intr";
interrupt-names = "periph_irq";
interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
#interrupt-cells = <4>;
#address-cells = <2>;
#size-cells = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
System Power Management Interface (SPMI) Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spmi bindings
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):1Array item rules (
items)Item 1
Minimum value (
minimum):0Maximum value (
maximum):15Item 2
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