Skip to content

spacemit mmc driver

Eric Chung u-boot 12 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260629-m4-98e01659fefb

Versions newest first

  1. v13 Latest7 patches 10 repliesApplied
  2. v127 patches 7 repliesSuperseded
  3. v1117 patches 2 repliesSuperseded
Earlier versions · 9
VersionPostedPatchesRepliesStatus
v1017 patches4 repliesSuperseded
v919 patches7 repliesSuperseded
v811 patches4 repliesSuperseded
v711 patches0 repliesSuperseded
v611 patches21 repliesSuperseded
v59 patches0 repliesSuperseded
v410 patches12 repliesSuperseded
v39 patches4 repliesSuperseded
v28 patches5 repliesSuperseded

Changes in v13 from the cover letter

- mmc: Sync the definition values from upstream mmc driver.
- doc: Only flash the minimised partitions for SD boot.
- Link to v12: https://patch.msgid.link/[email protected]

Patches in v13 Applied

#Subject and filesSizeRepliesApplied
1/7spacemit: k1: select boot device via config registersboard/spacemit/k1/spl.c+97 -10 replies
2/7mmc: k1: add sdhci platform driverdrivers/mmc/Kconfig drivers/mmc/Makefile drivers/mmc/spacemit_sdhci.c+692 -02 replies
3/7dts: k1: enable mmc devices in SPLarch/riscv/dts/k1-bananapi-f3-u-boot.dtsi arch/riscv/dts/k1-musepi-pro-u-boot.dtsi+21 -1270 replies
4/7configs: k1: enable SD and eMMC supportconfigs/spacemit_k1_defconfig+22 -00 replies
5/7MAINTAINER: update Spacemit K1 entryboard/spacemit/k1/MAINTAINERS+2 -10 replies
6/7doc: spacemit: flash on K1 SoC based boardsboard/spacemit/k1/MAINTAINERS doc/board/spacemit/index.rst doc/board/spacemit/k1-mmc.rst+270 -10 replies
7/7spacemit: k1: fix product name detection and DTB matching in SPLboard/spacemit/k1/spl.c+32 -186 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYao ZiYixun Lan
SeriesT-b R-b
1/7R-b
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v13 thread

Cover letter [PATCH v13 0/7] spacemit mmc driver

This series adds MMC support for the SpacemiT K1: an SDHCI platform driver, the SD card device-tree overlay, defconfig options, and SPL boot-device selection from the SoC strap/config registers. The SDHCI driver is usable in both SPL and U-Boot proper.

A flashing guide (doc/board/spacemit/k1-flash.rst) describes how to write images to eMMC.

---
Changes in v13:
- mmc: Sync the definition values from upstream mmc driver.
- doc: Only flash the minimised partitions for SD boot.
- Link to v12: https://patch.msgid.link/[email protected]

Changes in v12:
- dts: Drop all upstreamed DTS patches since they're merged now.
- Link to v11: https://patch.msgid.link/[email protected]

Changes in v11:
- spl: Fix the read_boot_mode() that returns both boot mode and boot device.
- Link to v10: https://patch.msgid.link/[email protected]

Changes in v10:
- pinctrl: Move all pinctrl patches into a new patch set.
- Link to v9: https://patch.msgid.link/[email protected]

Changes in v9:
- spl: Enhance detection on booting from SD.
- dts: Synched upstream DTS files for K1.
- doc: Create SD card image from scratch.
- mmc: Avoid to use CMD18 on SD card in SPL.
- pinctrl: Drop "fix drive strength configuration".
- Link to v8: https://patch.msgid.link/[email protected]

Changes in v8:
- doc: Remove SD card.
- Link to v7: https://patch.msgid.link/[email protected]

Changes in v7:
- env: Drop env support on the mmc series.
- dts: Sync upstream DTS files for spacemit.
- pinctrl: Simply clrsetbits_le32() on pull-up/pull-down configuration.
- spl: Fix DTB matching.
- Link to v6: https://patch.msgid.link/[email protected]

Changes in v6:
- pinctrl: Fix drive strength configuration.
- pinctrl: Fix pull-up/pull-down configuration.
- pinctrl: Use dev_read_phandle_with_args() to fetch "spacemit,syscon" instead.
- spacemit: rebase on latest upstream branch.
- Link to v5: https://patch.msgid.link/[email protected]

Changes in v5:
- mmc: Split CMD23 support out.
- mmc: Use read_poll_timeout().
- mmc: Set pinctrl state based on selected timing mode.
- mmc: Remove the condition based on quirks.
- pinctrl: Fix power source argument.
- dts: Add missing power source on mmc pins.
- Link to v4: https://patch.msgid.link/[email protected]

Changes in v4:
- mmc: Add CMD23 for write.
- mmc: Fix CMD23 only for CMD18.
- mmc: Update bulk release operations on reset and clocks for spacemit platform driver.
- MAINTAINER: update the maintainer of Spacemit K1.
- Link to v3: https://patch.msgid.link/[email protected]

Changes in v3:
- pinctrl: Fix "fast" by "uhs".
- pinctrl: Add syscon dependency.
- mmc: Fix quick by capability.
- doc: Add SD boot support.
- Link to v2: https://lore.kernel.org/u-boot/[email protected]/T/#m2aba875a2696a7bb9b704618d22ae2fd7f7f5acc

Changes in v2:
- cmd: drop patches on eminfo & tlv_eeprom.
- configs: Enable ADMA and SYSCON support.
- dts: Use vmmc-supply as vqmmc-supply on the SD card node.
- mmc: k1: Enable ADMA mode support, use CMD23 for multi-block
read/write, correct pinctrl state from "fast" to "uhs".
- mmc: sdhci: Add new quirk patch to enable CMD23 for multi-block
transfers.
- pinctrl: k1: Add new IO power domain configuration support for
dual-voltage GPIO banks.
- spacemit: k1: Use FIELD_GET() to parse boot strap mode.
- Link to v1: https://lore.kernel.org/u-boot/[email protected]/

To: [email protected]
To: [email protected]
To: Yao Zi <[email protected]>
Cc: Huan Zhou <[email protected]>
Cc: Eric Chung <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Raymond Mao <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Jaehoon Chung <[email protected]>
Cc: Bastien Curutchet <[email protected]>
Cc: Anshul Dalal <[email protected]>
Cc: Siu Ming Tong <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Tim Ouyang <[email protected]>
Cc: Leo Liang <[email protected]>

---
Eric Chung (7):
spacemit: k1: select boot device via config registers
mmc: k1: add sdhci platform driver
dts: k1: enable mmc devices in SPL
configs: k1: enable SD and eMMC support
MAINTAINER: update Spacemit K1 entry
doc: spacemit: flash on K1 SoC based boards
spacemit: k1: fix product name detection and DTB matching in SPL

 arch/riscv/dts/k1-bananapi-f3-u-boot.dtsi |  12 +-
 arch/riscv/dts/k1-musepi-pro-u-boot.dtsi  | 136 +-----
 board/spacemit/k1/MAINTAINERS             |   5 +-
 board/spacemit/k1/spl.c                   | 148 ++++++-
 configs/spacemit_k1_defconfig             |  22 +
 doc/board/spacemit/index.rst              |   1 +
 doc/board/spacemit/k1-mmc.rst             | 268 ++++++++++++
 drivers/mmc/Kconfig                       |   7 +
 drivers/mmc/Makefile                      |   1 +
 drivers/mmc/spacemit_sdhci.c              | 684 ++++++++++++++++++++++++++++++
 10 files changed, 1136 insertions(+), 148 deletions(-)

---
base-commit: ff22b8227d2531e3698ef1e2623805d0bfb20bbb
change-id: 20260629-m4-98e01659fefb

Best regards,

Signature · 1 line
Eric Chung <[email protected]>