[PATCH 2/2] spi: atmel-quadspi: Depend on SPI_MEM

2025-01-22 Thread Alexander Dahl
Most other spi-mem drivers also depend on SPI_MEM. Fixes this build error: arm-v5te-linux-gnueabi-ld.bfd: drivers/spi/atmel-quadspi.o: in function `atmel_qspi_supports_op': /mnt/data/adahl/src/u-boot/drivers/spi/atmel-quadspi.c:460: undefined reference to `spi_mem_default_supports_op'

[PATCH 1/2] spi: ca_sflash: Remove redundant dependency

2025-01-22 Thread Alexander Dahl
This is inside of an 'if DM_SPI' block, and thus always true. Signed-off-by: Alexander Dahl --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 96ea033082b..6555142a41e 100644 --- a/drivers/spi/Kconfig +++ b/

Re: [PATCH v6 3/3] tpm: get tpm event log from bloblist

2025-01-22 Thread Ilias Apalodimas
Hi Raymond On Fri, 17 Jan 2025 at 18:36, Raymond Mao wrote: > > Get tpm event log from bloblist instead of FDT when bloblist is > enabled and valid from previous boot stage. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Remove patch dependency. > - Remove the fallback to FDT when BLOB

Re: [PATCH v2 3/6] tpm: add wrapper and helper APIs for PCR allocate

2025-01-22 Thread Ilias Apalodimas
Hi Raymond, On Fri, 17 Jan 2025 at 18:40, Raymond Mao wrote: > > Add PCR allocate wrapper APIs for using in tcg2 protocol. > The wrapper proceeds a PCR allocate command, followed by a > shutdown command. > A system boot is required after two commands since TPM device needs > a HW reset to activa

Re: [PATCH v2] led: add function naming option from linux

2025-01-22 Thread Heiko Schocher
Hi Tom, On 22.01.25 15:14, Tom Rini wrote: On Wed, Jan 22, 2025 at 01:12:01PM +0100, Heiko Schocher wrote: in linux we have the option to create the name of a led optionally through the following properties: - function - color - function-enumerator This patch adds support for parsing this pr

Re: [PATCH 2/6] tmp: add TPM2_PCR_Allocate command

2025-01-22 Thread Ilias Apalodimas
Hi Simon, On Sat, 18 Jan 2025 at 06:31, Simon Glass wrote: > > Hi Raymond, > > On Wed, 15 Jan 2025 at 13:02, Raymond Mao wrote: > > > > TPM2_PCR_Allocate command is required to re-configurate a TPM device > > to enable or disable algorithms in run-time, thus this patch introduces > > the impleme

Re: [PATCH v2 2/6] tpm: add TPM2_PCR_Allocate command

2025-01-22 Thread Ilias Apalodimas
On Fri, 17 Jan 2025 at 18:40, Raymond Mao wrote: > > TPM2_PCR_Allocate command is required to reconfigure a TPM device > to enable or disable algorithms in run-time, thus this patch introduces > the implementation of PCR allocate APIs and adds related cmd functions > for testing. > > To test the f

Re: [PATCH v2 5/6] tpm: PCR allocate during PCR extend to disable the unsupported algorithms

2025-01-22 Thread Ilias Apalodimas
On Fri, 17 Jan 2025 at 18:41, Raymond Mao wrote: > > During PCR extend process, if any unsupported algorithms are active, > try to use PCR allocate to inactivate them. > > Signed-off-by: Raymond Mao > --- > changes in v2 > - None. > > lib/tpm-v2.c | 5 - > 1 file changed, 4 insertions(+), 1

[PATCH 1/1] doc: describe creating a pflash file for qemu-system-riscv64

2025-01-22 Thread Heinrich Schuchardt
U-Boot can be executed in place from a flash device. Describe how this can be emulated on RISC-V QEMU. Signed-off-by: Heinrich Schuchardt --- doc/board/emulation/qemu-riscv.rst | 17 + 1 file changed, 17 insertions(+) diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/

[PATCH 1/1] riscv: AVAILABLE_HARTS is not compatible with XIP

2025-01-22 Thread Heinrich Schuchardt
If CONFIG_AVAILABLE_HARTS=y, variable available_harts_lock is created in the data section which will not be writable while executing from flash. Signed-off-by: Heinrich Schuchardt --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig i

Pull request: u-boot-sunxi/master for 2025.04

2025-01-22 Thread Andre Przywara
Hi Tom, please pull sunxi changes for this cycle: Following the move of the H616 family to OF_UPSTREAM in the last cycle, now some older SoCs with identical DTs follow the lead: the F1C100s, A10, A10s, A13. The remaining SoCs suffer from that IRQ cells incompatiblity, breaking support for Linux <

[PATCH v6 4/8] usb: cdns: starfive: Get dr mode from wrapper device dts node

2025-01-22 Thread Minda Chen
Cdns core driver also get dr mode from wrapper devcie dts node to make it is same with Starfive cdns USB Linux kernel driver, Starfive 7110 OF_UPSTREAM is enabled Signed-off-by: Minda Chen --- drivers/phy/starfive/phy-jh7110-pcie.c | 2 +- drivers/usb/cdns3/core.c | 3 +++ 2 files

[PATCH v6 6/8] spl: starfive: visionfive2: Disable USB overcurrent pin by default.

2025-01-22 Thread Minda Chen
For some JH7110 boards, USB host overcurent pin is not reserved, To make USB host work, overcurrent pin must be disabled. So set the pin default disabled in spl stage. Signed-off-by: Minda Chen Tested-by: E Shattow --- arch/riscv/include/asm/arch-jh7110/gpio.h | 5 + board/starfive/visionfi

[PATCH 3/4] env: ti: am64x: set rproc_fw_binaries

2025-01-22 Thread Judith Mendez
From: Hari Nagalla Set remote proc FW binaries for u-boot loading of remote cores. Signed-off-by: Hari Nagalla --- board/ti/am64x/am64x.env | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/ti/am64x/am64x.env b/board/ti/am64x/am64x.env index 8ad805a613c..43e557b8ec7 100644 --- a/

[PATCH 0/4] Introduce K3 remoteproc driver for M4 subsystem

2025-01-22 Thread Judith Mendez
Some K3 devices like am62x and am64x have a M4 processor in the MCU voltage domain. This patch series introduces remoteproc M4 driver which will be used to load firmware into and start the M4 remote core. This series also adds support for R5F cores on am64x SoCs in patch 2/4, sets up environment t

[PATCH 1/4] remoteproc: k3-m4: Introduce K3 remote proc driver for M4 subsystem

2025-01-22 Thread Judith Mendez
From: Hari Nagalla Some K3 devices like AM64, AM62 devices have a M4 processor in MCU voltage domain. Add a remote proc driver to support this subsystem to be able to load and boot the M4 core. Signed-off-by: Hari Nagalla [Judith: Fixed comments explaining local resets] Signed-off-by: Judith M

[PATCH 2/4] remoteproc: k3-r5: Add support for R5F cores on AM64x SoCs

2025-01-22 Thread Judith Mendez
From: Hari Nagalla AM64x SoCs have two R5F clusters in the main power domain. Extend support for R5F remote proc driver on AM64x with compatible strings. Signed-off-by: Hari Nagalla --- drivers/remoteproc/ti_k3_r5f_rproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/remotepro

[PATCH 4/4] configs: am64x_evm_a53_defconfig: Enable R5F and M4 remote proc support

2025-01-22 Thread Judith Mendez
From: Hari Nagalla Add support for R5F and M4 remoteproc drivers. Signed-off-by: Hari Nagalla --- configs/am64x_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am64x_evm_a53_defconfig b/configs/am64x_evm_a53_defconfig index e6e3e018da6..4630c424775 100644 --- a/

[PATCH v6 8/8] MAINTAINERS: Update Starfive visionfive2 maintain files.

2025-01-22 Thread Minda Chen
Add USB related files to Starfive visionfive2 MAINTAINERS. Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- board/starfive/visionfive2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index d

[PATCH v6 7/8] configs: starfive: Add visionfive2 cadence USB configuration

2025-01-22 Thread Minda Chen
Add cadence USB confiuration. Signed-off-by: Minda Chen --- configs/starfive_visionfive2_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index c3f2142ae1b..c2be9ffae27 100644 --- a/configs/

[PATCH v6 5/8] usb: cdns: starfive: Add cdns USB driver

2025-01-22 Thread Minda Chen
Add Starfive cdns USB3 wrapper driver. Signed-off-by: Minda Chen --- drivers/usb/cdns3/Kconfig | 7 ++ drivers/usb/cdns3/Makefile | 1 + drivers/usb/cdns3/cdns3-starfive.c | 182 + 3 files changed, 190 insertions(+) create mode 100644 drivers/usb

[PATCH v6 3/8] phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver

2025-01-22 Thread Minda Chen
Add Starfive JH7110 PCIe 2.0 PHY driver, which is generic PHY driver and can be used as USB 3.0 driver. Signed-off-by: Minda Chen --- drivers/phy/starfive/Kconfig | 7 + drivers/phy/starfive/Makefile | 1 + drivers/phy/starfive/phy-jh7110-pcie.c | 239 +

[PATCH v6 2/8] phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver

2025-01-22 Thread Minda Chen
Add Starfive JH7110 USB 2.0 PHY driver, which is generic PHY driver. Signed-off-by: Minda Chen Reviewed-by: Roger Quadros --- drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/starfive/Kconfig | 14 ++ driver

[PATCH v6 0/8] Add Starfive JH7110 Cadence USB driver

2025-01-22 Thread Minda Chen
Add Starfive JH7110 Cadence USB driver and related PHY driver. So the codes can be used in visionfive2 and star64 7110 board. The driver is almost the same with kernel driver. Test with Star64 JH7110 board USB 3.0 + USB 2.0 host. The code can work. The Starfive JH7110 has enable CONFIG_OF_UPSTRE

[PATCH v6 1/8] usb: cdns3: Set USB PHY mode in cdns3_drd_update_mode()

2025-01-22 Thread Minda Chen
USB PHY maybe need to set PHY mode in different USB dr mode. So translate USB PHY mode to generic PHY mode and call generic_phy_set_mode(). Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- drivers/usb/cdns3/drd.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/

Re: AW: secure boot, mkimage with external signing server

2025-01-22 Thread Rasmus Villemoes
On Wed, Jan 22 2025, "Rosenschild, Klaus" wrote: > Hi Rasmus, > thank you for pointing to this solution. > I think this is the best way to do this. > > However, our signing server is very well protected and making changes there > is a long and complex process. > Right now, it only provides the f

Re: Please pull u-boot-watchdog/master

2025-01-22 Thread Tom Rini
On Wed, Jan 22, 2025 at 04:19:34PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the following watchdog related patches: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PULL] Please pull qcom/qcom-next

2025-01-22 Thread Tom Rini
On Wed, Jan 22, 2025 at 05:17:45PM +0100, Caleb Connolly wrote: > Hi Tom, > > The highlights are: > > * Fixed boot regression due to broken memory parsing > * Enable HW RNG and KASLR on all platforms > * Add support for Snapdragon X1 Elite hardware (clk/pinctrl) > * Add support for QCS9100 ride

Re: [PATCH] spi: cadence-quadspi: fix potential malfunction after ~49 days uptime

2025-01-22 Thread Tom Rini
On Wed, 11 Dec 2024 21:51:04 +0100, Ronald Wahl wrote: > The get_timer function returns an unsigned long which may be calculated > from the ARM system counter. This counter is reset only on a cold reset. > U-boot divides this counter down to a 1000 Hz counter that will cross > the 32bit barrier af

Re: [PATCH v2 0/2] spi: Collected fixes

2025-01-22 Thread Tom Rini
On Wed, 15 Jan 2025 17:16:19 +0100, Alexander Dahl wrote: > two patches for header issues I came across when working on (Q)SPI > drivers for atmel boards. > > Greets > Alex > > v1: > - implicit, not a series but a single patch no one reacted to > - Link: > https://lore.kernel.org/u-boot/2024121

Re: [PATCH] vexpress64: Fix bootargs when building without NET

2025-01-22 Thread Tom Rini
On Thu, 16 Jan 2025 00:31:48 +0900, Chanho Park wrote: > When building without DHCP/PXE configurations (NET disabled), > compilation errors may occur due to mismatched bootargs. > Ensure bootargs related to DHCP/PXE are not enabled if the > corresponding commands are disabled. > > include/config_

Re: [PATCH 0/2] Update my email address

2025-01-22 Thread Tom Rini
On Wed, 15 Jan 2025 10:32:57 +, Christopher Obbard wrote: > Update my email address for various locations in the U-Boot project. > This will (hopefully) stop any mails from going to /dev/null. > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v2 00/22] vbe: Series part F

2025-01-22 Thread Tom Rini
On Wed, 15 Jan 2025 18:27:01 -0700, Simon Glass wrote: > This includes various patches towards implementing the VBE abrec > bootmeth in U-Boot. It mostly focuses on introducing a relocating > SPL-loader so that VBE can run in the limited amount of SRAM available > on many devices. > > Another min

[PATCH 11/21] efi_loader: efi_net: Manage EFI net objects with efi_[dis]connect_controller

2025-01-22 Thread Adriano Cordova
Call [dis]connect_controller for the efi_net_objs corresponding to U-Boot udevices Signed-off-by: Adriano Cordova --- include/efi_loader.h| 2 +- lib/efi_driver/efi_net_device.c | 2 +- lib/efi_loader/efi_net.c| 38 - 3 files changed, 25 ins

[PATCH 16/21] efi_loader: efi_net: Add functions to [un]register http and ip4_config2 protocols, and add pxe protocol on demand

2025-01-22 Thread Adriano Cordova
Add efi_ipconfig_[un]register and efi_http_[un]register to [un]register the ip4_config2 and the http_service_binding protocol. And add the pxe protocol only if a dhcp_ack was received. The latter makes sense as pxe is otherwise not currently implemented. Signed-off-by: Adriano Cordova --- includ

[PATCH 13/21] efi_driver: efi_net: UCLASS_ETH "efi_netdev" U-Boot driver

2025-01-22 Thread Adriano Cordova
UCLASS_ETH "efi_netdev" U-Boot driver. This driver can control a handle with a simple_network_protocol installed and working. See efi_netdev_create. Signed-off-by: Adriano Cordova --- include/efi_loader.h| 13 +++ lib/efi_driver/efi_net_device.c | 159 +++

[PATCH 17/21] efi_loader: efi_net: add snp_owner field to efi_net_obj struct

2025-01-22 Thread Adriano Cordova
Let a simple network protocol interface be shared by more than one efi net device, but with only one owner. The owner should be the efi net device whose underlying udevice does not use the snp protocol for its ethernet ops. See efi_selftest_net_driver for an use. Signed-off-by: Adriano Cordova --

Re: [PATCH 00/28] test: Complete the suite migration

2025-01-22 Thread Tom Rini
On Mon, Jan 20, 2025 at 02:53:00PM -0700, Simon Glass wrote: > This series completes the removal of test commands for suites. With this > it is possible to declare a suite (including init and uninit functions) > without needing to write a command. > > It also adds timing for test suites, so we ca

Re: [PATCH v2 00/44] test: Improvements to ut command and test-suite running

2025-01-22 Thread Tom Rini
On Mon, Jan 20, 2025 at 02:25:22PM -0700, Simon Glass wrote: > The current method of running unit tests relies on subcommands of the > ut command. Only the code in each subcommand knows how to find the tests > related to that subcomand. > > This is not ideal and we now have quite a few subcommand

Re: [EXTERNAL] Re: Proposal for a New Command to U-Boot Fuse Programming

2025-01-22 Thread Tom Rini
On Fri, Jan 10, 2025 at 11:12:47AM +0530, Harsha Vardhan V M wrote: > > > On 07/01/25 03:53, Tom Rini wrote: > > On Mon, Jan 06, 2025 at 12:06:25PM +0530, Harsha Vardhan V M wrote: > > > > > I would like to propose a new command for U-Boot's fuse programming > > > functionality to address the ch

Re: [PATCH v2 3/4] bloblist: add support for CONFIG_BLOBLIST_PASSAGE

2025-01-22 Thread Tom Rini
On Wed, Jan 15, 2025 at 01:52:06PM +, Harrison Mutai wrote: > When the configuration option CONFIG_BLOBLIST_PASSAGE is selected, the > bloblist present in the incoming standard passage is utilised in-place. > There is no need to specify the size of the bloblist as the system > automatically de

[PATCH 07/21] efi_driver: efi_net: Add EFI network device driver

2025-01-22 Thread Adriano Cordova
Register the U-boot ethernet udevices in the EFI network stack as efi_net_obj as 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_device.

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

2025-01-22 Thread Adriano Cordova
Test the 'efi_netdev' driver. Take an existing and working snp protocol, create a handle and install the interface in the handle, and call connect_controller. Signed-off-by: Adriano Cordova --- lib/efi_selftest/Makefile | 2 +- lib/efi_selftest/efi_selftest_net_driver.c | 310

[PATCH 20/21] py/tests: test_efi_selftest: Add test for removing EFI netdevices

2025-01-22 Thread Adriano Cordova
unbind ethernet udevices and count them to check that were properly removed also from the EFI network stack 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/te

[PATCH 18/21] efi_selftest: Add selftest for counting EFI netdevices

2025-01-22 Thread Adriano Cordova
Count the number of simple_network_protocol's 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_s

[PATCH 19/21] py/tests: test_efi_selftest: Add test for counting EFI netdevices

2025-01-22 Thread Adriano Cordova
check that the number of ethernet udevices matches the number of simple network protocols 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_

[PATCH 15/21] efi_driver: efi_net: Add efi_net_unbind_drv method to efi_net driver

2025-01-22 Thread Adriano Cordova
In case the handle was controlled by the "efi_netdev" driver, unlink the handle from the udevice and remove the udevice. 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_ne

[PATCH 14/21] efi_driver: efi_uclass: Add unbind method to efi_driver_ops

2025-01-22 Thread Adriano Cordova
This way when the stop() method of the EFI driver gets called whatever bind() did can be cleaned up. 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_dr

[PATCH 12/21] eth_uclass: Add eth_create_device to create a net udevice

2025-01-22 Thread Adriano Cordova
Create an ETH_UCLASS udevice and bind it to a driver Signed-off-by: Adriano Cordova --- include/net-common.h | 2 ++ net/eth-uclass.c | 32 2 files changed, 34 insertions(+) diff --git a/include/net-common.h b/include/net-common.h index 1d507b13b0..ba343af4

[PATCH 10/21] efi_net: efi_loader: Add efi_netobj_alloc to allocate an efi_net_obj

2025-01-22 Thread Adriano Cordova
For clarity, put the allocation of an efi_net_obj in efi_netobj_alloc Signed-off-by: Adriano Cordova --- lib/efi_loader/efi_net.c | 122 ++- 1 file changed, 83 insertions(+), 39 deletions(-) diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c ind

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

2025-01-22 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 | 117 +-- 1 file changed, 74 insertions(+), 43 deletions(-) diff --git a/lib/

[PATCH 08/21] efi_loader: efi_net: Reuse efi_net_obj's

2025-01-22 Thread Adriano Cordova
When an efi_net_obj gets unregistered, save it and try to recycle it 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 inde

[PATCH 05/21] efi_loader: efi_device_path: Let network device paths receive the net udevice as an argument

2025-01-22 Thread Adriano Cordova
Support setting the device path with efi_dp_from_eth, efi_dp_from_ipv4, and efi_dp_from_http to an ethernet device other than the current ethernet udevice. Calling eth_dp_from_eth with eth_get_dev() as the argument recovers the pevious functionality. Signed-off-by: Adriano Cordova --- include/ef

[PATCH 06/21] efi_loader: efi_net: Add support for multiple efi_net_obj

2025-01-22 Thread Adriano Cordova
Add support for multiple efi_net_obj structs Signed-off-by: Adriano Cordova --- include/efi_loader.h | 28 +- lib/efi_loader/efi_bootbin.c | 2 +- lib/efi_loader/efi_device_path.c | 4 +- lib/efi_loader/efi_http.c| 6 +- lib/efi_loader/efi_ipconfig.c| 5 +- l

[PATCH 04/21] efi_loader: efi_net: Add efi_net_do_start() to efi_net.c

2025-01-22 Thread Adriano Cordova
This gets called each time a payload is to get executed by bootefi. For now this only updates the PXE IP address. Signed-off-by: Adriano Cordova --- include/efi_loader.h | 1 + lib/efi_loader/efi_net.c | 31 --- lib/efi_loader/efi_setup.c | 3 +++ 3 files ch

[PATCH 01/21] legacy-net: wget: fix wget_info handling after new tcp legacy stack

2025-01-22 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 necessary, e.g., for when a request fails because the provided buffer was too small. Signed-off-by: Adriano Cordova --- net/wget.c | 18

[PATCH 03/21] efi_loader: efi_setup: Add efi_start_obj_list() to efi_setup.c

2025-01-22 Thread Adriano Cordova
The coomand bootefi calls efi_init_obj_list to do the efi set up before launching an .efi payload, but efi_init_obj_list is called only once. There are some initializations which depend on the environment and should be done each time a payload gets launched and not only once. A motivation for this

[PATCH 02/21] efi_loader: expose symbols to be used by the EFI network stack

2025-01-22 Thread Adriano Cordova
The following symbols are exposed: - efi_reinstall_protocol_interface This is done so that the device path protocol interface of the network device can be changed internally by u-boot when a new bootfile gets downloaded. - eth_set_dev

[PATCH 00/21] EFI driver to support multiple network interfaces

2025-01-22 Thread Adriano Cordova
This series introduces an EFI driver to manage EFI net objects. The main functionalities implemented here are the following: - Support multiple efi_net_obj - Manage efi_net_obj with EFI driver - Support calling [dis]connect_controller with a handle having a snp pro

[PATCH] MAINTAINERS: maintain qcs9100_defconfig

2025-01-22 Thread Caleb Connolly
Add this to ARM SNAPDRAGON maintainers entry. Signed-off-by: Caleb Connolly --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ba31f86feb6d..5a575f43277f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -630,8 +630,9 @@ R: Sumit Garg L: u-boot

[PATCH] tools: check result of lseek

2025-01-22 Thread Maks Mishin
Return value of function 'lseek', called at pblimage.c:211, is not checked, but it is usually checked for this function. This trigger was found using the Svace static analyzer. Signed-off-by: Maks Mishin --- tools/pblimage.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff -

Re: [PATCH] MAINTAINERS: maintain qcs9100_defconfig

2025-01-22 Thread Marek Vasut
On 1/22/25 5:09 PM, Caleb Connolly wrote: Add this to ARM SNAPDRAGON maintainers entry. Signed-off-by: Caleb Connolly --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ba31f86feb6d..5a575f43277f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[PULL] Please pull qcom/qcom-next

2025-01-22 Thread Caleb Connolly
Hi Tom, The highlights are: * Fixed boot regression due to broken memory parsing * Enable HW RNG and KASLR on all platforms * Add support for Snapdragon X1 Elite hardware (clk/pinctrl) * Add support for QCS9100 ride automotive development platform (clk/ufs) * Add support for PCIe on SM8550, SM865

Re: [PATCH v2 0/2] mach-snapdragon: Fix and improve /memory parsing

2025-01-22 Thread Caleb Connolly
On Wed, 22 Jan 2025 10:26:52 +, Sam Day wrote: > The first commit in this series is a fix for qcom_parse_memory, which is > currently broken on master (since fc37a73e6679). It's an alternative to > the patch Caleb proposed a couple of days ago > (20250117102734.3725009-2-caleb.conno...@linaro

Re: [PATCH 0/4] clk: qcom: add PCIe clocks

2025-01-22 Thread Caleb Connolly
On Mon, 25 Nov 2024 09:34:25 +0100, Neil Armstrong wrote: > Add the PCIe clocks for the SM8550, SM8650 and X1E80100 > platforms to enable support for PCIe feature. > > Depends on: > - > https://lore.kernel.org/all/20241118-topic-x1e80100-clk-v1-0-8841e87ad...@linaro.org/ > > > [...] Applied,

Re: [PATCH v3 0/6] Enable QCOM QCS9100 Ride platform support

2025-01-22 Thread Caleb Connolly
On Fri, 10 Jan 2025 10:38:11 +0530, Varadarajan Narayanan wrote: > The following patch series enables support for QCOM QCS9100 based > Ride platform. The QCS9100 SoC is a derivative of SA8775p and hence > this series makes use of the SA8775p related code to enable the > QCS9100 based Ride platfor

Re: [PATCH v2 0/2] mach-snapdragon: Fix and improve /memory parsing

2025-01-22 Thread Caleb Connolly
On 22/01/2025 17:12, Caleb Connolly wrote: > > On Wed, 22 Jan 2025 10:26:52 +, Sam Day wrote: >> The first commit in this series is a fix for qcom_parse_memory, which is >> currently broken on master (since fc37a73e6679). It's an alternative to >> the patch Caleb proposed a couple of days a

Re: [PATCH v2 0/3] cmd: ufetch improvements

2025-01-22 Thread Caleb Connolly
On Wed, 11 Dec 2024 23:25:24 +0100, J. Neuschäfer wrote: > Following the recent addition of the "ufetch" command, this patchset > improves it in a few ways. > > Applied, thanks! [1/3] cmd: ufetch: Fix type mismatch on 32-bit https://source.denx.de/u-boot/custodians/u-boot-snapdragon/-/

Re: [PATCH 0/2] pci: Add support for Qualcomm PCIe controller

2025-01-22 Thread Caleb Connolly
On Mon, 25 Nov 2024 10:46:15 +0100, Neil Armstrong wrote: > Add support for the DWC PCIe controllers found > on the Qualcomm SoCs, it requires introducing > pcie_dw_find_capability() to properly configure > the Host controller capabilities. > > Applied, thanks! [1/2] pci: pcie_dw_common: intr

Re: [PATCH] phy: qcom: add QMP PCIe PHY driver

2025-01-22 Thread Caleb Connolly
On Mon, 25 Nov 2024 09:54:24 +0100, Neil Armstrong wrote: > Add support for the PCIe QMP PHY on the SM8550, > SM8650 and x1e80100 SoCs. > > The driver is based on the Linux phy/qualcomm/phy-qcom-qmp-pcie.c > driver and adapted to U-Boot. > > > [...] Applied, thanks! [1/1] phy: qcom: add QMP

Re: [PATCH] regulator: qcom-rpmh-regulator: add support for pmc8380 regulators

2025-01-22 Thread Caleb Connolly
On Mon, 25 Nov 2024 09:24:47 +0100, Neil Armstrong wrote: > Add the PMC8380 regulator data found on the Snapdragon X Elite platforms. > The tables are imported from the Linux driver. > > Applied, thanks! [1/1] regulator: qcom-rpmh-regulator: add support for pmc8380 regulators https://s

Re: [PATCH 0/3] pinctrl: qcom: add clk_req functions

2025-01-22 Thread Caleb Connolly
On Mon, 25 Nov 2024 09:29:09 +0100, Neil Armstrong wrote: > Add the missing PCIe clk_req functions for the SM8550, SM8650 > and X1E80100 TLMM. > > Depends on: > - > https://lore.kernel.org/all/20241115-topic-x1e80100-pinctrl-v1-0-35f984226...@linaro.org/ > > > [...] Applied, thanks! [1/3] p

Re: [PATCH] button: qcom-pmic: add software debounce

2025-01-22 Thread Caleb Connolly
On Wed, 13 Nov 2024 05:51:03 +0100, Caleb Connolly wrote: > This helps with reliability on some platforms. We should probably also > configure the hardware debounce timer eventually. > > Applied, thanks! [1/1] button: qcom-pmic: add software debounce https://source.denx.de/u-boot/custo

Re: [PATCH 0/2] pinctrl: add support for X1E80100 TLMM

2025-01-22 Thread Caleb Connolly
On Fri, 15 Nov 2024 16:44:14 +0100, Neil Armstrong wrote: > Add support for TLMM in X1E80100, and enable it in qcom_defconfig > > Applied, thanks! [1/2] pinctrl: qcom: Add X1E80100 pinctrl driver https://source.denx.de/u-boot/custodians/u-boot-snapdragon/-/commit/51a142363d42 [2/2] qco

Re: [PATCH] spi: cadence_qspi: Add missing prototype for cadence_qspi_flash_reset

2025-01-22 Thread Michal Simek
On 1/22/25 14:53, Venkatesh Yadav Abbarapu wrote: Add missing prototype to fix the sparse warning, warning: no previous prototype for 'cadence_qspi_flash_reset' [-Wmissing-prototypes]. Fixes: 6d234a79e9 ("cadence_qspi: Refactor the flash reset functionality") Signed-off-by: Venkatesh Yadav Ab

[PATCH v4] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Quentin Schulz
cec9fff ... OK Working FDT set to ece9d000 Using 'conf-rk3588-jaguar-pre-ict-tester.dtbo' configuration Verifying Hash Integrity ... OK Trying 'fdt-rk3588-jaguar-pre-ict-tester.dtbo' fdt subimage Description: Flattened Device Tree blob Type: Flat Device Tree

Re: [PATCH v2 2/2] mach-snapdragon: support parsing memory info from external FDT

2025-01-22 Thread Caleb Connolly
Hi Sam, Thanks for re-spinning this, one small issue below but otherwise LGTM. I'm picking up your first patch, so you only need to re-send this one. On 22/01/2025 11:27, Sam Day wrote: > qcom_parse_memory is updated to return a -ENODATA error if the passed > FDT does not contain a /memory node,

Re: [PATCH v3] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Marek Vasut
On 1/22/25 4:43 PM, Quentin Schulz wrote: Hi Marek, On 1/22/25 3:32 PM, Marek Vasut wrote: On 1/22/25 3:21 PM, Quentin Schulz wrote: [...] @@ -2395,17 +2395,18 @@ int boot_get_fdt_fit(struct bootm_headers *images, ulong addr,   /* we need to apply overlays */   #ifdef CONFIG_OF_LIBFDT_O

Re: [PATCH v3] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Quentin Schulz
Hi Marek, On 1/22/25 3:32 PM, Marek Vasut wrote: On 1/22/25 3:21 PM, Quentin Schulz wrote: [...] @@ -2395,17 +2395,18 @@ int boot_get_fdt_fit(struct bootm_headers *images, ulong addr,   /* we need to apply overlays */   #ifdef CONFIG_OF_LIBFDT_OVERLAY -    image_start = addr; -    image_

Re: [PATCH v3 3/6] clk/qcom: add initial clock driver for qcs9100

2025-01-22 Thread Caleb Connolly
On 10/01/2025 06:08, Varadarajan Narayanan wrote: > Add initial set of clocks and resets for enabling U-Boot on QCS9100 > based Ride platforms. > > Reviewed-by: Neil Armstrong > Signed-off-by: Varadarajan Narayanan Just a small nit: please keep the Kconfig and Makefile in alphabetical order.

Please pull u-boot-watchdog/master

2025-01-22 Thread Stefan Roese
Hi Tom, please pull the following watchdog related patches: - cyclic: Fix rollover every 72 min on 32 bits platforms (Patrice) Here the Azure build, without any issu

Re: [PATCH v2 2/2] cyclic: Fix typo in struct cyclic_info description

2025-01-22 Thread Stefan Roese
On 14.01.25 14:28, Patrice Chotard wrote: Replace delay_ns by delay_us which is the field name used into struct cyclic_info. Signed-off-by: Patrice Chotard --- Changes in v2: _ Update the comment which still references "ns" Applied to u-boot-watchdog/master Thanks, Stefan include/c

Re: [PATCH v2 1/2] cyclic: Fix rollover every 72 min on 32 bits platforms

2025-01-22 Thread Stefan Roese
On 14.01.25 14:28, Patrice Chotard wrote: On 32 bits platforms, timer_get_us() returns an unsigned long which is a 32 bits. timer_get_us() wraps around every 72 minutes (2 ^ 32 / 100 =~ 4295 sec =~ 72 min). So the test "if time_after_eq64(now, cyclic->next_call)" is no more true when cyclic-

[PATCH 0/2] Snapdragon SC7280 pinctrl

2025-01-22 Thread Caleb Connolly
Introduce and enable pinctrl support for SC7280 and QCM6490, similarly to other platforms. This was missed during RB3 Gen 2 bringup. --- Caleb Connolly (2): pinctrl: qcom: add sc7280 pinctrl driver qcom_defconfig: enable PINCTRL_QCOM_SC7280 configs/qcom_defconfig|

[PATCH 2/2] qcom_defconfig: enable PINCTRL_QCOM_SC7280

2025-01-22 Thread Caleb Connolly
Signed-off-by: Caleb Connolly --- configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index cd94315f1765..7a60464120dc 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -92,8 +92,9 @@ CONFIG_PINCONF=y CONFIG

[PATCH 1/2] pinctrl: qcom: add sc7280 pinctrl driver

2025-01-22 Thread Caleb Connolly
Introduce a pinctrl driver for SC7280/QCM6490, this is used by the RB3 Gen 2, FairPhone 5 and other devices. Signed-off-by: Caleb Connolly --- drivers/pinctrl/qcom/Kconfig | 7 +++ drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-sc7280.c | 106 +

Re: [PATCH v3] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Marek Vasut
On 1/22/25 3:21 PM, Quentin Schulz wrote: [...] @@ -2395,17 +2395,18 @@ int boot_get_fdt_fit(struct bootm_headers *images, ulong addr,   /* we need to apply overlays */   #ifdef CONFIG_OF_LIBFDT_OVERLAY -    image_start = addr; -    image_end = addr + fit_get_size(fit); -    /* verify that

Re: [PATCH v3] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Quentin Schulz
Hi all, On 1/22/25 2:57 PM, Quentin Schulz wrote: From: Quentin Schulz A FIT image which is NOT using -E when created by mkimage - that is with image data within the FIT - will fail to apply FDTO if the base FDT image node does not specify a load property (which points to an address in DRAM).

Re: [PATCH] spi: cadence_qspi: Fix OSPI DDR mode alignment issue

2025-01-22 Thread Michal Simek
On 1/6/25 10:51, Padmarao Begari wrote: If the least significant bit of the address is set to one when using the DDR protocol for data transfer then the results are indeterminate for few flash devices. To fix this the least significant bit of the address is set to zero. Signed-off-by: Padmara

Re: [PATCH v2] led: add function naming option from linux

2025-01-22 Thread Tom Rini
On Wed, Jan 22, 2025 at 01:12:01PM +0100, Heiko Schocher wrote: > in linux we have the option to create the name of a led > optionally through the following properties: > > - function > - color > - function-enumerator > > This patch adds support for parsing this properties if there > is no label

Re: [PATCH v2 1/2] net: phy: Let gmiitorgmii converter create additional PHY

2025-01-22 Thread Michal Simek
On 1/22/25 10:22, Tapio Reijonen wrote: Change the order to connect gmiitorgmii before PHY creation. The gmiitorgmii create additional in DTS configured PHY during it's configuration. This ensures, that converter sits between the MAC and the external phy MAC <==> GMII2RGMII <==> RGMII_PHY. a

[PATCH v3] image: apply FDTOs on FDT image node without a load property

2025-01-22 Thread Quentin Schulz
From: Quentin Schulz A FIT image which is NOT using -E when created by mkimage - that is with image data within the FIT - will fail to apply FDTO if the base FDT image node does not specify a load property (which points to an address in DRAM). This is because we check that the FDT address we want

Re: [PATCH v1 1/2] net: phy: Let gmiitorgmii converter create additional PHY

2025-01-22 Thread Michal Simek
On 1/22/25 08:31, Tapio Reijonen wrote: Hi Michal, On 2025-01-21 15:14, Michal Simek wrote: [You don't often get email from mon...@monstr.eu. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Hi, čt 16. 1. 2025 v 14:07 odesílatel Tapio Reijonen napsal: Chan

[PATCH] spi: cadence_qspi: Add missing prototype for cadence_qspi_flash_reset

2025-01-22 Thread Venkatesh Yadav Abbarapu
Add missing prototype to fix the sparse warning, warning: no previous prototype for 'cadence_qspi_flash_reset' [-Wmissing-prototypes]. Fixes: 6d234a79e9 ("cadence_qspi: Refactor the flash reset functionality") Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/cadence_qspi.h | 2 +- 1 file

Re: [PATCH 09/10] video: rockchip: Add HDMI support for RK3568

2025-01-22 Thread Chaoyi Chen
Hi Dang, On 2025/1/16 17:15, Dang Huynh wrote: HDMI on RK3568 is mostly simplified, all this does is enabling DDC for display timings and HPD. Signed-off-by: Dang Huynh --- drivers/video/rockchip/Makefile | 1 + drivers/video/rockchip/rk3568_hdmi.c | 63 +++

Re: [PATCH 05/10] video: rockchip: Add VOP2 support

2025-01-22 Thread Chaoyi Chen
Hi Dang, On 2025/1/19 21:41, Dang Huynh wrote: Hi Andy, On Sunday, January 19, 2025 9:10:10 AM UTC Andy Yan wrote: Hi Danq, Do you have tests with this u-boot video enabled then boot a linux kernel also with drm display enabled? Yes, I booted Linux with U-Boot VOP2 and Linux VOP2 enabled wi

[PATCH 6/6] efi_loader: support file rename in SetInfo()

2025-01-22 Thread Gabriel Dalimonte
Following the UEFI specification. The specification did not seem to delineate if file_name was explicitly a file name only, or could include paths to move the file to a different directory. The more generous interpretation of supporting paths was selected. Signed-off-by: Gabriel Dalimonte --- l

[PATCH 5/6] efi_loader: move path out of file_handle

2025-01-22 Thread Gabriel Dalimonte
In order to support renaming via SetInfo(), path must allow for longer values than what was originally present when file_handle was allocated. Signed-off-by: Gabriel Dalimonte --- lib/efi_loader/efi_file.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/efi

[PATCH 4/6] fs: fat: update parent dirs metadata on rename

2025-01-22 Thread Gabriel Dalimonte
None of the existing fat code appears to update parent dir properties however, the POSIX specification for rename() mentions that the last modified timestamp should be updated. In addition, I believe the ATTR_ARCH attribute should also be reset on the parent directories as the content of those dire

[PATCH 1/6] fs: fat: factor out dentry link create/delete

2025-01-22 Thread Gabriel Dalimonte
Signed-off-by: Gabriel Dalimonte --- fs/fat/fat_write.c | 122 - 1 file changed, 66 insertions(+), 56 deletions(-) diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index ea877ee917..b86e78abc0 100644 --- a/fs/fat/fat_write.c +++ b/fs/fat/fat_write

  1   2   >