All of lore.kernel.org
 help / color / mirror / Atom feed
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>,
	Dave Klotz <DaveWK225@protonmail.com>,
	Eric Chung <eric.chung@riscstar.com>,
	Hung-Chun Tseng <alan.tseng.cs@gmail.com>,
	E Shattow <e@freeshell.de>, Yixun Lan <dlan@kernel.org>,
	Tim Ouyang <tim609@andestech.com>,
	Leo Liang <leo.liang@sifive.com>, Yao Zi <me@ziyao.cc>,
	Tom Rini <trini@konsulko.com>
Subject: [PATCH v3 10/13] riscv: dts: spacemit: k1: Retain GPIO and pinctrl nodes in SPL
Date: Fri, 27 Nov 2026 10:30:09 +0000	[thread overview]
Message-ID: <20261127103030.4647-11-linux.amoon@gmail.com> (raw)
In-Reply-To: <20261127103030.4647-1-linux.amoon@gmail.com>

The GPIO and pinctrl controllers are required during early boot
to configure pins and access GPIOs used by SPL devices.

Add bootph-pre-ram to the GPIO and pinctrl controller nodes and
the pin configuration groups used by UART, I2C, QSPI and SDHCI.

Retain the corresponding child nodes to prevent SPL device tree
filtering from removing the pinmux and electrical configuration
properties.

This makes the required pin configurations available during SPL
initialization on SpacemiT K1 boards.

Cc: Dave Klotz <DaveWK225@protonmail.com>
Cc: Eric Chung <eric.chung@riscstar.com>
Cc: Hung-Chun Tseng <alan.tseng.cs@gmail.com>
Cc: E Shattow <e@freeshell.de>
Cc: Yixun Lan <dlan@kernel.org>
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
 arch/riscv/dts/spacemit-k1-u-boot.dtsi | 44 ++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/arch/riscv/dts/spacemit-k1-u-boot.dtsi b/arch/riscv/dts/spacemit-k1-u-boot.dtsi
index c084e15cb94..482f1c2aae1 100644
--- a/arch/riscv/dts/spacemit-k1-u-boot.dtsi
+++ b/arch/riscv/dts/spacemit-k1-u-boot.dtsi
@@ -86,4 +86,48 @@
 	max-frequency = <204800000>;
 };
 
+&gpio {
+	bootph-pre-ram;
+};
+
+&pinctrl {
+	bootph-pre-ram;
+};
+
+&qspi_cfg {
+	bootph-pre-ram;
+
+	qspi-pins {
+		bootph-pre-ram;
+	};
+
+	qspi-cs1-pins {
+		bootph-pre-ram;
+	};
+};
+
+&mmc1_cfg {
+	bootph-pre-ram;
+
+	mmc1-data-cmd-pins {
+		bootph-pre-ram;
+	};
+
+	mmc1-clk-pins {
+		bootph-pre-ram;
+	};
+};
+
+&mmc1_uhs_cfg {
+	bootph-pre-ram;
+
+	mmc1-data-cmd-pins {
+		bootph-pre-ram;
+	};
+
+	mmc1-clk-pins {
+		bootph-pre-ram;
+	};
+};
+
 #include "spacemit-k1-binman.dtsi"
-- 
2.56.1


  parent reply	other threads:[~2026-11-27 10:32 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 10:29 [PATCH v3 00/13] riscv: spacemit: Add GPIO and pinctrl support in SPL Anand Moon
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 ` Anand Moon [this message]
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-11-linux.amoon@gmail.com \
    --to=linux.amoon@gmail.com \
    --cc=DaveWK225@protonmail.com \
    --cc=alan.tseng.cs@gmail.com \
    --cc=dlan@kernel.org \
    --cc=e@freeshell.de \
    --cc=eric.chung@riscstar.com \
    --cc=junhui.liu@pigmoral.tech \
    --cc=leo.liang@sifive.com \
    --cc=me@ziyao.cc \
    --cc=tim609@andestech.com \
    --cc=trini@konsulko.com \
    --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.