[PATCH v2] arm64: dts: allwinner: rg35xx: keep RTL8821CS powered during suspend
From: Yang Siyuan
Date: Tue Nov 17 2026 - 04:47:02 EST
The RTL8821CS SDIO WiFi on the RG35XX Plus/SP is soldered and powered by
CLDO4. rtw88's SDIO suspend callback asks the MMC host to keep power
during system suspend:
rtw88_8821cs mmc1:0001:1: Failed to host PM flag MMC_PM_KEEP_POWER
sdio_set_host_pm_flags() only accepts MMC_PM_KEEP_POWER when the host's
pm_caps contains it, and mmc_of_parse() sets that flag from the
"keep-power-in-suspend" DT property. Without it, the first s2idle
suspend aborts with -EINVAL before the system can enter suspend.
Add keep-power-in-suspend to &mmc1 so the WiFi stays powered and s2idle
works. Tested on an Anbernic RG35XX-SP: the board suspends and resumes
from the lid switch, and the WiFi reconnects after resume.
Fixes: 398e5fdf60ed ("arm64: dts: allwinner: h700: Add RG35XX-Plus DTS")
Signed-off-by: Yang Siyuan <hsyysy@xxxxxxx>
---
Changes in v2:
- Add the Fixes tag suggested by Sashiko.
.../boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-plus.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-plus.dts
index 60a8e49..ceb25a3 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-plus.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-plus.dts
@@ -27,6 +27,8 @@
mmc-pwrseq = <&wifi_pwrseq>;
bus-width = <4>;
non-removable;
+ /* rtw88's SDIO suspend requires MMC_PM_KEEP_POWER. */
+ keep-power-in-suspend;
status = "okay";
sdio_wifi: wifi@1 {
base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
--
2.56.1