Mediatek SPMI Controller

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)

Edit this page