[PATCH 2/2] topic: Use distro_boot for topic-miami boards

2025-03-11 Thread Mike Looijmans
Adjust configuration and devicetree so the topic-miami board actually boots. Replace the custom scripting and just use distro_boot. Override the standard zynq routines. The board attempts to boot from SD card first, and falls back to booting UBIFS from the QSPI NOR flash. Signed-off-by: Mike Loo

[PATCH 1/2] xilinx: Allow alternative boot strategies in zynq-common.h

2025-03-11 Thread Mike Looijmans
Allow config headers that include zynq-common.h to provide their own (distro) boot strategies. This is implemented by skipping the section when BOOT_ENV has already been defined. Signed-off-by: Mike Looijmans --- include/configs/zynq-common.h | 6 ++ 1 file changed, 6 insertions(+) diff --

[PATCH v2 1/1] common: edid: update timing selection logic

2025-03-11 Thread Svyatoslav Ryhel
From: Jonas Schwöbel Older EDID timing algorithms relied solely on detailed timings, typically optimized for a display's native resolution. This caused issues with newer 4K panels on older hardware, which couldn't handle those high resolutions. To address this, the algorithm now also considers st

[PATCH v2 0/1] common: edid: update timing selection logic

2025-03-11 Thread Svyatoslav Ryhel
Older EDID timing algorithms relied solely on detailed timings, typically optimized for a display's native resolution. This caused issues with newer 4K panels on older hardware, which couldn't handle those high resolutions. To address this, the algorithm now also considers standard timings, offerin

Re: [PATCH v1 6/6] configs: add qcom_ipq5424_mmc_defconfig

2025-03-11 Thread Caleb Connolly
Hi Varadarajan, Thanks for the series, and apologies for the slow reply, i've been out sick and still finding my feet again. On 3/4/25 11:01, Varadarajan Narayanan wrote: Introduce a defconfig for the Qualcomm IPQ5424 SoC based RDPs. Presently supports eMMC. Per the flash memory layout, U-Bo

Re: [PATCH] cmd: version: Get information about GCC and LD back

2025-03-11 Thread Tom Rini
On Mon, Mar 10, 2025 at 08:49:32AM +0100, Michal Simek wrote: > > > On 3/6/25 15:12, Michal Simek wrote: > > > > > > On 3/6/25 15:02, Tom Rini wrote: > > > On Thu, Mar 06, 2025 at 11:12:30AM +0100, Michal Simek wrote: > > > > U-Boot version command is no longer showing information about GCC and

Re: [PATCH v1] config: falcon: move CFG_SYS_SPI_* to Kconfig

2025-03-11 Thread Tom Rini
On Mon, Mar 10, 2025 at 07:06:46PM +0530, Anshul Dalal wrote: > CFG_SYS_SPI_* are used in falcon boot to specify the offsets and size of > the repsective payloads. This patch moves them to Kconfig keeping the > values consistent for each of the effected boards. > > Signed-off-by: Anshul Dalal >

[PATCH v2 4/4] doc: board/qualcomm: describe phone support and bringup

2025-03-11 Thread Caleb Connolly
Add some documentation which attempts to describe Qualcomm smartphone support with the qcom-phone.config fragment, as well as a high level debugging guide for diagnosing U-Boot issues when UART and framebuffer are unavailable. Reviewed-by: Simon Glass Signed-off-by: Caleb Connolly --- doc/board

[PATCH 08/19] arm: mach-k3: am62a7_init: Resume on LPM exit

2025-03-11 Thread Markus Schneider-Pargmann
When exiting a low power mode with DDR self-refresh, we can directly resume after DDR setup is done. Call the common function to resume. Signed-off-by: Markus Schneider-Pargmann --- arch/arm/mach-k3/am62ax/am62a7_init.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-k

Re: [PATCH 06/10] test/py: Rework test_eficonfig to not use virt-make-fs

2025-03-11 Thread Ilias Apalodimas
Hi Tom, I've never really looked at our fs helper functions but this looks reasonable On Fri, 7 Mar 2025 at 01:23, Tom Rini wrote: > > The problem with using "virt-make-fs" to make a filesystem image is that > it is extremely slow. Switch to using the fs_helper functions we have > instead from t

Re: [PATCH 08/10] test/py: Rework test_efi_secboot to not use virt-make-fs

2025-03-11 Thread Ilias Apalodimas
On Fri, 7 Mar 2025 at 01:23, Tom Rini wrote: > > The problem with using "virt-make-fs" to make a filesystem image is that > it is extremely slow. Switch to using the fs_helper functions we have > instead from the filesystem tests as these can add files to images and > are significantly faster and

Re: [PATCH v1 1/2] ARM: tegra: clock: fix PLLD/PLLD2 related clock calculations

2025-03-11 Thread Svyatoslav Ryhel
ср, 5 бер. 2025 р. о 16:35 Svyatoslav Ryhel пише: > > ср, 5 бер. 2025 р. о 16:02 Thierry Reding пише: > > > > On Wed, Mar 05, 2025 at 03:52:36PM +0200, Svyatoslav Ryhel wrote: > > > ср, 5 бер. 2025 р. о 15:47 Thierry Reding пише: > > > > > > > > On Wed, Mar 05, 2025 at 01:12:12PM +0200, Svyatosl

[PATCH v1 2/3] riscv: Select appropriate image type

2025-03-11 Thread Mayuresh Chitale
Select between the 32-bit or 64-bit arch type for the image headers depending on how the build is configured. Signed-off-by: Mayuresh Chitale --- arch/riscv/dts/binman.dtsi | 14 ++ arch/riscv/include/asm/u-boot.h | 4 2 files changed, 14 insertions(+), 4 deletions(-) dif

Re: [PATCH v7 2/8] efi_loader: install device-tree on configuration table on every invocation

2025-03-11 Thread Ilias Apalodimas
Hi Sughosh, [...] > { > - unsigned long fdt_pages; > efi_status_t ret = 0; > void *fdt, *new_fdt; > - u64 new_fdt_addr; > - uint fdt_size; > + static u64 new_fdt_addr; > + static ulong fdt_pages; efi_uintn_t fdt_pages > + ulong fdt_size; > +

Re: [PATCH v7 1/8] efi_loader: remove unused code from copy_fdt()

2025-03-11 Thread Heinrich Schuchardt
On 11.03.25 14:21, Ilias Apalodimas wrote: Heinrich, do you remember why this was originally here? I looked at 6422820ac3e59 which moved that code around, but the same code was there as well On Mon, 10 Mar 2025 at 13:58, Sughosh Ganu wrote: There is logic in the copy_fdt() function which is

Re: [PATCH v3 06/14] uthread: add cooperative multi-tasking interface

2025-03-11 Thread Ilias Apalodimas
On Tue, 4 Mar 2025 at 17:31, Jerome Forissier wrote: > > Add a new internal API called uthread (Kconfig symbol: UTHREAD) which > provides cooperative multi-tasking. The goal is to be able to improve > the performance of some parts of U-Boot by overlapping lengthy > operations, and also implement b

[PATCH v3] spl: return header size to spl_load in os boot

2025-03-11 Thread Anshul Dalal
During linux build process the header size is computed including the BSS whereas it's removed when creating the uncompressed image. Therefore the size of the uncompressed image on filesystem will be smaller than the size specified in the header. This causes issues when loading the kernel image fro

[PATCH v1] spl: remove usage of CMD_(BOOTI|BOOTZ) from image parsing

2025-03-11 Thread Anshul Dalal
Using CMD_* configs from spl doesn't make logical sense. Therefore this patch removes the check for CONFIG_CMD_BOOT(I|Z) from the image parsing code during falcon boot and adds compilation targets for image.c and zimage.c on SPL_OS_BOOT. More info: https://lore.kernel.org/u-boot/20250310135544.GV2

Reading QSPI on zynq7 broken since commit 9bb02f7f4533

2025-03-11 Thread Mike Looijmans
After a bisect session, turned out this causes my topic-miami board to fail to boot from QSPI: Commit 9bb02f7f4533: "mtd: spi-nor: Fix the spi_nor_read() when config SPI_STACKED_PARALLEL is enabled" I haven't determined yet what the bug is exactly. The board has a single QSPI chip attached t

Re: [PATCH 07/10] test/py: Rework test_efi_capsule to not use virt-make-fs

2025-03-11 Thread Ilias Apalodimas
On Fri, 7 Mar 2025 at 01:23, Tom Rini wrote: > > The problem with using "virt-make-fs" to make a filesystem image is that > it is extremely slow. Switch to using the fs_helper functions we have > instead from the filesystem tests as these can add files to images and > are significantly faster and

[PATCH 12/19] arm64: dts: ti: k3-am62a-main: Add C7xv device node

2025-03-11 Thread Markus Schneider-Pargmann
From: Jai Luthra AM62A SoCs have a C7xv DSP subsystem with Analytics engine capability. This subsystem is intended for deep learning purposes. Define the device node for C7xv DSP. Signed-off-by: Jai Luthra Signed-off-by: Hari Nagalla Signed-off-by: Judith Mendez Acked-by: Andrew Davis Link:

Re: [PATCH v2 1/1] cmd: simplify eficonfig_init()

2025-03-11 Thread Ilias Apalodimas
On Mon, 10 Mar 2025 at 08:13, Heinrich Schuchardt wrote: > > As the system table already has pointers to the Simple Text Input and > Output Protocols we can directly use these instead of calling > OpenProtocol. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > remove unused variable ha

[PATCH v1 3/3] booti/bootm: riscv: Verify image arch type

2025-03-11 Thread Mayuresh Chitale
Unlike ARM and X86, booting 32-bit images on 64-bit CPUs is currently not supported for Risc-V. Hence, for bootm, disallow booting a FIT or a legacy image that was built for an arch type which is different than the current arch and for booti, set the arch type to be the same as the current arch. S

[PATCH v1 0/3] Risc-V 32 bit/64 bit images

2025-03-11 Thread Mayuresh Chitale
This series adds support for building different images for 32-bit vs 64-bit Risc-V CPUs and also for verifying the target arch of an image before booting it. Changes from RFC: - Rebase on latest master branch - Improve commit message for patch 3 Mayuresh Chitale (3): riscv: image: Add new image

[PATCH 03/16] efi_loader: efi_net: Reuse efi_net_obj's

2025-03-11 Thread Adriano Cordova
Signed-off-by: Adriano Cordova --- lib/efi_loader/efi_net.c | 81 +--- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c index 8c0a3f5243c..d84fa6c2bc6 100644 --- a/lib/efi_loader/efi_net.c +++ b

[PATCH 01/16] efi_driver: efi_net: Add EFI network device driver

2025-03-11 Thread Adriano Cordova
Register the U-boot ethernet udevices in the EFI network stack as efi_net_obj when they get probed, and unregister them when the udevice gets removed Signed-off-by: Adriano Cordova --- include/efi_loader.h| 10 +- lib/efi_driver/Makefile | 1 + lib/efi_driver/efi_net_devic

[PATCH 04/16] efi_loader: efi_net: Let efi_net_obj store pointers to efi_simple_network, efi_simple_network_mode, and the efi handle

2025-03-11 Thread Adriano Cordova
This way the protocol and the handle can be externally provided. This comes in preparation to support ConnectController. Signed-off-by: Adriano Cordova --- lib/efi_loader/efi_net.c | 119 --- 1 file changed, 75 insertions(+), 44 deletions(-) diff --git a/lib/

[PATCH 02/16] efi_loader: efi_net: check efi_search_protocol return value

2025-03-11 Thread Adriano Cordova
Signed-off-by: Adriano Cordova --- lib/efi_loader/efi_net.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c index 0334eedaf5c..8c0a3f5243c 100644 --- a/lib/efi_loader/efi_net.c +++ b/lib/efi_loader/efi_net.c @@

[PATCH 00/16] EFI net driver - series 2/2: Support multiple EFI net objects

2025-03-11 Thread Adriano Cordova
This series finishes adding support for multiple network interfaces in the EFI network stack. This series relies on "EFI net driver - series 1/2: Support multiple EFI net objects". In this series two drivers are introduced: first, an EFI driver that manages handles that have the efi simple network

[PATCH 08/16] efi_driver: efi_net: UCLASS_ETH driver for EFI net devices

2025-03-11 Thread Adriano Cordova
Ethernet driver that uses an underlying efi_simple_network_protocol to send packages. Signed-off-by: Adriano Cordova --- include/efi_loader.h| 12 +++ lib/efi_driver/efi_net_device.c | 159 2 files changed, 171 insertions(+) diff --git a/include/efi

[PATCH 06/16] efi_loader: efi_net: Manage EFI net objects with efi_[dis]connect_controller

2025-03-11 Thread Adriano Cordova
For U-Boot devices connect_controller gets called in efi_netobj_init Signed-off-by: Adriano Cordova --- include/efi_loader.h| 2 +- lib/efi_driver/efi_net_device.c | 4 +--- lib/efi_loader/efi_net.c| 30 -- 3 files changed, 26 insertions(+), 10 d

[PATCH 05/16] efi_net: efi_loader: Add efi_netobj_alloc to allocate an efi_net_obj

2025-03-11 Thread Adriano Cordova
Rework the logic to allocate an efi_net_obj and its members. An efi_net_obj now gets allocated only in efi_netobj_alloc. Signed-off-by: Adriano Cordova --- lib/efi_loader/efi_net.c | 131 --- 1 file changed, 80 insertions(+), 51 deletions(-) diff --git a/lib/

[PATCH 07/16] eth_uclass: Add eth_create_device to create a net udevice

2025-03-11 Thread Adriano Cordova
This comes in preparation to support calling connect_controller with a handle with the efi_simple_network_protocol installed. Signed-off-by: Adriano Cordova --- include/net-common.h | 2 ++ net/eth-uclass.c | 32 2 files changed, 34 insertions(+) diff --git

[PATCH 09/16] efi_driver: efi_uclass: Add unbind method to efi_driver_ops

2025-03-11 Thread Adriano Cordova
Signed-off-by: Adriano Cordova --- include/efi_driver.h| 4 lib/efi_driver/efi_uclass.c | 4 2 files changed, 8 insertions(+) diff --git a/include/efi_driver.h b/include/efi_driver.h index 63a95e4cf80..8f785f79459 100644 --- a/include/efi_driver.h +++ b/include/efi_driver.h @@

[PATCH 11/16] efi_loader: efi_net: Add http, ip4_config2, and pxe on demand

2025-03-11 Thread Adriano Cordova
Add http and ip4_config2 only if they are not already provided in the handle. The current use of pxe is only to store an ip address if a dhcp ack is received, this address is used by grub. Add pxe only if a dhcp ack is actually received. Signed-off-by: Adriano Cordova --- include/efi_loader.h

[PATCH 12/16] efi_loader: efi_net: add snp_owner field to efi_net_obj struct

2025-03-11 Thread Adriano Cordova
Two efi_net_obj's could share the same efi_simple_network_protocol interface. For example, say a working U-Boot net device is registered in the EFI subsystem, this will create an instance of an efi simple network protocol. Then another handle, say handle A, could be created using this same efi simp

[PATCH 10/16] efi_driver: efi_net: Add efi_net_unbind_drv method to efi_net driver

2025-03-11 Thread Adriano Cordova
Signed-off-by: Adriano Cordova --- lib/efi_driver/efi_net_device.c | 44 + 1 file changed, 44 insertions(+) diff --git a/lib/efi_driver/efi_net_device.c b/lib/efi_driver/efi_net_device.c index 3838cc47158..bc4edde19b0 100644 --- a/lib/efi_driver/efi_net_device.c +

[PATCH 13/16] efi_selftest: Add selftest for counting EFI netdevices

2025-03-11 Thread Adriano Cordova
Signed-off-by: Adriano Cordova --- lib/efi_selftest/Makefile | 2 +- lib/efi_selftest/efi_selftest_net_device.c | 65 ++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 lib/efi_selftest/efi_selftest_net_device.c diff --git a/lib/efi_self

[PATCH 16/16] efi_selftest: Add test for efi_netdev driver

2025-03-11 Thread Adriano Cordova
Signed-off-by: Adriano Cordova --- lib/efi_selftest/Makefile | 2 +- lib/efi_selftest/efi_selftest_net_driver.c | 310 + 2 files changed, 311 insertions(+), 1 deletion(-) create mode 100644 lib/efi_selftest/efi_selftest_net_driver.c diff --git a/lib/efi_se

[PATCH 14/16] py/tests: test_efi_selftest: Add test for counting EFI netdevices

2025-03-11 Thread Adriano Cordova
Signed-off-by: Adriano Cordova --- test/py/tests/test_efi_selftest.py | 21 + 1 file changed, 21 insertions(+) diff --git a/test/py/tests/test_efi_selftest.py b/test/py/tests/test_efi_selftest.py index 310d8ed294a..af9992a6f7f 100644 --- a/test/py/tests/test_efi_selftest.py

[PATCH 15/16] py/tests: test_efi_selftest: Add test for removing EFI netdevices

2025-03-11 Thread Adriano Cordova
Signed-off-by: Adriano Cordova --- test/py/tests/test_efi_selftest.py | 24 1 file changed, 24 insertions(+) diff --git a/test/py/tests/test_efi_selftest.py b/test/py/tests/test_efi_selftest.py index af9992a6f7f..2b7944d1983 100644 --- a/test/py/tests/test_efi_selftest.

[PATCH 06/19] arm: mach-k3: common: Add lpm_resume_from_ddr

2025-03-11 Thread Markus Schneider-Pargmann
This is a common function that helps to resume from DDR. There are two pointers which are fetched from DDR to resume, the TIFS context pointer which points to the context in DDR. There is another pointer to the DM loadaddr to jump back into DM. Signed-off-by: Markus Schneider-Pargmann --- arch/a

Re: [PATCH 00/19] am62: IO+DDR resume support

2025-03-11 Thread Sumit Garg
Hi Markus, On Tue, 11 Mar 2025 at 16:02, Markus Schneider-Pargmann wrote: > > Hi, > > this series introduces support to resume from IO+DDR. IO+DDR is a low > power mode of am62a and am62p in which nearly everything is powered off > except DDR which is in self-refresh and a few pins which detect >

Re: [PATCH 1/2] xilinx: Allow alternative boot strategies in zynq-common.h

2025-03-11 Thread Michal Simek
On 3/11/25 08:01, Mike Looijmans wrote: Allow config headers that include zynq-common.h to provide their own (distro) boot strategies. This is implemented by skipping the section when BOOT_ENV has already been defined. Signed-off-by: Mike Looijmans --- include/configs/zynq-common.h | 6 ++

Re: [PATCH v2 4/4] drivers: i2c: Kconfig: Add CONFIG_SYS_I2C_OMAP24XX_REPEATED_START

2025-03-11 Thread Heiko Schocher
Hello Aniket, On 10.03.25 11:36, Aniket Limaye wrote: Add a Kconfig option to disable sending Stop conditions between multiple i2c_msgs within a single xfer. Enable this config by default for ARCH_K3 platforms. Signed-off-by: Aniket Limaye --- v2: - CONFIG_I2C_REPEATED_START -> CONFIG_SYS_I2C

Re: [PATCH v3 14/14] MAINTAINERS: add UTHREAD

2025-03-11 Thread Ilias Apalodimas
On Tue, 4 Mar 2025 at 17:31, Jerome Forissier wrote: > > Add myself as the maintainer for the UTHREAD framework, the spawn/wait > commands and the associated tests. > > Signed-off-by: Jerome Forissier > --- > MAINTAINERS | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/MAINTAINE

Re: [PATCH 2/5] arm: include asm-generic/int-ll64.h in setjmp.h

2025-03-11 Thread Ilias Apalodimas
On Sun, 2 Mar 2025 at 16:22, Heinrich Schuchardt wrote: > > Don't assume that u32 and u64 are already defined. > > Signed-off-by: Heinrich Schuchardt > --- > arch/arm/include/asm/setjmp.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/include/asm/setjmp.h b/arch/arm/include/

[PATCH v2 0/4] Better smartphone support (Qualcomm)

2025-03-11 Thread Caleb Connolly
Improve support for running U-Boot on [Qualcomm] smartphones, with: * A boot menu which can be entered by holding power during boot * Hang on panic (so errors can be read on the display) * Serial gadget which can be enabled by holding volume down or via boot menu In its current form, U-Boot's b

[PATCH v2 1/4] board/qualcomm: introduce phone config

2025-03-11 Thread Caleb Connolly
Phones don't have keyboards! Introduce a phone-specific config fragment and associated environment file to make U-Boot more useful on these devices. This allows for navigating via the buttons and enabling various USB gadget modes or displaying info about U-Boot. Reviewed-by: Simon Glass Signed-of

[PATCH v2 2/4] cli_hush: support running bootcmd on boot retry

2025-03-11 Thread Caleb Connolly
Introduce a new config option: RETRY_BOOTCMD. When enabled this causes hush shell to re-run "bootcmd" when the auto-boot counter times out. Signed-off-by: Caleb Connolly --- boot/Kconfig | 7 +++ common/cli_hush.c | 6 -- common/cli_hush_upstream.c | 6 -- 3 fi

[PATCH v2 3/4] bootretry: check for bootretry variable changes

2025-03-11 Thread Caleb Connolly
To enable more complex sequencing of the bootmenu, autoboot, and bootretry, handle changes to the bootretry variable between tries. This makes it possible to turn bootretry off (e.g. to drop to a shell) and then back on again. This makes it possible to have a persistent bootmenu (the only way to n

Re: boottime->efi_allocate_pages() returning EFI_NOT_FOUND

2025-03-11 Thread Ilias Apalodimas
+CC Ard On Sat, 8 Mar 2025 at 19:36, Ben Schneider wrote: > > On Wednesday, March 5th, 2025 at 12:20 AM, Heinrich Schuchardt > wrote: > > > > On 3/5/25 09:13, Sughosh Ganu wrote: > > > > > > Can you check what is the address being asked for in the > > > lmb_alloc_addr() function. > > > > maybe

Re: [PATCH 1/2] xilinx: Allow alternative boot strategies in zynq-common.h

2025-03-11 Thread Mike Looijmans
On 11-03-2025 09:03, Michal Simek wrote: On 3/11/25 08:01, Mike Looijmans wrote: Allow config headers that include zynq-common.h to provide their own (distro) boot strategies. This is implemented by skipping the section when BOOT_ENV has already been defined. Signed-off-by: Mike Looijmans --

[PATCH v2 2/8] mach-k3: fix reading size and addr from fdt on R5

2025-03-11 Thread Anshul Dalal
fdtdec_get_addr_size uses architecture dependent datatypes which causes the 32-bit R5 to fail when reading the 64-bit size and addr fields of reg nodes from the fdt. This changes it to a common api for both 64 and 32 bit platforms. Now fdt fixups can be applied to the fdt from R5. Signed-off-by:

Re: [PATCH v3 07/14] cyclic: invoke uthread_schedule() from schedule()

2025-03-11 Thread Stefan Roese
On 04.03.25 16:24, Jerome Forissier wrote: Make the schedule() call from the CYCLIC framework a uthread scheduling point too. This makes sense since schedule() is called from a lot of places where uthread_schedule() needs to be called. Signed-off-by: Jerome Forissier Reviewed-by: Ilias Apalodim

[PATCH v2 0/8] Add falcon support for am62a, 62p and 62x

2025-03-11 Thread Anshul Dalal
This patch set adds support for falcon boot on AM62a, 62p and 62x by bypassing A53 SPL and U-boot. Existing Boot flow: R5 SPL -> ATF -> A53 SPL -> U-Boot -> Linux Kernel Updated flow: R5 SPL -> ATF -> Linux Kernel U-boot's falcon flow expects the jump from SPL to kernel to happen on the same cor

[PATCH v2 1/8] spl: Kconfig: allow K3 devices to use falcon mode

2025-03-11 Thread Anshul Dalal
Falcon mode was disabled for TI_SECURE_DEVICE at commit e95b9b4437bc ("ti_armv7_common: Disable Falcon Mode on HS devices") for older 32-bit HS devices and can be enabled on K3 devices. For secure boot, the kernel with x509 headers can be packaged in a fit container (fitImage) signed with TIFS key

[PATCH v2 4/8] arch: arm: k3-binman: add fit for falcon boot

2025-03-11 Thread Anshul Dalal
This adds creation of tispl_falcon.bin for the am62a, 62p and 62x. The contents are the same as the existing tispl.bin but A53's spl and the fdt have been removed as they are not needed in falcon boot. This reduces boot time since the payload size is smaller and we also aren't authenticating the

[PATCH v2 8/8] mach-k3: common: add falcon support for 62[axp]

2025-03-11 Thread Anshul Dalal
We use the spl_board_prepare_for_boot hook to call k3_falcon_prep which is ran after tispl is loaded but before jump_to_image. In here, we find the boot media and load the image just as std falcon flow (since spl_start_uboot returns 0 now). Once the kernel and args are loaded, we perform fdt fixup

[PATCH v2 6/8] mach-k3: sysfw-loader: update img_hdr for falcon

2025-03-11 Thread Anshul Dalal
The returned legacy_img_hdr is used by booti_setup to compute the load address for the kernel image. This change ensures the kernel load address is CONFIG_SYS_LOAD_ADDR in falcon boot. Signed-off-by: Anshul Dalal --- arch/arm/mach-k3/r5/sysfw-loader.c | 6 +- 1 file changed, 5 insertions(+)

[PATCH v2 7/8] config: add falcon boot config fragment for am62x

2025-03-11 Thread Anshul Dalal
This fragment enables falcon boot for the am62x, 62a and 62p. To have enough stack and heap space for loading kernel image as FIT, the memory map was modified as shown below, the PRELOADED_BL33_BASE in ATF has to also be updated to 0x8020 since the kernel requires to be loaded at 2MiB aligned

[PATCH v2 5/8] mach-k3: add eMMC FS boot support for am62[ap]

2025-03-11 Thread Anshul Dalal
This makes spl_mmc_boot_mode consistent across am62x, 62a and 62p. If MMCSD_MODE_EMMCBOOT is returned, FS boot fails since it checks for FS on the hardware partitions, not the UDA. So to allow FS boot from EMMC, the function should return MMCSD_MODE_FS instead which allows us to read from FS on th

[PATCH v1 2/2] arm: socfpga: spl: Notify SDM on FSBL execution

2025-03-11 Thread alif . zakuan . yuslaimi
From: Alif Zakuan Yuslaimi Send out "HPS_STAGE_NOTIFY" mailbox command to the Secure Device Manager (SDM) in SPL to inform SDM on FSBL execution. This is necessary for the SDM to recognize that the FSBL stage has begun its execution and should be made as early as possible in the FSBL process. T

[PATCH 14/19] arm64: dts: ti: k3-am62p5-sk: Enable IPC with remote processors

2025-03-11 Thread Markus Schneider-Pargmann
From: Devarsh Thakkar For each remote proc, reserve memory for IPC and bind the mailbox assignments. Two memory regions are reserved for each remote processor. The first region of 1MB of memory is used for Vring shared buffers and the second region is used as external memory to the remote process

[PATCH 10/19] arm64: dts: ti: k3-am62a-mcu: Add R5F remote proc node

2025-03-11 Thread Markus Schneider-Pargmann
From: Hari Nagalla AM62A SoCs have a single R5F core in the MCU voltage domain. Add the R5FSS node with the child node for core0 in MCU voltage domain .dtsi file. Signed-off-by: Hari Nagalla Signed-off-by: Judith Mendez Acked-by: Andrew Davis Link: https://lore.kernel.org/r/20250210221530.123

[PATCH 18/19] configs: am62ax_evm_r5: Enable IODDR resume support

2025-03-11 Thread Markus Schneider-Pargmann
Enable K3_IODDR to enable support to resume from DDR after exiting IO+DDR. Signed-off-by: Markus Schneider-Pargmann --- configs/am62ax_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am62ax_evm_r5_defconfig b/configs/am62ax_evm_r5_defconfig index 1f7750c4c031a273321

[PATCH 16/19] arm: dts: k3-am62a: Add r5 device nodes

2025-03-11 Thread Markus Schneider-Pargmann
These are needed in SPL to be able to resume from DDR immediately after booting from IO+DDR. Signed-off-by: Markus Schneider-Pargmann --- arch/arm/dts/k3-am62a7-sk-u-boot.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/k3-am62a7-sk-u-boot.dtsi b/arch/arm/

[PATCH 03/19] ram: k3-ddrss: Add support for DDR in self-refresh

2025-03-11 Thread Markus Schneider-Pargmann
In IO+DDR the DDR is kept in self-refresh while the SoC cores are powered off completely. During boot the normal initialization routine of DDR is slightly different to exit self-refresh and keep the DDR contents. Signed-off-by: Markus Schneider-Pargmann --- drivers/ram/k3-ddrss/k3-ddrss.c | 165

[PATCH 17/19] arm: dts: k3-am62p: Add r5 device nodes

2025-03-11 Thread Markus Schneider-Pargmann
These are needed in SPL to be able to resume from DDR immediately after booting from IO+DDR. Signed-off-by: Markus Schneider-Pargmann --- arch/arm/dts/k3-am62p5-sk-u-boot.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/dts/k3-am62p5-sk-u-boot.dtsi b/arch/

[PATCH 19/19] configs: am62p_evm_r5_defconfig: Enable IODDR resume support

2025-03-11 Thread Markus Schneider-Pargmann
Enable K3_IODDR to enable support to resume from DDR after exiting IO+DDR. Signed-off-by: Markus Schneider-Pargmann --- configs/am62px_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am62px_evm_r5_defconfig b/configs/am62px_evm_r5_defconfig index c3adfb8697a73198298

[PATCH 01/19] arm: mach-k3: Remove CANUART IO isolation

2025-03-11 Thread Markus Schneider-Pargmann
After leaving the Partial-IO mode or other deep sleep states, the IO isolation needs to be removed. This routine is shared by at least am62, am62a and am62p. The original function for testing was developed by Akashdeep Kaur Signed-off-by: Markus Schneider-Pargmann --- arch/arm/mach-k3/am62ax/a

[PATCH 00/19] am62: IO+DDR resume support

2025-03-11 Thread Markus Schneider-Pargmann
Hi, this series introduces support to resume from IO+DDR. IO+DDR is a low power mode of am62a and am62p in which nearly everything is powered off except DDR which is in self-refresh and a few pins which detect activity and can wakeup the system again. On resume uboot SPL is loaded and checks if t

[PATCH 15/19] arm64: dts: ti: k3-am62x-sk-common: Enable IPC with remote processors

2025-03-11 Thread Markus Schneider-Pargmann
From: Hari Nagalla For each remote proc, reserve memory for IPC and bind the mailbox assignments. Two memory regions are reserved for each remote processor. The first region of 1MB of memory is used for Vring shared buffers and the second region is used as external memory to the remote processor

[PATCH 05/19] arm: mach-k3: common: Add CANUART wakeup check helpers

2025-03-11 Thread Markus Schneider-Pargmann
Add dedicated helper functions to check CANUART wake registers and magic word. This helps determining if we are in a wakeup or if CAN IO isolation has to be removed. Also add a helper to detect a low power mode exit/resume. Signed-off-by: Markus Schneider-Pargmann --- arch/arm/mach-k3/common.c

[PATCH 09/19] arm: mach-k3: am62p5_init: Resume on LPM exit

2025-03-11 Thread Markus Schneider-Pargmann
When exiting a low power mode with DDR self-refresh, we can directly resume after DDR setup is done. Call the common function to resume. Signed-off-by: Markus Schneider-Pargmann --- arch/arm/mach-k3/am62px/am62p5_init.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mac

[PATCH v1 1/2] arm: socfpga: mailbox: Notify SDM on HPS code execution stages

2025-03-11 Thread alif . zakuan . yuslaimi
From: Alif Zakuan Yuslaimi Introducing a new mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on the stage of HPS code execution. Generally, there are three main code execution stages: First Stage Boot Loader (FSBL) which is U-Boot SPL, Second Stage Boot Loader (SSBL) whi

[PATCH v1 0/2] Add HPS Notification for HPS boot stages

2025-03-11 Thread alif . zakuan . yuslaimi
From: Alif Zakuan Yuslaimi Introduce a new mailbox command to notify the Secure Device Manager (SDM) on the stage of HPS code execution. Generally, there are three main code execution stages: First Stage Boot Loader (FSBL) which is U-Boot SPL, Second Stage Boot Loader (SSBL) which is U-Boot, and

RE: [PATCH] drivers: ddr: altera: Fix integer overflow during size calculation

2025-03-11 Thread Chee, Tien Fong
> -Original Message- > From: Ravulapalli, Naresh Kumar > Sent: Friday, March 7, 2025 6:29 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Simon Goldschmidt > ; Chee, Tien Fong > ; Meng, Tingting ; > Tom Rini ; Ravulapalli, Naresh Kumar > > Subject: [PATCH] drivers: ddr: altera: Fix i

RE: [PATCH 1/2] arch: arm: dts: Enable kernel itb file generation for Agilex5 SoCFPGA

2025-03-11 Thread Chee, Tien Fong
> -Original Message- > From: Ravulapalli, Naresh Kumar > Sent: Tuesday, March 4, 2025 1:07 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Simon Goldschmidt > ; Chee, Tien Fong > ; Meng, Tingting ; > Tom Rini ; Ng, Boon Khai ; > Jit Loon Lim ; Alif Zakuan Yuslaimi > ; Ravulapalli, Nar

[PATCH 13/19] arm64: dts: ti: k3-am62a7-sk: Enable IPC with remote processors

2025-03-11 Thread Markus Schneider-Pargmann
From: Devarsh Thakkar For each remote proc, reserve memory for IPC and bind the mailbox assignments. Two memory regions are reserved for each remote processor. The first region of 1MB of memory is used for Vring shared buffers and the second region is used as external memory to the remote process

[PATCH 04/19] firmware: ti_sci: Add TI_SCI_MSG_MIN_CONTEXT_RESTORE

2025-03-11 Thread Markus Schneider-Pargmann
This patch adds code to be able to call TI_SCI_MSG_MIN_CONTEXT_RESTORE. The context needs to be restored after booting SPL when resuming from IO+DDR. Signed-off-by: Markus Schneider-Pargmann --- drivers/firmware/ti_sci.c | 38 ++ drivers/firmware/ti_s

[PATCH 07/19] arm: mach-k3: common: Helper for LPM meta data address from DT

2025-03-11 Thread Markus Schneider-Pargmann
Add a small helper that uses memory regions referenced by the R5 devicetree node to calculate the LPM meta data address. Signed-off-by: Markus Schneider-Pargmann --- arch/arm/mach-k3/common.c | 43 +++ arch/arm/mach-k3/common.h | 1 + 2 files changed, 44

[PATCH 02/19] arm: mach-k3: Kconfig: Add symbols for IO+DDR Low Power Mode

2025-03-11 Thread Markus Schneider-Pargmann
There is one new symbol to enable support to resume from IO+DDR where the SoC is turned off and DDR is in self-refresh. The other symbol is the address of a memory region to be used to store meta data. This has to be the same address as is used by the firmware. Signed-off-by: Markus Schneider-Par

Re: [PATCH v7 1/8] efi_loader: remove unused code from copy_fdt()

2025-03-11 Thread Ilias Apalodimas
Heinrich, do you remember why this was originally here? I looked at 6422820ac3e59 which moved that code around, but the same code was there as well On Mon, 10 Mar 2025 at 13:58, Sughosh Ganu wrote: > > There is logic in the copy_fdt() function which is iterating over the > platform's DRAM banks

Re: [PATCH 1/4] airoha: Add initial support for Airoha AN7581 SoC

2025-03-11 Thread Tom Rini
On Sun, Mar 09, 2025 at 03:06:43PM +0100, Christian Marangi wrote: > Add initial support for Airoha AN7581 SoC. This adds the initial Kconfig > and Makefile entry for the SoC, an initial RFB DTS and initial config > for it. Also add the initial code for cpu and RAM initialization. > > Signed-off-b

[PATCH v1] config: falcon: move CFG_SYS_SPI_* to Kconfig

2025-03-11 Thread Anshul Dalal
CFG_SYS_SPI_* are used in falcon boot to specify the offsets and size of the repsective payloads. This patch moves them to Kconfig keeping the values consistent for each of the effected boards. Signed-off-by: Anshul Dalal --- Tested: * U-boot CI: https://github.com/u-boot/u-boot/pull/750 --- com

[PATCH v7 5/8] efi_loader: preserve installer images in pmem

2025-03-11 Thread Sughosh Ganu
From: Ilias Apalodimas One of the problems OS installers face, when running in EFI, is that the mounted ISO after calling ExitBootServices goes away. For some distros this is a problem since they rely on finding some core packages before continuing the installation. Distros have works around this

Re: [PATCH v2] amd: versal2: Add the UFS boot mode support

2025-03-11 Thread Michal Simek
On 2/25/25 04:28, Venkatesh Yadav Abbarapu wrote: Add the UFS boot mode support and update the boot_targets with ufs mode. If the UFS device is not accessible from APU and running this is detected as a warning, as the device is not accessible. Signed-off-by: Venkatesh Yadav Abbarapu --- Chan

[PATCH v3 1/8] legacy-net: wget: fix wget_info handling after new tcp legacy stack

2025-03-11 Thread Adriano Cordova
Check wget_info->buffer_size for overflow and do not clean the wget_info struct on failure, let the owner of the struct handle the error. The latter is necesary , e.g., for when a request fails because the provided buffer was too small. Signed-off-by: Adriano Cordova --- (no changes since v1)

Re: [PATCH 00/17] Various toolchain compatibility fixes/improvements

2025-03-11 Thread Tom Rini
On Fri, Mar 07, 2025 at 10:48:11PM -0800, Sam Edwards wrote: > On Thu, Mar 6, 2025 at 7:47 AM Tom Rini wrote: > > > > On Wed, Mar 05, 2025 at 07:46:56PM -0800, Sam Edwards wrote: > > > On Sun, Feb 23, 2025 at 9:55 PM Sam Edwards wrote: > > > > > > > > Long time no see, U-Boot folks! > > > > > > >

Re: [PULL] Pull request for u-boot master / v2025.04 = u-boot-stm32-20250310

2025-03-11 Thread Tom Rini
On Mon, Mar 10, 2025 at 01:21:27PM +0100, Patrice CHOTARD wrote: > Hi Tom > > Please pull the STM32 related patches for u-boot/master, v2025.04 = > u-boot-stm32-20250310 > > CI status: > https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/25054 > > Thanks > Patrice > > > The fol

[PATCH] ARM: dts: imx: Drop bogus regulator extras on DH i.MX6 DHCOM DRC02

2025-03-11 Thread Marek Vasut
The regulator extras should be placed in the USB H1 regulator node, the /regulator-usb-h1-vbus. They are already present there in the upstream DT, so delete this bogus node entirely. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Andreas Geisreiter Cc: Christoph Niedermaier Cc:

Re: [PATCH] mcheck: Fix SPDX License Identifier to LGPL-2.1-or-later

2025-03-11 Thread Tom Rini
On Sat, 01 Mar 2025 11:14:12 +0100, Diederik de Haas wrote: > The GPL-2.1+ SPDX License Identifier doesn't exist, but luckily the full > license text was available which shows that GPL-2.1+ was a typo and it > should have been LGPL-2.1-or-later. > As the '+' in LGPL-2.1+ is deprecated in SPDX 3.0,

[PATCH v2] config: falcon: move CFG_SYS_SPI_* to Kconfig

2025-03-11 Thread Anshul Dalal
CFG_SYS_SPI_* are used in falcon boot to specify the offsets and size of the respective payloads. This patch moves them to Kconfig keeping the values consistent for each of the affected boards. Reviewed-by: Tom Rini Reviewed-by: Fabio Estevam Signed-off-by: Anshul Dalal --- Tested: * U-boot CI

Re: [PATCH v2 2/3] ARM: dts: stm32: drop "st,led1" compatible

2025-03-11 Thread Patrice CHOTARD
On 2/25/25 10:53, Patrice CHOTARD wrote: > > > On 2/24/25 19:39, Dario Binacchi wrote: >> It is pointless to use the custom compatible "st,led1" when >> stm32746g-eval.dts and stm32f769-disco.dts already contain the >> "gpio-leds" compatible, which is specifically used for GPIO LEDs >> managem

Re: [PATCH 11/12] pytest: requirements.txt: Include setuptools

2025-03-11 Thread Tom Rini
On Sat, Mar 08, 2025 at 09:12:15PM +0100, Marek Vasut wrote: > This seems to be needed for filesystem tests at least on > ubuntu 22.04 machines. Add setuptools into requirements.txt . > > Signed-off-by: Marek Vasut > --- > Cc: Baruch Siach > Cc: Francesco Dolcini > Cc: Heinrich Schuchardt > C

Re: [PATCH v5 7/8] env: Provide a work-around for unquoting fdtfile

2025-03-11 Thread Tom Rini
On Wed, 13 Nov 2024 08:09:37 -0700, Simon Glass wrote: > Some boards use a CONFIG option to specify the value of this variable. > This is normally handled by efi_get_distro_fdt_name() but in the case > of sunxi this does not work, since 'soc' is sunxi, but the files are > in the allwinner director

Re: [PATCH 02/10] cmd: Kconfig: enable CMD_BOOTI for ARCH_K3

2025-03-11 Thread Tom Rini
On Mon, Mar 10, 2025 at 10:48:47AM +0530, Anshul Dalal wrote: > On Fri Mar 7, 2025 at 9:50 PM IST, Tom Rini wrote: > > On Fri, Mar 07, 2025 at 09:43:19PM +0530, Anshul Dalal wrote: > > > On Fri Mar 7, 2025 at 9:20 PM IST, Tom Rini wrote: > > > > On Fri, Mar 07, 2025 at 01:25:30PM +0530, Anshul Dala

[PATCH v2 0/4] omap24xx_i2c: Enable Repeated Start functionality

2025-03-11 Thread Aniket Limaye
This series implements Repeated Start functionality for the DM_I2C xfer API (omap_i2c_xfer()) First, split out the actual implementation for each individual i2c msg transfer into a new function __omap24_i2c_xfer_msg() and use this to implement omap_i2c_xfer(). Then, add support for the Repeated S

Re: [PATCH 12/12] test_fs: Add exfat tests

2025-03-11 Thread Tom Rini
On Sat, Mar 08, 2025 at 09:12:16PM +0100, Marek Vasut wrote: > Add tests for the exfat filesystem. These tests are largely an > extension of the FS_GENERIC tests with the following notable > exceptions. > > The filesystem image for exfat tests is generated using combination > of exfatutils mkfs.ex

  1   2   3   >