* [PATCH v2] arm64: dts: rockchip: Enable SDR104 on the ODROID-M1 SD card
@ 2026-11-13 21:20 Igor Velkov via B4 Relay
2026-12-01 2:26 ` Igor Velkov
0 siblings, 1 reply; 2+ messages in thread
From: Igor Velkov via B4 Relay @ 2026-11-13 21:20 UTC (permalink / raw)
To: Heiko Stuebner, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
Igor Velkov
From: Igor Velkov <iav@iav.lv>
The SD card already switches to 1.8 V, but only SDR50 is described, and
clk_sdmmc0 on RK3568 is a mux without a divider: dw_mmc-rockchip asks
it for twice the card clock, 200 MHz for SDR50, the mux rounds down to
the 100 MHz parent and the card runs at 50 MHz.
Describe SDR104 as well. With the 150 MHz max-frequency from
rk356x-base.dtsi the clock comes from the 300 MHz parent and the card
runs at 150 MHz. Hardkernel's vendor kernel already uses sd-uhs-sdr104
on this board. With a SanDisk 128 GB card, direct read goes from
22 MB/s to 58-64 MB/s and direct write from 20 MB/s to 47-50 MB/s.
Signed-off-by: Igor Velkov <iav@iav.lv>
---
Tested with an Armbian 7.3.3 kernel (rockchip64), the property added to
the DTB with fdtput: reboot, sysrq-b, watchdog reset, poweroff, s2idle,
deep, hibernate, hybrid-sleep and suspend-then-hibernate; the card
re-tuned and came back in SDR104 at 150 MHz in all 29 runs.
---
Changes in v2:
- keep sd-uhs-sdr50 next to sd-uhs-sdr104 (Heiko)
- rebased on for-next
- Link to v1: https://lore.kernel.org/r/20261110-odroid-m1-sdr104-v1-1-8edc6d5c1bf6@iav.lv
---
arch/arm64/boot/dts/rockchip/rk3568-odroid-m1.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-odroid-m1.dts b/arch/arm64/boot/dts/rockchip/rk3568-odroid-m1.dts
index ec43dee18094..27793d3970d2 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-odroid-m1.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3568-odroid-m1.dts
@@ -611,6 +611,7 @@ &sdmmc0 {
pinctrl-names = "default";
pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
sd-uhs-sdr50;
+ sd-uhs-sdr104;
vmmc-supply = <&vcc3v3_sd>;
vqmmc-supply = <&vccio_sd>;
status = "okay";
---
base-commit: a9d78db32fe78bdbe7c66ba77cb7dbb729b885de
change-id: 20261110-odroid-m1-sdr104-f6e03a0c5ac9
Best regards,
--
Igor Velkov <iav@iav.lv>
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v2] arm64: dts: rockchip: Enable SDR104 on the ODROID-M1 SD card
2026-11-13 21:20 [PATCH v2] arm64: dts: rockchip: Enable SDR104 on the ODROID-M1 SD card Igor Velkov via B4 Relay
@ 2026-12-01 2:26 ` Igor Velkov
0 siblings, 0 replies; 2+ messages in thread
From: Igor Velkov @ 2026-12-01 2:26 UTC (permalink / raw)
To: Heiko Stuebner
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-arm-kernel, linux-rockchip, linux-kernel
Hi Heiko,
Gentle ping. v2 keeps sd-uhs-sdr50 and adds sd-uhs-sdr104, as you
suggested on v1.
Thanks,
Igor
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-01 2:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13 21:20 [PATCH v2] arm64: dts: rockchip: Enable SDR104 on the ODROID-M1 SD card Igor Velkov via B4 Relay
2026-12-01 2:26 ` Igor Velkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox