1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (c) 2020 MediaTek Inc.
5 $id: http://devicetree.org/schemas/memory-controllers/mediatek,smi-common.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: SMI (Smart Multimedia Interface) Common
11 - Yong Wu <yong.wu@mediatek.com>
14 The hardware block diagram please check bindings/iommu/mediatek,iommu.yaml
16 MediaTek SMI have two generations of HW architecture, here is the list
17 which generation the SoCs use:
18 generation 1: mt2701 and mt7623.
19 generation 2: mt2712, mt6779, mt8167, mt8173, mt8183, mt8186, mt8188, mt8192 and mt8195.
21 There's slight differences between the two SMI, for generation 2, the
22 register which control the iommu port is at each larb's register base. But
23 for generation 1, the register is at smi ao base(smi always on register
24 base). Besides that, the smi async clock should be prepared and enabled for
25 SMI generation 1 to transform the smi clock into emi clock domain, but that is
26 not needed for SMI generation 2.
32 - mediatek,mt2701-smi-common
33 - mediatek,mt2712-smi-common
34 - mediatek,mt6779-smi-common
35 - mediatek,mt6795-smi-common
36 - mediatek,mt8167-smi-common
37 - mediatek,mt8173-smi-common
38 - mediatek,mt8183-smi-common
39 - mediatek,mt8186-smi-common
40 - mediatek,mt8188-smi-common-vdo
41 - mediatek,mt8188-smi-common-vpp
42 - mediatek,mt8192-smi-common
43 - mediatek,mt8195-smi-common-vdo
44 - mediatek,mt8195-smi-common-vpp
45 - mediatek,mt8195-smi-sub-common
46 - mediatek,mt8365-smi-common
48 - description: for mt7623
50 - const: mediatek,mt7623-smi-common
51 - const: mediatek,mt2701-smi-common
61 apb and smi are mandatory. the async is only for generation 1 smi HW.
62 gals(global async local sync) also is optional, see below.
65 - description: apb is Advanced Peripheral Bus clock, It's the clock for
67 - description: smi is the clock for transfer data and command.
68 - description: Either asynchronous clock to help transform the smi clock
69 into the emi clock domain on Gen1 h/w, or the path0 clock of gals.
70 - description: gals1 is the path1 clock of gals.
77 $ref: /schemas/types.yaml#/definitions/phandle
78 description: a phandle to the smi-common node above. Only for sub-common.
88 - if: # only for gen1 HW
93 - mediatek,mt2701-smi-common
105 - if: # only for sub common
110 - mediatek,mt8195-smi-sub-common
127 - if: # for gen2 HW that have gals
131 - mediatek,mt6779-smi-common
132 - mediatek,mt8183-smi-common
133 - mediatek,mt8186-smi-common
134 - mediatek,mt8192-smi-common
135 - mediatek,mt8195-smi-common-vdo
136 - mediatek,mt8195-smi-common-vpp
137 - mediatek,mt8365-smi-common
151 - if: # for gen2 HW that don't have gals
155 - mediatek,mt2712-smi-common
156 - mediatek,mt6795-smi-common
157 - mediatek,mt8167-smi-common
158 - mediatek,mt8173-smi-common
170 additionalProperties: false
174 #include <dt-bindings/clock/mt8173-clk.h>
175 #include <dt-bindings/power/mt8173-power.h>
177 smi_common: smi@14022000 {
178 compatible = "mediatek,mt8173-smi-common";
179 reg = <0x14022000 0x1000>;
180 power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>;
181 clocks = <&mmsys CLK_MM_SMI_COMMON>,
182 <&mmsys CLK_MM_SMI_COMMON>;
183 clock-names = "apb", "smi";