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. For Armada AP806 and
20 CP110, the AXI clock is also mandatory.
23 Array of names corresponding to clocks property.
24 The input clock for Xenon IP core should be named as "core".
25 The input clock for the AXI bus must be named as "axi".
28 * For "marvell,armada-3700-sdhci", two register areas.
29 The first one for Xenon IP register. The second one for the Armada 3700 SoC
30 PHY PAD Voltage Control register.
31 Please follow the examples with compatible "marvell,armada-3700-sdhci"
33 Please also check property marvell,pad-type in below.
35 * For other compatible strings, one register area for Xenon IP.
38 - marvell,xenon-sdhc-id:
39 Indicate the corresponding bit index of current SDHC in
40 SDHC System Operation Control Register Bit[7:0].
41 Set/clear the corresponding bit to enable/disable current SDHC.
42 If Xenon IP contains only one SDHC, this property is optional.
44 - marvell,xenon-phy-type:
45 Xenon support multiple types of PHYs.
46 To select eMMC 5.1 PHY, set:
47 marvell,xenon-phy-type = "emmc 5.1 phy"
48 eMMC 5.1 PHY is the default choice if this property is not provided.
49 To select eMMC 5.0 PHY, set:
50 marvell,xenon-phy-type = "emmc 5.0 phy"
52 All those types of PHYs can support eMMC, SD and SDIO.
53 Please note that this property only presents the type of PHY.
54 It doesn't stand for the entire SDHC type or property.
55 For example, "emmc 5.1 phy" doesn't mean that this Xenon SDHC only
58 - marvell,xenon-phy-znr:
60 Only available for eMMC PHY.
61 Valid range = [0:0x1F].
62 ZNR is set as 0xF by default if this property is not provided.
64 - marvell,xenon-phy-zpr:
66 Only available for eMMC PHY.
67 Valid range = [0:0x1F].
68 ZPR is set as 0xF by default if this property is not provided.
70 - marvell,xenon-phy-nr-success-tun:
71 Set the number of required consecutive successful sampling points
72 used to identify a valid sampling window, in tuning process.
74 Set as 0x4 by default if this property is not provided.
76 - marvell,xenon-phy-tun-step-divider:
77 Set the divider for calculating TUN_STEP.
78 Set as 64 by default if this property is not provided.
80 - marvell,xenon-phy-slow-mode:
81 If this property is selected, transfers will bypass PHY.
82 Only available when bus frequency lower than 55MHz in SDR mode.
83 Disabled by default. Please only try this property if timing issues
84 always occur with PHY enabled in eMMC HS SDR, SD SDR12, SD SDR25,
85 SD Default Speed and HS mode and eMMC legacy speed mode.
87 - marvell,xenon-tun-count:
88 Xenon SDHC SoC usually doesn't provide re-tuning counter in
89 Capabilities Register 3 Bit[11:8].
90 This property provides the re-tuning counter.
91 If this property is not set, default re-tuning counter will
92 be set as 0x9 in driver.
95 Type of Armada 3700 SoC PHY PAD Voltage Controller register.
96 Only valid when "marvell,armada-3700-sdhci" is selected.
97 Two types: "sd" and "fixed-1-8v".
98 If "sd" is selected, SoC PHY PAD is set as 3.3V at the beginning and is
99 switched to 1.8V when later in higher speed mode.
100 If "fixed-1-8v" is selected, SoC PHY PAD is fixed 1.8V, such as for eMMC.
101 Please follow the examples with compatible "marvell,armada-3700-sdhci"
108 compatible = "marvell,armada-ap806-sdhci";
109 reg = <0xaa0000 0x1000>;
110 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>
111 clocks = <&emmc_clk>,<&axi_clk>;
112 clock-names = "core", "axi";
114 marvell,xenon-phy-slow-mode;
115 marvell,xenon-tun-count = <11>;
120 /* Vmmc and Vqmmc are both fixed */
126 compatible = "marvell,armada-cp110-sdhci";
127 reg = <0xab0000 0x1000>;
128 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>
129 vqmmc-supply = <&sd_vqmmc_regulator>;
130 vmmc-supply = <&sd_vmmc_regulator>;
131 clocks = <&sdclk>, <&axi_clk>;
132 clock-names = "core", "axi";
134 marvell,xenon-tun-count = <9>;
137 - For eMMC with compatible "marvell,armada-3700-sdhci":
140 compatible = "marvell,armada-3700-sdhci";
141 reg = <0xaa0000 0x1000>,
143 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>
145 clock-names = "core";
153 /* Vmmc and Vqmmc are both fixed */
155 marvell,pad-type = "fixed-1-8v";
158 - For SD/SDIO with compatible "marvell,armada-3700-sdhci":
161 compatible = "marvell,armada-3700-sdhci";
162 reg = <0xab0000 0x1000>,
164 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>
165 vqmmc-supply = <&sd_regulator>;
168 clock-names = "core";
171 marvell,pad-type = "sd";