Skip to content

Commit be18293

Browse files
xiaoleiwang123456Shawn Guo
authored andcommitted
ARM: dts: imx: Set default tuning step for imx7d usdhc
If the tuning step is not set, the tuning step is set to 1. For some sd cards, the following Tuning timeout will occur. Tuning failed, falling back to fixed sampling clock mmc0: Tuning failed, falling back to fixed sampling clock So set the default tuning step. This refers to the NXP vendor's commit below: https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/ arch/arm/boot/dts/imx7s.dtsi#L1216-L1217 Fixes: 1e336aa ("mmc: sdhci-esdhc-imx: correct the tuning start tap and step setting") Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com> Reviewed-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 762b700 commit be18293

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/arm/boot/dts/nxp/imx/imx7s.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,8 @@
11841184
<&clks IMX7D_USDHC1_ROOT_CLK>;
11851185
clock-names = "ipg", "ahb", "per";
11861186
bus-width = <4>;
1187+
fsl,tuning-step = <2>;
1188+
fsl,tuning-start-tap = <20>;
11871189
status = "disabled";
11881190
};
11891191

@@ -1196,6 +1198,8 @@
11961198
<&clks IMX7D_USDHC2_ROOT_CLK>;
11971199
clock-names = "ipg", "ahb", "per";
11981200
bus-width = <4>;
1201+
fsl,tuning-step = <2>;
1202+
fsl,tuning-start-tap = <20>;
11991203
status = "disabled";
12001204
};
12011205

@@ -1208,6 +1212,8 @@
12081212
<&clks IMX7D_USDHC3_ROOT_CLK>;
12091213
clock-names = "ipg", "ahb", "per";
12101214
bus-width = <4>;
1215+
fsl,tuning-step = <2>;
1216+
fsl,tuning-start-tap = <20>;
12111217
status = "disabled";
12121218
};
12131219

0 commit comments

Comments
 (0)