]> git.ipfire.org Git - thirdparty/openwrt.git/commit
rockchip: backport upstream fix R76S SD suspend power loss 23924/head
authorxiao bo <peterwillcn@gmail.com>
Thu, 25 Jun 2026 11:20:49 +0000 (19:20 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 25 Jun 2026 21:41:13 +0000 (23:41 +0200)
commit219daaa24038e0e56e49177df586d4a296bce6a6
tree45f4e6b242ae7c6c4b05289a00baabe6f3460fe4
parent219798083ce774d00f600c9d0293e73a9889c18b
rockchip: backport upstream fix R76S SD suspend power loss

This patch is a full backport of Linux upstream commit a9c1acebfe0484343a443d082e039ca77186ed22
for rk3576-nanopi-r76s.dts device tree, resolving SD card power dropout in runtime suspend.

When runtime suspend is active, the SD power domain is shut down, wiping power control
registers and cutting card power. I/O recovery relies on mmc_blk_mq_rw_recovery(),
which results in poor performance and unstable card detection.

Implement GPIO-controlled vcc3v3_sd regulator and attach vmmc-supply to sdmmc node
to maintain SD power during suspend. Also add cd-gpios to guarantee working hotplug
when system enters idle/suspend state.

Modifications in DTS:
- vcc3v3_sd fixed regulator + sdmmc_pwren pinctrl
- vmmc-supply & vqmmc-supply for sdmmc bus power retention
- cd-gpios for SD card presence detection

Signed-off-by: xiao bo <peterwillcn@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23924
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/rockchip/patches-6.18/053-v6.19-arm64-dts-rockchip-Fix-SD-card-support-for-RK3576-Na.patch [new file with mode: 0644]