Skip to content

Commit 501b604

Browse files
Tonymac32ayufan
authored andcommitted
tonymac32: rk3328: sdmmc0 drive level change to 8mA (torvalds#38)
SD Instability has been a commonly reported issue on RK3328 boards, the Rockchip default drive level of 4mA is unable to reliably drive any significant capacitive load (even within SD card specification) at 50MHz high speed, especially with 3.3V signalling. Further testing may indicate a need for 12mA, but for now this patch has been shown to resolve SD boot and stability issues on several boards, including Rock64 and a Renegade. The issue spanning multiple boards is why I didn't simply override the settings in the board specific DTS. It may also be important to note the ASUS Tinker Board (RK3288) uses 8mA drive levels. This may be worth evaluating for RK3399 as well.
1 parent bc4201b commit 501b604

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

arch/arm64/boot/dts/rockchip/rk3328.dtsi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,35 +2046,35 @@
20462046
sdmmc0 {
20472047
sdmmc0_clk: sdmmc0-clk {
20482048
rockchip,pins =
2049-
<1 RK_PA6 RK_FUNC_1 &pcfg_pull_none_4ma>;
2049+
<1 RK_PA6 RK_FUNC_1 &pcfg_pull_none_8ma>;
20502050
};
20512051

20522052
sdmmc0_cmd: sdmmc0-cmd {
20532053
rockchip,pins =
2054-
<1 RK_PA4 RK_FUNC_1 &pcfg_pull_up_4ma>;
2054+
<1 RK_PA4 RK_FUNC_1 &pcfg_pull_up_8ma>;
20552055
};
20562056

20572057
sdmmc0_dectn: sdmmc0-dectn {
20582058
rockchip,pins =
2059-
<1 RK_PA5 RK_FUNC_1 &pcfg_pull_up_4ma>;
2059+
<1 RK_PA5 RK_FUNC_1 &pcfg_pull_up_8ma>;
20602060
};
20612061

20622062
sdmmc0_wrprt: sdmmc0-wrprt {
20632063
rockchip,pins =
2064-
<1 RK_PA7 RK_FUNC_1 &pcfg_pull_up_4ma>;
2064+
<1 RK_PA7 RK_FUNC_1 &pcfg_pull_up_8ma>;
20652065
};
20662066

20672067
sdmmc0_bus1: sdmmc0-bus1 {
20682068
rockchip,pins =
2069-
<1 RK_PA0 RK_FUNC_1 &pcfg_pull_up_4ma>;
2069+
<1 RK_PA0 RK_FUNC_1 &pcfg_pull_up_8ma>;
20702070
};
20712071

20722072
sdmmc0_bus4: sdmmc0-bus4 {
20732073
rockchip,pins =
2074-
<1 RK_PA0 RK_FUNC_1 &pcfg_pull_up_4ma>,
2075-
<1 RK_PA1 RK_FUNC_1 &pcfg_pull_up_4ma>,
2076-
<1 RK_PA2 RK_FUNC_1 &pcfg_pull_up_4ma>,
2077-
<1 RK_PA3 RK_FUNC_1 &pcfg_pull_up_4ma>;
2074+
<1 RK_PA0 RK_FUNC_1 &pcfg_pull_up_8ma>,
2075+
<1 RK_PA1 RK_FUNC_1 &pcfg_pull_up_8ma>,
2076+
<1 RK_PA2 RK_FUNC_1 &pcfg_pull_up_8ma>,
2077+
<1 RK_PA3 RK_FUNC_1 &pcfg_pull_up_8ma>;
20782078
};
20792079

20802080
sdmmc0_gpio: sdmmc0-gpio {

0 commit comments

Comments
 (0)