• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1SMI (Smart Multimedia Interface) Common
2
3The hardware block diagram please check bindings/iommu/mediatek,iommu.txt
4
5Mediatek SMI have two generations of HW architecture, mt2712 and mt8173 use
6the second generation of SMI HW while mt2701 uses the first generation HW of
7SMI.
8
9There's slight differences between the two SMI, for generation 2, the
10register which control the iommu port is at each larb's register base. But
11for generation 1, the register is at smi ao base(smi always on register
12base). Besides that, the smi async clock should be prepared and enabled for
13SMI generation 1 to transform the smi clock into emi clock domain, but that is
14not needed for SMI generation 2.
15
16Required properties:
17- compatible : must be one of :
18	"mediatek,mt2701-smi-common"
19	"mediatek,mt2712-smi-common"
20	"mediatek,mt8173-smi-common"
21- reg : the register and size of the SMI block.
22- power-domains : a phandle to the power domain of this local arbiter.
23- clocks : Must contain an entry for each entry in clock-names.
24- clock-names : must contain 3 entries for generation 1 smi HW and 2 entries
25  for generation 2 smi HW as follows:
26  - "apb" : Advanced Peripheral Bus clock, It's the clock for setting
27	    the register.
28  - "smi" : It's the clock for transfer data and command.
29	    They may be the same if both source clocks are the same.
30  - "async" : asynchronous clock, it help transform the smi clock into the emi
31	      clock domain, this clock is only needed by generation 1 smi HW.
32
33Example:
34	smi_common: smi@14022000 {
35		compatible = "mediatek,mt8173-smi-common";
36		reg = <0 0x14022000 0 0x1000>;
37		power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>;
38		clocks = <&mmsys CLK_MM_SMI_COMMON>,
39			 <&mmsys CLK_MM_SMI_COMMON>;
40		clock-names = "apb", "smi";
41	};
42