From: Anand Moon <linux.amoon@gmail.com>
To: u-boot@lists.u-boot-project.org
Cc: Anand Moon <linux.amoon@gmail.com>,
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>, Guodong Xu <guodong@riscstar.com>,
Raymond Mao <raymond.mao@riscstar.com>,
u-boot-spacemit@groups.io
Subject: [PATCH v2 3/6] riscv: dts: spacemit: k1: Move common U-Boot properties to shared DTSI
Date: Mon, 23 Nov 2026 19:37:01 +0000 [thread overview]
Message-ID: <20261123193714.5096-4-linux.amoon@gmail.com> (raw)
In-Reply-To: <20261123193714.5096-1-linux.amoon@gmail.com>
Move common U-Boot device tree properties from the Banana Pi F3
and MusePi Pro board-specific DTSI files into spacemit-k1-u-boot.dtsi.
Consolidate early boot properties for UART, clocks, I2C, eMMC and
SDHCI controllers to reduce duplication between the boards.
Also move the clock configuration for the MPMU and APBC system
controllers into the shared DTSI.
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/k1-bananapi-f3-u-boot.dtsi | 54 ----------------
arch/riscv/dts/k1-musepi-pro-u-boot.dtsi | 79 -----------------------
arch/riscv/dts/spacemit-k1-u-boot.dtsi | 76 ++++++++++++++++++++++
3 files changed, 76 insertions(+), 133 deletions(-)
diff --git a/arch/riscv/dts/k1-bananapi-f3-u-boot.dtsi b/arch/riscv/dts/k1-bananapi-f3-u-boot.dtsi
index bc117f5987a..4e9f2c13203 100644
--- a/arch/riscv/dts/k1-bananapi-f3-u-boot.dtsi
+++ b/arch/riscv/dts/k1-bananapi-f3-u-boot.dtsi
@@ -3,50 +3,6 @@
* Copyright (C) 2026 RISCstar Ltd.
*/
-&uart0 {
- bootph-pre-ram;
-};
-
-&osc_32k {
- bootph-pre-ram;
-};
-
-&vctcxo_1m {
- bootph-pre-ram;
-};
-
-&vctcxo_3m {
- bootph-pre-ram;
-};
-
-&vctcxo_24m {
- bootph-pre-ram;
-};
-
-&syscon_mpmu {
- bootph-pre-ram;
-};
-
-&pll {
- bootph-pre-ram;
-};
-
-&syscon_apmu {
- bootph-pre-ram;
-};
-
-&syscon_apbc {
- bootph-pre-ram;
-};
-
-&i2c2 {
- bootph-pre-ram;
-
- eeprom@50 {
- bootph-pre-ram;
- };
-};
-
/*
* The kernel pmic@41 nodes use the standard regulator-* properties only.
* The SPL board code looks up the bucks that DDR training depends on by
@@ -77,13 +33,3 @@
};
};
};
-
-&emmc {
- bootph-pre-ram;
- max-frequency = <204800000>;
-};
-
-&sdhci0 {
- bootph-pre-ram;
- max-frequency = <204800000>;
-};
diff --git a/arch/riscv/dts/k1-musepi-pro-u-boot.dtsi b/arch/riscv/dts/k1-musepi-pro-u-boot.dtsi
index ddea04a8e3e..834d9f46b48 100644
--- a/arch/riscv/dts/k1-musepi-pro-u-boot.dtsi
+++ b/arch/riscv/dts/k1-musepi-pro-u-boot.dtsi
@@ -3,75 +3,6 @@
* Copyright (C) 2026 RISCstar Ltd.
*/
-#include <dt-bindings/clock/spacemit,k1-syscon.h>
-
-/ {
- aliases {
- console = &uart0;
- };
-};
-
-&syscon_mpmu {
- clocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>, <&vctcxo_24m>,
- <&pll CLK_PLL1_D4>;
- clock-names = "osc", "vctcxo_1m", "vctcxo_3m", "vctcxo_24m",
- "pll1_d4";
-};
-
-&syscon_apbc {
- clocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>, <&vctcxo_24m>,
- <&pll CLK_PLL1_D4>,
- <&syscon_mpmu CLK_PLL1_31P5>,
- <&syscon_apmu CLK_PMUA_ACLK>;
- clock-names = "osc", "vctcxo_1m", "vctcxo_3m", "vctcxo_24m",
- "pll1_d4", "pll1_d78_31p5", "pmua_aclk";
-};
-
-&uart0 {
- bootph-pre-ram;
-};
-
-&osc_32k {
- bootph-pre-ram;
-};
-
-&vctcxo_1m {
- bootph-pre-ram;
-};
-
-&vctcxo_3m {
- bootph-pre-ram;
-};
-
-&vctcxo_24m {
- bootph-pre-ram;
-};
-
-&syscon_mpmu {
- bootph-pre-ram;
-};
-
-&pll {
- bootph-pre-ram;
-};
-
-&syscon_apmu {
- bootph-pre-ram;
-};
-
-&syscon_apbc {
- bootph-pre-ram;
-};
-
-&i2c2 {
- bootph-pre-ram;
-
- eeprom@50 {
- bootph-pre-ram;
- status = "okay";
- };
-};
-
&i2c8 {
bootph-pre-ram;
status = "okay";
@@ -112,13 +43,3 @@
status = "okay";
};
};
-
-&emmc {
- bootph-pre-ram;
- max-frequency = <204800000>;
-};
-
-&sdhci0 {
- bootph-pre-ram;
- max-frequency = <204800000>;
-};
diff --git a/arch/riscv/dts/spacemit-k1-u-boot.dtsi b/arch/riscv/dts/spacemit-k1-u-boot.dtsi
index 0d92edf9fc1..c084e15cb94 100644
--- a/arch/riscv/dts/spacemit-k1-u-boot.dtsi
+++ b/arch/riscv/dts/spacemit-k1-u-boot.dtsi
@@ -3,11 +3,87 @@
* Copyright (C) 2026 RISCstar Ltd.
*/
+#include <dt-bindings/clock/spacemit,k1-syscon.h>
+
/ {
memory@0 {
device_type = "memory";
reg = <0x00000000 0x00000000 0x00000000 0x80000000>;
};
+
+ aliases {
+ console = &uart0;
+ };
+};
+
+&syscon_mpmu {
+ clocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>, <&vctcxo_24m>,
+ <&pll CLK_PLL1_D4>;
+ clock-names = "osc", "vctcxo_1m", "vctcxo_3m", "vctcxo_24m",
+ "pll1_d4";
+};
+
+&syscon_apbc {
+ clocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>, <&vctcxo_24m>,
+ <&pll CLK_PLL1_D4>,
+ <&syscon_mpmu CLK_PLL1_31P5>,
+ <&syscon_apmu CLK_PMUA_ACLK>;
+ clock-names = "osc", "vctcxo_1m", "vctcxo_3m", "vctcxo_24m",
+ "pll1_d4", "pll1_d78_31p5", "pmua_aclk";
+};
+
+&uart0 {
+ bootph-pre-ram;
+};
+
+&osc_32k {
+ bootph-pre-ram;
+};
+
+&vctcxo_1m {
+ bootph-pre-ram;
+};
+
+&vctcxo_3m {
+ bootph-pre-ram;
+};
+
+&vctcxo_24m {
+ bootph-pre-ram;
+};
+
+&syscon_mpmu {
+ bootph-pre-ram;
+};
+
+&pll {
+ bootph-pre-ram;
+};
+
+&syscon_apmu {
+ bootph-pre-ram;
+};
+
+&syscon_apbc {
+ bootph-pre-ram;
+};
+
+&i2c2 {
+ bootph-pre-ram;
+
+ eeprom@50 {
+ bootph-pre-ram;
+ };
+};
+
+&emmc {
+ bootph-pre-ram;
+ max-frequency = <204800000>;
+};
+
+&sdhci0 {
+ bootph-pre-ram;
+ max-frequency = <204800000>;
};
#include "spacemit-k1-binman.dtsi"
--
2.56.1
next prev parent reply other threads:[~2026-11-23 19:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 19:36 [PATCH v2 0/6] riscv: spacemit: Add GPIO and pinctrl support in SPL Anand Moon
2026-11-23 19:36 ` [PATCH v2 1/6] riscv: dts: spacemit: k1: Move common U-Boot nodes to shared DTSI Anand Moon
2026-11-23 19:37 ` [PATCH v2 2/6] riscv: dts: spacemit: k1-musepi-pro: Drop redundant DT overrides Anand Moon
2026-11-23 19:37 ` Anand Moon [this message]
2026-11-23 19:37 ` [PATCH v2 4/6] pinctrl: spacemit: Add SPL support for K1/K3 pinctrl driver Anand Moon
2026-11-24 10:52 ` Yixun Lan
2026-11-25 3:07 ` Anand Moon
2026-11-23 19:37 ` [PATCH v2 5/6] gpio: spacemit: Add SPL support for K1/K3 GPIO driver Anand Moon
2026-11-24 10:53 ` Yixun Lan
2026-11-23 19:37 ` [PATCH v2 6/6] riscv: spacemit: k1: Enable GPIO and pinctrl support in SPL Anand Moon
2026-11-24 6:33 ` Junhui Liu
2026-11-24 7:02 ` Anand Moon
2026-11-25 15:35 ` [PATCH v2 0/6] riscv: spacemit: Add " Anand Moon
2026-11-25 16:23 ` E Shattow
2026-11-26 6:04 ` 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=20261123193714.5096-4-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=guodong@riscstar.com \
--cc=leo.liang@sifive.com \
--cc=me@ziyao.cc \
--cc=raymond.mao@riscstar.com \
--cc=tim609@andestech.com \
--cc=trini@konsulko.com \
--cc=u-boot-spacemit@groups.io \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).