]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: dts: rockchip: Fix SD card support for RK3576 Nanopi R76s
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 16 Jan 2026 00:55:32 +0000 (08:55 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 16 Jan 2026 13:35:04 +0000 (14:35 +0100)
commita9c1acebfe0484343a443d082e039ca77186ed22
treef5e793fbe10c4fc144e0e262d782a7fce879fe68
parent7226664bf952c4cfddccd74b154a7d994608d153
arm64: dts: rockchip: Fix SD card support for RK3576 Nanopi R76s

When runtime suspend is enabled, the associated power domain is powered
off, which resets the registers, including the power control bit. As a result,
the card loses power during runtime suspend. The card should still be able
to process I/O with the help of mmc_blk_mq_rw_recovery(), which is suboptimal.
To address this issue, we must use vmmc-supply with a GPIO based method to
maintain power to the card and store valid tuning phases. Also, add cd-gpios
method to make hot-plug work correctly during idle periods.

Fixes: 7fee88882704 ("arm64: dts: rockchip: Add devicetree for the FriendlyElec NanoPi R76S")
Cc: stable@vger.kernel.org
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Tested-by: Marco Schirrmeister <mschirrmeister@gmail.com>
Link: https://patch.msgid.link/1768524932-163929-6-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3576-nanopi-r76s.dts