From: E Shattow <e@freeshell.de>
To: Anand Moon <linux.amoon@gmail.com>, u-boot@lists.u-boot-project.org
Cc: 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>,
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: Re: [PATCH v3 03/13] riscv: dts: spacemit: k1: Move common U-Boot properties to shared DTSI
Date: Fri, 27 Nov 2026 03:26:05 -0800 [thread overview]
Message-ID: <3c8b9195-6d18-4399-b1bd-e6ac1ad37246@freeshell.de> (raw)
In-Reply-To: <20261127103030.4647-4-linux.amoon@gmail.com>
Hi Anand,
On 11/27/26 02:30, Anand Moon wrote:
> 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.
No, this "reduce duplication" increases the duplication of work in
future and likely broken outcome, also making git bisect confusing to
compare. If a node sits in k1-bananapi-f3.dts devicetree-rebasing and
needs a bootph-pre-ram hint then it should get the override in u-boot
k1-bananapi-f3-u-boot.dtsi; if there is e.g. "k1-common.dtsi" included
by *some* boards' dts then it is still per-board and not
spacemit-k1-u-boot.dtsi specific, for u-boot override purposes. What I
can think of that should be in spacemit-k1-u-boot.dtsi u-boot override
are k1.dtsi specific nodes.
If they are indeed common then upstream would have consolidated this
firstly. I would accept a link to LKML discussion where such
"consolidation" has been reviewed and queued for-next in the case where
you are implementing this here knowing that, for development cycle
schedule considerations, it is going to be the same as the shape of
upstream development that has not yet been applied in a merge window for
the Linux development cycle.
>
> 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"
As above, changes requested please.
-E
next prev parent reply other threads:[~2026-11-27 11:26 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 [this message]
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=3c8b9195-6d18-4399-b1bd-e6ac1ad37246@freeshell.de \
--to=e@freeshell.de \
--cc=DaveWK225@protonmail.com \
--cc=alan.tseng.cs@gmail.com \
--cc=dlan@kernel.org \
--cc=eric.chung@riscstar.com \
--cc=guodong@riscstar.com \
--cc=junhui.liu@pigmoral.tech \
--cc=leo.liang@sifive.com \
--cc=linux.amoon@gmail.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.