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

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


On a NanoPi R2S with a UHS-I SD card, the board hangs after a reboot
until the power is removed. The patch sets power-off-delay-us from
commit 3c6f98b6e64e to 10 ms. The patch description has the symptoms
and the likely cause.

Testing
-------

Board: NanoPi R2S with a 32 GB SanDisk UHS-I card (SD32G), SDR104 at
1.80 V. Kernel: Linux 6.12.113 from OpenWrt with commit 3c6f98b6e64e
backported. I changed the delay at run time through a temporary debugfs
file and set it before every reboot.

  setting     result
  1000 us     hangs (2 of 2 reboots), default of the core
  1400 us     hangs (1 of 1)
  1500 us     3 of 3 reboots succeed
  2000 us     3 of 3 reboots succeed
  10000 us    1 of 1
  100000 us   3 of 3

The shortest setting that worked was 1500 us. The delay is applied with
fsleep(), which sleeps between the setting and twice the setting, so the
exact threshold is not known.

Not tested
----------

 - A mainline kernel.
 - Other SD cards and other R2S boards, because the threshold was
   measured on one card and one board.
 - R2S Plus, which includes rk3328-nanopi-r2s.dtsi and therefore has the delay
   as well.
 - R2C and R2C Plus, which share rk3328-nanopi-r2.dtsi with the R2S. I
   did not change that file.

Tool use
--------

I ran the tests on the board and chose the delay from the results. An AI
assistant (Claude, claude-sonnet-5-5) wrote the devicetree change, the
test images with the temporary debugfs patch, the commit message and this
cover letter. I reviewed all of it.

Tobias Merkens (1):
  arm64: dts: rockchip: Wait after SD card power-off on NanoPi R2S

 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.50.1.windows.1




More information about the Linux-rockchip mailing list