1 Marvell Xenon SDHCI Controller device tree bindings
2 This file documents differences between the core mmc properties
3 described by mmc.txt and the properties used by the Xenon implementation.
5 Multiple SDHCs might be put into a single Xenon IP, to save size and cost.
6 Each SDHC is independent and owns independent resources, such as register sets,
8 Each SDHC should have an independent device tree node.
11 - compatible: should be one of the following
12 - "marvell,armada-3700-sdhci": For controllers on Armada-3700 SoC.
13 Must provide a second register area and marvell,pad-type.
14 - "marvell,armada-ap806-sdhci": For controllers on Armada AP806.
15 - "marvell,armada-cp110-sdhci": For controllers on Armada CP110.
18 Array of clocks required for SDHC.
19 Require at least input clock for Xenon IP core.
22 Array of names corresponding to clocks property.
23 The input clock for Xenon IP core should be named as "core".
26 * For "marvell,armada-3700-sdhci", two register areas.
27 The first one for Xenon IP register. The second one for the Armada 3700 SoC
28 PHY PAD Voltage Control register.
29 Please follow the examples with compatible "marvell,armada-3700-sdhci"
31 Please also check property marvell,pad-type in below.
33 * For other compatible strings, one register area for Xenon IP.
36 - marvell,xenon-sdhc-id:
37 Indicate the corresponding bit index of current SDHC in
38 SDHC System Operation Control Register Bit[7:0].
39 Set/clear the corresponding bit to enable/disable current SDHC.
40 If Xenon IP contains only one SDHC, this property is optional.
42 - marvell,xenon-phy-type:
43 Xenon support multiple types of PHYs.
44 To select eMMC 5.1 PHY, set:
45 marvell,xenon-phy-type = "emmc 5.1 phy"
46 eMMC 5.1 PHY is the default choice if this property is not provided.
47 To select eMMC 5.0 PHY, set:
48 marvell,xenon-phy-type = "emmc 5.0 phy"
50 All those types of PHYs can support eMMC, SD and SDIO.
51 Please note that this property only presents the type of PHY.
52 It doesn't stand for the entire SDHC type or property.
53 For example, "emmc 5.1 phy" doesn't mean that this Xenon SDHC only
56 - marvell,xenon-phy-znr:
58 Only available for eMMC PHY.
59 Valid range = [0:0x1F].
60 ZNR is set as 0xF by default if this property is not provided.
62 - marvell,xenon-phy-zpr:
64 Only available for eMMC PHY.
65 Valid range = [0:0x1F].
66 ZPR is set as 0xF by default if this property is not provided.
68 - marvell,xenon-phy-nr-success-tun:
69 Set the number of required consecutive successful sampling points
70 used to identify a valid sampling window, in tuning process.
72 Set as 0x4 by default if this property is not provided.
74 - marvell,xenon-phy-tun-step-divider:
75 Set the divider for calculating TUN_STEP.
76 Set as 64 by default if this property is not provided.
78 - marvell,xenon-phy-slow-mode:
79 If this property is selected, transfers will bypass PHY.
80 Only available when bus frequency lower than 55MHz in SDR mode.
81 Disabled by default. Please only try this property if timing issues
82 always occur with PHY enabled in eMMC HS SDR, SD SDR12, SD SDR25,
83 SD Default Speed and HS mode and eMMC legacy speed mode.
85 - marvell,xenon-tun-count:
86 Xenon SDHC SoC usually doesn't provide re-tuning counter in
87 Capabilities Register 3 Bit[11:8].
88 This property provides the re-tuning counter.
89 If this property is not set, default re-tuning counter will
90 be set as 0x9 in driver.
93 Type of Armada 3700 SoC PHY PAD Voltage Controller register.
94 Only valid when "marvell,armada-3700-sdhci" is selected.
95 Two types: "sd" and "fixed-1-8v".
96 If "sd" is selected, SoC PHY PAD is set as 3.3V at the beginning and is
97 switched to 1.8V when later in higher speed mode.
98 If "fixed-1-8v" is selected, SoC PHY PAD is fixed 1.8V, such as for eMMC.
99 Please follow the examples with compatible "marvell,armada-3700-sdhci"
106 compatible = "marvell,armada-ap806-sdhci";
107 reg = <0xaa0000 0x1000>;
108 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>
109 clocks = <&emmc_clk>;
110 clock-names = "core";
112 marvell,xenon-phy-slow-mode;
113 marvell,xenon-tun-count = <11>;
118 /* Vmmc and Vqmmc are both fixed */
124 compatible = "marvell,armada-cp110-sdhci";
125 reg = <0xab0000 0x1000>;
126 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>
127 vqmmc-supply = <&sd_vqmmc_regulator>;
128 vmmc-supply = <&sd_vmmc_regulator>;
130 clock-names = "core";
132 marvell,xenon-tun-count = <9>;
135 - For eMMC with compatible "marvell,armada-3700-sdhci":
138 compatible = "marvell,armada-3700-sdhci";
139 reg = <0xaa0000 0x1000>,
141 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>
143 clock-names = "core";
151 /* Vmmc and Vqmmc are both fixed */
153 marvell,pad-type = "fixed-1-8v";
156 - For SD/SDIO with compatible "marvell,armada-3700-sdhci":
159 compatible = "marvell,armada-3700-sdhci";
160 reg = <0xab0000 0x1000>,
162 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>
163 vqmmc-supply = <&sd_regulator>;
166 clock-names = "core";
169 marvell,pad-type = "sd";