[PATCH v3 0/3] Add RZ/G3L HS400 support
From: Biju Das
Date: Tue Nov 17 2026 - 11:34:57 EST
RZ/G3L SDHI IP support HS400 and HS400 ES mode. This patch
series aims to add support for HS400 mode. HS400 ES mode
support will be added later.
Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
---
Changes in v3:
- Clear hs400_active/hs400_clk in renesas_sdhi_reset() after a HW reset.
- Disable SCLKEN before leaving HS400 in renesas_sdhi_set_clock() to
avoid transiently enabling the clock with stale divider settings.
- Drop the ios.timing check, which bypassed the divider before HS400
was enabled in hardware and halved the clock; hs400_clk now follows
hs400_active and the clock is reprogrammed in hs400_complete().
- Link to v2: https://lore.kernel.org/r/20261116-sdhi_hs400-v2-0-de41f7a7f330@xxxxxxxxxxxxxx
Changes in v2:
- Added fixes tag for patch 1
- Using ios.timing to decide whether the HS400 divider restriction applies
is wrong: mmc_hs400_to_hs200() lowers the clock while ios.timing is still
HS400 and then walks through DDR52/HS/HS200 before prepare_hs400_tuning()
clears the HS400 bits, so the divider could stay at 200 MHz or prohibited
non-zero dividers could be programmed while HS400 is still enabled. So
tracking HS400 hardware state for RZ/G3L clock programming using 2
variables hs400_active and hs400_clk in struct renesas_sdhi.
- Link to v1: https://lore.kernel.org/r/20261116-sdhi_hs400-v1-0-c5bedd312408@xxxxxxxxxxxxxx
---
Biju Das (3):
mmc: renesas_sdhi: Save and restore IOVS across suspend/resume
mmc: renesas_sdhi: Make HS400 OSEL bit configurable per SoC
mmc: renesas_sdhi: Add RZ/G3L HS400 support
drivers/mmc/host/renesas_sdhi.h | 5 ++
drivers/mmc/host/renesas_sdhi_core.c | 111 +++++++++++++++++++++++---
drivers/mmc/host/renesas_sdhi_internal_dmac.c | 5 +-
include/linux/platform_data/tmio.h | 4 +
4 files changed, 113 insertions(+), 12 deletions(-)
---
base-commit: 522b5bdb42c730db0269a384bf5a2501ecb21e8d
change-id: 20261113-sdhi_hs400-5f08e5237291
Best regards,
--
Biju Das <biju.das.jz@xxxxxxxxxxxxxx>