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

[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

[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

[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 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 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 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] 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

[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] 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

[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

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

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

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/

[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 v6 05/12] power-domain: Add refcounting

2025-04-15 Thread Samuel Holland
Hi Miquel, On 2025-04-03 2:39 AM, 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

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

Re: [PATCH 3/5] sunxi: H6: DRAM: Constify function parameters

2025-04-15 Thread Andre Przywara
On Fri, 11 Apr 2025 18:14:37 +0200 Jernej Skrabec wrote: Hi, > Constify parameters for two reasons: > - Allow more compile time optimizations > - It will allow later sharing of common code with H616 (when it will be > rearranged some more) > > Commit does same kind of changes as 457e2cd665bd

Re: [PATCH 2/5] sunxi: H6: Remove useless DRAM timings parameter

2025-04-15 Thread Andre Przywara
On Fri, 11 Apr 2025 18:14:36 +0200 Jernej Skrabec wrote: > This is just cosmetic fix for later easier rework. > > Signed-off-by: Jernej Skrabec Reviewed-by: Andre Przywara Cheers, Andre > --- > arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h | 2 +- > arch/arm/mach-sunxi/dram_sun50i_h6.c

Re: [PATCH 3/3] arm: dts: am335x: Add nodes for lcdc, panel and backlight

2025-04-15 Thread Tom Rini
On Tue, Apr 15, 2025 at 03:46:32PM -0700, Sukrut Bellary wrote: > On Tue, Mar 25, 2025 at 12:31:06PM -0700, Sukrut Bellary wrote: > > On Mon, Mar 24, 2025 at 11:20:09AM -0600, Tom Rini wrote: > > > On Wed, Mar 19, 2025 at 01:25:16PM -0700, Sukrut Bellary wrote: > > > > > > > For AM335x EVM[1], ena

Re: [PATCH 3/3] arm: dts: am335x: Add nodes for lcdc, panel and backlight

2025-04-15 Thread Sukrut Bellary
On Tue, Mar 25, 2025 at 12:31:06PM -0700, Sukrut Bellary wrote: > On Mon, Mar 24, 2025 at 11:20:09AM -0600, Tom Rini wrote: > > On Wed, Mar 19, 2025 at 01:25:16PM -0700, Sukrut Bellary wrote: > > > > > For AM335x EVM[1], enable nodes required to enable the support for LCD > > > and PWM backlight.

[PATCH v3 12/15] arm64: dts: rockchip: add rk3576 otp node

2025-04-15 Thread Heiko Stuebner
This adds the otp node to the rk3576 soc devicetree including the individual fields we know about. Tested-by: Nicolas Frattaroli Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20250210224510.1194963-7-he...@sntech.de [ upstream commit: 8715d2eeb062f6859c252bb6c87b363230b66e9f ]

[PATCH v3 11/15] net: dwc_eth_qos_rockchip: Add support for RK3576

2025-04-15 Thread Heiko Stuebner
Add rk_gmac_ops and other special handling that is needed for GMAC to work on RK3576. Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- drivers/net/dwc_eth_qos.c | 4 + drivers/net/dwc_eth_qos_rockchip.c | 154 - 2 files changed, 157 insertions(

[PATCH v3 15/15] rockchip: rk3576: Add support for ROC-RK3576-PC board

2025-04-15 Thread Heiko Stuebner
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 Reviewed-by: Jonas Karlman --- arch/arm/dts/rk3576-roc-pc-u-boot.dtsi | 11 ++ arch/arm/mach-rockchip/rk3576/Kconfig | 8

[PATCH v3 10/15] mmc: rockchip_dw_mmc: Add support for rk3576

2025-04-15 Thread Heiko Stuebner
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 necessary. Signed-off-by: Heiko Stuebner Reviewed-by: J

[PATCH v3 14/15] 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

[PATCH v3 13/15] 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 03/15] arm: rockchip: Add RK3576 arch core support

2025-04-15 Thread Heiko Stuebner
From: Xuhui Lin The Rockchip RK3576 is a ARM-based SoC with quad-core Cortex-A72 and quad-core Cortex-A53 including 6TOPS NPU, Mali-G52 MC3, HDMI Out, DP, eDP, MIPI DSI, MIPI CSI2, LPDDR4/4X/5, eMMC5.1, SD3.0/MMC4.5, UFS, USB OTG 3.0, Type-C, USB 2.0, PCIe 2.1, SATA 3, Ethernet, SDIO3.0, I2C, UAR

[PATCH v3 09/15] mmc: rockchip_sdhci: Add support for RK3576

2025-04-15 Thread Heiko Stuebner
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: Jaehoon Chung Reviewed-by: Jonas Karlman --- drivers/mmc/roc

[PATCH v3 05/15] clk: rockchip: Add rk3576 clk support

2025-04-15 Thread Heiko Stuebner
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 --- .../include/asm/arch-rockchip/cru_rk3576.h| 491 drivers/clk/rockchip/Makefile

[PATCH v3 02/15] rockchip: mkimage: Add rk3576 support

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

[PATCH v3 00/15] Support for the RK3576

2025-04-15 Thread Heiko Stuebner
This adds support for the RK3576 SoC from Rockchip. Currently supported (and tested) features are accessing and reading from sdhci and sdmmc devices as well as pxe-booting via the network interface. As can be seen by the DONOTMERGE labels, this needs to wait a bit still. The core RK3576 devicetr

[PATCH v3 07/15] ram: rockchip: Add rk3576 ddr driver support

2025-04-15 Thread Heiko Stuebner
Add ddr driver for rk3576 to get the ram capacity. Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- drivers/ram/rockchip/Makefile | 1 + drivers/ram/rockchip/sdram_rk3576.c | 35 + 2 files changed, 36 insertions(+) create mode 100644 drivers/ram/r

[PATCH v3 08/15] rockchip: otp: Add support for RK3576

2025-04-15 Thread Heiko Stuebner
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 Reviewed-by: Jonas Karlman --- drivers/misc/rockchip-otp.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a

[PATCH v3 06/15] reset: rockchip: implement rk3576 lookup table

2025-04-15 Thread Heiko Stuebner
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 lookup table to correctly setup the hardware. This follows the i

[PATCH v3 01/15] rockchip: sdram: honor CFG_SYS_SDRAM_BASE when defining ram regions

2025-04-15 Thread Heiko Stuebner
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 past the 4G mark. Adapt both the generic zone definitions as wel

[PATCH v3 04/15] pinctrl: rockchip: support rk3576 pinctrl

2025-04-15 Thread Heiko Stuebner
From: Steven Liu Add support for the rk3576 variant of pinctrl. Signed-off-by: Steven Liu [adapted to mainline u-boot] Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- drivers/pinctrl/rockchip/Makefile | 1 + drivers/pinctrl/rockchip/pinctrl-rk3576.c | 278 +

[u-boot-test-hooks][PATCH] Add support for FVP emulator and fiptool

2025-04-15 Thread Tom Rini
This adds support for the vexpress_fvp platforms. In order to do that we need to add support for calling fiptool to update an existing "fip" file with our U-Boot build. We also need to support launching the FVP emulator itself. This is a little tricky in that we need to use "telnet" to reach the cr

[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 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 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(

[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 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 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 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 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 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 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 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 2/2] qemu-arm64: enable UNIT_TEST

2025-04-15 Thread Jerome Forissier
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 Reviewed-by: Ilias Apalodimas --- (no changes since v1) configs/qemu_arm64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --g

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

2025-04-15 Thread Jerome Forissier
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/common/print.c is incorrect because it expec

[PATCH v2 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 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 --

[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 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 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 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: [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] 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

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] 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 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

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] 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 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 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 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 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 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 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..

[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 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

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

2025-04-15 Thread Fabio Estevam
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 not pushed the "Revert "arm64: dts: imx8mn: Include 32kHz oscillator cl

Re: Pull request for tpm-master-14042025

2025-04-15 Thread Tom Rini
On Tue, 15 Apr 2025 14:16:57 +0300, Ilias Apalodimas wrote: > A small fix for the CR50 which moves testing of hardware a few steps ahead. > Simon tests still fail later down the road, but I don't have a hardware to > debug > it > > The following changes since commit 739ad58dbee874a3ad3bddd116e99

Re: [PATCH V2] firmware: ti_sci: Scan all device instances when releasing exclusive devices

2025-04-15 Thread Tom Rini
On Mon, 07 Apr 2025 07:15:54 -0500, Nishanth Menon wrote: > When FIT image with multiple dtbs are involved for R5 boot process, > R5 SPL starts off with the first instance of dtb to probe the > eeprom, then once we have identified the type of board, invocation > of setup_multi_dtb_fit will replace

Re: [PATCH] IOMUX: Fix stopping unused dropped consoles

2025-04-15 Thread Tom Rini
On Mon, 07 Apr 2025 13:10:00 +0200, Stephan Gerhold wrote: > iomux_match_device() returns -ENOENT instead of the end index, which means > console_stop() is never called at the moment for unused consoles. > > This prevents e.g. f_acm from releasing the USB gadget interface when > removing it from

[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

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

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

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

2025-04-15 Thread Jerome Forissier
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 --git a/configs/qemu_arm64_defconfig b/configs/qemu_arm64_defconfig index 6c9d2505a69..cd9a4

[PATCH 1/2] tools: binman: etype: fit: raise ValueError if key-name-hint is a path

2025-04-15 Thread Quentin Schulz
From: Quentin Schulz mkimage doesn't fail if it cannot find the public key but it prints to stderr. Considering that btool.run() discards stderr, it means binman happily returns an unsigned FIT and doesn't tell you something went wrong. Binman will actually find the file if there's a path in the

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

2025-04-15 Thread Tom Rini
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_reserved': > arch/arm/mach-k3/co

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

2025-04-15 Thread Ilias Apalodimas
Hi Tom Thanks for roping me in. 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 impossible to change the qemu_arm64 defconfig to > > obtain a devicetree from the U-Boot build. > > > > This is necessary for FIT

Pull request for tpm-master-14042025

2025-04-15 Thread Ilias Apalodimas
Hi Tom A small fix for the CR50 which moves testing of hardware a few steps ahead. Simon tests still fail later down the road, but I don't have a hardware to debug it The following changes since commit 739ad58dbee874a3ad3bddd116e995212a254e07: efi_loader: Moved the generated ESL file to objtree

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

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

[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

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

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

[PATCH v1] mach-k3: add eMMC FS boot support for am62[ap]

2025-04-15 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 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: [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

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 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

[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

[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

  1   2   >