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