Re: [PATCH 09/10] ARM: dts: stm32: Add SPL specifics for DH STM32MP13xx DHCOR DHSBC

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:21, Marek Vasut wrote: > Add SPL specific DT additions to DH STM32MP13xx DHCOR DHSBC . These > include I2C3 configuration which is required to access the PMIC, > PMIC regulator and QSPI NOR bootph-all properties to allow SPL to > configure PMIC buck regulators and load from QSPI NO

Re: [PATCH 10/10] ARM: dts: stm32: Switch defconfig to SPL for DH STM32MP13xx DHCOR DHSBC

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:21, Marek Vasut wrote: > Update defconfig to make use of U-Boot SPL to initialize DH STM32MP13xx > DHCOM DHSBC SoM and board. This is largely a move of SPL enablement from > DH STM32MP15xx DHSOM defconfigs into generic DH STM32MP1xx defconfig . > Support for SPI NOR chips which are

Re: [PATCH 08/10] ARM: dts: stm32: Add STM32MP13x SPL specific DT additions

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:21, Marek Vasut wrote: > Add DT additions required by U-Boot SPL to bring up the hardware. > This includes binman node to generate STM32 Image v2.0 which can be > booted by the BootROM, clock entries used by the SPL clock driver > during clock tree initialization, and syscon-reboot

Re: [PATCH 07/10] ARM: dts: stm32: Add 512 MiB DRAM settings for DH STM32MP13xx DHCOR DHSBC

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:21, Marek Vasut wrote: > Add DRAM settings for 512 MiB of DRAM variant of DH STM32MP13xx DHCOR DHSBC. > > Signed-off-by: Marek Vasut > --- > Cc: Cheick Traore > Cc: Fabrice Gasnier > Cc: Gatien Chevallier > Cc: Lionel Debieve > Cc: Pascal Zimmermann > Cc: Patrice Chotard >

Re: [PATCH 06/10] ARM: dts: stm32: Add stm32mp13-ddr.dtsi template

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:21, Marek Vasut wrote: > Factor out common parts of STM32MP15xx DRAM controller configuration DT > description into stm32mp1-ddr.dtsi and introduce stm32mp13-ddr.dtsi which > describes STM32MP13xx DRAM controller configuration in DT. > > Signed-off-by: Marek Vasut > --- > Cc: Che

Re: [PATCH 05/10] ARM: stm32: Add STM32MP13xx debug UART initialization

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:21, Marek Vasut wrote: > Add default STM32MP13xx debug UART initialization. This is similar > to STM32MP15xx debug UART initialization, except the RCC registers > are at different offsets and the UART pinmux pins are different. > > Signed-off-by: Marek Vasut > --- > Cc: Cheick Tr

Re: [PATCH 04/10] ARM: stm32: Add STM32MP13xx PMIC initialization for DDR3 DRAM type

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:21, Marek Vasut wrote: > The STM32MP13xx PMIC initialization for DDR3 DRAM type is similar > to the STM32MP15xx PMIC initialization, except the VTT rail is not > enabled. Fill in the STM32MP13xx support. > > Signed-off-by: Marek Vasut > --- > Cc: Cheick Traore > Cc: Fabrice Gasn

Re: [PATCH 03/10] ARM: stm32: Limit early cache enablement in SPL to STM32MP15xx

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:21, Marek Vasut wrote: > The STM32MP13xx SRAM size is half that the SRAM size on STM32MP15xx, > disable early dcache start on STM32MP13xx as the TLB itself takes > about a quarter of the SPL size. The dcache will be enabled later, > once DRAM is available and TLB can be placed in D

Re: [PATCH v1 0/2] Add Qualcomm Watchdog Driver Support

2025-05-27 Thread Balaji Selvanathan
Hi Neil, The submission you shared misses timeout setting support in the watchdog driver. So have added that support (on top of the submission you shared: https://lore.kernel.org/all/20250422-b4-qcom-wdt-v3-1-730d4d5a8...@paulsajna.com/) and created a new patch: https://lore.kernel.org/u-boot

[PATCH] i2c: mux: Fix the crash when the i2c-arbitrator node is present

2025-05-27 Thread Venkatesh Yadav Abbarapu
Observing the crash when we add the i2c-arbitrator node in the device tree as per the DT bindings. The issue is with the child node of i2c-arbitrator@72 i.e., i2c@f195->i2c-arbitrator@72->i2c-arb, as the arbitrator uses the uclass of mux(UCLASS_I2C_MUX) and the mux uclass driver checks for the

Re: [PATCH v3 1/4] efi: add EFI_SYSTEM_TABLE_POINTER for debug

2025-05-27 Thread Paul Liu
Hi Ilias, On Mon, 26 May 2025 at 15:01, Ilias Apalodimas wrote: > Hi Paul, > > [...] > > > > bool > > > > +config EFI_DEBUG_SUPPORT_TABLE > > + bool "EFI Debug Support Table" > > + help > > + Select this option if you want to setup the EFI Debug Support > > +

Re: [PATCH v3 3/4] lib: efi_loader: efi_memory.c: add efi_realloc() for realloc memory

2025-05-27 Thread Paul Liu
On Fri, 23 May 2025 at 14:44, Simon Glass wrote: > Hi, > > On Thu, 22 May 2025 at 03:18, Ying-Chun Liu (PaulLiu) > wrote: > > > > From: "Ying-Chun Liu (PaulLiu)" > > > > Add efi_realloc() for realloc memory that previously alloc by > efi_alloc(). > > > > Signed-off-by: Ying-Chun Liu (PaulLiu)

Re: [PATCH] makefile: fix Clang link error when RSA_PUBLIC_KEY_PARSER is selected

2025-05-27 Thread Tom Rini
On Tue, May 27, 2025 at 02:05:05PM -0700, Raymond Mao wrote: > MbedTLS bignum module needs '__udivti3' which is a 128-bit division > function provided by the compiler runtime, typically libgcc for GCC or > clang_rt.builtins for Clang. > Thus 'clang_rt.builtins' library is required when building us

[PATCH] include/dt-bindings/reset: Remove local version of bcm6318-reset.h

2025-05-27 Thread Tom Rini
Aside from SPDX tags, the only difference between our version of this header and upstream is that BCM6318_RST_HOSTMIPS was defined to 11 (the same as BCM6318_RST_PHYMIPS) and is now defined to 12. Signed-off-by: Tom Rini --- include/dt-bindings/reset/bcm6318-reset.h | 25 ---

[PATCH] atmel: Remove local

2025-05-27 Thread Tom Rini
We have this binding file in both include/dt-bindings/ and dts/upstream/include/dt-bindings. These files are identical save for the fact that we do not have commit adb2424d0d05 ("dt-bindings: clock: add clock definitions for Ralink SoCs") from the kernel applied. However, this change is rather impo

[PATCH 1/2] include/dt-bindings: Remove functionally identical headers

2025-05-27 Thread Tom Rini
As part of moving to using OF_UPSTREAM and so the upstream dt-bindings headers we have a number of these headers that are in our include directory and differ only in combinations of spacing changes and/or switching to SPDX license tags. We can safely remove the copies under include/dt-bindings now

[PATCH 2/2] include/dt-bindings: Remove strict subset headers

2025-05-27 Thread Tom Rini
As part of moving to using OF_UPSTREAM and so the upstream dt-bindings headers we have a number of these headers that are in our include directory and differ in being a strict subset of what is found upstream. We can safely remove the copies under include/dt-bindings now to prevent future conflicts

[PATCH 1/2] include/dt-bindings: Remove unused headers

2025-05-27 Thread Tom Rini
As part of moving to using OF_UPSTREAM and so the upstream dt-bindings headers we have a number of these headers that are in our include directory and not referenced by any code outside of dts/upstream. We can remove these now to prevent future conflicts. Signed-off-by: Tom Rini --- include/dt-b

[PATCH v8 1/1] Initial support for Wiznet W5500

2025-05-27 Thread verdun
From: Jean-Marie Verdun Add support for the Wiznet W5500 spi to ethernet controller Signed-off-by: Jean-Marie Verdun --- drivers/net/Kconfig | 9 + drivers/net/Makefile | 1 + drivers/net/w5500.c | 621 +++ 3 files changed, 631 insertions(+) creat

[PATCH v8 0/1] *** Initial Wiznet W5500 support ***

2025-05-27 Thread verdun
From: Jean-Marie Verdun v8 Fix error propagation from dm_spi_xfer calls and successors Fix memory allocation check into probe v7 Fix bug exposed by using LWIP TCP/IP as primary network backend v6 Switch all log to dev_dbg call v5 Remove of_to_plat init Remove unused cmd variable from probe Rem

[PATCH] armv8: fix Clang warning on writing 32-bit variable to a 64-bit register

2025-05-27 Thread Raymond Mao
Clang is stricter than GCC when it comes to inline assembly and expects the register to be written with explicitly same type of variable. Fixes: c0e1775a867c ("armv8: Add arch-specific sysinfo platform driver") Signed-off-by: Raymond Mao --- arch/arm/cpu/armv8/sysinfo.c | 2 +- 1 file changed, 1

[PATCH] makefile: fix Clang link error when RSA_PUBLIC_KEY_PARSER is selected

2025-05-27 Thread Raymond Mao
MbedTLS bignum module needs '__udivti3' which is a 128-bit division function provided by the compiler runtime, typically libgcc for GCC or clang_rt.builtins for Clang. Thus 'clang_rt.builtins' library is required when building using Clang. Fixes: 13de8483388c ("mbedtls: add mbedtls into the build

Re: Merging v6.15-dts to next

2025-05-27 Thread Tom Rini
On Tue, May 27, 2025 at 09:52:05AM -0600, Tom Rini wrote: > Hey all, > > With the Linux kernel release of v6.15 over the weekend, and v6.15-dts > now being tagged in the devicetree-rebasing repository I'm merging that > to the next branch now and expect to push it later today. This is now pushed

Re: [PATCH] Revert "ext4fs: Fix: Read outside partition error"

2025-05-27 Thread Tom Rini
On Mon, 26 May 2025 16:29:31 -0600, Tom Rini wrote: > The issue here is that the function read_allocated_block() will report > problems via a negative return value. If we say the return value is > stored in an lbaint_t that can no longer happen (and Coverity discovered > this by reporting a no eff

[PATCH RFC v2 7/8] tools: binman: ftest: fix tests that require non-faked ext blobs

2025-05-27 Thread Yannic Moog
By default, external blobs are faked. Some tests care only about more basic functionality. In those cases no external blobs should be faked. That would trigger a different (binman) case which is not in scope for those particular tests. Thus, disable faked blobs for those test cases. Signed-off-by:

Re: [ANN] U-Boot v2025.07-rc3 released

2025-05-27 Thread Tom Rini
On Tue, May 27, 2025 at 01:34:48PM -0600, Tom Rini wrote: > On Mon, May 26, 2025 at 04:03:11PM -0600, Tom Rini wrote: > ` > > Hey all, > > > > So it's release day and I have tagged and pushed things out. I will be > > updating the next branch shortly. There's still a few things that need > > to co

Re: [ANN] U-Boot v2025.07-rc3 released

2025-05-27 Thread Tom Rini
On Mon, May 26, 2025 at 04:03:11PM -0600, Tom Rini wrote: ` > Hey all, > > So it's release day and I have tagged and pushed things out. I will be > updating the next branch shortly. There's still a few things that need > to come in for the release, as fixes, but otherwise I think the next > branch

lwIP watchdog not being serviced

2025-05-27 Thread Tim Harvey
Hi Jerome, In my continued evaluation to see if I want to switch my boards over to use lwIP I've noticed that the watchdog does not get serviced during at least http/tftp which surprised me. This causes board resets when transferring large files such as disk images. It seems lwIP is missing some

Re: [PATCH 02/10] arm: mach-stm32: stm32h7: add initial Makefile

2025-05-27 Thread Patrice CHOTARD
On 5/8/25 23:23, Johannes Krottmayer wrote: > Add initial Makefile for the STM32H7 series: > > Currently it includes only one additional assembly source file > which is required for the STM32H747I-DISCO board. > > Signed-off-by: Johannes Krottmayer > Cc: Patrick Delaunay > Cc: Patrice Chotar

[PATCH v2] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2B board

2025-05-27 Thread Michael Trimarchi
Introduce the BSH SystemMaster (SMM) M2B board. Notably, the M2B is designed to leverage the existing device tree of its predecessor, the M2. The primary distinction arises from memory incompatibilities with the M2. To address this, we've implemented a configuration system that allows for selective

Re: [PATCH v2 2/4] watchdog: arm_smc_wdt: get wdt status through SMCWD_GET_TIMELEFT

2025-05-27 Thread Patrice CHOTARD
On 5/23/25 11:46, Antonio Borneo wrote: > The optional SMCWD_GET_TIMELEFT command can be used to detect if > the watchdog has already been started. > See the implementation in OP-TEE secure OS [1]. > > At probe time, check if the watchdog is already started and then > call wdt_set_force_autosta

Re: [GIT PULL] u-boot-riscv/master

2025-05-27 Thread Tom Rini
On Tue, May 27, 2025 at 10:40:53PM +0530, Mayuresh Chitale wrote: > On Mon, May 26, 2025 at 11:46 PM Tom Rini wrote: > > > > On Mon, May 26, 2025 at 11:04:02PM +0530, Mayuresh Chitale wrote: > > > On Mon, May 26, 2025 at 8:26 PM Tom Rini wrote: > > > > > > > > On Mon, May 26, 2025 at 10:17:54AM +

Re: QEMU & KVM broken for arm64

2025-05-27 Thread Simon Glass
Hi Ilias, On Sun, 25 May 2025 at 19:09, Simon Glass wrote: > > HI Ilias, > > On Wed, 21 May 2025 at 10:08, Ilias Apalodimas > wrote: > > > > Hi all, > > > > Starting from commit 53d5a221632e ("emulation: Use bloblist to hold > > tables") I can't boot U-Boot with QEMU (version 8.2.2) & KVM anymo

Re: [GIT PULL] u-boot-riscv/master

2025-05-27 Thread Mayuresh Chitale
On Mon, May 26, 2025 at 11:46 PM Tom Rini wrote: > > On Mon, May 26, 2025 at 11:04:02PM +0530, Mayuresh Chitale wrote: > > On Mon, May 26, 2025 at 8:26 PM Tom Rini wrote: > > > > > > On Mon, May 26, 2025 at 10:17:54AM +0100, Conor Dooley wrote: > > > > On Mon, May 26, 2025 at 09:02:46AM +0530, Ma

Re: lwip tftp not working on imx8mm

2025-05-27 Thread Tim Harvey
On Mon, May 26, 2025 at 6:25 AM Peter Robinson wrote: > > Hi Tim, > > > I've enabled LWIP on imx8mm_venice to see how it's doing and while > > dhcp/dns/ping/wget appear to work great, tftp is broken. > > > > Enabling LWIP_DEBUG shows the following: > > ip4_input: packet accepted on interface et >

Re: lwip tftp not working on imx8mm

2025-05-27 Thread Tim Harvey
On Mon, May 26, 2025 at 5:17 AM Jerome Forissier wrote: > > Hi Tim, > > On 5/23/25 20:31, Tim Harvey wrote: > > Hi Jerome, > > > > I've enabled LWIP on imx8mm_venice to see how it's doing and while > > dhcp/dns/ping/wget appear to work great, tftp is broken. > > > > Enabling LWIP_DEBUG shows the f

[PATCH v2 00/13] stm32mp25: Add clock and reset drivers support

2025-05-27 Thread Patrice Chotard
Add clock and reset drivers support for STM32MP2 platforms: - add SCMI clock protocol v2.0 support - introduce CONFIG_CLK_AUTO_ID flag to support unique clk ID when several clock providers are in use. - add STM32MP2 clock driver - add STM32MP2 reset driver - fix clock counter Test

Re: [PATCH 10/10] dts: upstream: arm: st: stm32h7-pinctrl: change pins for USART1

2025-05-27 Thread Patrice CHOTARD
On 5/8/25 23:24, Johannes Krottmayer wrote: > The pins for USART1 have must be changed to other values, to > support the STM32H747 discovery board. > > Signed-off-by: Johannes Krottmayer > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > dts/upstream/src/arm/st/stm32h7-pinctrl.dtsi | 4 ++

Re: Please pull u-boot-dm into -next

2025-05-27 Thread Tom Rini
On Tue, 27 May 2025 13:15:14 +0100, Simon Glass wrote: > This is for -next > > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/26346 > (note that x86 boards and RISC-V board don't work in your tree at present) > > https://dev.azure.com/simon0972/u-boot/_build/results?buildId=79&vi

Re: [PATCH 02/10] ARM: stm32: Add STM32MP13xx SPL hardware initialization

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:21, Marek Vasut wrote: > Add hardware initialization for the STM32MP13xx in SPL. This is > similar to STM32MP15xx except the code has to enable MCE to bring > DRAM controller up later. > > Signed-off-by: Marek Vasut Reviewed-by: Patrice Chotard Thanks Patrice > --- > Cc: Che

Re: [PATCH 01/10] ARM: stm32: Add STM32MP13xx SPL Kconfig options

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:21, Marek Vasut wrote: > Introduce Kconfig options used by SPL on STM32MP13xx and isolate > the Kconfig options only used in case TFA BL2 is used as a SPL > behind CONFIG_TFABOOT dependency. > > Signed-off-by: Marek Vasut > --- > Cc: Cheick Traore > Cc: Fabrice Gasnier > Cc: Ga

Re: [PATCH] tools: stm32image: Add support for STM32 Image V2.0

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:09, Marek Vasut wrote: > Add support for generating STM32 Image V2.0, which is used by STM32MP13xx. > The image header layout is similar to STM32MP15xx STM32 Image V1.0, but is > different enough to justify duplicate functions to generate the v2 image. > This code at least attempts

Merging v6.15-dts to next

2025-05-27 Thread Tom Rini
Hey all, With the Linux kernel release of v6.15 over the weekend, and v6.15-dts now being tagged in the devicetree-rebasing repository I'm merging that to the next branch now and expect to push it later today. -- Tom signature.asc Description: PGP signature

Re: [PATCH] clk: stm32mp13: Add SPL support and clock tree init to STM32MP13 RCC driver

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:08, Marek Vasut wrote: > Add SPL support and clock tree init to STM32MP13 RCC driver. This > consists of two parts, make SCMI into an optional dependency and > add clock tree initialization. The SCMI dependency is made optional > first by registering the few core clock provided by

Re: [PATCH] ram: stm32mp1: Add STM32MP13xx support

2025-05-27 Thread Patrice CHOTARD
On 5/12/25 19:09, Marek Vasut wrote: > Add support for configuring DRAM controller on STM32MP13xx SoC. > The DRAM controller is basically identical to the DWC controller > on STM32MP15xx SoC, except the bus width is reduced from 32bit to > 16bit and a few registers and bits are therefore not pre

[PATCH RFC v2 1/8] tools: binman: ftest: pass allow_fake_blob to _DoReadFileDtb

2025-05-27 Thread Yannic Moog
Some test cases don't use _DoTestFile directly which accepts allow_fake_blobs. However, they specifically test functionality that requires external blobs not to be faked. Extend the _DoReadFileDtb signature to allow passing that option to _DoTestFile. Reviewed-by: Simon Glass Signed-off-by: Yanni

[PATCH v1] drivers: watchdog: qcom: Add timeout configuration support in watchdog

2025-05-27 Thread Balaji Selvanathan
This patch enhances the Qualcomm watchdog driver by introducing support for dynamic timeout configuration. Specifically: - Calculates and sets the bark and bite timeout values based on the clock rate and the requested timeout in milliseconds. - Adds retrieval of the watchdog clock rate during pr

Re: [PATCH 00/10] add STM32H747 discovery board

2025-05-27 Thread Patrice CHOTARD
On 5/8/25 23:23, Johannes Krottmayer wrote: > These patch series adds support for the STM32H747 discovery > board from STMicroelectronics. > > Johannes Krottmayer (10): > arm: mach-stm32: stm32h7: add initial lowlevel early function > arm: mach-stm32: stm32h7: add initial Makefile > arm:

Re: [PATCH] doc: board: ti: Add missing firmware for BB-AI64

2025-05-27 Thread Dhruva Gole
Hi Peter, On May 25, 2025 at 13:10:58 +0100, Peter Robinson wrote: > The details of the sysfw.itb from the R5 build that > also needs to be copied as part of the target images > is missing, but is included in the image formats a > little further down, so add it to the instructions. > > Signed-off

[PATCH RFC v2 6/8] tools: binman: add faked optional entry case in CheckForProblems

2025-05-27 Thread Yannic Moog
When having an entry that is marked as optional and is missing in the final image, the following output is observed: CFGSspl/u-boot-spl.cfgout BINMAN .binman_stamp Image 'image' has faked external blobs and is non-functional: tee.bin Image 'image' is missing optional external blobs but i

Re: [PATCH v2 3/4] watchdog: stm32mp: check the watchdog status

2025-05-27 Thread Patrice CHOTARD
On 5/23/25 11:46, Antonio Borneo wrote: > From: Clément Le Goffic > > Add a mean to check the IWDG status based on the peripheral version. > This is done by either checking the status bit ONF either by updating > the reload register with the same value and check if the reload succeed. > > Sig

Re: [PATCH v2 1/4] watchdog: wdt-uclass.c: add wdt_set_force_autostart() helper

2025-05-27 Thread Patrice CHOTARD
On 5/23/25 11:46, Antonio Borneo wrote: > The watchdog could have been already started by a previous boot > stage (e.g. bootrom or secure OS). U-Boot has to start and kick > the watchdog even when CONFIG_WATCHDOG_AUTOSTART is not enabled > or when the DT property u-boot,noautostart is present. >

Re: [PATCH v2 1/2] spl: Add size check for u-boot-with-spl.bin

2025-05-27 Thread Tom Rini
On Tue, May 27, 2025 at 02:10:48PM +0200, Philip Oberfichtner wrote: > Introduce another SIZE_CHECK macro for u-boot-with-spl.bin. > > Signed-off-by: Philip Oberfichtner > --- > > Notes: > Changes in v2: none > > Makefile | 7 +++ > common/spl/Kconfig | 7 +++ > 2 files

Re: [PATCH v2 4/4] watchdog: don't autostart watchdog on STM32MP architecture

2025-05-27 Thread Patrice CHOTARD
On 5/23/25 11:46, Antonio Borneo wrote: > From: Patrice Chotard > > On STM32MP reference boards, the watchdog is started by a previous > boot stage (e.g. bootrom or secure OS), so the config flag > WATCHDOG_AUTOSTART is not required. > It's preferable to rely on the DT properties "u-boot,autos

Re: [PATCH v2 1/3] lib/uuid.c: restore support of system partition type for ESP

2025-05-27 Thread Patrice CHOTARD
On 5/23/25 11:11, Patrick Delaunay wrote: > Add support of optional shortname for parameter 'type' of gpt > command (limited by UUID_STR_LEN) and a separate 'description' > for UID format "%pUs" used in 'part list' output. > > When 'description' is absent in list_guid[], the optional > shortnam

[PATCH v2 03/13] clk: stm32mp25: implement clock check security function

2025-05-27 Thread Patrice Chotard
From: Gabriel Fernandez Check clock security to avoid access at boot time. Signed-off-by: Gabriel Fernandez Signed-off-by: Patrice Chotard Cc: Lukasz Majewski Cc: Sean Anderson --- (no changes since v1) drivers/clk/stm32/clk-stm32-core.c | 2 +- drivers/clk/stm32/clk-stm32-core.h | 2

[PATCH v2 10/13] clk: stm32: fix clock counter

2025-05-27 Thread Patrice Chotard
From: Gabriel Fernandez In RCC the ops of the CCF registered CLK device can be called directly, this patch avoid recursive call of clk_ function done by CCF clock framework which update the clock information, for example clk_enable is called 2 times, clkp->enable_count is increased 2 times. Sign

Re: [PATCH 1/2] bootm: Shorten BOOTM_STATE_

2025-05-27 Thread Tom Rini
On Tue, May 27, 2025 at 06:40:34AM -0600, Simon Glass wrote: > This is quite long at present. Rename it so that fixes better with the > bootstd naming. > > Signed-off-by: Simon Glass First of all, sigh, this doesn't apply to mainline. After the last few days, that starts to feel like bad faith

[PATCH v2 04/13] clk: add CONFIG_CLK_AUTO_ID

2025-05-27 Thread Patrice Chotard
From: Patrick Delaunay Add a new config CONFIG_CLK_AUTO_ID to support a unique clk id for all the clock providers, managed by clk uclass, when the clock reference arg[0] is the same. When the CONFIG is activated, the clock id is limited to the lower CLK_ID_SZ = 24 bits in default clock xlate fun

[PATCH v2 06/13] sandbox: test: update for CONFIG_CLK_AUTO_ID support

2025-05-27 Thread Patrice Chotard
From: Patrick Delaunay Update the existing test dm_test_clk_ccf() with new CLK_ID macro. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard Cc: Lukasz Majewski Cc: Sean Anderson --- (no changes since v1) test/dm/clk_ccf.c | 30 +++--- 1 file changed, 15

[PATCH RFC v2 5/8] binman: rework dropping absent entries from packaged image

2025-05-27 Thread Yannic Moog
When blobs are absent and are marked as optional, they can be safely dropped from the binman tree. Use the drop_absent function for that. Rename drop_absent to drop_absent_optional as we do not want to drop any entries that are absent; they should be reported by binman as errors when they are missi

[PATCH v2 11/13] reset: stm32mp25: add stm32mp25 reset driver

2025-05-27 Thread Patrice Chotard
From: Gabriel Fernandez Implement STM32MP25 reset drivers using stm32-core-reset API. This reset stm32-reset-core API and will be able to use DT binding index started from 0. This patch also moves legacy reset into stm32 directory reset. Signed-off-by: Gabriel Fernandez Signed-off-by: Patrice

[PATCH v2 08/13] clk: scmi: manage properly the clk identifier with CCF

2025-05-27 Thread Patrice Chotard
From: Patrick Delaunay Each clock identifier needs to be unique when CCF is activated, and it is not respected today by SCMI clock driver. This patch supports a unique clk id by using the uclass API clk_get_id() / dev_clk_dm() and by activating by default CONFIG_CLK_AUTO_ID with CCF which adds a

[PATCH v2 13/13] configs: stm32mp25: increase SYS_MALLOC_F_LEN to 0x60000

2025-05-27 Thread Patrice Chotard
Due activation of SCMI, we need to increase SYS_MALLOC_F_LEN value to avoid following message: U-Boot 2025.04-01224-g75b77a2a6d31-dirty (Apr 25 2025 - 11:23:30 +0200) alloc space exhausted ptr 400040 limit 40 alloc space exhausted ptr 400020 limit 40 alloc space exhausted ptr 400060 limit

[PATCH v2 12/13] ARM: dts: stm32: switch from fixed to scmi clocks for stm32mp257f-ev1

2025-05-27 Thread Patrice Chotard
SCMI clocks are now available, switch from fixed to SCMI clocks. Signed-off-by: Patrice Chotard --- (no changes since v1) arch/arm/dts/stm32mp25-u-boot.dtsi | 8 +++ arch/arm/dts/stm32mp257f-ev1-u-boot.dtsi | 74 2 files changed, 8 insertions(+), 74 deletions(-)

[PATCH v2 09/13] phy: stm32-usbphyc: manage properly the clk identifier with CCF

2025-05-27 Thread Patrice Chotard
From: Patrick Delaunay Add private uclass data for "stm32-usbphyc-clk" as it is not done by the driver model. This clk struct is needed by CCF to save the unique id used to identify each clock. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard Cc: Lukasz Majewski Cc: Sean Anders

[PATCH v2 05/13] clk: sandbox: update driver for CONFIG_CLK_AUTO_ID support

2025-05-27 Thread Patrice Chotard
From: Patrick Delaunay Update the sandbox driver to allow support of the CONFIG_CLK_AUTO_ID by using the new API clk_get_id() to get the internal SANDBOX identifier. With CONFIG_CLK_AUTO_ID, clk->id have the also seq identifier. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard C

[PATCH v2 01/13] clk: scmi: add compatibility with clock protocol 2.0

2025-05-27 Thread Patrice Chotard
From: Valentin Caron Since clock protocol 2.0, SCMI specification add an option field "clock_enable_delay" to CLOCK_ATTRIBUTES command. scmi_read_resp_from_smt() will return an error ("Buffer too small") as the message length coming from the SCMI server is not the same as expected. So implement

[PATCH v2 07/13] clk: fixed_rate: configure clock ID with CONFIG_CLK_AUTO_ID

2025-05-27 Thread Patrice Chotard
From: Patrick Delaunay Update CLK ID to avoid 0 id, used for dummy clock with CCF and to allow selection by clk_get_by_id, used to get private data associated to the UCLASS_CLK device Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard Cc: Lukasz Majewski Cc: Sean Anderson --- (n

[PATCH v2 02/13] clk: stm32mp25: Add clock driver support

2025-05-27 Thread Patrice Chotard
From: Gabriel Fernandez Add clock driver support for STM32MP25 SoCs. Signed-off-by: Gabriel Fernandez Signed-off-by: Valentin Caron Signed-off-by: Patrice Chotard Cc: Lukasz Majewski Cc: Sean Anderson --- Changes in v2: - Rename GATE_USB2 into GATE_USBH - Rename RCC_USB2CFGR to RC

Re: [PATCH 08/10] arm: dts: add STM32H747 discovery board

2025-05-27 Thread Patrice CHOTARD
On 5/8/25 23:24, Johannes Krottmayer wrote: > Add initial support for the STM32H747 discovery baord. Copied > from the STM32H743 discovery board. > > Signed-off-by: Johannes Krottmayer > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > arch/arm/dts/stm32h747i-disco-u-boot.dtsi | 101 +

[PATCH RFC v2 2/8] tools: binman: drop "faked" return value from check_fake_fname

2025-05-27 Thread Yannic Moog
check_fake_fname sets the faked member of the entry. Use that member to get the faked status instead of a returned value indicating the same. Add type annotations to the modified functions while at it. Signed-off-by: Yannic Moog --- tools/binman/entry.py | 11 +-- tools/bin

[PATCH RFC v2 4/8] binman: replace _entries with GetEntries()

2025-05-27 Thread Yannic Moog
_entries, as highlighted by leading _, is a private member and thus should not be accessed directly. As a result use the GetEntries function instead. GetEntries() returns _entries. No functional change introduced in this commit. Signed-off-by: Yannic Moog --- tools/binman/etype/atf_fip.py

[PATCH RFC v2 8/8] binman: test: assert optional blobs don't cause non-functionality

2025-05-27 Thread Yannic Moog
When external blobs are marked optional, they should not cause a build to fail. Extend the test cases for FitTeeOsOptional and ExtblobOptional. Reviewed-by: Simon Glass Signed-off-by: Yannic Moog --- tools/binman/ftest.py | 16 1 file changed, 16 insertions(+) diff --git a/too

[PATCH RFC v2 3/8] tools: binman: mark optional missing blobs as absent

2025-05-27 Thread Yannic Moog
Optional blobs should mark themselves as absent to avoid being packed into an image. Extend the documentation of this behaviour. Although the documentation implied this before, the "optional" property had not been explained properly before. Note that the intended behaviour is the same, this patch j

[PATCH RFC v2 0/8] Fix handling of optional blobs in binman

2025-05-27 Thread Yannic Moog
This series solves a contradiction regarding ext blobs packaged in binman. When they are marked as optional, by default they are faked, two messages are emitted. One says the image is not functional the other says the image is still functional. Both concern the same binman entry/blob. Binman is se

Re: [PATCH] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2B board

2025-05-27 Thread Fabio Estevam
On Mon, May 26, 2025 at 4:59 PM Michael Trimarchi wrote: > > Introducing the BSH SystemMaster (SMM) M2B board. Notably, the M2B is Use imperative mood: Introduce > designed to leverage the existing device tree of its predecessor, the M2. > The primary distinction arises from memory incompatibili

Re: [PATCH 04/10] arm: mach-stm32: add stm32h7 subdirectory

2025-05-27 Thread Patrice CHOTARD
On 5/8/25 23:24, Johannes Krottmayer wrote: > Add 'stm32h7' subdirectory to main Makefile. > > Signed-off-by: Johannes Krottmayer > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > arch/arm/mach-stm32/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/mach-stm32

Re: [PATCH 07/10] include: configs: add STM32H747 discovery board

2025-05-27 Thread Patrice CHOTARD
On 5/8/25 23:24, Johannes Krottmayer wrote: > Add initial support for the STM32H747 discovery board. The > header is copied and modified from the STM32H743 discovery > board. > > Signed-off-by: Johannes Krottmayer > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > include/configs/stm32h74

Re: [PATCH 06/10] configs: add STM32H747 discovery board

2025-05-27 Thread Patrice CHOTARD
On 5/8/25 23:24, Johannes Krottmayer wrote: > Add initial support for the STM32H747 discovery board. The > configuration is copied and modified from the STM32H743 discovery > board. > > Signed-off-by: Johannes Krottmayer > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > configs/stm32h747

Re: [PATCH 05/10] board: st: add STM32H747 discovery board

2025-05-27 Thread Patrice CHOTARD
On 5/8/25 23:24, Johannes Krottmayer wrote: > The code was copied from the STM32H743 discovery board and > modified for the STM32H747 discovery board. > > Signed-off-by: Johannes Krottmayer > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > board/st/stm32h747-disco/Kconfig | 15

Synced invitation: U-Boot community meeting @ Every 2 weeks from 5pm to 6pm on Tuesday (CEST) (u-boot@lists.denx.de)

2025-05-27 Thread Michael Nazzareno Trimarchi
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VTIMEZONE TZID:America/Bahia_Banderas X-LIC-LOCATION:America/Bahia_Banderas BEGIN:STANDARD TZOFFSETFROM:-0600 TZOFFSETTO:-0600 TZNAME:CST DTSTART:19700101T00 END:STANDARD END:VT

Synced invitation: U-Boot community meeting @ Every 2 weeks from 4pm to 5pm on Tuesday (CET) (u-boot@lists.denx.de)

2025-05-27 Thread Michael Nazzareno Trimarchi
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VTIMEZONE TZID:America/Bahia_Banderas X-LIC-LOCATION:America/Bahia_Banderas BEGIN:STANDARD TZOFFSETFROM:-0600 TZOFFSETTO:-0600 TZNAME:CST DTSTART:19700101T00 END:STANDARD END:VT

Re: [PATCH 03/10] arm: mach-stm32: stm32h7: add STM32H747-DISCO board

2025-05-27 Thread Patrice CHOTARD
On 5/8/25 23:23, Johannes Krottmayer wrote: > Add initial support for the STM32H747-DISCO board in Kconfig. > > Signed-off-by: Johannes Krottmayer > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > arch/arm/mach-stm32/stm32h7/Kconfig | 5 + > 1 file changed, 5 insertions(+) > > diff

Re: [PATCH 01/10] arm: mach-stm32: stm32h7: add initial lowlevel early function

2025-05-27 Thread Patrice CHOTARD
On 5/8/25 23:23, Johannes Krottmayer wrote: > Add new assembly function 'arch_very_early_init' > > This functions setups the power supply for STM32H7 SoC's to > direct SMPS mode, which is required for some boards like > the STM32H747I-DISCO in the default configuration. > > If this isn't done

[PATCH 2/2] bool: Convert BOOTMS to and enum and document it

2025-05-27 Thread Simon Glass
These stages are not well documented. Add comments to describe what each stage does and any important requirements. Use an enum so that we can look up the type. Sort the states in the order of execution. Provide a BIT() macro so that host tools can still compile the header file. Signed-off-by: Sim

[PATCH 1/2] bootm: Shorten BOOTM_STATE_

2025-05-27 Thread Simon Glass
This is quite long at present. Rename it so that fixes better with the bootstd naming. Signed-off-by: Simon Glass --- arch/arc/lib/bootm.c| 8 ++-- arch/arm/lib/bootm.c| 10 ++--- arch/m68k/lib/bootm.c | 4 +- arch/microblaze/lib/bootm.c | 8 ++-- arch/mips/lib/bootm.c

[PATCH v2 2/2] mips: mt7628: Add Onion Omega2/2+ board support

2025-05-27 Thread Philip Oberfichtner
The Omega2 / Omega2+ are based on the MediaTek MT7688 SoC with the following features: - 64 / 128MB of DDR2 memory - 16 / 32MB of SPI NOR flash - USB, WiFi and many more peripherals Signed-off-by: Philip Oberfichtner --- Notes: Changes in v2: - Fix style issues as re

Potential Integer Overflow in video_splash_align_axis() Function

2025-05-27 Thread yb
Dears, Hello everyone, I have found a potential vulnerability. The specific description is as follows. Please help me check whether this is a real vulnerability. 1. Description This code demonstrates the CWE-190 (Integer Overflow or Wraparound) vulnerability in the `video_splash_align_axis()

Re: [PATCH RFC 6/6] binman: doc: update Optional entries

2025-05-27 Thread Simon Glass
Hi Yannic, On Tue, 27 May 2025 at 09:12, Yannic Moog wrote: > > Hi Simon, > > Am Dienstag, dem 27.05.2025 um 08:34 +0100 schrieb Simon Glass: > > Hi Yannic, > > > > On Wed, 19 Feb 2025 at 00:01, Simon Glass wrote: > > > > > > Hi Yannic, > > > > > > On Tue, 18 Feb 2025 at 06:15, Yannic Moog wrot

Please pull u-boot-dm into -next

2025-05-27 Thread Simon Glass
Hi Tom, This is for -next https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/26346 (note that x86 boards and RISC-V board don't work in your tree at present) https://dev.azure.com/simon0972/u-boot/_build/results?buildId=79&view=results The following changes since commit 39b815d02d7

[PATCH v2 1/2] spl: Add size check for u-boot-with-spl.bin

2025-05-27 Thread Philip Oberfichtner
Introduce another SIZE_CHECK macro for u-boot-with-spl.bin. Signed-off-by: Philip Oberfichtner --- Notes: Changes in v2: none Makefile | 7 +++ common/spl/Kconfig | 7 +++ 2 files changed, 14 insertions(+) diff --git a/Makefile b/Makefile index f88684947ee..d117925a366 1

[PATCH v2 0/2] Add Onion Omega2/2+ board support

2025-05-27 Thread Philip Oberfichtner
Add support for the MediaTek based boards by Onion. Whereas the second commit adds the actual board support, the first commit handles a tight flash size constraint for the u-boot-with-spl.bin image. Changes in v2: -- I forgot to run checkpatch in v1. Fix some style issues in v2. Phil

Re: [PATCH v1 02/13] clk: stm32mp25: Add clock driver support

2025-05-27 Thread Patrice CHOTARD
On 5/22/25 09:08, Gabriel FERNANDEZ wrote: > > On 5/21/25 15:41, Patrice Chotard wrote: >> From: Gabriel Fernandez >> >> Add clock driver support for STM32MP25 SoCs. >> >> Signed-off-by: Gabriel Fernandez >> Signed-off-by: Valentin Caron >> Signed-off-by: Patrice Chotard >> Cc: Lukasz Majew

Re: [PATCH] doc: board: ti: Add missing firmware for BB-AI64

2025-05-27 Thread Nishanth Menon
On 13:10-20250525, Peter Robinson wrote: > The details of the sysfw.itb from the R5 build that > also needs to be copied as part of the target images > is missing, but is included in the image formats a > little further down, so add it to the instructions. > > Signed-off-by: Peter Robinson > ---

Re: [PATCH v1 11/13] reset: stm32mp25: add stm32mp25 reset driver

2025-05-27 Thread Patrice CHOTARD
On 5/22/25 09:10, Gabriel FERNANDEZ wrote: > > On 5/21/25 15:41, Patrice Chotard wrote: >> From: Gabriel Fernandez >> >> Implement STM32MP25 reset drivers using stm32-core-reset API. >> This reset stm32-reset-core API and will be able to use DT binding >> index started from 0. >> >> This patch

[PATCH 2/2] mips: mt7628: Add Onion Omega2/2+ board support

2025-05-27 Thread Philip Oberfichtner
The Omega2 / Omega2+ are based on the MediaTek MT7688 SoC with the following features: - 64 / 128MB of DDR2 memory - 16 / 32MB of SPI NOR flash - USB, WiFi and many more peripherals Signed-off-by: Philip Oberfichtner --- arch/mips/dts/Makefile | 1 + arch/mips/dts/oni

[PATCH 1/2] spl: Add size check for u-boot-with-spl.bin

2025-05-27 Thread Philip Oberfichtner
Introduce another SIZE_CHECK macro for u-boot-with-spl.bin. Signed-off-by: Philip Oberfichtner --- Makefile | 7 +++ common/spl/Kconfig | 7 +++ 2 files changed, 14 insertions(+) diff --git a/Makefile b/Makefile index f3278e3b013..dea9f4f133f 100644 --- a/Makefile +++ b/Makefi

[PATCH 0/2] Add Onion Omega2/2+ board support

2025-05-27 Thread Philip Oberfichtner
Add support for the MediaTek based boards by Onion. Whereas the second commit adds the actual board support, the first commit handles a tight flash size constraint for the u-boot-with-spl.bin image. Philip Oberfichtner (2): spl: Add size check for u-boot-with-spl.bin mips: mt7628: Add Onion Om

[PATCH 1/2] buildman: Correct behaviour of --in-tree

2025-05-27 Thread Simon Glass
This option doesn't work as expected since it sets the cwd to the work directory, which does not necessarily hold the source code. It should be left unset, so that the current directory is the source directory. Signed-off-by: Simon Glass --- tools/buildman/builderthread.py | 38 +++

  1   2   >