Re: [PATCH RFT v3 0/3] fastboot: add support for generic block flashing

2025-05-21 Thread Mattijs Korpershoek
Hi Tom, On mer., mai 21, 2025 at 13:03, Tom Rini wrote: > On Wed, May 21, 2025 at 08:52:41PM +0200, Mattijs Korpershoek wrote: >> Hi Tom, >> >> On mer., mai 21, 2025 at 09:12, Tom Rini wrote: >> >> > On Wed, May 21, 2025 at 04:49:35PM +0200, Mattijs Korpershoek wrote: >> >> Hi Neil, >> >> >>

Re: [PATCH 3/3] test/py: tests: gpt: add test_gpt_write_part_type

2025-05-21 Thread Patrice CHOTARD
On 5/19/25 11:04, Patrick Delaunay wrote: > Add sandbox test on gpt command with partition type for known type. > > Signed-off-by: Patrick Delaunay > --- > > test/py/tests/test_gpt.py | 27 +++ > 1 file changed, 27 insertions(+) > > diff --git a/test/py/tests/test_gp

Re: [PATCH 2/3] doc: cmd: gpt: add information on type partition

2025-05-21 Thread Patrice CHOTARD
On 5/19/25 11:04, Patrick Delaunay wrote: > Add information on type partition, copied from README.gpt. > > I also correct issue for gpt_parts variable and add example of > "gpt read" usage. > > Signed-off-by: Patrick Delaunay > --- > > doc/usage/cmd/gpt.rst | 93

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

2025-05-21 Thread Patrice CHOTARD
On 5/19/25 11:04, Patrick Delaunay wrote: > Add support of shortname for type parameter and restore "system" > as short name for EFI System Partition (ESP) for filed "type" of the > "gpt write" command. > > Fixes: d54e1004b8b1 ("lib/uuid.c: use unique name for PARTITION_SYSTEM_GUID") > Signed-o

Re: [PATCH v2] phy: zynqmp: Fix sgmii clk ctrl GTR lane bit shift

2025-05-21 Thread Michal Simek
On 5/21/25 20:16, Rutherther wrote: The bitshift in GEM_CLK_CTRL register is five bits, not two. There are four bits for each GEM, and one bit reserved in between. This has caused that using more than one GEM is impossible, additionally corrupting the GEM0's configuration, leaving GEM0 unusab

Re: [RFC v1 7/7] usb: onboard-hub: Add conditional compilation for I2C initialization

2025-05-21 Thread Michal Simek
On 5/21/25 17:18, Quentin Schulz wrote: Hi Michal, On 5/21/25 4:34 PM, Michal Simek wrote: On 5/12/25 09:06, Quentin Schulz wrote: Hi Anand, On 5/9/25 7:45 PM, Anand Moon wrote: Hi Quentin, On Fri, 9 May 2025 at 17:21, Quentin Schulz wrote: Hi Neil, Anand, On 5/9/25 9:57 AM, Neil A

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

2025-05-21 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Add efi_realloc() for realloc memory that previously alloc by efi_alloc(). Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Heinrich Schuchardt Cc: Ilias Apalodimas Cc: Peter Robinson --- include/efi_loader.h| 2 ++ lib/efi_loader/efi_memory.c | 52 +++

[PATCH v3 2/4] efi: add EFI_DEBUG_IMAGE_INFO_TABLE for debug

2025-05-21 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" EFI_DEBUG_IMAGE_INFO_TABLE is used to store EFI_LOADED_IMAGE for debug purpose. This commit adds the table to the EFI_CONFIGURATION_TABLE. This feature is described in UEFI Spec version 2.10. Section 18.4. The implementation ensures support for hardware-assisted d

[PATCH v3 4/4] efi: add EFI_DEBUG_IMAGE_INFO for debug

2025-05-21 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds the functionality of generate EFI_DEBUG_IMAGE_INFO while loading the image. This feature is described in UEFI Spec 2.10. Section 18.4.3. The implementation ensures support for hardware-assisted debugging and provides a standardized mechanism for d

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

2025-05-21 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Add EFI_SYSTEM_TABLE_POINTER structure for remote debugger to locate the address of EFI_SYSTEM_TABLE. This feature is described in UEFI SPEC version 2.10. Section 18.4.2. The implementation ensures support for hardware-assisted debugging and provides a standardize

[PATCH v3 0/4] Add EFI Debug Support Table feature

2025-05-21 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" I implemented the UEFI Specification version 2.10, specifically focusing on the functionality described in Section 18.4, which details the EFI Debug Support Table feature. This implementation ensures support for hardware-assisted debugging and provides a standardiz

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

2025-05-21 Thread Tom Rini
On Wed, 21 May 2025 17:50:03 +0800, Leo Liang wrote: > The following changes since commit a3e09b24ffd4429909604f1b28455b44306edbaa: > > Merge tag 'mmc-2025-05-20' of > https://source.denx.de/u-boot/custodians/u-boot-mmc (2025-05-20 08:35:31 > -0600) > > are available in the Git repository at

[PATCH 01/17] include/ahci.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need but does directly need . Signed-off-by: Tom Rini --- include/ahci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ahci.h b/include/ahci.h index eb05cc687f64..470cda006de9 100644 --- a/include/ahci.h +++ b/include/ahci.h @@ -7,7 +7,7 @@ #ifn

[PATCH 02/17] include/arm_ffa.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need but does directly need . Signed-off-by: Tom Rini --- include/arm_ffa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/arm_ffa.h b/include/arm_ffa.h index db9b1be995e6..2994d8ee3ae1 100644 --- a/include/arm_ffa.h +++ b/include/arm_ffa.h @@ -9,

[PATCH 04/17] include/bootflow.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need but does directly need . Signed-off-by: Tom Rini --- Cc: Simon Glass --- include/bootflow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bootflow.h b/include/bootflow.h index d408b8c85bd1..5a9ac5ed3b33 100644 --- a/include/bootflow.h +++ b

[PATCH 13/17] include/fat.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need so remove it. However the file common/spl/spl_fat.c does need it, so add it there. Signed-off-by: Tom Rini --- common/spl/spl_fat.c | 1 + include/fat.h| 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c

[PATCH 11/17] include/dwmmc.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need so remove it. Signed-off-by: Tom Rini --- include/dwmmc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/dwmmc.h b/include/dwmmc.h index 6edb9e1a59c5..87ca127cd6cd 100644 --- a/include/dwmmc.h +++ b/include/dwmmc.h @@ -7,7 +7,6 @@ #ifndef __DWMMC_HW_H #defi

[PATCH 06/17] include/cadence-nand.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need but does directly need . Signed-off-by: Tom Rini --- include/cadence-nand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cadence-nand.h b/include/cadence-nand.h index 27ed217b1ed9..f08dce19cb9f 100644 --- a/include/cadence-nand.h +++ b/incl

[PATCH 17/17] global: Cleanup usage of "ETH_ALEN"

2025-05-21 Thread Tom Rini
The value of "ETH_ALEN" is defined to 6 in . This file is included in . In the places where we had ETH_ALEN but no direct include of , add . In the places where we had a custom name used, make use of ETH_ALEN instead. Signed-off-by: Tom Rini --- arch/arm/mach-tegra/dt-setup.c| 1 + b

[PATCH 16/17] include/mtd.h: Cleanup usage

2025-05-21 Thread Tom Rini
There are only a few things found in today. Go through and audit the C files which include and remove it when not required. Then, add it to the files which had either missed it or had an indirect inclusion of it. Signed-off-by: Tom Rini --- arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 1 +

[PATCH 15/17] include/mmc.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need nor so remove them. This exposes however that a number of other files had been relying on this implicit include for so add that where needed. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc85xx/fdt.c | 1 + board/emulation/common/qemu_dfu.c | 1 + board

[PATCH 14/17] include/ide.h: Cleanup usage

2025-05-21 Thread Tom Rini
At this point in time, provides the IDE_BUS macro and the function prototype for ide_set_reset, which is used with IDE_RESET. The only files which should include this header are the ones that either use that macro or that function. Remove from and remove from places which do not need it. Signe

[PATCH 12/17] include/efi_loader.h, include/efi_tcg2.h: Audit include list

2025-05-21 Thread Tom Rini
In include/efi_loader.h we do not directly need , , nor so remove them. In include/efi_tcg2.h we make use of but did not include it, so add it directly. Signed-off-by: Tom Rini --- Cc: Heinrich Schuchardt Cc: Ilias Apalodimas --- include/efi_loader.h | 4 include/efi_tcg2.h | 1 + 2

[PATCH 10/17] include/dw_hdmi.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need so remove it. Signed-off-by: Tom Rini --- include/dw_hdmi.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/dw_hdmi.h b/include/dw_hdmi.h index b73518207ef5..fab5aafea194 100644 --- a/include/dw_hdmi.h +++ b/include/dw_hdmi.h @@ -9,8 +9,6 @@ #ifndef _DW_HDM

[PATCH 09/17] include/dfu.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need a forward declaration of 'struct list_head' as it includes so remove it. Signed-off-by: Tom Rini --- Cc: Mattijs Korpershoek --- include/dfu.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/dfu.h b/include/dfu.h index 12f9dfcdfcdf..80593a906fd2 100644 --- a/

[PATCH 08/17] include/compiler.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need so remove it. Signed-off-by: Tom Rini --- include/compiler.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/compiler.h b/include/compiler.h index ef7b2cb1f7ea..f2e1e09c5980 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -60,8 +60,6 @@ # define

[PATCH 07/17] include/cbfs.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need but does directly need . Signed-off-by: Tom Rini --- include/cbfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cbfs.h b/include/cbfs.h index 2bc5de2297e4..1244dbdba0d1 100644 --- a/include/cbfs.h +++ b/include/cbfs.h @@ -6,8 +6,8 @@ #ifn

[PATCH 05/17] include/bootstd.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need so remove it. Signed-off-by: Tom Rini --- Cc: Simon Glass --- include/bootstd.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/bootstd.h b/include/bootstd.h index 2bc464756dd9..f2fb5f55faab 100644 --- a/include/bootstd.h +++ b/include/bootstd.h @@ -11,7 +11,

[PATCH 03/17] include/bios_emul.h: Audit include list

2025-05-21 Thread Tom Rini
This file does not need but does directly need . Furthermore, arch/x86/lib/bios.c was getting via so add it there. Signed-off-by: Tom Rini --- arch/x86/lib/bios.c | 1 + include/bios_emul.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/lib/bios.c b/arch/x86/li

[PATCH 00/17] Audit include list for include/[a-m]*.h

2025-05-21 Thread Tom Rini
Hey all, Related to my other series I've posted recently on cleaning up some headers, this series here is the result of at least lightly auditing the #includes used in include/[a-m]*.h. This ignores subdirectories, as at least in part I think the top-level includes we've constructed are the most l

[PATCH] image: android: fix ramdisk default address

2025-05-21 Thread Eddie Kovsky
Commit 21e7fa0e3ac5 ("image: android: handle ramdisk default address") changed the default behavior for header versions less than or equal to 2. The ramdisk address (img_data.ramdisk_ptr) is only assigned to *rd_data if the physical load address (img_data.ramdisk_addr) is equal to 0 or the Android

[PATCH v2] phy: zynqmp: Fix sgmii clk ctrl GTR lane bit shift

2025-05-21 Thread Rutherther
The bitshift in GEM_CLK_CTRL register is five bits, not two. There are four bits for each GEM, and one bit reserved in between. This has caused that using more than one GEM is impossible, additionally corrupting the GEM0's configuration, leaving GEM0 unusable as well (ie. if GEM0 and GEM1 are used

Re: [PATCH RFT v3 0/3] fastboot: add support for generic block flashing

2025-05-21 Thread Mattijs Korpershoek
Hi Tom, On mer., mai 21, 2025 at 09:12, Tom Rini wrote: > On Wed, May 21, 2025 at 04:49:35PM +0200, Mattijs Korpershoek wrote: >> Hi Neil, >> >> On mar., mai 20, 2025 at 13:35, Mattijs Korpershoek >> wrote: >> >> > Hi, >> > >> > On Tue, 06 May 2025 18:10:06 +0200, neil.armstr...@linaro.org w

Re: [PATCH RFT v3 0/3] fastboot: add support for generic block flashing

2025-05-21 Thread Tom Rini
On Wed, May 21, 2025 at 08:52:41PM +0200, Mattijs Korpershoek wrote: > Hi Tom, > > On mer., mai 21, 2025 at 09:12, Tom Rini wrote: > > > On Wed, May 21, 2025 at 04:49:35PM +0200, Mattijs Korpershoek wrote: > >> Hi Neil, > >> > >> On mar., mai 20, 2025 at 13:35, Mattijs Korpershoek > >> wrote:

Re: Please pull net-20250520

2025-05-21 Thread Tom Rini
On Wed, 21 May 2025 11:08:24 +0200, Jerome Forissier wrote: > The following changes since commit eeb5ff1a468b2303efa9deb2483b5edbebb568c6: > > Merge tag 'efi-2025-07-rc3-2' of > https://source.denx.de/u-boot/custodians/u-boot-efi (2025-05-18 08:06:56 > -0600) > > are available in the Git rep

Re: U-Boot support for wolfTPM and firmware update for SLB9672/SLB9673

2025-05-21 Thread David Garske
Hi Ilias, Thank you! It’s a pleasure to meet you! I’m the author and maintainer or wolfTPM. Perhaps it would be useful to meet and chat for a bit? Are you free next week May 28th at 7:30 AM PT? I loved the feedback from Simon Glass and we will be implementing those and suggesting a new patch

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

2025-05-21 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

[PATCH 2/3] net: lwip: add sntp command

2025-05-21 Thread Jerome Forissier
Implement the sntp command when NET_LWIP=y. Signed-off-by: Jerome Forissier --- cmd/Kconfig| 13 ++-- cmd/net-lwip.c | 5 ++ include/net-common.h | 11 lib/lwip/Makefile | 1 + lib/lwip/u-boot/arch/cc.h | 4 ++ lib/lwip/u-boot/lwipopts.h

[PATCH 1/3] net: extract function net_sntp_set_rtc() from sntp_handler()

2025-05-21 Thread Jerome Forissier
Extract the code that sets the RTC clock from sntp_handler() in net/sntp.c and make it a new function net_sntp_set_rtc() in net/net-common.c. This will allow re-use with NET_LWIP. Signed-off-by: Jerome Forissier --- include/net-common.h | 2 ++ net/net-common.c | 28 +++

Re: [RFC v1 7/7] usb: onboard-hub: Add conditional compilation for I2C initialization

2025-05-21 Thread Quentin Schulz
Hi Michal, On 5/21/25 4:34 PM, Michal Simek wrote: On 5/12/25 09:06, Quentin Schulz wrote: Hi Anand, On 5/9/25 7:45 PM, Anand Moon wrote: Hi Quentin, On Fri, 9 May 2025 at 17:21, Quentin Schulz wrote: Hi Neil, Anand, On 5/9/25 9:57 AM, Neil Armstrong wrote: On 09/05/2025 09:02, Anand

[PATCH 3/3] configs: qemu_arm64_lwip_defconfig: enable CMD_SNTP

2025-05-21 Thread Jerome Forissier
Enable the sntp command by default in the arm64 QEMU defconfig for lwIP since this config is meant to have all the features supported by lwIP. Signed-off-by: Jerome Forissier --- configs/qemu_arm64_lwip_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/qemu_arm64_lwip_defco

[PATCH 0/3] sntp for NET_LWIP

2025-05-21 Thread Jerome Forissier
Implement the sntp command with lwIP (CONFIG_NET_LWIP=y). SNTP is supported as an app in lib/lwip/lwip/src/apps/sntp/sntp.c so this is mainly about adding that file to the build and writing do_sntp() to use the sntp_*() API and run the receive & timer loop. There is a patch to extract a small bit o

Re: [PATCH RFT v3 0/3] fastboot: add support for generic block flashing

2025-05-21 Thread Tom Rini
On Wed, May 21, 2025 at 04:49:35PM +0200, Mattijs Korpershoek wrote: > Hi Neil, > > On mar., mai 20, 2025 at 13:35, Mattijs Korpershoek > wrote: > > > Hi, > > > > On Tue, 06 May 2025 18:10:06 +0200, neil.armstr...@linaro.org wrote: > >> This serie permits using any block device as target > >> f

Re: [PATCH v2] bootm: Fix bmi->images pointer not initialized in some cases

2025-05-21 Thread Tom Rini
On Tue, May 20, 2025 at 10:35:15PM +0200, Benjamin ROBIN wrote: > When building with only bootz command, without bootm, images pointer > inside bootm_info structure is not initialized. And since this structure > is stored in stack, the generated error is kind of random, but most of > the time this

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

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

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

2025-05-21 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 --- drivers/clk/stm32/clk-stm32-core.c | 2 +- drivers/clk/stm32/clk-stm32-core.h | 2 +- drivers/clk/stm32/c

Re: [PATCH RFT v3 0/3] fastboot: add support for generic block flashing

2025-05-21 Thread Mattijs Korpershoek
Hi Neil, On mar., mai 20, 2025 at 13:35, Mattijs Korpershoek wrote: > Hi, > > On Tue, 06 May 2025 18:10:06 +0200, neil.armstr...@linaro.org wrote: >> This serie permits using any block device as target >> for fastboot by moving the generic block logic into >> a common set of helpers and also us

Re: [RFC v1 7/7] usb: onboard-hub: Add conditional compilation for I2C initialization

2025-05-21 Thread Michal Simek
On 5/12/25 09:06, Quentin Schulz wrote: Hi Anand, On 5/9/25 7:45 PM, Anand Moon wrote: Hi Quentin, On Fri, 9 May 2025 at 17:21, Quentin Schulz wrote: Hi Neil, Anand, On 5/9/25 9:57 AM, Neil Armstrong wrote: On 09/05/2025 09:02, Anand Moon wrote: Add conditional compilation for the usb

Re: [PATCH v2] usb: onboard-hub: Fix return type for regulator APIs

2025-05-21 Thread Michal Simek
Hi Marek, On 4/12/25 22:52, Marek Vasut wrote: On 4/11/25 7:55 AM, Michal Simek wrote: From: Padmarao Begari Apart from ENOENT observing return value as ENOSYS when !DM_REGULATOR that's why cover both configurations. Changed code is not working as operation should be "&&" not "||" (ret != -EN

Re: [PATCH] clk: stm32mp13: Fix typo in STM32MP13 RCC driver

2025-05-21 Thread Patrice CHOTARD
On 5/12/25 18:51, Marek Vasut wrote: > Fix basic typo, missing t in security . No functional change . > > Signed-off-by: Marek Vasut > --- > Cc: Patrice Chotard > Cc: Patrick Delaunay > Cc: Sean Anderson > Cc: Tom Rini > Cc: u-boot@lists.denx.de > Cc: uboot-st...@st-md-mailman.stormreply.c

Re: [PATCH] ARM: stm32: Auto-detect ROM API table on STM32MP15xx

2025-05-21 Thread Patrice CHOTARD
On 5/12/25 18:45, Marek Vasut wrote: > The ROM API table location is passed to the SPL by BootROM in register r0, > make use of this, store the content of r0 and later use it to access the > ROM API table to determine current boot device. > > Signed-off-by: Marek Vasut > --- > Cc: Patrice Chot

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

2025-05-21 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 --- d

Re: [PATCH] phy: zynqmp: Fix sgmii clk ctrl GTR lane bit shift

2025-05-21 Thread Michal Simek
On 5/9/25 16:40, Rutherther wrote: The bitshift in GEM_CLK_CTRL register is five bits, not two. There are four bits for each GEM, and one bit reserved in between. This bug has caused that using more than one GEM is impossible, additionally corrupting the GEM0's configuration, leaving GEM0 unu

Re: [PATCH] drivers: fpga: intel_sdm_mb: Flush cache before FPGA configuration

2025-05-21 Thread Michal Simek
On 5/6/25 03:28, Naresh Kumar Ravulapalli wrote: FPGA configuration encounters failure when the cache is not flushed. Add cache flushing to the memory region that holds the FPGA configuration bitstream. Signed-off-by: Naresh Kumar Ravulapalli --- drivers/fpga/intel_sdm_mb.c | 7 +++ 1

Re: [PATCH] ARM: stm32: Fix DBGMCU macro on STM32MP13xx

2025-05-21 Thread Patrice CHOTARD
On 5/12/25 18:44, Marek Vasut wrote: > The DBGMCU block is available at address 0x50081000 both on STM32MP13xx > and on STM32MP15xx . There is no reason to limit the DBGMCU macro being > set only on STM32MP15xx , remove the ifdeffery. > > Signed-off-by: Marek Vasut > --- > Cc: Patrice Chotard

Re: [PATCH] mmc: am654_sdhci: Clear UHS_MODE_SELECT when < MMC_HS_52

2025-05-21 Thread Judith Mendez
Hi Peng, On 5/20/25 7:55 PM, Peng Fan wrote: Subject: [PATCH] mmc: am654_sdhci: Clear UHS_MODE_SELECT when < MMC_HS_52 This clears UHS_MODE_SELECT for timing modes < MMC_HS_52. When initializing to HS400 mode, the host controller downgrades to non-uhs modes so clear UHS_MODE_SELECT at modes <

Re: [PATCH] ARM: stm32: Fix SYSRAM size on STM32MP13xx

2025-05-21 Thread Patrice CHOTARD
On 5/12/25 18:44, Marek Vasut wrote: > The STM32MP13xx has only 128 kiB of SYSRAM starting at address 0x2ffe . > The STM32MP15xx has 256 kiB of SYSRAM starting at address 0x2ffc . Make > sure both SoCs configure ARMV7_SECURE_BASE correctly . Define the SYSRAM > base in stm32.h to be cons

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

2025-05-21 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 --- test/dm/clk_ccf.c | 30 +++--- 1 file changed, 15 insertions(+), 15 dele

Re: [PATCH] ARM: stm32: Drop unnecessary space

2025-05-21 Thread Patrice CHOTARD
On 5/12/25 18:11, Marek Vasut wrote: > Drop a space after tab, no functional change. > > Signed-off-by: Marek Vasut > --- > Cc: Patrice Chotard > Cc: Patrick Delaunay > Cc: Simon Glass > Cc: Tom Rini > Cc: u-boot@lists.denx.de > Cc: uboot-st...@st-md-mailman.stormreply.com > --- > arch/ar

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

2025-05-21 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

Re: QEMU & KVM broken for arm64

2025-05-21 Thread Ilias Apalodimas
Hi Mark, On Wed, 21 May 2025 at 15:44, Mark Kettenis wrote: > > > From: Ilias Apalodimas > > Date: Wed, 21 May 2025 12:07:40 +0300 > > > > 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 anymore

[PATCH v1 04/13] clk: add CONFIG_CLK_AUTO_ID

2025-05-21 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 v1 08/13] clk: scmi: manage properly the clk identifier with CCF

2025-05-21 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 v1 13/13] configs: stm32mp25: increase SYS_MALLOC_F_LEN to 0x60000

2025-05-21 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 v1 05/13] clk: sandbox: update driver for CONFIG_CLK_AUTO_ID support

2025-05-21 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 v1 01/13] clk: scmi: add compatibility with clock protocol 2.0

2025-05-21 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 v1 09/13] phy: stm32-usbphyc: manage properly the clk identifier with CCF

2025-05-21 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 v1 10/13] clk: stm32: fix clock counter

2025-05-21 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

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

2025-05-21 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 --- drivers/clk/stm32/Kconfig | 9 + drivers/clk/stm32/Makefile| 1 +

Re: [PATCH] pci: zynqmp: Fix the pcireg base

2025-05-21 Thread Michal Simek
On 5/16/25 11:23, Venkatesh Yadav Abbarapu wrote: The pcireg base is not assigned to any address, reading the pcireg base with PS_LINKUP_OFFSET which is incorrect and giving random values. So update the pcireg base from devicetree so that we can read the valid PCIE link status and PHY ready st

[PATCH 0/4] watchdog for STM32MP family

2025-05-21 Thread Antonio Borneo
This series addresses the two watchdog drivers used on STM32MPxx family platforms. On the generic watchdog framework, it adds a new method wdt_set_force_autostart() used by the watchdog drivers to force the autostart status of the watchdog. This is used when the driver detects that the watchdog ha

[PATCH v3 0/4] mkimage: validate image references in FIT configurations

2025-05-21 Thread Aristo Chen
Hi all, I would like to apologize for the confusion caused by my v2 submission. Due to an issue in how I sent the patches, the series did not appear correctly grouped on Patchwork, making it harder to follow and review. This series introduces a validation step in mkimage to ensure that all image

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

2025-05-21 Thread Antonio Borneo
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_autostart(). This will keep U-Boot pinging the watchdog even w

Re: QEMU & KVM broken for arm64

2025-05-21 Thread Mark Kettenis
> From: Ilias Apalodimas > Date: Wed, 21 May 2025 12:07:40 +0300 > > 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 anymore. > The command line to reproduce it is: > qemu-system-aarch64 -smp 2 -nogra

[PATCH v3 4/4] test: py: add mkimage test for undefined image references in FIT configs

2025-05-21 Thread Aristo Chen
Add a test case to verify that mkimage correctly rejects a FIT source that references a non-existent image from a configuration node. This test introduces a minimal ITS that defines a valid kernel image but references a missing "fdt" image under the /configurations section. The test asserts that m

Re: QEMU & KVM broken for arm64

2025-05-21 Thread Mikko Rapeli
Hi, On Wed, May 21, 2025 at 12:08:19PM +0300, Ilias Apalodimas wrote: > ++CC Mikko who stumbled upon it > > On Wed, 21 May 2025 at 12:07, Ilias Apalodimas > wrote: > > > > Hi all, > > > > Starting from commit 53d5a221632e ("emulation: Use bloblist to hold > > tables") I can't boot U-Boot with Q

Save sspi output bytes in variable

2025-05-21 Thread Valentina Skorpion
    Hello all,  I am using uboot 2024.07 on a Verdin imx8mp board and would like to save the output of the result (the bytes) into a variable.We have developed an spi peripheral that would retrieve us value that we would use further in the boot process (we would parse the spi output and set

[PATCH v3 3/4] binman: test: Ensure all config references exist in /images node

2025-05-21 Thread Aristo Chen
Several binman FIT test device trees reference image nodes such as atf and uboot in their /configurations sections, but those image nodes were not actually defined in the /images node. This mismatch can lead to validation errors when stricter consistency checks are introduced. This patch adds mini

[PATCH v3 1/4] tools: mkimage: propagate error codes from fit_handle_file()

2025-05-21 Thread Aristo Chen
The fit_handle_file() function previously returned a hardcoded -1 on error. This change updates the logic to return the actual error code stored in `ret`, allowing for error propagation. This improves debuggability and enables downstream callers to distinguish different failure causes, such as FDT

[PATCH v3 2/4] tools: mkimage: validate image references in FIT configurations

2025-05-21 Thread Aristo Chen
When parsing a FIT image source (ITS), mkimage does not currently check whether the image names referenced in the /configurations section (e.g. "kernel", "fdt", "ramdisk", "loadables") actually exist in the /images node. This patch introduces a validation step during FIT import that iterates over

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

2025-05-21 Thread Antonio Borneo
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. Signed-off-by: Clément Le Goffic Signed-off-by: Antonio Bor

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

2025-05-21 Thread Antonio Borneo
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. Add the helper wdt_set_force_autostart() that can b

[PATCH 4/4] watchdog: don't autostart watchdog on STM32MP boards

2025-05-21 Thread Antonio Borneo
From: Patrice Chotard The STM32MP2 boards have watchdog started by a previous boot stage (e.g. bootrom or secure OS), WATCHDOG_AUTOSTART is useless. Prefer to rely on DT properties "u-boot,autostart" or "u-boot,noautostart" if needed. Signed-off-by: Patrice Chotard Signed-off-by: Antonio Borneo

[PATCH] caam: Fix CAAM error on startup

2025-05-21 Thread Fabio Estevam
From: Olaf Baehring In rare cases U-Boot returns an error message when intantiating the RNG of the CAAM device: “SEC0: RNG4 SH0 instantiation failed with error 0x” This means, that even when the CAAM device reports a finished descriptor, none is found in the output ring. This might be c

Re: [PATCH v2 1/5] lmb: replace lmb_reserve() and lmb_alloc_addr() API's

2025-05-21 Thread Sughosh Ganu
On Wed, 21 May 2025 at 14:48, Sughosh Ganu wrote: > > On Wed, 21 May 2025 at 13:23, Ilias Apalodimas > wrote: > > > > Hi Sughosh > > > > On Tue May 20, 2025 at 3:06 PM EEST, Sughosh Ganu wrote: > > > There currently are multiple allocation API's in the LMB module. There > > > are a couple of API'

[PATCH v3 4/6] phy: qcom: Enable QMP UFS PHY driver for QCS8300

2025-05-21 Thread Balaji Selvanathan
Enable QMP phy for QCS8300, referenced from Linux. Reviewed-by: Casey Connolly Reviewed-by: Neil Armstrong Signed-off-by: Balaji Selvanathan --- v3: - No changes to this patch in v3 v2: - No changes to this patch in v2 --- drivers/phy/qcom/phy-qcom-qmp-ufs.c | 1 + 1 file changed, 1 insertion

[PATCH v3 5/6] qcom_defconfig: Enable QCS8300 clock driver

2025-05-21 Thread Balaji Selvanathan
Enable the QCS8300 clock driver in Qualcomm defconfig. Reviewed-by: Casey Connolly Signed-off-by: Balaji Selvanathan --- v3: - No changes to this patch in v3 v2: - Arranged the configs in alphabetical order in configs/qcom_defconfig --- configs/qcom_defconfig | 1 + 1 file changed, 1 insertion

[PATCH v3 6/6] configs: add qcs8300_defconfig

2025-05-21 Thread Balaji Selvanathan
Introduce a defconfig for QCS8300 based boards. Signed-off-by: Balaji Selvanathan --- v3: - No changes to this patch in v3 v2: - Renamed from "qcs8300_defconfig" to "qcom_qcs8300_defconfig" - Corrected a comment in qcom_qcs8300_defconfig file --- configs/qcom_qcs8300_defconfig | 21

[GIT PULL] u-boot-riscv/master

2025-05-21 Thread Leo Liang
Hi Tom, The following changes since commit a3e09b24ffd4429909604f1b28455b44306edbaa: Merge tag 'mmc-2025-05-20' of https://source.denx.de/u-boot/custodians/u-boot-mmc (2025-05-20 08:35:31 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-riscv.g

[PATCH v3 4/4] board: bsh: imx6ulz_smm_m2: Add delay between DRAM read access

2025-05-21 Thread Dario Binacchi
From: Michael Bode A small delay between DRAM read access with wrong parameters and reconfiguration is necessary. Without a delay between DRAM read access and a following reconfiguration this reconfiguration fails for certain DRAM chips (Nanya). Signed-off-by: Michael Bode Signed-off-by: Michae

[PATCH v3 2/4] board: bsh: imx6ulz_smm_m2: Add support for 256 MiB DRAM

2025-05-21 Thread Dario Binacchi
From: Simon Holesch Calibration values were calculated using the NXP tool I.MX6ULL_DDR3_Script_Aid_V0.01.xlsx Signed-off-by: Wolfgang Birkner Signed-off-by: Simon Holesch Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v2) Changes in v2: - Use standard

[PATCH v3 3/4] board: bsh: imx6ulz_smm_m2: Add support for 512 MiB DRAM

2025-05-21 Thread Dario Binacchi
From: Michael Bode Calibration values were calculated using the NXP tool I.MX6ULL_DDR3_Script_Aid_V0.01.xlsx Signed-off-by: Michael Bode Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v2) Changes in v2: - Use standard C comment style board/bsh/imx6ul

[PATCH v3 1/4] board: bsh: imx6ulz_smm_m2: Match SPL DDR settings to DCD table

2025-05-21 Thread Dario Binacchi
From: Michael Trimarchi When using SPL on i.mx6 we frequently notice some DDR initialization mismatches between the SPL code and the non-SPL code. As the non-SPL code have been tested for long time and proves to be reliable, let's configure the DDR in the exact same way as the non-SPL case. The

[PATCH v3 3/6] clk/qcom: qcs8300: Add GCC clock driver for QCS8300

2025-05-21 Thread Balaji Selvanathan
* Port Linux's gcc-qcs8300.c driver to U-Boot for basic bring-up. * Enable QCS8300 clocks in qcom_defconfig. Reviewed-by: Casey Connolly Reviewed-by: Neil Armstrong Signed-off-by: Balaji Selvanathan --- v3: - Replaced 1s with BIT(0)s in the clock definitions v2: - Arranged the configs in Kcon

[PATCH v3 2/6] dts: qcs8300-ride-u-boot.dtsi: Add memory entry to bootup

2025-05-21 Thread Balaji Selvanathan
Added the memory entry to bootup. Reviewed-by: Casey Connolly Signed-off-by: Balaji Selvanathan --- v3: - No changes to this patch in v3 v2: - No changes to this patch in v2 --- arch/arm/dts/qcs8300-ride-u-boot.dtsi | 19 +++ 1 file changed, 19 insertions(+) create mode 100644

[PATCH v3 1/6] doc: board: qualcomm: document Dragonwing board building/flashing

2025-05-21 Thread Balaji Selvanathan
Introducing documentation support for Qualcomm Dragonwing series boards. Documents the build and flashing steps. Signed-off-by: Balaji Selvanathan --- v3: - No changes to this patch in v3 v2: - This file is newly added in v2 based on suggestion from reviewer --- doc/board/qualcomm/dragonwing.rs

[PATCH v3 0/6] Introduce support for QCS8300 SoC based IQ8 Series Platform

2025-05-21 Thread Balaji Selvanathan
These patches introduce the initial support code needed for the Qualcomm Dragonwing QCS8300 SoC based IQ8 Series Platform. For information on supported boards and build instructions please refer to doc/board/qualcomm/dragonwing.rst file. Please see [1] for SoC related details 1 - https://docs.qu

Re: [PATCH v2 1/5] lmb: replace lmb_reserve() and lmb_alloc_addr() API's

2025-05-21 Thread Sughosh Ganu
On Wed, 21 May 2025 at 13:23, Ilias Apalodimas wrote: > > Hi Sughosh > > On Tue May 20, 2025 at 3:06 PM EEST, Sughosh Ganu wrote: > > There currently are multiple allocation API's in the LMB module. There > > are a couple of API's for allocating memory(lmb_alloc() and > > lmb_alloc_base()), and th

Re: QEMU & KVM broken for arm64

2025-05-21 Thread Ilias Apalodimas
++CC Mikko who stumbled upon it On Wed, 21 May 2025 at 12:07, 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 anymore. > The command line to reproduce it is: > qemu-system-a

Please pull net-20250520

2025-05-21 Thread Jerome Forissier
The following changes since commit eeb5ff1a468b2303efa9deb2483b5edbebb568c6: Merge tag 'efi-2025-07-rc3-2' of https://source.denx.de/u-boot/custodians/u-boot-efi (2025-05-18 08:06:56 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-net.git/ tags

  1   2   >