Re: [PATCH 3/5] clk/qcom: apq8096: fix the sdhci clock

2025-04-10 Thread Jorge Ramirez
On 07/04/25 14:36:51, neil.armstr...@linaro.org wrote: > On 07/04/2025 14:05, Jorge Ramirez-Ortiz wrote: > > Select the right clock for sdhci. > > > > Signed-off-by: Jorge Ramirez-Ortiz > > Reviewed-by: Neil Armstrong > > --- > > drivers/clk/qcom/clock-apq8096.c | 2 +- > > 1 file changed, 1

Re: [PATCH 3/3] rockchip: avoid rebuilding most binaries for u-boot-rockchip-spi.bin

2025-04-10 Thread Quentin Schulz
Hi Jonas, On 4/8/25 7:48 PM, Jonas Karlman wrote: Hi Quentin, On 2025-02-11 12:43, Quentin Schulz wrote: Hi Jonas, On 2/11/25 12:35 PM, Jonas Karlman wrote: Hi Quentin, On 2025-02-11 11:29, Quentin Schulz wrote: From: Quentin Schulz Essentially the only differences between u-boot-rockchi

Re: [PATCH 05/13] board: dragonboard410c: Drop reflash functionality

2025-04-10 Thread Neil Armstrong
On 07/04/2025 18:59, Stephan Gerhold wrote: This is broken ever since we switched to using U-Boot as first stage bootloader. Since no one seems to test this actively, let's just drop this entirely. There are other tools available for re-flashing the DB410c. Signed-off-by: Stephan Gerhold ---

[PATCH 1/5] board: qualcomm: dragonboard820c: update readme

2025-04-10 Thread Jorge Ramirez-Ortiz
Update build instructions. Be sure to use the u-boot-nodtb.bin image, as the Snapdragon platform prioritizes the embedded Device Tree Blob (DTB) when present, rather than the external one. The external DTB—modified by LK—is the version required by the DB820c. Signed-off-by: Jorge Ramirez-Ortiz R

[PATCH v3 0/3] NET_LWIP LMB fixes

2025-04-10 Thread Jerome Forissier
Two small patches fixing issues with tftp and wget when the network stack is NET_LWIP and LMB is enabled. Changes in v3: - New patch: net-lwip: wget_do_request(): do not print anything to the console - store_block() [wget]: add Sphinx-like documentation - store_block() [wget]: do not print to th

Re: [PATCH 10/13] board: dragonboard410c: Use BOOTSTD instead of DISTRO_DEFAULTS

2025-04-10 Thread Neil Armstrong
On 07/04/2025 18:59, Stephan Gerhold wrote: Reduce the environment size by using standard boot instead of distro boot. It uses faster bootdevs first by default (eMMC -> SD -> USB -> Network), so set "boot_targets" to keep the current ordering (USB -> SD -> eMMC -> Network). Perhaps this should be

[PATCH] xilinx: Free memory when variable is saved in boot_targets_setup()

2025-04-10 Thread Michal Simek
When boot_targets variable is saved there is no reason to keep string in malloc area that's why free it. This change is already done in ZynqMP code. Signed-off-by: Michal Simek --- board/amd/versal2/board.c | 3 ++- board/xilinx/versal/board.c | 1 + 2 files changed, 3 insertions(+), 1 deleti

[PATCH v1 0/1] Support for PRUETH mode on AM335x ICE

2025-04-10 Thread Parvathi Pudi
Hi, This patch adds support for PRU-ICSS mode in the u-boot environment to correctly load the device tree blob file based on the HW pin (jumper) configuration in AM335x ICE Evaluation module. In this device, the pins and the ports are shared between PRU-ICSS and CPSW thus need runtime detection be

Re: [PATCH] mmc: sdhci: Fix possible Synchronous Abort using PIO mode

2025-04-10 Thread Jonas Karlman
Hi Peng, On 2025-04-10 14:28, Peng Fan wrote: > Hi Jonas, > > On Thu, Jan 23, 2025 at 09:48:48PM +, Jonas Karlman wrote: >> When MMC_SDHCI_SDMA=y or MMC_SDHCI_ADMA=y and PIO mode is used >> dma_unmap_single() is called on an unmapped address, 0x0. This may >> result in a Synchronous Abort: >>

Re: [PATCH 1/5] board: qualcomm: dragonboard820c: update readme

2025-04-10 Thread Caleb Connolly
On Mon, 07 Apr 2025 19:56:13 +0200, Jorge Ramirez-Ortiz wrote: > Update build instructions. > > Be sure to use the u-boot-nodtb.bin image, as the Snapdragon platform > prioritizes the embedded Device Tree Blob (DTB) when present, rather > than the external one. The external DTB—modified by LK—is

Re: [PATCH 1/6] event: signal when livetree has been built

2025-04-10 Thread Caleb Connolly
On 4/10/25 15:07, Simon Glass wrote: Hi Caleb, On Thu, 10 Apr 2025 at 07:00, Caleb Connolly wrote: Hi Simon, On 4/10/25 13:27, Simon Glass wrote: Hi Caleb, On Wed, 9 Apr 2025 at 11:17, Caleb Connolly wrote: OF_LIVE offers a variety of benefits, one of them being that the live tree ca

Re: [PATCH 1/7] arm: at91: wdt: Remove unused at91_wdt struct

2025-04-10 Thread Zixun LI
On Thu, Apr 10, 2025 at 12:28 PM Eugen Hristev wrote: > > This breaks sama5d2_xplained_mmc_defconfig for example. > > In file included from arch/arm/mach-at91/spl.c:8: > arch/arm/mach-at91/spl.c: In function ‘at91_disable_wdt’: > arch/arm/mach-at91/spl.c:19:39: error: invalid use of undefined type

Re: [PATCH] Dockerfile: Update to gcc-14.2.0 and clang-18

2025-04-10 Thread Tom Rini
On Tue, 28 Jan 2025 17:02:05 -0600, Tom Rini wrote: > Outside of changing versions here the other visible change is that we > tell grub that riscv64 does not have "large model" support. Without this > change the resulting mkimage is non-functional. This is known upstream > already. > > Applied

Re: [GIT PULL] Please pull u-boot-dfu-20250410 into master

2025-04-10 Thread Tom Rini
On Thu, 10 Apr 2025 15:36:12 +0200, Mattijs Korpershoek wrote: > Please find the following fixes/developments for master. > > Usb gadget: > - Add SAM9X60 support to atmel driver > - Fix memory leaks in f_mass_storage gadget driver > - Fix comment typo in dwc3 gadget driver > > Fastboot: > - Lift

Re: (subset) [PATCH 1/2] Dockerfile: install byacc

2025-04-10 Thread Tom Rini
On Tue, 01 Apr 2025 10:46:41 +0200, Leonard Anderweit wrote: > Install byacc required to build cst from source. > > Applied to u-boot/master, thanks! [1/2] Dockerfile: install byacc commit: d592ebd6b805b37a127151eb8de9261cf799d438 -- Tom

Re: [PATCH] CI: Move to latest container images

2025-04-10 Thread Tom Rini
On Thu, 10 Apr 2025 09:15:05 -0600, Tom Rini wrote: > - Bump up "Jammy" tag to jammy-20250404 > - Include most recent changes to the Dockerfile itself > > Applied to u-boot/master, thanks! [1/1] CI: Move to latest container images commit: 206ca97fac5bc638b04b712075d8bb4656d79395 -- Tom

Re: [PATCH] Dockerfile: Add fdisk

2025-04-10 Thread Tom Rini
On Thu, 10 Apr 2025 10:54:03 -0600, Tom Rini wrote: > We had previously gotten this package through a chain of dependencies > with guestfs-tools. Now that we no longer install that package, install > fdisk (for sfdisk) directly. > > Applied to u-boot/master, thanks! [1/1] Dockerfile: Add fdisk

Re: [PATCH 1/2] Dockerfile: Update to a more current TF-A release tag

2025-04-10 Thread Tom Rini
On Tue, 08 Apr 2025 14:21:40 -0600, Tom Rini wrote: > In preparation for using TF-A more in our CI loops, switch to the > current release tag for TF-A. > > Applied to u-boot/master, thanks! [1/2] Dockerfile: Update to a more current TF-A release tag commit: fe8a33b81cacdd01379f3a72b8dcb0

Re: [PATCH v4 08/10] rockchip: binman: Use the skip-at-start prop in simple-bin image

2025-04-10 Thread Simon Glass
Hi Quentin, On Wed, 9 Apr 2025 at 07:35, Quentin Schulz wrote: > > Hi Simon, > > On 4/9/25 3:33 PM, Simon Glass wrote: > > Hi Quentin, > > > > On Wed, 9 Apr 2025 at 07:32, Quentin Schulz > > wrote: > >> > >> Hi Simon, > >> > >> On 4/9/25 3:22 PM, Simon Glass wrote: > >>> Hi Quentin, > >>> > >>>

[PATCH 03/13] board: dragonboard410c: Fix BD address

2025-04-10 Thread Stephan Gerhold
local-bd-address in the device tree needs to be formatted with the least significant byte first (i.e. little endian). We're not doing this when adding it to the DT, which means the MAC address ends up being reversed in Linux. Fix this by reversing the array before setting it in the DT. We're also

Re: [PATCH v2] cmd: fwu: Dump custom fields from mdata structure

2025-04-10 Thread Tom Rini
On Tue, Apr 08, 2025 at 10:18:58AM +0200, Michal Simek wrote: > > > On 3/21/25 11:25, Michal Simek wrote: > > The commit cb9ae40a16f0 ("tools: mkfwumdata: add logic to append vendor > > data to the FWU metadata") added support for adding vendor data to mdata > > structure but it is not visible an

[PATCH] doc: board: ti: Add optee rng support

2025-04-10 Thread Udit Kumar
J722S has hw rng, which can be used by OPTEE. So remove option to use SW TRNG by OPTEE. Signed-off-by: Udit Kumar --- reference discussion https://lore.kernel.org/all/20250313144155.2382316-1-mwa...@kernel.org/ Bootlogs with optee trng https://gist.github.com/uditkumarti/5f90210b23e67cd4eb6d06

Re: [PATCH v2 17/30] pinctrl: rockchip: Add support for RK3528

2025-04-10 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: From: Steven Liu Add pinctrl driver for RK3528. Imported from vendor U-Boot linux-6.1-stan-rkr5 tag with adjustments to use regmap_update_bits(). Signed-off-by: Steven Liu Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever ---

Re: [PATCH 1/7] arm: at91: wdt: Remove unused at91_wdt struct

2025-04-10 Thread Eugen Hristev
On 3/31/25 22:15, Zixun LI wrote: > at91_wdt struct is not used by anyone, let's remove it. > > Signed-off-by: Zixun LI > --- > arch/arm/mach-at91/include/mach/at91_wdt.h | 6 -- > 1 file changed, 6 deletions(-) > > diff --git a/arch/arm/mach-at91/include/mach/at91_wdt.h > b/arch/arm/ma

Re: [RFC PATCH 1/2 v2] tools: binman: control.py: Propagate bootph-* properties to supernodes

2025-04-10 Thread Moteen Shah
Hey Simon, Is the problem discussed in the thread an actual bug or am I missing something in the implementation? Regards, Moteen On 03/04/25 11:51, Moteen Shah wrote: Hey Simon, On 03/04/25 00:52, Simon Glass wrote: Hi Moteen, On Wed, 2 Apr 2025 at 22:01, Moteen Shah wrote: Hey Simon,

Re: (subset) [PATCH v2 1/3] usb: gadget: atmel: Add SAM9X60 support

2025-04-10 Thread Mattijs Korpershoek
Hi, On Mon, 31 Mar 2025 18:26:07 +0200, Zixun LI wrote: > Compared to SAM9X5 the only difference is the DPRAM memory from the > USB High Speed Device Port (UDPHS) hardware block was increased, > so we can reuse the same endpoint data. > > Also add compatible "microchip,sam9x60-udc". > > > [...]

Re: [PATCH v2 0/2] RB1 fixes

2025-04-10 Thread Caleb Connolly
On Thu, 10 Apr 2025 13:30:25 +0530, Sumit Garg wrote: > The eMMC on RB1 boards supports HS200 mode but currently the msm_shdci > driver in U-Boot is missing DLL configuration required for HS200 mode to > work. Hence disable HS200 for now until proper support is in place. > > Apart from that, add

Re: [PATCH v2 14/30] rockchip: mkimage: Add support for RK3528

2025-04-10 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: From: Yifeng Zhao Add support for generating Rockchip Boot Image for RK3528. Similar to RK3568, the RK3528 has 64 KiB SRAM and 4 KiB of it is reserved for BootROM. Signed-off-by: Yifeng Zhao Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Th

[PATCH v2 30/30] board: rockchip: Add Radxa E20C

2025-04-10 Thread Jonas Karlman
The Radxa E20C is an ultra-compact network computer with a RK3528A SoC that offers a wide range of networking capabilities. Features tested on a Radxa E20C v1.104: - SD-card boot - eMMC boot Signed-off-by: Jonas Karlman --- Changes in v2: - Drop sdhci from board u-boot.dtsi - Update sdmmc node t

[PATCH 10/13] board: dragonboard410c: Use BOOTSTD instead of DISTRO_DEFAULTS

2025-04-10 Thread Stephan Gerhold
Reduce the environment size by using standard boot instead of distro boot. It uses faster bootdevs first by default (eMMC -> SD -> USB -> Network), so set "boot_targets" to keep the current ordering (USB -> SD -> eMMC -> Network). Perhaps this should be changed for consistency, but for now this kee

Re: [PATCH 2/2] riscv: Provide __image_copy_{start_end} symbols in linkerscript

2025-04-10 Thread Simon Glass
+Heinrich Schuchardt On Mon, 7 Apr 2025 at 15:38, Yao Zi wrote: > > Binman looks for __image_copy_start to determine the base address of an > entry if elf-base-sym isn't specified, which is missing in RISC-V port. > This causes binman skips RISC-V SPL entries without filling addresses > into its

[PATCH v2 0/4] rockchip: Update rng compatible for RK356x and RK3588

2025-04-10 Thread Jonas Karlman
This series adds support for and updates the random generator compatible used for RK356x and RK3588. The RK356x rng node is already part of dts/upstream so the rng node in u-boot.dtsi is removed, and because it is not enabled for rk3566 it gets enabled in u-boot.dtsi to restore its use in U-Boot.

Re: [RESEND PATCH] clk: fix crash on clk_set_rate clean rate cache

2025-04-10 Thread Christian Marangi
On Sat, Mar 15, 2025 at 10:24:14AM +0100, Christian Marangi wrote: > It's currently possible to make the bootloader crash on calling > clk_set_rate caused by the loop in clk_clean_rate_cache. > > The loop assume that every child of the clock node are also clock > device but this is not always the

Re: [PATCH 01/11] rockchip: rk3588: Use hptimer reg names in rockchip_stimer_init

2025-04-10 Thread Kever Yang
On 2025/4/6 08:24, Jonas Karlman wrote: Define constants for hptimer reg names and use them instead of magic numbers in rockchip_stimer_init(). Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/mach-rockchip/rk3588/rk3588.c | 19 +-- 1 fi

[PATCH v2 07/14] airoha: Add eMMC config to defconfig

2025-04-10 Thread Christian Marangi
Enable Mediatek MMC driver in Airoha AN7581 EVB defconfig to add support for it in default images. Signed-off-by: Christian Marangi --- configs/an7581_evb_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/an7581_evb_defconfig b/configs/an7581_evb_defconfig index f5bd647cb6e..

Re: [PATCH 1/6] event: signal when livetree has been built

2025-04-10 Thread Simon Glass
Hi Caleb, On Thu, 10 Apr 2025 at 07:00, Caleb Connolly wrote: > > Hi Simon, > > On 4/10/25 13:27, Simon Glass wrote: > > Hi Caleb, > > > > On Wed, 9 Apr 2025 at 11:17, Caleb Connolly > > wrote: > >> > >> OF_LIVE offers a variety of benefits, one of them being that the live > >> tree can be modi

Re: [PATCH] net: usb: r8152: add device id of Linksys USB3GIGV1

2025-04-10 Thread Marek Vasut
On 3/31/25 5:06 PM, Gabor Juhos wrote: The Linksys USB3GIGV1 device is a USB 3.0 Wired Gigabit Adapter supporting 10/100/1000 Mbits/sec transfer rates. It is based on RTL8153 and it works correctly with the r8152 driver: uDPU>> usb start starting USB... Bus usb@58000: Register 2000104 N

Re: bootcount support for AM62 RTCSS

2025-04-10 Thread Bryan Brattlof
On April 10, 2025 thus sayeth Thom Nichols: > Hi Bryan - I realized what I think you were trying to say - the > bootcount_davinci driver uses the davinci_rtc​ struct which is a > completely different register layout between the AM33 and AM62 RTCSS. No worries! > I imagine I could make an alte

[PATCH v2 00/30] rockchip: Add initial support for RK3528

2025-04-10 Thread Jonas Karlman
This series add initial support for the Rockchip RK3528 SoC. Clk, pinctrl and rng drivers have been imported from vendor U-Boot with minor adjustments and fixes. Upstream DT for RK3528 is now more complete and this series only add a few missing nodes to -u-boot.dtsi files to have a bootable syste

Re: [PATCH v2 6/8] phy: sun4i-usb: Determine VBUS detection pin from devicetree

2025-04-10 Thread Jernej Škrabec
Dne sreda, 9. april 2025 ob 02:20:34 Srednjeevropski poletni čas je Andre Przywara napisal(a): > So far Allwinner boards controlled the USB VBUS detection via the > respective GPIO pin specified in Kconfig, as a string. All boards should > have the same GPIO already specified in the devicetree, in

Re: [PATCH 0/6] Qualcomm: cleanup OF_LIVE fixup and fix RB1/2

2025-04-10 Thread Sumit Garg
Hi Caleb, On Wed, Apr 09, 2025 at 07:17:23PM +0200, Caleb Connolly wrote: > Introduce a new event to signal that the live tree has been built, > allowing boards to perform fixups on the tree before devices are bound. > Crucially this allows for devices to be enabled or disabled, but also > allows

Re: [PATCH] dtc: introduce label relative path references

2025-04-10 Thread Tom Rini
On Fri, 28 Mar 2025 17:31:15 +0100, Patrice Chotard wrote: > Since introduction of OF_UPSTREAM flag, U-Boot's dtc must be able > to compile Kernel's device tree. > > Since kernel commit 7de129f5389b ("ARM: dts: stm32: stm32mp151a-prtt1l: > Fix QSPI configuration"), label relative path references

[PATCH v2 20/30] mmc: rockchip_sdhci: Extend variant configuration

2025-04-10 Thread Jonas Karlman
RK3528 and RK3576 use different tap and delay num for cmdout and strbin. Move tap and delay num for cmdout and strbin to driver data to prepare for adding new SoCs. Signed-off-by: Jonas Karlman --- v2: No change --- drivers/mmc/rockchip_sdhci.c | 15 --- 1 file changed, 12 insertion

Re: [PATCH 2/2] riscv: Provide __image_copy_{start_end} symbols in linkerscript

2025-04-10 Thread Yao Zi
On Mon, Apr 07, 2025 at 01:10:32PM +0200, Jonas Karlman wrote: > Hi, > > On 2025-04-07 05:37, Yao Zi wrote: > > Binman looks for __image_copy_start to determine the base address of an > > entry if elf-base-sym isn't specified, which is missing in RISC-V port. > > This causes binman skips RISC-V SP

Re: [PATCH 1/2] arm: dts: Add override for RB1

2025-04-10 Thread Sumit Garg
On Tue, Apr 08, 2025 at 04:43:49PM +0200, Caleb Connolly wrote: > > > On 4/8/25 15:46, Sumit Garg wrote: > > On Tue, Apr 08, 2025 at 02:17:29PM +0200, Caleb Connolly wrote: > > > > > > > > > On 4/7/25 15:28, Sumit Garg wrote: > > > > From: Sumit Garg > > > > > > > > Add U-Boot override for RB

Re: [PATCH v2 16/30] clk: rockchip: Add support for RK3528

2025-04-10 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: From: Joseph Chen Add clock driver for RK3528. Imported from vendor U-Boot linux-6.1-stan-rkr5 tag with minor adjustments and fixes for mainline. Signed-off-by: Joseph Chen Signed-off-by: Finley Xiao Signed-off-by: Jonas Karlman Reviewed-by: Kever

[PATCH v2 06/14] arch: arm: dts: an7581: Add eMMC nodes

2025-04-10 Thread Christian Marangi
Add eMMC nodes with the fixed regulator and fixed clock. It's also needed to assign the clock and set it to 200MHz as it's set to 150Mhz by default. Signed-off-by: Christian Marangi --- arch/arm/dts/an7581-u-boot.dtsi | 33 + 1 file changed, 33 insertions(+) diff

Re: [PATCH v2 29/30] board: rockchip: Add minimal generic RK3528 board

2025-04-10 Thread Kever Yang
On 2025/4/8 06:47, Jonas Karlman wrote: Add a minimal generic RK3528 board that only have eMMC and SD-card enabled. This defconfig can be used to boot from eMMC or SD-card on most RK3528 boards that follow reference board design. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks,

[PATCH v5 1/7] rockchip: binman: Correct the OS prop for U-Boot

2025-04-10 Thread Jonas Karlman
From: Simon Glass The U-Boot image is currently being identified as an invalid OS in spl_fit_image_get_os() due to case sensitive compare. Use the correct lower-case value to fix this. Fixes: e0c0efff2a02 ("rockchip: Support building the all output files in binman") Signed-off-by: Simon Glass

Re: [PATCH 06/13] board: dragonboard410c: Drop unused linux_image

2025-04-10 Thread Neil Armstrong
On 07/04/2025 18:59, Stephan Gerhold wrote: This does not seem to be used anywhere. Signed-off-by: Stephan Gerhold --- board/qualcomm/dragonboard410c/dragonboard410c.env | 1 - 1 file changed, 1 deletion(-) diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.env b/board/qualcomm/dr

RE: [PATCH 5/5] arm64: zynqmp: fix dfu alt buffer clearing

2025-04-10 Thread Begari, Padmarao
[AMD Official Use Only - AMD Internal Distribution Only] > From: U-Boot On Behalf Of Vincent Stehlé > Sent: Monday, April 7, 2025 10:35 PM > To: u-boot@lists.denx.de > Cc: Vincent Stehlé ; Jassi Brar > ; Marek Vasut ; Masahisa Kojima > ; Simek, Michal ; > Patrice Chotard ; Patrick Delaunay > ; To

RE: [PATCH 4/5] xilinx: zynq: fix dfu alt buffer clearing

2025-04-10 Thread Begari, Padmarao
[AMD Official Use Only - AMD Internal Distribution Only] > From: U-Boot On Behalf Of Vincent Stehlé > Sent: Monday, April 7, 2025 10:35 PM > To: u-boot@lists.denx.de > Cc: Vincent Stehlé ; Jassi Brar > ; Marek Vasut ; Masahisa Kojima > ; Simek, Michal ; > Patrice Chotard ; Patrick Delaunay > ; To

RE: [PATCH 3/5] arm64: versal: fix dfu alt buffer clearing

2025-04-10 Thread Begari, Padmarao
[AMD Official Use Only - AMD Internal Distribution Only] > From: U-Boot On Behalf Of Vincent Stehlé > Sent: Monday, April 7, 2025 10:35 PM > To: u-boot@lists.denx.de > Cc: Vincent Stehlé ; Jassi Brar > ; Marek Vasut ; Masahisa Kojima > ; Simek, Michal ; > Patrice Chotard ; Patrick Delaunay > ; To

Re: [PATCH] gpio: zynq: Read using DATA register when direction is output

2025-04-10 Thread Heiko Schocher
Hello Michal, On 10.04.25 10:25, Michal Simek wrote: From: Venkatesh Yadav Abbarapu Gpio status command reads the DATA_RO register rather than DATA registers even when the direction is "output", fix this by reading from DATA register when direction is "output". Signed-off-by: Nam Ian Signed-

Re: [PATCH] mtd: ubi: Put MTD device after it is not used

2025-04-10 Thread Heiko Schocher
Hello Alexander, On 10.04.25 13:37, Alexander Vickberg wrote: The MTD device reference is dropped via put_mtd_device, however its field ->index is read and passed to ubi_msg. To fix this, the patch moves the reference dropping after calling ubi_msg. Signed-off-by: Pan Bian Reviewed-by: Boris B

Re: [PATCH v4 02/10] rockchip: binman: Factor out arch and compression

2025-04-10 Thread Quentin Schulz
Hi Jonas, On 4/9/25 1:56 PM, Jonas Karlman wrote: Hi Quentin, On 2025-04-09 11:28, Quentin Schulz wrote: Hi Jonas, Simon, On 3/29/25 4:06 PM, Jonas Karlman wrote: From: Simon Glass Declare arch and compression at the top of the file to avoid needing ifdefs in every usage. Add a few commen

[PATCH v2 3/4] arm64: dts: rockchip: Add rng node to RK3588

2025-04-10 Thread Jonas Karlman
From: Nicolas Frattaroli Add the RK3588's standalone hardware random number generator node to its device tree, and enable it. Signed-off-by: Nicolas Frattaroli Link: https://lore.kernel.org/r/20250204-rk3588-trng-submission-v2-6-608172b6f...@collabora.com [changed reset-id to its numeric value

Re: [PATCH] mmc: sdhci: Fix possible Synchronous Abort using PIO mode

2025-04-10 Thread Peng Fan (OSS)
From: Peng Fan On Thu, 23 Jan 2025 21:48:48 +, Jonas Karlman wrote: > When MMC_SDHCI_SDMA=y or MMC_SDHCI_ADMA=y and PIO mode is used > dma_unmap_single() is called on an unmapped address, 0x0. This may > result in a Synchronous Abort: > > ## Checking hash(es) for Image atf-1 ... sha256+ O

Re: [PATCH v2] mmc: Simplify poll CD logic in case cyclic framework is enabled

2025-04-10 Thread Peng Fan (OSS)
From: Peng Fan On Sat, 18 Jan 2025 04:09:53 +0100, Marek Vasut wrote: > Simplify 90cc07fd786d ("mmc: Poll CD in case cyclic framework is enabled") > according to suggestions by Rasmus. The struct cyclic_info is zero-size in > case CONFIG_CYCLIC is not enabled and does not add any size to struct

Re: [PATCH] mmc: Avoid uniniting twice

2025-04-10 Thread Peng Fan (OSS)
From: Peng Fan On Sun, 16 Feb 2025 05:55:59 -0700, Simon Glass wrote: > Each MMC device has a child which ihs a block device. At present we call > mmc_deinit() when the block device is removed. > > But the MMC struct (i.e. struct mmc) is attached to the MMC's device, > not its child. > > So at

Re: [PATCH] efi: Fix efiboot for payloads loaded from memory

2025-04-10 Thread Heinrich Schuchardt
On 3/23/25 20:03, Christian Kohlschütter wrote: Calling bootefi on an address that was loaded from memory (e.g., cramfs or SPI flash via "sf read", etc.), currently results in the EFI binary not being able to access the EFI image device path. For example, iPXE would fail with an error "EFI coul

[PATCH] cmd: Remove CMD_NET protection

2025-04-10 Thread Michal Simek
CMD_PXE is already under CMD_NET in Kconfig that's why make no sense to have another ifdef inside source code. Signed-off-by: Michal Simek --- cmd/pxe.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/pxe.c b/cmd/pxe.c index 37b8dea6ad6f..0f26b3b42197 100644 --- a/cmd/pxe.c +++ b/cmd/

[GIT PULL] Please pull mmc-2025-04-11

2025-04-10 Thread Peng Fan
Hi Tom, Please pull mmc-2025-04-11 - Support Sandisk and Micron eMMC BOOT/RPMB hardware partition resizing Optimize eMMC erasing time Simplify poll CD logic Fix possible Synchronous Abort for sdhci Kconfig dependencies fix Mi

Re: [PATCH] tools: add pkg-config for preload_check_sign

2025-04-10 Thread Tom Rini
On Thu, 27 Mar 2025 16:10:44 -0700, Raymond Mao wrote: > The cflags and ldflags of preload_check_sign depend on the openssl > package thus pkg-config is needed to get the location where openssl > is installed. > This fix a potential build failure when openssl is not from the > distro and installed

Re: [PATCH] binman: Fix a typo in elf.py

2025-04-10 Thread Tom Rini
On Fri, 28 Mar 2025 07:02:08 -0600, Simon Glass wrote: > Fix an 'EFL' typo. It should be 'ELF'. > > Applied to u-boot/master, thanks! [1/1] binman: Fix a typo in elf.py commit: 5a7ad313a12e9667001a926f55c9e4516f128638 -- Tom

Re: [PATCH] patman: Show the base commit and branch

2025-04-10 Thread Tom Rini
On Thu, 27 Feb 2025 12:27:30 -0700, Simon Glass wrote: > It is helpful to know which commit patches are based on, even if that > commit might not be available to readers. Add a tag for this in the > cover letter. > > Also add the local-branch name since that may be useful to the writer. > > > [

Re: [PATCH] env: mmc: Fix test for ENV_IS_EMBEDDED

2025-04-10 Thread Tom Rini
On Tue, 01 Apr 2025 10:21:25 -0600, Tom Rini wrote: > The symbol "ENV_IS_EMBEDDED" is an environment internal define and not a > real CONFIG symbol. The IS_ENABLED() macro is still valid to use here, > so update the check. > > Applied to u-boot/master, thanks! [1/1] env: mmc: Fix test for ENV_

Re: [PATCH] test/py: memtest: Fix test for non-trivial parameters

2025-04-10 Thread Tom Rini
On Fri, 28 Mar 2025 16:30:37 +, Andrew Goodbody wrote: > When using non-trivial values for parameters for this test it > will cause a spurious failure as the test passes a decimal value > to the mtest command which will interpret it as hexadecimal and > result in failure as below. > > test/py

Re: [PATCH] patman: Show base commit on each patch when no cover letter

2025-04-10 Thread Tom Rini
On Fri, 28 Mar 2025 07:02:20 -0600, Simon Glass wrote: > If a series is sent without a cover letter, there is no indication of > the base commit. Add support for this, since single patches of small > series may not always have a cover letter. > > Applied to u-boot/master, thanks! [1/1] patman:

[PATCH v2 12/14] spi: airoha: Add Airoha SPI NAND driver

2025-04-10 Thread Christian Marangi
Add Airoha SPI NAND driver to permit usage of attached SNAND on the Airoha AN7581 SoC. While SPI controller supports DMA transation, due to U-Boot limitation we currently limit it to single command in Manual mode. Signed-off-by: Christian Marangi --- drivers/spi/Kconfig | 9 + driver

Re: [PATCH v4 02/10] rockchip: binman: Factor out arch and compression

2025-04-10 Thread Jonas Karlman
Hi Quentin, On 2025-04-09 14:27, Quentin Schulz wrote: > Hi Jonas, > > On 4/9/25 1:56 PM, Jonas Karlman wrote: >> Hi Quentin, >> >> On 2025-04-09 11:28, Quentin Schulz wrote: >>> Hi Jonas, Simon, >>> >>> On 3/29/25 4:06 PM, Jonas Karlman wrote: From: Simon Glass Declare arch and c

Re: [PATCH 05/18] net/net: fix switch/case fallthrough annotations

2025-04-10 Thread Andre Przywara
On Tue, 8 Apr 2025 19:46:46 -0600 Tom Rini wrote: Hi Tom, > On Wed, Apr 09, 2025 at 12:53:47AM +0100, Andre Przywara wrote: > > On Tue, 8 Apr 2025 16:29:18 -0600 > > Tom Rini wrote: > > > > Hi Tom, > > > > thanks for staying on this! > > > > > On Thu, Mar 27, 2025 at 03:33:00PM +, Andr

[PATCH v2 17/30] pinctrl: rockchip: Add support for RK3528

2025-04-10 Thread Jonas Karlman
From: Steven Liu Add pinctrl driver for RK3528. Imported from vendor U-Boot linux-6.1-stan-rkr5 tag with adjustments to use regmap_update_bits(). Signed-off-by: Steven Liu Signed-off-by: Jonas Karlman --- v2: Change to use if/else if instead of switch to match mainline Linux --- drivers/pinc

Re: [PATCH v2 15/30] ram: rockchip: Add basic support for RK3528

2025-04-10 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Add support for reading DRAM size information from PMUGRF os_reg18 reg. Compared to most Rockchip SoCs the RK3528 use os_reg18 for DRAM info, instead of os_reg2. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: No change

[PATCH v2 2/2] net-lwip: tftp: add LMB and buffer checks

2025-04-10 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 --- net/lwip/tftp.c | 45 ++--- 1 file changed, 34 insertions(

Re: bootcount support for AM62 RTCSS

2025-04-10 Thread Bryan Brattlof
Hi Thorm! On April 8, 2025 thus sayeth Thom Nichols: > I’d like to get bootcount support for the AM62 RTCSS. The RTCSS on > the AM62 is very similar to the AM33. In fact, I’m pretty sure the > bootcount_davinci driver would work for AM62, with just the register > address/ offset and KICK_WE

Re: [PATCH v2 12/30] arm64: dts: rockchip: Add maskrom button to Radxa E20C

2025-04-10 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Radxa E20C has two buttons, one SARADC maskrom button and one GPIO user button. Add support for the maskrom button using a adc-keys node, also add the regulators used by SARADC controller. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20

[PATCH v2 18/30] arm: dts: rockchip: Add rk3528-u-boot.dtsi

2025-04-10 Thread Jonas Karlman
Add a rk3528-u-boot.dtsi extending the basic dts/upstream rk3528.dtsi with bare minimum nodes to have a booting system from eMMC and SD-card. Signed-off-by: Jonas Karlman --- Changes in v2: - Use more nodes from dts/upstream rk3528.dtsi - Use sdmmc node from latest mainline Linux patch --- arch/

Re: [PATCH v2 1/3] rockchip: rk3399: do not generate u-boot.rom anymore

2025-04-10 Thread Kever Yang
On 2025/2/21 00:56, Quentin Schulz wrote: From: Quentin Schulz This was only used on RK3399 Gru Chromebooks and their maintainer (Simon) agreed[1] to its removal on the basis that the generic u-boot-rockchip-spi.bin is now enough, so let's do that. At the same time, remove HAS_ROM symbol fro

Re: [PATCH 13/14] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3399

2025-04-10 Thread Kever Yang
On 2025/1/29 20:42, Quentin Schulz wrote: From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever --- drivers/pinctrl/rockchip/pinctrl-rk3399.c | 2 +- 1 fi

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

2025-04-10 Thread 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 no Kconfig option CONFIG_SPL_SPI_FLASH_BAR. This commit standardizes the

Re: [PATCH 2/2] qcom_defconfig: Disable MMC HS200 mode support

2025-04-10 Thread Caleb Connolly
On 4/7/25 15:28, Sumit Garg wrote: From: Sumit Garg Currently the msm_sdhci doesn't yet support DLL configurations which are required to enable bus speeds greater that 100MHz. So disable HS200 mode support as of now as it requires bus speeds of 200MHz. This should fix eMMC issues reported o

[PATCH v7 2/4] configs: disable SPL_BOOTZ to preserve spl size

2025-04-10 Thread Anshul Dalal
In the existing behaviour, CMD_BOOTZ is not enabled by default which means zimage.o is not compiled in the SPL in falcon mode unless explicitly enabled. This changes now as SPL_BOOTZ is default y which leads to larger SPL size with zimage.o being present. This patch modifies the defconfigs that us

Re: [PATCH 06/11] rockchip: Use rk3568_common.h by default for RK356x boards

2025-04-10 Thread Kever Yang
On 2025/4/6 08:24, Jonas Karlman wrote: Ensure rk3568_common.h can be used by boards directly by defining a blank ROCKCHIP_DEVICE_SETTINGS unless it already is defined. Add a default SYS_CONFIG_NAME to include rk3568_common.h unless a board target overrides it in its board Kconfig. Signed-off

Re: [PATCH v2 1/2] qcom_defconfig: Disable MMC HS200 mode support

2025-04-10 Thread neil . armstrong
On 10/04/2025 10:00, Sumit Garg wrote: From: Sumit Garg Currently the msm_sdhci doesn't yet support DLL configurations which are required to enable bus speeds greater that 100MHz. So disable HS200 mode support as of now as it requires bus speeds of 200MHz. This should fix eMMC issues reported

[PATCH v2 0/8] sunxi: Control USB pins and supplies via DT regulators

2025-04-10 Thread Andre Przywara
This series removes some old custom non-DM code from the Allwinner USB PHY driver. So far we were relying on Kconfig specified GPIO names for the VBUS power supplies, USB ID detect pin and the VBUS detect pin. The first 5 patches resurrect Samuel's series from 1.5 years ago, fixing one issue that

[PATCH] IOMUX: Fix stopping unused dropped consoles

2025-04-10 Thread Stephan Gerhold
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 stdio/stderr/stdin. Fixes: b672c1619bb9 ("IOMUX: Split out iomux_matc

Re: [PATCH 3/7] rockchip: Add DFU to SPL for RK3588

2025-04-10 Thread Kever Yang
Hi Naoki,     Please split the code change and dts/config change into different patch. Thanks, - Kever On 2025/2/11 13:33, FUKAUMI Naoki wrote: Boot the RK3588 from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ rkflas

[PATCH v2] mtd: mtdpart: Support MTDPART_SIZ_FULL in fixed-partitions

2025-04-10 Thread Mike Looijmans
Flash partitions may specify MTDPART_SIZ_FULL (=0) as the size of the partition to indicate "the remainder of the flash". Make this work with device-tree "fixed-partitions" as well. This makes MTD partitioning compatible with the Linux kernel, see: https://github.com/torvalds/linux/blob/master/

Re: [PATCH 1/6] rockchip: Add DFU to boot from USB for Radxa ROCK 5B

2025-04-10 Thread Kever Yang
On 2025/2/11 14:13, FUKAUMI Naoki wrote: Boot the Radxa ROCK 5B from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ rkflashtool l < mkimage-in-simple-bin.mkimage-rockchip-tpl $ rkflashtool L < mkimage-in-simple-bin.mkimage-

[PATCH 0/5] fix dfu alt buffer clearing

2025-04-10 Thread Vincent Stehlé
Hi, This patch series applies the same fix in five different locations (the detailed description of the fix is in the patches). I did validate statically by looking at the assembly before/after for all five cases, using the following defconfigs: stm32mp15_defconfig synquacer_developerbox_def

Re: [PATCH] doc: release_cycle: Use variable substitution for next version

2025-04-10 Thread Quentin Schulz
Hi Tom, On 4/8/25 3:54 PM, Tom Rini wrote: To avoid the problem fixed in commit 57a95d522ca8 ("doc: release_cycle: fix next release version") moving forward, make use of the variable substitution feature of rST. This adds a next_ver variable and references it in all of the places where I had bee

[PATCH v3 1/8] configs: add jh7110-deepcomputing-fml13v01 to VF2 defconfig

2025-04-10 Thread Heinrich Schuchardt
The DeepComputing Framework motherboard is a JH7110 device support by the upstream kernel. Add its device-tree to the list of device-trees to be included into the starfive_visionfive_defconfig. Signed-off-by: Heinrich Schuchardt Reviewed-by: Sumit Garg Reviewed-by: Hal Feng --- v3: no c

[PATCH v7 4/4] configs: colibri_vf: set CMD_BOOTM

2025-04-10 Thread Anshul Dalal
Currently, CMD_BOOTx selects both bootm.o and the respective image.o or zimage.o for compilation. After the addition of LIB_BOOTx, the behaviour changes so CMD_BOOTx would not select bootm.o. This leads to build failure on calibri_vf since it unsets BOOTM while still using BOOTZ. This was added in

Re: [PATCH v2 5/6] rockchip: Move imply ROCKCHIP_EXTERNAL_TPL under SoC Kconfig symbol

2025-04-10 Thread Kever Yang
On 2025/2/21 05:56, Jonas Karlman wrote: New Rockchip SoCs will typically require use or an external TPL when support for the SoC is added to U-Boot. Move imply ROCKCHIP_EXTERNAL_TPL under SoC Kconfig symbol to remove a future likelihood of a long "default y if" line. Signed-off-by: Jonas Kar

Re: [PATCH v3] mmc: mmc_boot: Support Sandisk and Micron eMMC BOOT/RPMB hardware partition resizing

2025-04-10 Thread Peng Fan (OSS)
From: Peng Fan On Tue, 25 Mar 2025 16:29:14 +0800, ziniu.wan...@nxp.com wrote: > Current mmc bootpart-resize command only support Samsung eMMC BOOT/RPMB > hardware partition resizing. Add Sandisk and Micron eMMC BOOT/RPMB hardware > partition resizing support. The commands and parameters for res

Re: [PATCH] mmc: Kconfig: Correct dependencies SDHCI ADMA options

2025-04-10 Thread Peng Fan (OSS)
From: Peng Fan On Tue, 14 Jan 2025 20:07:36 -0600, Tom Rini wrote: > The option MMC_SDHCI_ADMA_FORCE_32BIT is only tested or used when > MMC_SDHCI_ADMA or SPL_MMC_SDHCI_ADMA is enabled. And for > MMC_SDHCI_ADMA_64BIT the same is true except we also require > MMC_SDHCI_ADMA_FORCE_32BIT to be disa

Re: [PATCH] mmc: Exit from mmc_init() if mmc_complete_init() fails

2025-04-10 Thread Peng Fan (OSS)
From: Peng Fan On Sat, 18 Jan 2025 04:27:34 +0100, Marek Vasut wrote: > In case mmc_complete_init() returns error, exit from mmc_init() > without possibly calling cyclic_register(), which at that point > would be undesired. > > Applied, thanks! [1/1] mmc: Exit from mmc_init() if mmc_complete

Re: [PATCH] mmc: Optimize eMMC erase speed

2025-04-10 Thread Peng Fan (OSS)
From: Peng Fan On Mon, 20 Jan 2025 12:30:09 +0800, Peng Fan (OSS) wrote: > Per JESD84-B51 6.6.9 Erase: > The host can erase a contiguous range of Erase Groups. Starting the erase > process is a three steps sequence. First the host defines the start address > of the range using the ERASE_GROUP_ST

Re: [PATCH v2] efi: Make FDT extra space configurable

2025-04-10 Thread Heinrich Schuchardt
On 3/18/25 10:22, Pawel Kochanowski wrote: U-Boot currently reserves only 0x3000 bytes when copying the FDT in copy_fdt(), which may not be sufficient if additional nodes (such as FMAN firmware) are added later. This patch uses the exisitng SYS_FDT_PAD to reserve space for FDT fixup instead of h

<    1   2   3   >