[PATCH v2 0/8] mmc: spacemit: Improve clock and tuning logic

From: Yixun Lan

Date: Tue Dec 01 2026 - 03:21:46 EST


This series includes some bug fixes and improvement to
SpacemiT SDHCI driver, which relate to pinctrl, PHY,
clock, tuning logic. Most of them are quite independent,
but put them together here for people to easy review.

I've rebased this series on top of "Introduce tx delay DT property" [1],
otherwise there is code conflicts when apply both.

Link: https://patch.msgid.link/20261125-07-k3-sdhci-dts-v2-0-a069659ba025@xxxxxxxxxx [1]
Signed-off-by: Yixun Lan <dlan@xxxxxxxxxx>
---
Changes in v2:
- Fix clock defer probe error
- Fix pinctrl state check
- Add macro for tx_tuning window limit
- Link to v1: https://patch.msgid.link/20260902-07-k3-sdhci-fix-v1-0-b15c5d0f64fd@xxxxxxxxxx

---
Long Wan (6):
mmc: sdhci-of-k1: No pinctrl state switching
mmc: sdhci-of-k1: Improve power control
mmc: sdhci-of-k1: Configure PHY mode
mmc: sdhci-of-k1: Use finest delay granularity for RX tuning
mmc: sdhci-of-k1: Improve RX tuning window
mmc: sdhci-of-k1: Implement SD clock gating for voltage switch

Yixun Lan (2):
mmc: sdhci-of-k1: Handle clock probe deferral
mmc: sdhci-of-k1: Drop duplicated voltage settings

drivers/mmc/host/sdhci-of-k1.c | 84 +++++++++++++++++++++++++++++++++---------
1 file changed, 66 insertions(+), 18 deletions(-)
---
base-commit: cafaabe9e6fd91d15c6265bf5858272aab8431b3
change-id: 20260901-07-k3-sdhci-fix-ce577d1db7b6

Best regards,
--
Yixun Lan <dlan@xxxxxxxxxx>