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 1/6] riscv: dts: spacemit: k1: Move common U-Boot nodes to shared DTSI
Date: Mon, 23 Nov 2026 19:36:59 +0000 [thread overview]
Message-ID: <20261123193714.5096-2-linux.amoon@gmail.com> (raw)
In-Reply-To: <20261123193714.5096-1-linux.amoon@gmail.com>
The Banana Pi BPI-F3 and MusePi Pro U-Boot device trees contain
identical Binman descriptions and memory node overrides.
Move the Binman description into spacemit-k1-binman.dtsi and the
memory override into spacemit-k1-u-boot.dtsi.
Include the common U-Boot device tree through DEVICE_TREE_INCLUDES
to avoid duplicating these definitions in the board-specific files.
This is a device tree reorganization with no intended functional
changes.
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 | 32 -----------------------
arch/riscv/dts/k1-musepi-pro-u-boot.dtsi | 29 --------------------
arch/riscv/dts/spacemit-k1-binman.dtsi | 29 ++++++++++++++++++++
arch/riscv/dts/spacemit-k1-u-boot.dtsi | 13 +++++++++
configs/spacemit_k1_defconfig | 1 +
5 files changed, 43 insertions(+), 61 deletions(-)
create mode 100644 arch/riscv/dts/spacemit-k1-binman.dtsi
create mode 100644 arch/riscv/dts/spacemit-k1-u-boot.dtsi
diff --git a/arch/riscv/dts/k1-bananapi-f3-u-boot.dtsi b/arch/riscv/dts/k1-bananapi-f3-u-boot.dtsi
index 36c1bfc12fb..bc117f5987a 100644
--- a/arch/riscv/dts/k1-bananapi-f3-u-boot.dtsi
+++ b/arch/riscv/dts/k1-bananapi-f3-u-boot.dtsi
@@ -3,15 +3,6 @@
* Copyright (C) 2026 RISCstar Ltd.
*/
-#include "binman.dtsi"
-
-/ {
- memory@0 {
- device_type = "memory";
- reg = <0x00000000 0x00000000 0x00000000 0x80000000>;
- };
-};
-
&uart0 {
bootph-pre-ram;
};
@@ -96,26 +87,3 @@
bootph-pre-ram;
max-frequency = <204800000>;
};
-
-&binman {
- u-boot-spl-ddr {
- type = "section";
- filename = "u-boot-spl-ddr.bin";
- pad-byte = <0xff>;
-
- u-boot-spl {
- };
-
- ddr-fw {
- type = "blob";
- filename = "ddr_fw.bin";
- align = <64>;
- };
-
- u-boot-any {
- type = "section";
- size = <0>;
- offset = <0>;
- };
- };
-};
diff --git a/arch/riscv/dts/k1-musepi-pro-u-boot.dtsi b/arch/riscv/dts/k1-musepi-pro-u-boot.dtsi
index f2688a1868f..03cfed10521 100644
--- a/arch/riscv/dts/k1-musepi-pro-u-boot.dtsi
+++ b/arch/riscv/dts/k1-musepi-pro-u-boot.dtsi
@@ -4,7 +4,6 @@
*/
#include <dt-bindings/clock/spacemit,k1-syscon.h>
-#include "binman.dtsi"
/ {
aliases {
@@ -15,11 +14,6 @@
chosen {
stdout-path = "serial0:115200n8";
};
-
- memory@0 {
- device_type = "memory";
- reg = <0x00000000 0x00000000 0x00000000 0x80000000>;
- };
};
&syscon_mpmu {
@@ -133,26 +127,3 @@
bootph-pre-ram;
max-frequency = <204800000>;
};
-
-&binman {
- u-boot-spl-ddr {
- type = "section";
- filename = "u-boot-spl-ddr.bin";
- pad-byte = <0xff>;
-
- u-boot-spl {
- };
-
- ddr-fw {
- type = "blob";
- filename = "ddr_fw.bin";
- align = <64>;
- };
-
- u-boot-any {
- type = "section";
- size = <0>;
- offset = <0>;
- };
- };
-};
diff --git a/arch/riscv/dts/spacemit-k1-binman.dtsi b/arch/riscv/dts/spacemit-k1-binman.dtsi
new file mode 100644
index 00000000000..2ff6bd2cc43
--- /dev/null
+++ b/arch/riscv/dts/spacemit-k1-binman.dtsi
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * Copyright (C) 2026 RISCstar Ltd.
+ */
+
+#include "binman.dtsi"
+
+&binman {
+ u-boot-spl-ddr {
+ type = "section";
+ filename = "u-boot-spl-ddr.bin";
+ pad-byte = <0xff>;
+
+ u-boot-spl {
+ };
+
+ ddr-fw {
+ type = "blob";
+ filename = "ddr_fw.bin";
+ align = <64>;
+ };
+
+ u-boot-any {
+ type = "section";
+ size = <0>;
+ offset = <0>;
+ };
+ };
+};
diff --git a/arch/riscv/dts/spacemit-k1-u-boot.dtsi b/arch/riscv/dts/spacemit-k1-u-boot.dtsi
new file mode 100644
index 00000000000..0d92edf9fc1
--- /dev/null
+++ b/arch/riscv/dts/spacemit-k1-u-boot.dtsi
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * Copyright (C) 2026 RISCstar Ltd.
+ */
+
+/ {
+ memory@0 {
+ device_type = "memory";
+ reg = <0x00000000 0x00000000 0x00000000 0x80000000>;
+ };
+};
+
+#include "spacemit-k1-binman.dtsi"
diff --git a/configs/spacemit_k1_defconfig b/configs/spacemit_k1_defconfig
index d9cb6c8cebc..0f6e9284259 100644
--- a/configs/spacemit_k1_defconfig
+++ b/configs/spacemit_k1_defconfig
@@ -66,6 +66,7 @@ CONFIG_CMD_EXT4=y
CONFIG_CMD_FAT=y
CONFIG_EFI_PARTITION=y
CONFIG_OF_UPSTREAM=y
+CONFIG_DEVICE_TREE_INCLUDES="spacemit-k1-u-boot.dtsi"
CONFIG_OF_LIST="spacemit/k1-bananapi-f3 spacemit/k1-musepi-pro"
CONFIG_MULTI_DTB_FIT=y
CONFIG_ENV_OVERWRITE=y
--
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 ` Anand Moon [this message]
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 ` [PATCH v2 3/6] riscv: dts: spacemit: k1: Move common U-Boot properties to shared DTSI Anand Moon
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-2-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 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.