U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v10 00/17] spacemit mmc driver
@ 2026-08-24  8:50 Eric Chung
  2026-08-24  8:50 ` [PATCH v10 01/17] spacemit: k1: select boot device via config registers Eric Chung
                   ` (17 more replies)
  0 siblings, 18 replies; 22+ messages in thread
From: Eric Chung @ 2026-08-24  8:50 UTC (permalink / raw)
  To: u-boot-spacemit, u-boot, u-boot
  Cc: Tom Rini, Tim Ouyang, Leo Liang, Yao Zi, Wei Fu, Huan Zhou,
	Guodong Xu, Raymond Mao, Peng Fan, Jaehoon Chung, Anshul Dalal,
	Bastien Curutchet, Johan Jonker, Sumit Garg, Yixun Lan,
	Iker Pedrosa, Alex Elder, Andre Heider, Trevor Gamblin,
	Eric Chung, Yixun Lan, Anand Moon, Vincent Legoll, Troy Mitchell,
	Margherita Milani, Aurelien Jarno

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 v10:
- pinctrl: Move all pinctrl patches into a new patch set.
- Link to v9: https://patch.msgid.link/20260819-m4-v9-0-6e66016392b9@riscstar.com

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/20260802-m4-v8-4-e916643205f3@riscstar.com

Changes in v8:
- doc: Remove SD card.
- Link to v7: https://patch.msgid.link/20260729-m4-v7-8-2cb04b4fe389@riscstar.com

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/20260727-m4-v6-0-2f58566d48ca@riscstar.com

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/20260722-m4-v5-0-c41a951e5157@riscstar.com

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/20260707-m4-v4-0-dbd01185f911@riscstar.com

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/20260705-m4-v3-0-5a9bc7f25fc5@riscstar.com

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/20260630-m1-v1-0-83f13347b3ba@riscstar.com/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/20260521-k1-spl-mmc-sdcard-v1-0-1bd14b8c4f9f@riscstar.com/

To: u-boot-spacemit@groups.io
To: u-boot@lists.u-boot-project.org
To: Yao Zi <me@ziyao.cc>
Cc: Huan Zhou <pericycle.cc@gmail.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Guodong Xu <guodong@riscstar.com>
Cc: Raymond Mao <raymond.mao@riscstar.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Anshul Dalal <anshuld@ti.com>
Cc: Bastien Curutchet <bastien.curutchet@bootlin.com>
Cc: Johan Jonker <jbx6244@gmail.com>
Cc: Sumit Garg <sumit.garg@kernel.org>
Cc: Yixun Lan <dlan@kernel.org>
Cc: Iker Pedrosa <ikerpedrosam@gmail.com>
Cc: Alex Elder <elder@riscstar.com>
Cc: Andre Heider <a.heider@gmail.com>
Cc: Trevor Gamblin <tgamblin@baylibre.com>
Cc: Tim Ouyang <tim609@andestech.com>
Cc: Leo Liang <leo.liang@sifive.com>
Signed-off-by: Eric Chung <eric.chung@riscstar.com>

---
Alex Elder (1):
      riscv: dts: spacemit: define a SPI controller node

Andre Heider (6):
      riscv: dts: spacemit: k1-musepi-pro: add PMIC and power infrastructure
      riscv: dts: spacemit: k1-musepi-pro: add 24c02 eeprom
      riscv: dts: spacemit: k1-musepi-pro: enable QSPI and add SPI NOR
      riscv: dts: spacemit: k1-musepi-pro: enable USB 3 ports
      riscv: dts: spacemit: k1-musepi-pro: enable PCIe ports
      riscv: dts: spacemit: k1-musepi-pro: set default console baud rate

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

Iker Pedrosa (2):
      riscv: dts: spacemit: k1: add SD card controller and pinctrl support
      riscv: dts: spacemit: k1-bananapi-f3: add SD card support with UHS modes

Trevor Gamblin (1):
      riscv: dts: spacemit: k1-musepi-pro: add SD card support with UHS modes

 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                            | 145 ++++-
 configs/spacemit_k1_defconfig                      |  22 +
 doc/board/spacemit/index.rst                       |   1 +
 doc/board/spacemit/k1-mmc.rst                      | 271 ++++++++
 drivers/mmc/Kconfig                                |   7 +
 drivers/mmc/Makefile                               |   1 +
 drivers/mmc/spacemit_sdhci.c                       | 684 +++++++++++++++++++++
 dts/upstream/src/riscv/spacemit/k1-bananapi-f3.dts |  31 +-
 dts/upstream/src/riscv/spacemit/k1-musepi-pro.dts  | 329 +++++++++-
 dts/upstream/src/riscv/spacemit/k1-pinctrl.dtsi    |  60 ++
 dts/upstream/src/riscv/spacemit/k1.dtsi            |  28 +
 14 files changed, 1581 insertions(+), 151 deletions(-)
---
base-commit: 6073c36b2c8d39afe3ecc789b281667a3ddebc70
change-id: 20260629-m4-98e01659fefb

Best regards,
--  
Eric Chung <eric.chung@riscstar.com>


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

end of thread, other threads:[~2026-09-06 13:00 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-24  8:50 [PATCH v10 00/17] spacemit mmc driver Eric Chung
2026-08-24  8:50 ` [PATCH v10 01/17] spacemit: k1: select boot device via config registers Eric Chung
2026-09-02  8:51   ` Tim Ouyang
2026-09-06  8:15     ` Eric Chung
2026-09-06 13:00       ` Yixun Lan
2026-08-24  8:50 ` [PATCH v10 02/17] mmc: k1: add sdhci platform driver Eric Chung
2026-08-24  8:50 ` [PATCH v10 03/17] riscv: dts: spacemit: define a SPI controller node Eric Chung
2026-08-24  8:50 ` [PATCH v10 04/17] riscv: dts: spacemit: k1: add SD card controller and pinctrl support Eric Chung
2026-08-24  8:50 ` [PATCH v10 05/17] riscv: dts: spacemit: k1-bananapi-f3: add SD card support with UHS modes Eric Chung
2026-08-24  8:50 ` [PATCH v10 06/17] riscv: dts: spacemit: k1-musepi-pro: add PMIC and power infrastructure Eric Chung
2026-08-24  8:50 ` [PATCH v10 07/17] riscv: dts: spacemit: k1-musepi-pro: add 24c02 eeprom Eric Chung
2026-08-24  8:50 ` [PATCH v10 08/17] riscv: dts: spacemit: k1-musepi-pro: enable QSPI and add SPI NOR Eric Chung
2026-08-24  8:50 ` [PATCH v10 09/17] riscv: dts: spacemit: k1-musepi-pro: enable USB 3 ports Eric Chung
2026-08-24  8:50 ` [PATCH v10 10/17] riscv: dts: spacemit: k1-musepi-pro: enable PCIe ports Eric Chung
2026-08-24  8:50 ` [PATCH v10 11/17] riscv: dts: spacemit: k1-musepi-pro: set default console baud rate Eric Chung
2026-08-24  8:50 ` [PATCH v10 12/17] riscv: dts: spacemit: k1-musepi-pro: add SD card support with UHS modes Eric Chung
2026-08-24  8:50 ` [PATCH v10 13/17] dts: k1: enable mmc devices in SPL Eric Chung
2026-08-24  8:50 ` [PATCH v10 14/17] configs: k1: enable SD and eMMC support Eric Chung
2026-08-24  8:50 ` [PATCH v10 15/17] MAINTAINER: update Spacemit K1 entry Eric Chung
2026-08-24  8:50 ` [PATCH v10 16/17] doc: spacemit: flash on K1 SoC based boards Eric Chung
2026-08-24  8:50 ` [PATCH v10 17/17] spacemit: k1: fix product name detection and DTB matching in SPL Eric Chung
2026-09-02  1:51 ` [PATCH v10 00/17] spacemit mmc driver Eric Chung

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