From: Anand Moon <linux.amoon@gmail.com>
To: u-boot@lists.u-boot-project.org
Cc: Anand Moon <linux.amoon@gmail.com>,
Junhui Liu <junhui.liu@pigmoral.tech>,
Yixun Lan <dlan@kernel.org>
Subject: [PATCH v3 00/13] riscv: spacemit: Add GPIO and pinctrl support in SPL
Date: Fri, 27 Nov 2026 10:29:59 +0000 [thread overview]
Message-ID: <20261127103030.4647-1-linux.amoon@gmail.com> (raw)
This series improves SPL initialization and SD card support for
SpacemiT K1-based boards, including the Banana Pi BPI-F3 and
MusePi Pro.
Start by consolidating common U-Boot-specific device tree nodes
and properties into a shared K1 DTSI and removing redundant
board-specific overrides.
Add GPIO and AIB clock support in SPL, followed by SPL support
for the SpacemiT GPIO and pinctrl drivers. This allows GPIO-based
card detection and device tree-based pin configuration during
early boot.
Improve the SpacemiT SDHCI driver by adding voltage switching
diagnostics and selecting the appropriate pinctrl state based
on the requested signal voltage rather than the timing mode.
Adjust the SPL stack and malloc configuration, retain the GPIO
and pinctrl nodes required during early boot, and enable GPIO,
pinctrl and MMC UHS support.
Finally, enable uncompressed multi-DTB FIT support in SPL and
update the Binman configuration to accommodate multi-DTB SPL
images. Using an uncompressed FIT avoids the additional memory
allocation required for FIT decompression within the limited
SPL SRAM.
The series lays the groundwork for supporting multiple K1-based
boards with a single SPL binary.
Changes in v2:
v2: https://patchwork.ozlabs.org/project/uboot/list/?series=535531
- Consolidate additional common U-Boot properties into
spacemit-k1-u-boot.dtsi.
- Reduce duplication in the board-specific DTSI files.
- Retain board-specific configuration where required.
v1: https://patchwork.ozlabs.org/project/uboot/list/?series=530594
Thanks
-Anand
Anand Moon (13):
riscv: dts: spacemit: k1: Move common U-Boot nodes to shared DTSI
riscv: dts: spacemit: k1-musepi-pro: Drop redundant DT overrides
riscv: dts: spacemit: k1: Move common U-Boot properties to shared DTSI
clk: spacemit: k1: Add GPIO and AIB clock support in SPL
pinctrl: spacemit: Add SPL support for K1/K3 pinctrl driver
gpio: spacemit: Add SPL support for K1/K3 GPIO driver
mmc: spacemit_sdhci: Improve voltage switching diagnostics
mmc: spacemit_sdhci: Select pinctrl state based on signal voltage
riscv: spacemit: k1: Adjust SPL stack and malloc configuration
riscv: dts: spacemit: k1: Retain GPIO and pinctrl nodes in SPL
riscv: spacemit: k1: Enable GPIO, pinctrl and MMC UHS support
riscv: spacemit: k1: Enable uncompressed multi-DTB FIT support in SPL
riscv: dts: spacemit: k1: Support multi-DTB SPL images in Binman
arch/riscv/dts/k1-bananapi-f3-u-boot.dtsi | 86 -------------
arch/riscv/dts/k1-musepi-pro-u-boot.dtsi | 113 -----------------
arch/riscv/dts/spacemit-k1-binman.dtsi | 30 +++++
arch/riscv/dts/spacemit-k1-u-boot.dtsi | 133 ++++++++++++++++++++
configs/spacemit_k1_defconfig | 14 ++-
drivers/clk/spacemit/clk-k1.c | 29 +++--
drivers/gpio/Kconfig | 7 ++
drivers/mmc/spacemit_sdhci.c | 144 +++++++++++++++-------
drivers/pinctrl/spacemit/Kconfig | 8 ++
9 files changed, 306 insertions(+), 258 deletions(-)
create mode 100644 arch/riscv/dts/spacemit-k1-binman.dtsi
create mode 100644 arch/riscv/dts/spacemit-k1-u-boot.dtsi
base-commit: 9d67454e920b3908529c9fc642a8c911db040896
--
2.56.1
next reply other threads:[~2026-11-27 10:31 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 10:29 Anand Moon [this message]
2026-11-27 10:30 ` [PATCH v3 01/13] riscv: dts: spacemit: k1: Move common U-Boot nodes to shared DTSI Anand Moon
2026-11-27 10:55 ` E Shattow
2026-11-27 10:30 ` [PATCH v3 02/13] riscv: dts: spacemit: k1-musepi-pro: Drop redundant DT overrides Anand Moon
2026-11-27 10:59 ` E Shattow
2026-11-27 10:30 ` [PATCH v3 03/13] riscv: dts: spacemit: k1: Move common U-Boot properties to shared DTSI Anand Moon
2026-11-27 11:26 ` E Shattow
2026-11-28 8:09 ` Anand Moon
2026-11-27 10:30 ` [PATCH v3 04/13] clk: spacemit: k1: Add GPIO and AIB clock support in SPL Anand Moon
2026-11-27 11:36 ` E Shattow
2026-11-27 10:30 ` [PATCH v3 05/13] pinctrl: spacemit: Add SPL support for K1/K3 pinctrl driver Anand Moon
2026-11-27 11:42 ` E Shattow
2026-11-27 10:30 ` [PATCH v3 06/13] gpio: spacemit: Add SPL support for K1/K3 GPIO driver Anand Moon
2026-11-27 11:40 ` E Shattow
2026-11-27 10:30 ` [PATCH v3 07/13] mmc: spacemit_sdhci: Improve voltage switching diagnostics Anand Moon
2026-11-27 10:30 ` [PATCH v3 08/13] mmc: spacemit_sdhci: Select pinctrl state based on signal voltage Anand Moon
2026-11-27 10:30 ` [PATCH v3 09/13] riscv: spacemit: k1: Adjust SPL stack and malloc configuration Anand Moon
2026-11-27 10:30 ` [PATCH v3 10/13] riscv: dts: spacemit: k1: Retain GPIO and pinctrl nodes in SPL Anand Moon
2026-11-27 10:30 ` [PATCH v3 11/13] riscv: spacemit: k1: Enable GPIO, pinctrl and MMC UHS support Anand Moon
2026-11-27 10:30 ` [PATCH v3 12/13] riscv: spacemit: k1: Enable uncompressed multi-DTB FIT support in SPL Anand Moon
2026-11-27 10:30 ` [PATCH v3 13/13] riscv: dts: spacemit: k1: Support multi-DTB SPL images in Binman Anand Moon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127103030.4647-1-linux.amoon@gmail.com \
--to=linux.amoon@gmail.com \
--cc=dlan@kernel.org \
--cc=junhui.liu@pigmoral.tech \
--cc=u-boot@lists.u-boot-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.