1 SMI (Smart Multimedia Interface) Common
3 The hardware block diagram please check bindings/iommu/mediatek,iommu.txt
5 Mediatek SMI have two generations of HW architecture, here is the list
6 which generation the SoCs use:
7 generation 1: mt2701 and mt7623.
8 generation 2: mt2712, mt8173 and mt8183.
10 There's slight differences between the two SMI, for generation 2, the
11 register which control the iommu port is at each larb's register base. But
12 for generation 1, the register is at smi ao base(smi always on register
13 base). Besides that, the smi async clock should be prepared and enabled for
14 SMI generation 1 to transform the smi clock into emi clock domain, but that is
15 not needed for SMI generation 2.
18 - compatible : must be one of :
19 "mediatek,mt2701-smi-common"
20 "mediatek,mt2712-smi-common"
21 "mediatek,mt7623-smi-common", "mediatek,mt2701-smi-common"
22 "mediatek,mt8173-smi-common"
23 "mediatek,mt8183-smi-common"
24 - reg : the register and size of the SMI block.
25 - power-domains : a phandle to the power domain of this local arbiter.
26 - clocks : Must contain an entry for each entry in clock-names.
27 - clock-names : must contain 3 entries for generation 1 smi HW and 2 entries
28 for generation 2 smi HW as follows:
29 - "apb" : Advanced Peripheral Bus clock, It's the clock for setting
31 - "smi" : It's the clock for transfer data and command.
32 They may be the same if both source clocks are the same.
33 - "async" : asynchronous clock, it help transform the smi clock into the emi
34 clock domain, this clock is only needed by generation 1 smi HW.
35 and these 2 option clocks for generation 2 smi HW:
36 - "gals0": the path0 clock of GALS(Global Async Local Sync).
37 - "gals1": the path1 clock of GALS(Global Async Local Sync).
38 Here is the list which has this GALS: mt8183.
41 smi_common: smi@14022000 {
42 compatible = "mediatek,mt8173-smi-common";
43 reg = <0 0x14022000 0 0x1000>;
44 power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>;
45 clocks = <&mmsys CLK_MM_SMI_COMMON>,
46 <&mmsys CLK_MM_SMI_COMMON>;
47 clock-names = "apb", "smi";