[PATCH 1/1] arm64: dts: rockchip: Wait after SD card power-off on NanoPi R2S

Tobias Merkens tobias at merkens.bayern
Mon Nov 30 09:46:20 PST 2026


On a NanoPi R2S with a UHS-I SD card in SDR104 mode, the board hangs
after a reboot until the power is removed. After the reboot only the SYS
LED lights up, and the board does not answer on the network.

The cause is not confirmed, but the likely explanation is that the card
is still in 1.8V signalling when the SoC is reset. The boot ROM and
U-Boot then cannot read the card, because they communicate with it at
3.3V.

Commit 3c6f98b6e64e ("mmc: core: Add power-off-delay-us support") makes
the delay after switching off the card supply configurable, and its
default is 1 ms. Set the delay to 10 ms so that the card has time to
discharge before the SoC is reset. This keeps the UHS modes of the card
enabled.

On one board with one card, every reboot hangs with the default delay,
but every tested reboot succeeds with a delay of 1.5 ms or longer. The
10 ms is about seven times the shortest setting that worked.

The devicetree change and this changelog were written with an AI
assistant (Claude, claude-sonnet-5-5). The submitter reviewed both.

Signed-off-by: Tobias Merkens <tobias at merkens.bayern>
---
 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi
index 308e526..cc53a3f 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi
@@ -27,3 +27,7 @@
 		};
 	};
 };
+
+&sdmmc {
+	power-off-delay-us = <10000>;
+};
-- 
2.50.1.windows.1




More information about the Linux-rockchip mailing list