rockchip: disable UHS speed for ROC-RK3328-CC
authorTianling Shen <cnsztl@immortalwrt.org>
Sun, 23 Apr 2023 17:03:25 +0000 (01:03 +0800)
committerTianling Shen <cnsztl@immortalwrt.org>
Tue, 9 May 2023 05:30:22 +0000 (13:30 +0800)
The previously stated speed of sdr-104 in is too high for the hardware
to reliably communicate with some fast SD cards.
Rockchip boards have a common bug when operating uhs speed, which will
hang the system during a soft reboot.

To be on the safe side, lower the speed to workaround.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
target/linux/rockchip/patches-5.15/105-nanopi-r4s-sd-signalling.patch

index a04c14b70a72fd90650dceb600b8b62c50eb19d5..856970738aaacd501de68bd5ab2db954f04fb448 100644 (file)
@@ -10,6 +10,16 @@ userspace or following a kernel panic is always working.
 
 Signed-off-by: David Bauer <mail@david-bauer.net>
 
+--- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
++++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
+@@ -335,7 +335,6 @@
+       sd-uhs-sdr12;
+       sd-uhs-sdr25;
+       sd-uhs-sdr50;
+-      sd-uhs-sdr104;
+       vmmc-supply = <&vcc_sd>;
+       vqmmc-supply = <&vcc_sdio>;
+       status = "okay";
 --- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
 +++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
 @@ -121,6 +121,11 @@