MediaTek MT8196 SPMI 2.0 Controller

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

Allowed values (enum): "mediatek,mt8196-spmi"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt6991-spmi"

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)

Edit this page