U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephan Gerhold <stephan.gerhold@linaro.org>
To: Linus Walleij <linusw@kernel.org>
Cc: u-boot@lists.u-boot-project.org, Tom Rini <trini@konsulko.com>,
	Stefan Hansson <newbyte@postmarketos.org>
Subject: Re: [PATCH v5 10/13] arm: u8500: Switch Stemmy to upstream Janice device tree
Date: Mon, 24 Aug 2026 15:55:36 +0200	[thread overview]
Message-ID: <aoxNWLhEtchd5Q5X@linaro.org> (raw)
In-Reply-To: <20260823-ux500-external-sdcard-v5-10-07ca794e2b94@kernel.org>

On Sun, Aug 23, 2026 at 10:39:29PM +0200, Linus Walleij wrote:
> Use the upstream Samsung Janice device tree as the initial target for
> the Stemmy configuration. This also prepares the board to share the
> upstream Ux500 Samsung device trees with Linux.
> 
> U-Boot does not yet implement the U8500 clock providers used by the
> upstream device tree. Add a U-Boot-specific overlay with the known MTU
> clock rate and fixed input clocks for the external SD and internal eMMC
> controllers. Remove the superseded downstream Stemmy and DBx500 device
> tree files, and disable the unused WLAN SDIO controller for U-Boot.
> 
> Signed-off-by: Linus Walleij <linusw@kernel.org>
> ---
>  arch/arm/dts/Makefile                     |    1 -
>  arch/arm/dts/ste-dbx5x0-u-boot.dtsi       |   38 -
>  arch/arm/dts/ste-dbx5x0.dtsi              | 1144 -----------------------------
>  arch/arm/dts/ste-ux500-samsung-stemmy.dts |   36 -
>  arch/arm/dts/u8500-u-boot.dtsi            |   30 +
>  configs/stemmy_defconfig                  |    3 +-
>  6 files changed, 32 insertions(+), 1220 deletions(-)
> 
> [...]
> diff --git a/arch/arm/dts/ste-ux500-samsung-stemmy.dts b/arch/arm/dts/ste-ux500-samsung-stemmy.dts
> deleted file mode 100644
> index 14be86086b22..000000000000
> --- a/arch/arm/dts/ste-ux500-samsung-stemmy.dts
> +++ /dev/null
> @@ -1,36 +0,0 @@
> -// SPDX-License-Identifier: GPL-2.0-or-later
> -/dts-v1/;
> -
> -#include "ste-dbx5x0-u-boot.dtsi"
> -#include "ste-ab8500.dtsi"
> -
> -/ {
> -	compatible = "samsung,stemmy", "st-ericsson,u8500";
> -
> -	chosen {
> -		stdout-path = &serial2;
> -	};
> -
> -	soc {
> -		/* eMMC */
> -		mmc@80005000 {
> -			status = "okay";
> -
> -			arm,primecell-periphid = <0x10480180>;
> -			max-frequency = <100000000>;
> -			bus-width = <8>;
> -
> -			non-removable;
> -			cap-mmc-highspeed;
> -		};
> -
> -		/* Debugging console UART */
> -		uart@80007000 {
> -			status = "okay";
> -		};
> -
> -		mcde@a0350000 {
> -			status = "okay";
> -		};
> -	};
> -};
> diff --git a/arch/arm/dts/u8500-u-boot.dtsi b/arch/arm/dts/u8500-u-boot.dtsi
> new file mode 100644
> index 000000000000..9b69b4fd257e
> --- /dev/null
> +++ b/arch/arm/dts/u8500-u-boot.dtsi
> @@ -0,0 +1,30 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +
> +/ {
> +	/* FIXME: Remove this when the U8500 clock driver is implemented */
> +	sdmmcclk: sdmmcclk {
> +		compatible = "fixed-clock";
> +		#clock-cells = <0>;
> +		clock-frequency = <100000000>;
> +	};
> +
> +	soc {
> +		mtu@a03c6000 {
> +			clock-frequency = <133000000>;
> +		};
> +
> +		mmc@80126000 {
> +			clocks = <&sdmmcclk>;
> +		};
> +
> +		mmc@80118000 {
> +			status = "disabled";
> +		};

Nitpick: Maybe you can add a comment here to explain this

			/* Typically SDIO, unneeded in U-Boot */

Although long-term I think we should try to drop all of these overrides
and handle workarounds in the board code or drivers if necessary. With
EFI, some people may try to boot generic distro images that don't
override the DTB, in that case Linux will boot with the original U-Boot
DTB. E.g. arch/arm/mach-snapdragon/of_fixup.c has some DTB workarounds
that are applied only to U-Boot and then discarded when booting Linux
with the U-Boot DTB.

But that's something for a future patch series, not this one. :-)

Thanks,
Stephan

  reply	other threads:[~2026-08-24 13:55 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-23 20:39 [PATCH v5 00/13] arm: u8500: Enable upstream DT based SD card boot Linus Walleij
2026-08-23 20:39 ` [PATCH v5 01/13] pinctrl: Add compact Nomadik pin controller Linus Walleij
2026-08-24 13:17   ` Stephan Gerhold
2026-08-23 20:39 ` [PATCH v5 02/13] mmc: arm_pl180: Configure Ux500 signal direction Linus Walleij
2026-08-23 20:39 ` [PATCH v5 03/13] mmc: arm_pl180: Gate idle card clocks Linus Walleij
2026-08-24 13:25   ` Stephan Gerhold
2026-08-24 19:50     ` Linus Walleij
2026-08-23 20:39 ` [PATCH v5 04/13] power: regulator: Add driver voltage clamp callback Linus Walleij
2026-08-23 20:39 ` [PATCH v5 05/13] mmc: arm_pl180: Set initial supply voltages Linus Walleij
2026-08-23 20:39 ` [PATCH v5 06/13] mmc: arm_pl180: Power down card supplies at OS handoff Linus Walleij
2026-08-24 13:30   ` Stephan Gerhold
2026-08-24 20:01     ` Linus Walleij
2026-08-25  7:43       ` Stephan Gerhold
2026-08-23 20:39 ` [PATCH v5 07/13] power: regulator: Add AB8500 AUX3 support Linus Walleij
2026-08-24 13:45   ` Stephan Gerhold
2026-08-24 20:04     ` Linus Walleij
2026-08-23 20:39 ` [PATCH v5 08/13] arm: u8500: Enable SD card regulators Linus Walleij
2026-08-23 20:39 ` [PATCH v5 09/13] configs: stemmy: Boot EFI from external SD card Linus Walleij
2026-08-24 13:46   ` Stephan Gerhold
2026-08-23 20:39 ` [PATCH v5 10/13] arm: u8500: Switch Stemmy to upstream Janice device tree Linus Walleij
2026-08-24 13:55   ` Stephan Gerhold [this message]
2026-08-24 20:21     ` Linus Walleij
2026-08-23 20:39 ` [PATCH v5 11/13] ARM: dts: ux500: Make panel regulators have unique names Linus Walleij
2026-08-23 20:39 ` [PATCH v5 12/13] ARM: dts: ux500: Harmonize GPIO key names Linus Walleij
2026-08-23 20:39 ` [PATCH v5 13/13] arm: u8500: Package Stemmy device trees in FIT Linus Walleij
2026-08-24 13:59   ` Stephan Gerhold

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=aoxNWLhEtchd5Q5X@linaro.org \
    --to=stephan.gerhold@linaro.org \
    --cc=linusw@kernel.org \
    --cc=newbyte@postmarketos.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox