SMI (Smart Multimedia Interface) Local Arbiter

Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/mediatek,smi-larb.yaml#"

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

Maintainers (maintainers): "Yong Wu <yong.wu@mediatek.com>"

The hardware block diagram please check bindings/iommu/mediatek,iommu.yaml

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "mediatek,mt2701-smi-larb", "mediatek,mt2712-smi-larb", "mediatek,mt6779-smi-larb", "mediatek,mt6795-smi-larb", "mediatek,mt6893-smi-larb", "mediatek,mt8167-smi-larb", "mediatek,mt8173-smi-larb", "mediatek,mt8183-smi-larb", "mediatek,mt8186-smi-larb", "mediatek,mt8188-smi-larb", "mediatek,mt8192-smi-larb", "mediatek,mt8195-smi-larb"

Rule 2

for mt7623

Array item rules (items)

Item 1

Exact value (const): "mediatek,mt7623-smi-larb"

Item 2

Exact value (const): "mediatek,mt2701-smi-larb"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "mediatek,mt8365-smi-larb"

Item 2

Exact value (const): "mediatek,mt8186-smi-larb"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

apb and smi are mandatory. gals(global async local sync) is optional.

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

apb is Advanced Peripheral Bus clock, It's the clock for setting the register.

Item 2

smi is the clock for transfer data and command.

Item 3

the clock for gals.

clock-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

power-domains — required here #

Maximum number of items (maxItems): 1

mediatek,smi — not listed as required here #

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

a phandle to the smi_common node.

mediatek,larb-id — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 31

the hardware id of this larb. It's only required when this hardware id is not consecutive from its M4U point of view.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "power-domains"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "mediatek,mt8183-smi-larb", "mediatek,mt8186-smi-larb", "mediatek,mt8188-smi-larb", "mediatek,mt8195-smi-larb"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "smi"

Item 3

Exact value (const): "gals"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "smi"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt2701-smi-larb", "mediatek,mt2712-smi-larb", "mediatek,mt6779-smi-larb", "mediatek,mt8186-smi-larb", "mediatek,mt8188-smi-larb", "mediatek,mt8192-smi-larb", "mediatek,mt8195-smi-larb"

When the condition matches (then) #

Required in this object (required): "mediatek,larb-id"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/power/mt8173-power.h>

larb1: larb@16010000 {
  compatible = "mediatek,mt8173-smi-larb";
  reg = <0x16010000 0x1000>;
  mediatek,smi = <&smi_common>;
  power-domains = <&scpsys MT8173_POWER_DOMAIN_VDEC>;
  clocks = <&vdecsys CLK_VDEC_CKEN>,
           <&vdecsys CLK_VDEC_LARB_CKEN>;
  clock-names = "apb", "smi";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (c) 2020 MediaTek Inc.

Line 81: HW has gals

Edit this page