[PATCH] cmd: tlv_eeprom: return after successful read from EEPROM

2025-04-15 Thread Martin Schiller
Commit f6eff35b8c19 ("cmd: tlv_eeprom: handle -ENODEV error from read_eeprom function") removed the needed 'return 0' after a successful read. As a result, the usage message is shown when 'tlv_eeprom read' is successfully called. Let's fix it by adding the needed 'return 0'. Signed-off-by: Martin

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

2025-04-15 Thread Heinrich Schuchardt
On 11.03.25 17:47, Adriano Cordova wrote: 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/incl

[PATCH v1 0/2] ut: fix print_guid() and enable UNIT_TEST for qemu_arm64

2025-04-15 Thread Jerome Forissier
There is a bug in the print_guid() unit test in test/common/print.c when PARTITION_TYPE_GUID is not enabled but either CMD_EFIDEBUG or EFI are. The first patch fixes the issue and the second one enables UNIT_TEST in the qemu_arm64 defconfig so that the unit tests are run in CI (this platform has

Re: [PATCH v6 05/12] power-domain: Add refcounting

2025-04-15 Thread Miquel Raynal
On 15/04/2025 at 15:29:09 +0530, Neha Malcom Francis wrote: > Hi Miquel > > On 15/04/25 15:20, Miquel Raynal wrote: Francesco, are you also testing on K3 platforms? >>> >>> Yes he would be, since the firmware print is K3 firmware. >>> Can one of you boot with the patch below applie

Re: Gitlab runner timeout on evb-ast2600 ?

2025-04-15 Thread Cédric Le Goater
On 4/11/25 18:42, Tom Rini wrote: On Fri, Apr 11, 2025 at 05:26:55PM +0200, Cédric Le Goater wrote: On 4/11/25 17:01, Tom Rini wrote: On Fri, Apr 11, 2025 at 09:23:59AM +0200, Cédric Le Goater wrote: Hi, On 4/11/25 01:14, Tom Rini wrote: On Fri, Apr 11, 2025 at 08:07:15AM +0930, Joel Stanley

Re: [PATCH v6 05/12] power-domain: Add refcounting

2025-04-15 Thread Miquel Raynal
>> Francesco, are you also testing on K3 platforms? >> > > Yes he would be, since the firmware print is K3 firmware. > >> Can one of you boot with the patch below applied? It should partially >> revert the commit to the ancient behaviour, while adding more debug >> traces (please enable the debug

Re: [PATCH v6 05/12] power-domain: Add refcounting

2025-04-15 Thread Miquel Raynal
Hello, Thanks for the report. >> >>> Neha bisected it down to 197376fbf300e92afa0a1583815d9c9eb52d613a commit >> >>> which is this patch. >> >> >> >> And assuming it's the same failure I got reported this morning by one of >> >> my coworkers, we just get: >> >> U-Boot SPL 2025.04-01050-ga40fc5afa

Re: [PATCH] Revert "CI: Disable evb-ast2600"

2025-04-15 Thread Cédric Le Goater
On 4/15/25 01:44, Joel Stanley wrote: On Tue, 15 Apr 2025 at 07:34, Tom Rini wrote: Upstream developers have been unable to replicate this failure exactly. Furthermore, with commit 8c98b57d72d5 ('Merge patch series "Static initcalls"') we have now replaced the part of the U-Boot code which the

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

2025-04-15 Thread Heinrich Schuchardt
On 11.03.25 17:47, Adriano Cordova wrote: 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

Re: [PATCH v3 08/12] dts: rockchip: rk356x: Prerelocate VOP in U-Boot proper

2025-04-15 Thread Dang Huynh
On Sun, Apr 13, 2025 at 04:33:25PM +0200, Jonas Karlman wrote: > Hi, > > On 2025-04-12 16:27, Dang Huynh wrote: > > We need to prerelocate VOP2 memory so the driver can work. This > > will only support U-Boot proper. > > > > Signed-off-by: Dang Huynh > > --- > > arch/arm/dts/rk356x-u-boot.dtsi

Re: [PATCH v1 1/2] test: fix print_guid()

2025-04-15 Thread Heinrich Schuchardt
On 15.04.25 14:53, Jerome Forissier wrote: The %pUs format specifier prints the system partition GUID as "System Partition" if PARTITION_TYPE_GUID is disabled but either CMD_EFIDEBUG or EFI are enabled. See list_guid[] in lib/uuid.c. Fix the print_guid() unit test accordingly. Signed-off-by: Jer

Re: [PATCH v1 2/2] qemu-arm64: enable UNIT_TEST

2025-04-15 Thread Heinrich Schuchardt
On 15.04.25 14:53, Jerome Forissier wrote: Enable CONFIG_UNIT_TEST in configs/qemu_arm64_defconfig so that the unit tests are run in CI. Signed-off-by: Jerome Forissier Reviewed-by: Heinrich Schuchardt --- configs/qemu_arm64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a

Re: [PATCH v3 11/12] configs: pinetab2-rk3566: Enable video and USB keyboard

2025-04-15 Thread Dang Huynh
On Sun, Apr 13, 2025 at 05:26:03PM +0200, Jonas Karlman wrote: > Hi, > > On 2025-04-12 16:27, Dang Huynh wrote: > > Now that we have VOP2 support, let's enable it and support the > > built in USB keyboard. > > > > Signed-off-by: Dang Huynh > > --- > > configs/pinetab2-rk3566_defconfig | 11

Re: [PATCH v1 1/2] test: fix print_guid()

2025-04-15 Thread Jerome Forissier
Hi Heinrich, On 4/15/25 15:25, Heinrich Schuchardt wrote: > On 15.04.25 14:53, Jerome Forissier wrote: >> The %pUs format specifier prints the system partition GUID as "System >> Partition" if PARTITION_TYPE_GUID is disabled but either CMD_EFIDEBUG >> or EFI are enabled. See list_guid[] in lib/uui

[PATCH 1/1] rpi: copy over uart clock-frequency in DT

2025-04-15 Thread Bruno Leite
From: Bruno Leite rpi5 firmware sets uart_clk clock-frequency in the firmware and patches it to the DT, copy it over when loading a new DT. Signed-off-by: Bruno Leite --- board/raspberrypi/rpi/rpi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/raspberrypi/rpi/rpi.c b/board/ra

Re: [PATCH v2 2/4] net: ravb: Add optional reset deassertion

2025-04-15 Thread Paul Barker
On 24/03/2025 19:48, Marek Vasut wrote: > On 3/24/25 10:57 AM, Paul Barker wrote: >> On 24/03/2025 01:08, Marek Vasut wrote: >>> On 3/19/25 1:03 PM, Paul Barker wrote: >>> >>> [...] >>> static int ravb_probe(struct udevice *dev) { + struct ravb_device_ops *device_ops = +

Re: [PATCH 1/1] rpi: copy over uart clock-frequency in DT

2025-04-15 Thread Peter Robinson
On Tue, 15 Apr 2025 at 09:30, Bruno Leite wrote: > From: Bruno Leite > > rpi5 firmware sets uart_clk clock-frequency in > the firmware and patches it to the DT, copy it > over when loading a new DT. > > Signed-off-by: Bruno Leite > Reviewed-by: Peter Robinson Tested-by: Peter Robinson > > -

Re: [PATCH v5 00/16] Uthreads

2025-04-15 Thread Jerome Forissier
Hi Tom, On 4/11/25 22:29, Tom Rini wrote: > On Mon, Mar 31, 2025 at 02:30:54PM +0200, Jerome Forissier wrote: > >> This series introduces threads and uses them for two things: >> - Improve the performance of the USB bus scanning code (scan multiple >> busses simultaneously), >> - Implement backgr

Re: [PATCH v2] emulation: fdt: Allow using U-Boot's device tree with QEMU

2025-04-15 Thread Tom Rini
On Tue, Apr 15, 2025 at 10:22:50AM +0300, Ilias Apalodimas wrote: > Hi Tom > > Thanks for roping me in. You were cc'd on the original, fwiw. > > On Tue, 15 Apr 2025 at 01:53, Tom Rini wrote: > > > > On Sun, Apr 06, 2025 at 07:07:04AM +1200, Simon Glass wrote: > > > > > At present it is impossi

Re: [PATCH v5 00/16] Uthreads

2025-04-15 Thread Tom Rini
On Tue, Apr 15, 2025 at 03:36:53PM +0200, Jerome Forissier wrote: > Hi Tom, > > On 4/11/25 22:29, Tom Rini wrote: > > On Mon, Mar 31, 2025 at 02:30:54PM +0200, Jerome Forissier wrote: > > > >> This series introduces threads and uses them for two things: > >> - Improve the performance of the USB b

Re: [REGRESSION] Re: [PATCH v2 16/24] clk: imx: Convert clock-osc-* back to osc_*

2025-04-15 Thread Adam Ford
On Tue, Apr 15, 2025 at 9:28 AM Francesco Dolcini wrote: > > Hello Marex, Fabio, all > > On Sun, Mar 23, 2025 at 04:58:45PM +0100, Marek Vasut wrote: > > Convert clock-osc-24m back to osc_24m and clock-osc-32k back to osc_32k. > > These are the clock which match clock tables in Linux. This is now

[PATCH 2/2] arm: dts: k3-j721e-r5-common-proc-board: Enable HBMC in R5 SPL stage

2025-04-15 Thread Anurag Dutta
Enable HBMC in the R5 SPL stage Signed-off-by: Anurag Dutta --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts b/arch/arm/dts/k3-j721e-r5-common-proc-board.dts index c775432505b..e4f799dfb27 10064

[PATCH 1/2] mtd: Kconfig: Add SPL_MUX_MMIO dependency to HBMC driver

2025-04-15 Thread Anurag Dutta
The MUX_MMIO is enabled both in SPL as well as U-Boot proper. Hence, add SPL_MUX_MMIO dependency from HBMC driver. Signed-off-by: Anurag Dutta --- drivers/mtd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 2b7f5e5ed7b..

[PATCH 0/2] Hyperflash boot fixes for j721e

2025-04-15 Thread Anurag Dutta
This series introdues a couple of small fixes that involves enabling hyperflash at R5 SPL stage and Kconfig changes that are required for HBMC boot on j721e Test logs : https://gist.github.com/anuragdutta731/103e84e84f013093fa089803719d997d Anurag Dutta (2): mtd: Kconfig: Add SPL_MUX_MMIO depe

[PATCH v1] configs: agilex5: Restore fixed bloblist

2025-04-15 Thread alif . zakuan . yuslaimi
From: Tingting Meng CONFIG_BLOBLIST_FIXED and CONFIG_BLOBLIST_ADDR options were unintentionally removed during recent external updates to the defconfig. This patch restores the missing entries to ensure proper board functionality. No new features are introduced. Fixes: d6a53f523afe ("spl: Add an

Re: [PATCH v2 1/2] lib/uuid.c: use unique name for PARTITION_SYSTEM_GUID

2025-04-15 Thread Heinrich Schuchardt
On 4/15/25 22:49, Jerome Forissier wrote: The name defined for PARTITION_SYSTEM_GUID in list_guid[] depends on configuration options. It is "system" if CONFIG_PARTITION_TYPE_GUID is enabled or "System Partition" if CONFIG_CMD_EFIDEBUG or CONFIG_EFI are enabled. In addition, the unit test in test/

Re: [REGRESSION] Re: [PATCH v2 16/24] clk: imx: Convert clock-osc-* back to osc_*

2025-04-15 Thread Adam Ford
On Tue, Apr 15, 2025 at 12:13 PM Fabio Estevam wrote: > > On Tue, Apr 15, 2025 at 1:55 PM Marek Vasut wrote: > > > Do you have af9cdd1ccd2d ("Revert "arm64: dts: imx8mn: Include 32kHz > > oscillator clock in SPL DTs"") in place ? If so, try and revert it, does > > it help ? > > It seems I have no

[PATCH 1/2] i2c: mediatek: add missing empty entry at end of mkt_i2c_ids[]

2025-04-15 Thread Martin Schiller
This adds the missing empty entry at the end of mtk_i2c_ids[]. Signed-off-by: Martin Schiller --- drivers/i2c/mtk_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/mtk_i2c.c b/drivers/i2c/mtk_i2c.c index 3450177741a..6edf3f44eca 100644 --- a/drivers/i2c/mtk_i2

[PATCH 2/2] i2c: mediatek: remove duplicate entry in mt_i2c_regs_v1[]

2025-04-15 Thread Martin Schiller
This removes a duplicate entry in mt_i2c_regs_v1[]. Signed-off-by: Martin Schiller --- drivers/i2c/mtk_i2c.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/mtk_i2c.c b/drivers/i2c/mtk_i2c.c index 6edf3f44eca..55381dbeced 100644 --- a/drivers/i2c/mtk_i2c.c +++ b/drivers/i2c/mtk_i2

RE: [PATCH v1] configs: agilex5: Restore fixed bloblist

2025-04-15 Thread Chee, Tien Fong
> -Original Message- > From: Yuslaimi, Alif Zakuan > Sent: Wednesday, April 16, 2025 2:12 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Simon Goldschmidt > ; Chee, Tien Fong > ; Meng, Tingting ; > Tom Rini ; Maniyam, Dinesh > > Subject: [PATCH v1] configs: agilex5: Restore fixed bl

Re: [PATCH v2] emulation: fdt: Allow using U-Boot's device tree with QEMU

2025-04-15 Thread Heinrich Schuchardt
On 4/5/25 21:07, Simon Glass wrote: At present it is impossible to change the qemu_arm64 defconfig to obtain a devicetree from the U-Boot build. This is necessary for FIT validation, for example, where the signature node must be compiled into U-Boot. This description looks wrong: Signatures a

[PATCH v1] configs: agilex5: Restore fixed bloblist

2025-04-15 Thread alif . zakuan . yuslaimi
From: Tingting Meng CONFIG_BLOBLIST_FIXED and CONFIG_BLOBLIST_ADDR options were unintentionally removed during recent external updates to the defconfig. This patch restores the missing entries to ensure proper board functionality. No new features are introduced. Fixes: d6a53f523afe ("spl: Add an

Re: [PATCH] mach-k3: common_fdt: Fix Label Issue

2025-04-15 Thread Daniel Schultz
On 4/15/25 00:59, Tom Rini wrote: On Sun, Apr 06, 2025 at 11:07:11PM -0700, Daniel Schultz wrote: Labels are not allowed before declarations. Add a semicolon after the label to introduce an empty statement. This will fix following error: arch/arm/mach-k3/common_fdt.c: In function 'fdt_fixup_r

[CAD QSPI v2] spi: cadence-qspi: Add disable STIG mode quikrs.

2025-04-15 Thread Boon Khai Ng
Adding quirk to disable STIG mode since cadence controller has issue for read/write using the STIG mode. STIG mode is enabled by default since 2023.04 for small read/write(<8bytes). Updated STIG mode reading from dev_get_driver_data by assigning to platdata struct before read quirks variable. The

RE: [CAD QSPI v1] spi: cadence-qspi: Add disable STIG mode quikrs.

2025-04-15 Thread Ng, Boon Khai
> I think you can add the reference of the kernel patch > https://lore.kernel.org/all/20241204063338.296959-1- > niravkumar.l.rab...@intel.com/T/ you ported to this patch in commit > message. > Hi Tien Fong, Sure, will update this in V2. Regards, Boon Khai

[PATCH 1/1] doc: dt_qemu: correct dumpdtb description

2025-04-15 Thread Heinrich Schuchardt
Use only a single -machine parameter. Describe that the same invocation of qemu-system- has to be used for dumping the device-tree as will be used when executing U-Boot. Signed-off-by: Heinrich Schuchardt --- doc/develop/devicetree/dt_qemu.rst | 25 - 1 file changed, 16

Re: [PATCH v2 01/16] rockchip: sdram: honor CFG_SYS_SDRAM_BASE when defining ram regions

2025-04-15 Thread Jonas Karlman
Hi Heiko, On 2025-04-14 22:00, Heiko Stuebner wrote: > Currently the sdram code for arm64 expects CFG_SYS_SDRAM_BASE to be 0. > The ram being in front and the device-area behind it. > > The upcoming RK3576 uses a different layout, with the device area > in front the ram, which then also extends p

[PATCH] arm: mach-k3: r5: j7200: Add clk dev data for WKUP UART

2025-04-15 Thread Udit Kumar
From: Bhavya Kapoor Add clk and dev data for wakeup uart to enable wakeup UART as console. Reported-by: KEERTHY Signed-off-by: Bhavya Kapoor --- arch/arm/mach-k3/r5/j7200/clk-data.c | 16 arch/arm/mach-k3/r5/j7200/dev-data.c | 1 + 2 files changed, 17 insertions(+) diff --g

Re: [PATCH v2 02/16] rockchip: mkimage: Add rk3576 support

2025-04-15 Thread Jonas Karlman
On 2025-04-14 22:00, Heiko Stuebner wrote: > From: Xuhui Lin > > Add support for rk3576 package header in mkimage tool. > > Signed-off-by: Heiko Stuebner > --- > tools/rkcommon.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/rkcommon.c b/tools/rkcommon.c > index f158d156228..

Re: [PATCH v2 06/16] clk: rockchip: Add rk3576 clk support

2025-04-15 Thread Jonas Karlman
On 2025-04-14 22:01, Heiko Stuebner wrote: > From: Elaine Zhang > > Add clock driver support for Rockchip RK3576 SoC. > > Signed-off-by: Elaine Zhang > [adapted to mainline u-boot] > Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman Regards, Jonas > --- > .../include/asm/arch-rockc

Re: [PATCH v2 07/16] reset: rockchip: implement rk3576 lookup table

2025-04-15 Thread Jonas Karlman
Hi Heiko, On 2025-04-14 22:01, Heiko Stuebner wrote: > From: Elaine Zhang > > The current DT bindings for the rk3576 clock use a different ID than the > one that is supposed to be written to the hardware registers. > Thus, we cannot use directly the id provided in the phandle, but rather > use a

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-15 Thread Simon Glass
Hi again Raymond, On Mon, 14 Apr 2025 at 14:41, Simon Glass wrote: > > Hi Raymond, > > On Mon, 14 Apr 2025 at 14:16, Raymond Mao wrote: > > > > Hi Simon, > > > > On Mon, 14 Apr 2025 at 16:06, Simon Glass wrote: > > > > > > (trimming cc) > > > > > > Hi Raymond, > > > > > > On Mon, 14 Apr 2025 at

Re: [PATCH v2 08/16] ram: rockchip: Add rk3576 ddr driver support

2025-04-15 Thread Jonas Karlman
On 2025-04-14 22:01, Heiko Stuebner wrote: > Add ddr driver for rk3576 to get the ram capacity. > > Signed-off-by: Heiko Stuebner Correct DRAM amount is reported on my boards. Reviewed-by: Jonas Karlman Regards, Jonas > --- > drivers/ram/rockchip/Makefile | 1 + > drivers/ram/rockchi

Re: [PATCH v1 2/2] qemu-arm64: enable UNIT_TEST

2025-04-15 Thread Ilias Apalodimas
Thanks Jerome, On Tue, 15 Apr 2025 at 15:54, Jerome Forissier wrote: > > Enable CONFIG_UNIT_TEST in configs/qemu_arm64_defconfig so that the unit > tests are run in CI. > > Signed-off-by: Jerome Forissier > --- > > configs/qemu_arm64_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --

Re: [PATCH v2] emulation: fdt: Allow using U-Boot's device tree with QEMU

2025-04-15 Thread Ilias Apalodimas
On Tue, 15 Apr 2025 at 17:12, Tom Rini wrote: > > On Tue, Apr 15, 2025 at 10:22:50AM +0300, Ilias Apalodimas wrote: > > Hi Tom > > > > Thanks for roping me in. > > You were cc'd on the original, FWIW. I completely missed that and only noticed it with your reply. Thanks! > > > > > On Tue, 15 Apr

[PATCH v4 2/4] net, net-lwip: wget: suppress console output when called by EFI

2025-04-15 Thread Jerome Forissier
Functions called from EFI applications should not do console output. Refactor the wget code to implement this requirement. The wget_http_info struct is used to hold the boolean that signifies whether the output is allowed or not. Signed-off-by: Jerome Forissier Reported-by: Heinrich Schuchardt -

[PATCH v4 1/4] net-lwip: change static function wget_loop() to be wget_do_request()

2025-04-15 Thread Jerome Forissier
wget_do_request() currently does so little before calling the static function wget_loop() that we may as well rename wget_loop() to wget_do_request() and put everything in one function. Signed-off-by: Jerome Forissier --- Changes in v4: - New patch net/lwip/wget.c | 20 +--- 1

[PATCH v4 3/4] net-lwip: wget: add LMB and buffer checks

2025-04-15 Thread Jerome Forissier
Legacy NET wget invokes a store_block() function which performs buffer validation (LMB, address wrapping). Do the same with NET_LWIP. Signed-off-by: Jerome Forissier Suggested-by: Sughosh Ganu --- Changes in v4: - The 'silent' boolean in stored in struct wget_http_info (same as NET) Changes in

[PATCH v4 4/4] net-lwip: tftp: add LMB and buffer checks

2025-04-15 Thread Jerome Forissier
Legacy NET tftp invokes a store_block() function which performs buffer validation (LMB, address wrapping). Do the same with NET_LWIP. Signed-off-by: Jerome Forissier Suggested-by: Sughosh Ganu --- (no changes since v3) Changes in v3: - store_block(): add Sphinx-like documentation net/lwip/tf

[PATCH v4 0/4] NET_LWIP LMB fixes

2025-04-15 Thread Jerome Forissier
Two small patches fixing issues with tftp and wget when the network stack is NET_LWIP and LMB is enabled. Plus one prerequisite patch fixing a problem with wget that does printf()/puts()/putc() when called from EFI which is not allowed (messes with the console output) and a small refactoring in net

Re: [REGRESSION] Re: [PATCH v2 16/24] clk: imx: Convert clock-osc-* back to osc_*

2025-04-15 Thread Francesco Dolcini
On Tue, Apr 15, 2025 at 09:43:12AM -0500, Adam Ford wrote: > On Tue, Apr 15, 2025 at 9:28 AM Francesco Dolcini > wrote: > > > > Hello Marex, Fabio, all > > > > On Sun, Mar 23, 2025 at 04:58:45PM +0100, Marek Vasut wrote: > > > Convert clock-osc-24m back to osc_24m and clock-osc-32k back to osc_32

[PATCH 0/1] Fix RPI5 uart clock when loading kernel with non-boot DT

2025-04-15 Thread Bruno Leite
From: Bruno Leite When loading the kernel with a DT that was not used to boot the rpi (e.g. when using a FIT image), the uart-clk property that should have been patched by the firmware will be passed as is to the driver and thus cause the divisor to be set incorrectly, hence the uart will not wo

Re: [PATCH v1 1/2] test: fix print_guid()

2025-04-15 Thread Heinrich Schuchardt
On 15.04.25 15:51, Jerome Forissier wrote: Hi Heinrich, On 4/15/25 15:25, Heinrich Schuchardt wrote: On 15.04.25 14:53, Jerome Forissier wrote: The %pUs format specifier prints the system partition GUID as "System Partition" if PARTITION_TYPE_GUID is disabled but either CMD_EFIDEBUG or EFI are

[REGRESSION] Re: [PATCH v2 16/24] clk: imx: Convert clock-osc-* back to osc_*

2025-04-15 Thread Francesco Dolcini
Hello Marex, Fabio, all On Sun, Mar 23, 2025 at 04:58:45PM +0100, Marek Vasut wrote: > Convert clock-osc-24m back to osc_24m and clock-osc-32k back to osc_32k. > These are the clock which match clock tables in Linux. This is now > possible because the clock drivers now resolve clock names based on

[PATCH v1 1/2] test: fix print_guid()

2025-04-15 Thread Jerome Forissier
The %pUs format specifier prints the system partition GUID as "System Partition" if PARTITION_TYPE_GUID is disabled but either CMD_EFIDEBUG or EFI are enabled. See list_guid[] in lib/uuid.c. Fix the print_guid() unit test accordingly. Signed-off-by: Jerome Forissier --- test/common/print.c | 2

[PATCH 2/2] arm: mach-k3: am625: remove any firewalls ROM has configured for HSRAM

2025-04-15 Thread Bryan Brattlof
ROM will configure a firewall to only allow HSRAM to be touched by the R5 core. Any outside entity like DMA or the A53s will not have access to this region. This can be problematic when U-Boot, running on the A53, loads firmware that runs out of this region. To simplify things remove the firewall

Re: [PATCH v2 16/16] rockchip: rk3576: Add support for ROC-RK3576-PC board

2025-04-15 Thread Jonas Karlman
Hi Heiko, On 2025-04-14 22:01, Heiko Stuebner wrote: > The ROC-RK3576-PC is a SBC made by Firefly, designed around the RK3576 > SoC. This adds the needed board infrastructure and config for it. > > Signed-off-by: Heiko Stuebner > --- > arch/arm/dts/rk3576-roc-pc-u-boot.dtsi | 11 ++ > arch

Re: [PATCH v6 05/12] power-domain: Add refcounting

2025-04-15 Thread Francis, Neha
On 4/3/2025 1:09 PM, Miquel Raynal wrote: > It is very surprising that such an uclass, specifically designed to > handle resources that may be shared by different devices, is not keeping > the count of the number of times a power domain has been > enabled/disabled to avoid shutting it down unexpect

Re: [PATCH] Revert "CI: Disable evb-ast2600"

2025-04-15 Thread Joel Stanley
On Tue, 15 Apr 2025 at 07:34, Tom Rini wrote: > > Upstream developers have been unable to replicate this failure exactly. > Furthermore, with commit 8c98b57d72d5 ('Merge patch series "Static > initcalls"') we have now replaced the part of the U-Boot code which the > platform was hanging in when I

[PATCH v2 15/16] arm64: dts: rockchip: Add devicetree for the ROC-RK3576-PC

2025-04-15 Thread Heiko Stuebner
As the name implies, it is built around the RK3576 SoC with 4x Cortex-A72 cores, four Cortex-A53 cores and Mali-G52 MC3 GPU. Storage options are EMMC, SD-Card, a 2242 M.2 slot and the possibility to use UFS 2.0 storage. Video Output options are a HDMI port, a DSI connector as well as Display- Por

Re: [REGRESSION] Re: [PATCH v2 16/24] clk: imx: Convert clock-osc-* back to osc_*

2025-04-15 Thread Marek Vasut
On 4/15/25 5:03 PM, Francesco Dolcini wrote: On Tue, Apr 15, 2025 at 09:43:12AM -0500, Adam Ford wrote: On Tue, Apr 15, 2025 at 9:28 AM Francesco Dolcini wrote: Hello Marex, Fabio, all On Sun, Mar 23, 2025 at 04:58:45PM +0100, Marek Vasut wrote: Convert clock-osc-24m back to osc_24m and clo

Re: [PATCH v2 3/4] net: ravb: Add RZ/G2L Support

2025-04-15 Thread Paul Barker
On 24/03/2025 23:05, Marek Vasut wrote: > On 3/24/25 11:12 AM, Paul Barker wrote: >> On 24/03/2025 01:11, Marek Vasut wrote: >>> On 3/19/25 1:03 PM, Paul Barker wrote: >>> >>> [...] >>> +++ b/drivers/net/Kconfig @@ -864,7 +864,7 @@ config RENESAS_RAVB select PHY_ETHERNET_I

[PATCH v2 14/16] dt-bindings: arm: rockchip: Add Firefly ROC-RK3576-PC binding

2025-04-15 Thread Heiko Stuebner
Add devicetree binding for the ROC-RK3576-PC SBC. The board is based on the RK3576 SoC (4*Cortex-A72 + 4*Cortex-A53). Acked-by: Rob Herring (Arm) Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20250210205126.1173631-2-he...@sntech.de [ upstream commit: 2be4a4171401761cb5fb02225d

[PATCH v3] mach-k3: common_fdt: Move carveout struct

2025-04-15 Thread Daniel Schultz
Labels are not allowed before declarations. Move the carveout struct at the beginning and only update 'end' at this point. This will fix following error: arch/arm/mach-k3/common_fdt.c: In function 'fdt_fixup_reserved': arch/arm/mach-k3/common_fdt.c:156:2: error: a label can only be part of a sta

Re: [PATCH v2 09/16] rockchip: otp: Add support for RK3576

2025-04-15 Thread Jonas Karlman
On 2025-04-14 22:01, Heiko Stuebner wrote: > Add support for RK3576 compatible. > The RK3576 OTP uses the same read mechanism as the RK3588, just > with different values for offset and size. > > Signed-off-by: Heiko Stuebner I can read correct data from OTP on my boards. Reviewed-by: Jonas Karl

Re: [PATCH] tools/make_pip: Use virtualenv when invoking pip

2025-04-15 Thread Tom Rini
On Wed, Apr 09, 2025 at 09:46:34AM +0200, Mattijs Korpershoek wrote: > Recent Ubuntu versions (24.04+) disallow pip by default when > installing packages. The recommended approach is to use a virtualenv > instead. > Because of this, "make pip" is failing on such versions. > > To prepare CI contai

Re: [PATCH v2 10/16] mmc: rockchip_sdhci: Add support for RK3576

2025-04-15 Thread Jonas Karlman
On 2025-04-14 22:01, Heiko Stuebner wrote: > Add support for RK3576 to the rockchip sdhci driver. > > It's pretty similar to its cousins found in the RK3568 and RK3588 and the > specific hs400-tx-tap number was taken from the vendor-u-boot. > > Signed-off-by: Heiko Stuebner > Reviewed-by: Jaehoo

Re: [PATCH v2 11/16] mmc: rockchip_dw_mmc: Add support for rk3576

2025-04-15 Thread Jonas Karlman
On 2025-04-14 22:01, Heiko Stuebner wrote: > The rk3576 uses a different base-compatible, as starting with this > generation, the clock phase tuning is done via registers inside > the mmc controller and not from inside the CRU. > > In U-Boot we do not tune at all, so no other code changes are > ne

[PATCH] python: Use and refer to the venv module rather than virtualenv

2025-04-15 Thread Tom Rini
Using some form of sandbox with Python modules is a long standing best practice with the language. There are a number of ways to have a Python sandbox be created. At this point in time, it seems the Python community is moving towards using the "venv" module provided with Python rather than a separa

Re: [PATCH v2 12/16] net: dwc_eth_qos_rockchip: Add support for RK3576

2025-04-15 Thread Jonas Karlman
On 2025-04-14 22:01, Heiko Stuebner wrote: > Add rk_gmac_ops and other special handling that is needed for GMAC to > work on RK3576. > > Signed-off-by: Heiko Stuebner Ethernet works on my boards, using normal dhcp cmd, and also wget + dns using NET_LWIP=y. Reviewed-by: Jonas Karlman Regards,

[PATCH] mailmap: update my name and email

2025-04-15 Thread Casey Connolly
Update my name and email address Signed-off-by: Casey Connolly --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index 85086602cd50..717daa9adc4a 100644 --- a/.mailmap +++ b/.mailmap @@ -34,8 +34,9 @@ Bhargava Sreekantappa Gayathri Bin Meng Boris Brezil

[PATCH] net: gem: ignore tx_clk if MII is used

2025-04-15 Thread Martin Kaistra
If the MII interface is used, the PHY is the clock master, thus don't set the clock rate. On Zynq-7000, this will prevent the following error: zynq_gem ethernet@e000b000: failed to set tx clock rate 2500 Signed-off-by: Martin Kaistra --- drivers/net/zynq_gem.c | 14 -- 1 file c

[PATCH v2] board: rockchip: Add LCKFB TaishanPi RK3566 Board

2025-04-15 Thread Jiehui He
The LCKFB TaishanPi is a single-board computer based on the RK3566 SoC. Specification: - 1/2 Gib RAM - Optinal EMMC - SD-Card - HDMI / MIPI CSI / MIPI DSI - USB 2.0 Host (Type-A) - USB 2.0 Host / OTG (Type-C) - No Ethernet This patch adds U-Boot support for the LCKFB TaishanPi RK3566 board, inclu

[PATCH v2 1/5] mmc: am654_sdhci: Add MMC_HS_52 to timing data

2025-04-15 Thread Judith Mendez
This patch adds MMC_HS_52 to the timing data structure. Previously, this bus mode tap settings were not populated and were instead populated for MMC_HS which is a different bus mode up to 26MHz. Since we intended these settings according to the device data sheet[0] for MMC_HS_52 up to 52MHz, popul

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

2025-04-15 Thread Heinrich Schuchardt
On 11.03.25 17:47, Adriano Cordova wrote: 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: A

Re: [PATCH v6 05/12] power-domain: Add refcounting

2025-04-15 Thread Francesco Dolcini
On Tue, Apr 15, 2025 at 03:29:09PM +0530, Neha Malcom Francis wrote: > On 15/04/25 15:20, Miquel Raynal wrote: > >>> Francesco, are you also testing on K3 platforms? > >>> > >> > >> Yes he would be, since the firmware print is K3 firmware. > >> > >>> Can one of you boot with the patch below applied

Re: [PATCH v6 05/12] power-domain: Add refcounting

2025-04-15 Thread Neha Malcom Francis
Hi Miquel On 15/04/25 13:45, Miquel Raynal wrote: > Hello, > > Thanks for the report. > >> Neha bisected it down to 197376fbf300e92afa0a1583815d9c9eb52d613a commit >> which is this patch. > > And assuming it's the same failure I got reported this morning by one of > my cowork

[PATCH v3] configs: set SPL_TEXT_BASE by default for k3 platforms

2025-04-15 Thread Anshul Dalal
SPL_TEXT_BASE is used as the load address for the main domain SPL on k3 platforms. Since the config value is the same for every board, this patch sets the value 0x8008 as default for all 64-bit ARCH_K3, 0x43c0 as default for the R5 cores and deletes the instances of SPL_TEXT_BASE in indivi

[PATCH] test/py: spi: Prevent to overwrite the reserved memory

2025-04-15 Thread Love Kumar
Update SPI negative tests to prevent SF command from overwriting the reserved memory area. Signed-off-by: Love Kumar --- test/py/tests/test_spi.py | 29 + 1 file changed, 29 insertions(+) diff --git a/test/py/tests/test_spi.py b/test/py/tests/test_spi.py index dd7675

Re: [PATCH] net: ravb: Fix RX error handling

2025-04-15 Thread Paul Barker
On 13/04/2025 14:11, Marek Vasut wrote: > Correctly handle RX errors in ravb_recv() by returning 0 instead > of -EAGAIN on RX error. > > In case the RAVB driver detects an RX error in ravb_recv(), it must > not return the -EAGAIN, but instead must return 0. Both error codes > are handled in eth-uc

Re: [PATCH v6 05/12] power-domain: Add refcounting

2025-04-15 Thread Neha Malcom Francis
Hi Miquel On 15/04/25 15:20, Miquel Raynal wrote: >>> Francesco, are you also testing on K3 platforms? >>> >> >> Yes he would be, since the firmware print is K3 firmware. >> >>> Can one of you boot with the patch below applied? It should partially >>> revert the commit to the ancient behaviour, wh

[PATCH v1] arm: dts: am62a: allow booting from eMMC

2025-04-15 Thread Anshul Dalal
The bootph-all property in u-boot enables driver initialization prior to relocation, this is necessary to use the device as boot media. sdhci0 is the phandle for eMMC on am62a, so this change allows us to use eMMC as a boot media. Signed-off-by: Anshul Dalal --- arch/arm/dts/k3-am62a7-sk-u-boot

Re: [PATCH] mtd: spi-nor: Use CONFIG_IS_ENABLED for CONFIG_SPI_FLASH_BAR defines

2025-04-15 Thread Mike Looijmans
On 15-04-2025 08:12, Bernhard Messerklinger wrote: From: Mike Looijmans On 04-04-2025 11:56, Bernhard Messerklinger wrote: At the moment a mixture of ifdef(CONFIG_IS_ENABLED) and CONFIG_IS_ENABLED(SPI_FLASH_BAR) is used in the spi-nor framework. This leads to misbehaviour in the SPL as there is

Re: [PATCH] net: make initr_net() invocation command line agnostic

2025-04-15 Thread Ilias Apalodimas
On Mon, 14 Apr 2025 at 16:55, Heinrich Schuchardt wrote: > > initr_net() initalizes the network devices by calling eth_initalize(). > There is no good reason to disable this if no command line interface is > present. > > Let initr_net() depend on CONFIG_NET || CONFIG_NET_LWIP. > > Signed-off-by: H

RE: [CAD QSPI v1] spi: cadence-qspi: Add disable STIG mode quikrs.

2025-04-15 Thread Chee, Tien Fong
Hi Boon Khai, > -Original Message- > From: Ng, Boon Khai > Sent: Wednesday, March 12, 2025 5:10 PM > To: Jagan Teki ; Tom Rini > ; Michal Simek ; Venkatesh > Yadav Abbarapu ; Tejas Bhumkar > ; Cédric Le Goater > William Zhang ; U-boot Openlist b...@lists.denx.de> > Cc: Hea, Kok Kiang ;

[u-boot-test-hooks PATCH 1/1] travis-ci: qemu-riscv64_na: add a second network interface

2025-04-15 Thread Heinrich Schuchardt
U-Boot allows to have multiple network interfaces and switching between these. This functionality cannot be tested if QEMU only emulates a single NIC. Provide a QEMU configuration with multiple network interfaces. Signed-off-by: Heinrich Schuchardt --- bin/travis-ci/conf.qemu-riscv64_na | 2 +-

Re: [u-boot-test-hooks PATCH 1/1] travis-ci: qemu-riscv64_na: add a second network interface

2025-04-15 Thread Ilias Apalodimas
On Tue, 15 Apr 2025 at 12:12, Heinrich Schuchardt wrote: > > U-Boot allows to have multiple network interfaces and switching between > these. This functionality cannot be tested if QEMU only emulates a single > NIC. > > Provide a QEMU configuration with multiple network interfaces. > > Signed-off-

[PATCH v2 01/11] net: lwip: fix initialization sequence before a command

2025-04-15 Thread Jerome Forissier
The things that are done prior to executing a network command with NET_LWIP are not consistent with what is done with NET. It impacts the selection of the current device, and more precisely if the active device is invalid NET would return an error while NET_LWIP would try to pick a new device. This

[PATCH v2 00/11] lwIP sandbox tests

2025-04-15 Thread Jerome Forissier
** Note ** I am resending essentially to have Simon's R-b tag on all commits in patchwork; no review requested. Sorry for the noise. This series enables most of the driver model tests for network features with NET_LWIP (test/dm/eth.c and test/dm/dsa.c). - Patches 1-4 fix a few bugs (device selecti

[PATCH v2 05/11] drivers: net: sandbox: add support for NET_LWIP

2025-04-15 Thread Jerome Forissier
Make the sandbox mock ethernet driver (drivers/net/sandbox.c) compatible with NET_LWIP by not relying on any of the structures or functions defined in net-legacy.h. This is done by providing local definitions of the various protocol structures (Ethernet, ARP, IPv4, ICMP). Drop the stub driver that

[PATCH v2 04/11] net: lwip: use timer_early_get_count() when CONFIG_SANDBOX_TIMER=y

2025-04-15 Thread Jerome Forissier
When the sandbox timer is available, use it. This allows skipping time in the tests (sandbox_eth_skip_timeout()). Signed-off-by: Jerome Forissier Reviewed-by: Simon Glass --- (no changes since v1) net/lwip/net-lwip.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/lwip/net-lwip.c

[PATCH v2 07/11] net: ping: make do_ping() available via

2025-04-15 Thread Jerome Forissier
Make the do_ping() function in cmd/net.c a global one by getting rid of the static qualifier, and move the prototype declaration from net-lwip.h to net-common.h. This makes the function available to other parts of U-Boot when CONFIG_NET=y, as was already the case when CONFIG_NET_LWIP=y. This is a

[PATCH v2 02/11] net: lwip: provide net_start_again()

2025-04-15 Thread Jerome Forissier
Implement net_start_again() when NET_LWIP=y in a very similar way to NET. This will be used in a future commit to determine if a failed ping needs to be tried again on a different interface. Signed-off-by: Jerome Forissier Reviewed-by: Simon Glass --- (no changes since v1) include/net-common.

[PATCH v2 06/11] sandbox: provide static IP addresses for eth{2, 3, 5, 6, 7}

2025-04-15 Thread Jerome Forissier
The tests in test/dm/eth.c and test/dm/dsa.c use interfaces that have no static IP addresses configured in the board's default environment file. That will be a problem when NET_LWIP=y because the lwIP stack refuses to send ICMP packets through an interface that doesn't have an IP ("no route to host

[PATCH v2 03/11] net: lwip: add restart support to ping

2025-04-15 Thread Jerome Forissier
Use net_start_again() in do_ping() to determine if a failed ping should be restarted on a different interface. Signed-off-by: Jerome Forissier Reviewed-by: Simon Glass --- (no changes since v1) net/lwip/ping.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ne

[PATCH v2 08/11] test: dm: eth, dsa: update tests for NET_LWIP

2025-04-15 Thread Jerome Forissier
Convert the tests to use the do_ping() interface which is now common to NET and NET_LWIP. This allows running most network test with SANDBOX and NET_LWIP. A few things to note though: 1. The ARP and IPv6 tests are enabled for NET only 2. The net_retry test is modified to use eth0 (eth@10002000) a

[PATCH v2 10/11] configs: add sandbox64_lwip_defconfig

2025-04-15 Thread Jerome Forissier
Add sandbox64_lwip_defconfig based on sandbox64_defconfig with NET_LWIP enabled. Signed-off-by: Jerome Forissier Reviewed-by: Simon Glass --- (no changes since v1) configs/sandbox64_lwip_defconfig | 5 + 1 file changed, 5 insertions(+) create mode 100644 configs/sandbox64_lwip_defconfig

[PATCH v2 11/11] CI: add sandbox64_lwip

2025-04-15 Thread Jerome Forissier
Add sandbox64_lwip_defconfig to the list of tested boards. Signed-off-by: Jerome Forissier Reviewed-by: Simon Glass --- (no changes since v1) .azure-pipelines.yml | 2 ++ .gitlab-ci.yml | 11 +++ 2 files changed, 13 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipe

[PATCH v2 09/11] net: lwip: allow DM_DSA=y when NET_LWIP=y

2025-04-15 Thread Jerome Forissier
Now that the DSA tests in test/dm/dsa.c are compatible with NET_LWIP, remove the dependency of DM_DSA on NET. Signed-off-by: Jerome Forissier Reviewed-by: Simon Glass --- (no changes since v1) drivers/net/Kconfig | 1 - net/Makefile| 2 +- 2 files changed, 1 insertion(+), 2 deletions(

Re: [PATCH 5/5] sunxi: h6/h616: Reuse common DRAM infrastructure

2025-04-15 Thread Andre Przywara
On Fri, 11 Apr 2025 18:14:39 +0200 Jernej Skrabec wrote: Hi Jernej, > H616 rank and size detection code is superior to the H6. Nevertheless, > they are structurally the same. Split functions from H616 into new file > and reuse them in H6 DRAM driver too. This should also fix some bugs for > H6 t

  1   2   >