From 30fccdcbcbf35b50f2f33c79739ad825ca895b01 Mon Sep 17 00:00:00 2001 From: Dario Binacchi Date: Fri, 29 May 2026 17:31:54 +0200 Subject: ARM: dts: stm32: add U-Boot specific dtsi for stm32mp157f-dk2 The STM32MP157F-DK2 board is a direct derivative of the STM32MP157C-DK2. As explained by ST [1], the "STM32MP157F-DK2 is assembled with latest STM32MP15 RevZ cut which is the only one available for new product now. The major differences in this 'F' variant SoC are the increased max frequency of the Cortex-A7 cores and the correction of some HW bugs (Device Rev.Z, see errata ES0438)". On the software/architecture side, this variant utilizes SCMI (System Control and Management Interface) for secure world resource management. As a consequence, the underlying stm32mp15-scmi.dtsi explicitly deletes several fixed clock nodes (such as clk_hse, clk_hsi, clk_lse, clk_lsi, and clk_csi), making it impossible to include stm32mp157c-dk2-u-boot.dtsi without triggering compilation errors due to these missing clock labels. So let's introduce a dedicated stm32mp157f-dk2-u-boot.dtsi that directly defines the fwu-mdata node. This provides the necessary FWU metadata configuration required to allow automatic A/B bank selection, supported for STM32MP15 boards by commit 560d8f32703f ("board: st: stm32mp15: support dynamic A/B bank bootup"). [1] https://community.st.com/t5/stm32-mpus-products-and-hardware/i-m-wondering-what-s-the-difference-point-between-stm32mp157c/td-p/213460 Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard --- arch/arm/dts/stm32mp157f-dk2-u-boot.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 arch/arm/dts/stm32mp157f-dk2-u-boot.dtsi diff --git a/arch/arm/dts/stm32mp157f-dk2-u-boot.dtsi b/arch/arm/dts/stm32mp157f-dk2-u-boot.dtsi new file mode 100644 index 00000000000..77805417bfa --- /dev/null +++ b/arch/arm/dts/stm32mp157f-dk2-u-boot.dtsi @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2026 Amarula Solutions, Dario Binacchi + */ + +/ { + fwu-mdata { + compatible = "u-boot,fwu-mdata-gpt"; + fwu-mdata-store = <&sdmmc1>; + }; +}; -- cgit v1.3.1 From 1d6717779c0eb13bdf280b4bb084de24ec8c0bf1 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Wed, 17 Jun 2026 04:44:59 +0200 Subject: MAINTAINERS: Replace STM32 and STPMIC with N: Use N: to match on all stm/stm32/stpmic1 files, drop the large list of entries which represent the same set of relevant files and miss a few in the process. Signed-off-by: Marek Vasut Reviewed-by: Patrice Chotard --- MAINTAINERS | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index eb48eea55c5..a09e8fdcce0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -659,46 +659,12 @@ M: Patrice Chotard L: uboot-stm32@st-md-mailman.stormreply.com (moderated for non-subscribers) T: git https://git.u-boot-project.org/u-boot/custodians/u-boot-stm.git S: Maintained -F: arch/arm/mach-stm32mp/ F: doc/board/st/ -F: drivers/adc/stm32-adc* -F: drivers/clk/stm32/ -F: drivers/gpio/stm32_gpio.c -F: drivers/hwspinlock/stm32_hwspinlock.c -F: drivers/i2c/stm32f7_i2c.c -F: drivers/mailbox/stm32-ipcc.c -F: drivers/memory/stm32-omm.c -F: drivers/misc/stm32mp_fuse.c -F: drivers/misc/stm32_rcc.c -F: drivers/mmc/stm32_sdmmc2.c -F: drivers/mtd/nand/raw/stm32_fmc2_nand.c -F: drivers/phy/phy-stm32-usbphyc.c -F: drivers/pinctrl/pinctrl_stm32.c -F: drivers/power/pmic/stpmic1.c -F: drivers/power/regulator/stm32-vrefbuf.c -F: drivers/power/regulator/stpmic1.c -F: drivers/ram/stm32mp1/ -F: drivers/remoteproc/stm32_copro.c -F: drivers/reset/stm32/ F: drivers/rng/optee_rng.c -F: drivers/rng/stm32_rng.c -F: drivers/rtc/stm32_rtc.c -F: drivers/serial/serial_stm32.* -F: drivers/spi/stm32_ospi.c -F: drivers/spi/stm32_qspi.c -F: drivers/spi/stm32_spi.c -F: drivers/video/stm32/stm32_ltdc.c -F: drivers/video/stm32/stm32_lvds.c -F: drivers/watchdog/stm32mp_wdt.c -F: include/dt-bindings/clock/stm32fx-clock.h -F: include/dt-bindings/clock/stm32mp* -F: include/dt-bindings/pinctrl/stm32-pinfunc.h -F: include/dt-bindings/reset/stm32mp* -F: include/stm32_rcc.h F: tools/logos/st.bmp -F: tools/stm32image.c N: stm N: stm32 +N: stpmic ARM SUNXI M: Andre Przywara -- cgit v1.3.1 From 894dd2a95ecf87d933fd5508c225193b66b6404d Mon Sep 17 00:00:00 2001 From: Sean Nyekjaer Date: Thu, 18 Jun 2026 11:29:19 +0200 Subject: stm32mp1: use debug() for image entry point message The stm32mp1 specific code prints the image entry point unconditionally before jumping to the next-stage image, unlike the generic SPL implementation in common/spl/spl.c. Signed-off-by: Sean Nyekjaer Reviewed-by: Patrice Chotard --- arch/arm/mach-stm32mp/stm32mp1/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/stm32mp1/cpu.c b/arch/arm/mach-stm32mp/stm32mp1/cpu.c index 4d81c70b230..2446fbb0763 100644 --- a/arch/arm/mach-stm32mp/stm32mp1/cpu.c +++ b/arch/arm/mach-stm32mp/stm32mp1/cpu.c @@ -360,7 +360,7 @@ void __noreturn jump_to_image(struct spl_image_info *spl_image) image_entry_stm32_t image_entry = (image_entry_stm32_t)spl_image->entry_point; - printf("image entry point: 0x%lx\n", spl_image->entry_point); + debug("image entry point: 0x%lx\n", spl_image->entry_point); image_entry(romapi); } #endif -- cgit v1.3.1 From f263d54347dcb88f5d7b0e868b84e0e4481743cf Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Mon, 22 Jun 2026 02:05:10 +0200 Subject: treewide: Fix STMicroelectronics spelling Fix STMicroelectronics spelling in comments. Signed-off-by: Marek Vasut Reviewed-by: Quentin Schulz --- include/configs/stm32mp21_st_common.h | 2 +- include/configs/stm32mp23_st_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/stm32mp21_st_common.h b/include/configs/stm32mp21_st_common.h index c601f2d7fb6..bca4c4b5337 100644 --- a/include/configs/stm32mp21_st_common.h +++ b/include/configs/stm32mp21_st_common.h @@ -2,7 +2,7 @@ /* * Copyright (C) 2026, STMicroelectronics - All Rights Reserved * - * Configuration settings for the STMicroelectonics STM32MP21x boards + * Configuration settings for the STMicroelectronics STM32MP21x boards */ #ifndef __CONFIG_STM32MP21_ST_COMMON_H__ diff --git a/include/configs/stm32mp23_st_common.h b/include/configs/stm32mp23_st_common.h index 0c5c2fbef87..547c230ae90 100644 --- a/include/configs/stm32mp23_st_common.h +++ b/include/configs/stm32mp23_st_common.h @@ -2,7 +2,7 @@ /* * Copyright (C) 2025, STMicroelectronics - All Rights Reserved * - * Configuration settings for the STMicroelectonics STM32MP23x boards + * Configuration settings for the STMicroelectronics STM32MP23x boards */ #ifndef __CONFIG_STM32MP23_ST_COMMON_H__ -- cgit v1.3.1 From 295f19cae3f4cbebdb8685e3fe063c983a46fd1d Mon Sep 17 00:00:00 2001 From: Sean Nyekjaer Date: Thu, 18 Jun 2026 11:28:48 +0200 Subject: stm32mp1: spl: support loading U-Boot proper from eMMC hardware partitions When CONFIG_SUPPORT_EMMC_BOOT is enabled, make spl_mmc_boot_mode() return MMCSD_MODE_EMMCBOOT instead of MMCSD_MODE_RAW. This allows the SPL MMC loader to honor the standard configuration options CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION and CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR when locating U-Boot proper, whether it is stored in a GPT partition or in an eMMC hardware boot partition. As a result, both U-Boot SPL and U-Boot proper can be placed in the eMMC hardware boot partitions. Signed-off-by: Sean Nyekjaer Reviewed-by: Patrice Chotard --- arch/arm/mach-stm32mp/stm32mp1/spl.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-stm32mp/stm32mp1/spl.c b/arch/arm/mach-stm32mp/stm32mp1/spl.c index d2e41b8e65f..d2af705a5d1 100644 --- a/arch/arm/mach-stm32mp/stm32mp1/spl.c +++ b/arch/arm/mach-stm32mp/stm32mp1/spl.c @@ -56,11 +56,6 @@ u32 spl_boot_device(void) return BOOT_DEVICE_MMC1; } -u32 spl_mmc_boot_mode(struct mmc *mmc, const u32 boot_device) -{ - return MMCSD_MODE_RAW; -} - #ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION int spl_mmc_boot_partition(const u32 boot_device) { -- cgit v1.3.1