public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix sd card support for RK3576
@ 2026-01-12  3:49 Shawn Lin
  2026-01-12  3:49 ` [PATCH 1/3] soc: rockchip: grf: Fix wrong RK3576_IOCGRF_MISC_CON definition Shawn Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Shawn Lin @ 2026-01-12  3:49 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: linux-rockchip, devicetree, FUKAUMI Naoki, Marco Schirrmeister,
	John Clark, Tianling Shen, Detlev Casanova, Shawn Lin


SD card support for RK3576 is totally broken. This is because sd cards
should try to use slot-gpio(cd-gpios) instead of function IO for supporting
runtime PM. In order to support slot-gpio method, we should disable jtag
switching for RK3576.

But the rockchip_grf_init fails to handle this because it couldn't handle
multiple grf nodes. In this case, iocgrf is in behind of sysgrf, so only
sysgrf is handled. We should scan all possible nodes.

Moreover, the offset is wrong as well. Per the TRM, the address of
TOP_IOC_IOC_MISC_CON is 0x260440F0, which means the offset if 0x40F0
intead of 0x040F.

This series fixes this mess but only adds slot-gpio support for RK3576-EVB1.
Other boards are also missing slot-gpio support, but folks are all cced for
checking the board they are using.

Please review and test


Shawn Lin (3):
  soc: rockchip: grf: Fix wrong RK3576_IOCGRF_MISC_CON definition
  soc: rockchip: grf: Support multiple grf to be handled
  arm64: dts: rockchip: Add cd-gpios for sdmmc of RK3576 EVB1

 arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts |  1 +
 drivers/soc/rockchip/grf.c                       | 61 ++++++++++++------------
 2 files changed, 32 insertions(+), 30 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2026-01-12 11:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-12  3:49 [PATCH 0/3] Fix sd card support for RK3576 Shawn Lin
2026-01-12  3:49 ` [PATCH 1/3] soc: rockchip: grf: Fix wrong RK3576_IOCGRF_MISC_CON definition Shawn Lin
2026-01-12 11:10   ` Chaoyi Chen
2026-01-12  3:49 ` [PATCH 2/3] soc: rockchip: grf: Support multiple grf to be handled Shawn Lin
2026-01-12 11:04   ` Chaoyi Chen
2026-01-12 11:07   ` Heiko Stübner
2026-01-12  3:49 ` [PATCH 3/3] arm64: dts: rockchip: Add cd-gpios for sdmmc of RK3576 EVB1 Shawn Lin
2026-01-12 11:08   ` Heiko Stübner

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