Add SD card and eMMC support for SpacemiT K1
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | spacemit: k1: select boot device via config registersboard/ | +76 | 4 replies | |
| 2/8 | mmc: k1: add sdhci platform driverdrivers/ drivers/ drivers/ | +942 | 5 replies | |
| 3/8 | dts: k1: add SD card support in u-boot overlayarch/ arch/ | +165 | 0 replies | |
| 4/8 | configs: k1: enable SD and eMMC supportboard/ configs/ | +18 | 0 replies | |
| 5/8 | doc: spacemit: flash on K1 SoC based boardsboard/ doc/ doc/ | +159 | 0 replies | |
| 6/8 | cmd: meminfo: widen memory map addresses to phys_addr_tcmd/ | +11 | 0 replies | |
| 7/8 | cmd: meminfo: fix the lmb info for large DRAMcmd/ | +28 | 0 replies | |
| 8/8 | cmd: tlv_eeprom: fix accessing invalid parametercmd/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/8] Add SD card and eMMC support for SpacemiT K1
From: Raymond Mao <[email protected]>
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/[email protected]/
[3] https://lore.kernel.org/u-boot/[email protected]/
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
Signature · 1 line
2.25.1