Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: rockchip: Add CD GPIO to Orange Pi 5/5B/5Pro
@ 2026-11-21  7:03 Dang Huynh
  2026-11-26  9:56 ` Quentin Schulz
  0 siblings, 1 reply; 2+ messages in thread
From: Dang Huynh @ 2026-11-21  7:03 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: devicetree, linux-arm-kernel, linux-rockchip, Dang Huynh

CD GPIO is currently not defined in Orange Pi 5, this breaks
SD card hotplugging.

The SDMMC_DET_L pin is connected to GPIO0_A4 on both OPi 5[0],
OPi 5B[1] and OPi 5 Pro[2].

[0]: https://drive.google.com/file/d/1Wsp-Q7IyG0Ky_W-z1n5oXcFG4oqIbtOb/view?usp=sharing
[1]: https://drive.google.com/file/d/19iPdpAXhA1vFkVOgG5Sz7L6cV8BB6004/view?usp=sharing
[2]: https://drive.google.com/file/d/1qs1DratHuh7C6J6MEtQIwUsiSrg8qgTi/view?usp=sharing

Signed-off-by: Dang Huynh <dang.huynh@mainlining.org>
---
 arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi
index 2db6ee95e504..8fbb0ba19b74 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi
@@ -282,6 +282,7 @@ &sdhci {
 &sdmmc {
 	bus-width = <4>;
 	cap-sd-highspeed;
+	cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
 	disable-wp;
 	max-frequency = <150000000>;
 	no-mmc;

---
base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726
change-id: 20261121-orange-pi-5-sdcard-98cbfa3c12e7

Best regards,
--  
Dang Huynh <dang.huynh@mainlining.org>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-26  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21  7:03 [PATCH] arm64: dts: rockchip: Add CD GPIO to Orange Pi 5/5B/5Pro Dang Huynh
2026-11-26  9:56 ` Quentin Schulz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox