[PATCH 0/8] Add SD card and eMMC support for SpacemiT K1

Raymond Mao raymondmaoca at gmail.com
Fri Jun 12 22:18:53 CEST 2026


From: Raymond Mao <raymond.mao at riscstar.com>

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.
    
It also carries two generic cmd/meminfo fixes needed on K1, whose DRAM
is larger than 4 GB and split across two banks with an address hole:
widen the printed addresses to phys_addr_t, and account LMB regions per
bank.
    
A flashing guide (doc/board/spacemit/k1-flash.rst) describes how to
write images to eMMC.
    
This series sits on top of three series still under review, and must be
applied after them, in this order:
    
1. K1 clock/reset/dts migration v2 [1]  (8 patches)
2. K1 SPL bring-up v4 [2]              (14 patches)
3. K1 pinctrl/GPIO and SPI NOR v2 [3]   (9 patches)
Then this series                        (8 patches)
    
[1] https://lore.kernel.org/u-boot/20260526-b4-k1-clk-reset-upstream-dts-v2-0-af815e362b0c@riscstar.com/
[2] https://lore.kernel.org/u-boot/20260519-b4-k1-spl-bring-up-v4-0-3915a2a904c1@riscstar.com/
[3] https://lore.kernel.org/u-boot/20260520-b4-k1-spl-pinctrl-spinor-v2-0-8d25db98ac8e@riscstar.com/
    
Guodong Xu (8):
  spacemit: k1: select boot device via config registers
  mmc: k1: add sdhci platform driver
  dts: k1: add SD card support in u-boot overlay
  configs: k1: enable SD and eMMC support
  doc: spacemit: flash on K1 SoC based boards
  cmd: meminfo: widen memory map addresses to phys_addr_t
  cmd: meminfo: fix the lmb info for large DRAM
  cmd: tlv_eeprom: fix accessing invalid parameter

 arch/riscv/dts/k1-bananapi-f3-u-boot.dtsi |  87 +-
 arch/riscv/dts/k1-musepi-pro-u-boot.dtsi  |  82 +-
 board/spacemit/k1/MAINTAINERS             |   3 +-
 board/spacemit/k1/spl.c                   |  77 +-
 cmd/meminfo.c                             |  53 +-
 cmd/tlv_eeprom.c                          |   2 +-
 configs/spacemit_k1_defconfig             |  17 +
 doc/board/spacemit/index.rst              |   1 +
 doc/board/spacemit/k1-flash.rst           | 157 ++++
 drivers/mmc/Kconfig                       |   7 +
 drivers/mmc/Makefile                      |   1 +
 drivers/mmc/spacemit_sdhci.c              | 934 ++++++++++++++++++++++
 12 files changed, 1401 insertions(+), 20 deletions(-)
 create mode 100644 doc/board/spacemit/k1-flash.rst
 create mode 100644 drivers/mmc/spacemit_sdhci.c

-- 
2.25.1



More information about the U-Boot mailing list