Re: [PATCH v3] configs: am65x_evm_r5_usbdfu_defconfig: Fix USB DFU boot

2025-03-31 Thread Tom Rini
On Fri, 14 Mar 2025 12:01:13 +0530, Hrushikesh Salunke wrote: > Increase the size of malloc region allocated before relocation, as > current size is insufficient for DFU boot causing it to overflow and > corrupt the stack. > > Fixed regulator configs are required by vtt_supply which is used by >

Re: [PATCH v2] configs: am68_sk_r5: Enable AVS config

2025-03-31 Thread Tom Rini
On Wed, 19 Mar 2025 00:16:28 +0530, Udit Kumar wrote: > Enable AVS config > > Applied to u-boot/next, thanks! [1/1] configs: am68_sk_r5: Enable AVS config commit: b0899e4451d839dd8e6240d999b33fe9779b895f -- Tom

Re: [PATCH 0/2] Add WDT support for J7200 SOC

2025-03-31 Thread Tom Rini
On Fri, 14 Mar 2025 16:34:09 +0530, Udit Kumar wrote: > This enables the ESMs and the associated PMIC. > Programming these bits is a requirement to make the watchdog actually reset > the board. > > After DT sync nodes bucka1 and main_esm has bootph property added in > pmic nodes. > > RFC was se

Re: [PATCH v1] efi_loader: Handle GD_FLG_SKIP_RELOC

2025-03-31 Thread Varadarajan Narayanan
On Thu, Mar 27, 2025 at 11:22:58PM +0200, Ilias Apalodimas wrote: > On Thu, 27 Mar 2025 at 08:12, Varadarajan Narayanan > wrote: > > > > On Wed, Mar 26, 2025 at 09:28:04AM +0200, Ilias Apalodimas wrote: > > > Hi Varadarajan > > > > > > On Wed, 26 Mar 2025 at 07:47, Varadarajan Narayanan > > > wro

[PATCH 3/7] watchdog: at91sam9_wdt: Rename priv to wdt

2025-03-31 Thread Zixun LI
"wdt" is a better name for watchdog rather than generic "priv". Signed-off-by: Zixun LI --- drivers/watchdog/at91sam9_wdt.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index dab7b

[PATCH 4/7] arm: at91: wdt: Add SAM9X60 register definition

2025-03-31 Thread Zixun LI
SAM9X60 has different watchdog register definition. Signed-off-by: Zixun LI --- arch/arm/mach-at91/include/mach/at91_wdt.h | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-at91/include/mach/at91_wdt.h b/arch/arm/mach-at91/include/mach/at91_wdt.h in

[PATCH v2 2/3] ARM: dts: sam9x60: Add USB gadget DT node.

2025-03-31 Thread Zixun LI
Add the USB gadget DT node for the sam9x60 SoC's. Signed-off-by: Zixun LI --- arch/arm/dts/sam9x60.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60.dtsi index 3b684fc63d5..ea2647e5fc9 100644 --- a/arch/arm/dts/sam9x60.dtsi +

Re: [PATCH 01/17] fs: boot: Update fs_read_alloc() to use abuf

2025-03-31 Thread Tom Rini
On Wed, Mar 19, 2025 at 03:37:55PM +0100, Simon Glass wrote: > Using an abuf for this function simplifies returning the size and also > makes it easier to free memory afterwards. Update the API and callers. > > Signed-off-by: Simon Glass > --- > > boot/bootmeth-uclass.c | 19 ++

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

2025-03-31 Thread Zixun LI
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/mach-at91/include/mach/at91_wdt.h index 8ef8e007d77..78ad

[PATCH 5/7] watchdog: at91sam9_wdt: Add SAM9X60 support

2025-03-31 Thread Zixun LI
SAM9X60 has a slightly different watchdog implementation: - Timer value moved into a new register WLR - Some MR register fields have their position changed This patch add SAM9X60 support, also adds a compatible for SAMA5D4 who is the same as existing SAM9260. Signed-off-by: Zixun LI --- arch/ar

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

2025-03-31 Thread Manorit Chawdhry
Hi Quentin, On 15:46-20250328, Quentin Schulz wrote: > Hi Moteen, > > On 3/27/25 9:06 AM, Moteen Shah wrote: > > Add a function to scan through all the nodes in the device-tree > > recusively for bootph-* property. If found, propagate it to all > > of its parent nodes up the hierarchy. > > > > S

Re: [PATCH] rockchip: io-domain: Enable by default for all supported SoCs

2025-03-31 Thread Anand Moon
Hi Kever, On Tue, 1 Apr 2025 at 08:30, Kever Yang wrote: > > Hi Anand, > > On 2025/3/30 21:33, Anand Moon wrote: > > Hi Chen-Yu > > > > On Wed, 5 Feb 2025 at 07:39, Chen-Yu Tsai wrote: > >> From: Chen-Yu Tsai > >> > >> The IO domain driver controls the I/O voltage for various pins, > >> MMC inc

Re: [PATCH] rockchip: io-domain: Enable by default for all supported SoCs

2025-03-31 Thread Kever Yang
Hi Anand, On 2025/3/30 21:33, Anand Moon wrote: Hi Chen-Yu On Wed, 5 Feb 2025 at 07:39, Chen-Yu Tsai wrote: From: Chen-Yu Tsai The IO domain driver controls the I/O voltage for various pins, MMC included. Enable it by default for all supported Rockchip SoCs. Signed-off-by: Chen-Yu Tsai

Re: [PATCH v2 2/3] ARM: dts: sam9x60: Add USB gadget DT node.

2025-03-31 Thread Eugen Hristev
On 3/31/25 19:26, Zixun LI wrote: > Add the USB gadget DT node for the sam9x60 SoC's. > > Signed-off-by: Zixun LI Reviewed-by: Eugen Hristev > --- > arch/arm/dts/sam9x60.dtsi | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/s

Re: [PATCH v2 3/3] ARM: dts: at91: sam9x60-curiosity: Enable USB gadget node

2025-03-31 Thread Eugen Hristev
On 3/31/25 19:26, Zixun LI wrote: > Enable USB gadget usb0 node support. > > Signed-off-by: Zixun LI Reviewed-by: Eugen Hristev > --- > arch/arm/dts/at91-sam9x60_curiosity.dts | 4 > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/dts/at91-sam9x60_curiosity.dts > b/arch/ar

Re: Pull request efi-next-20250104

2025-03-31 Thread Tom Rini
On Mon, Mar 31, 2025 at 11:28:34PM +0200, Heiko Stübner wrote: > Hi, > > Am Samstag, 4. Januar 2025, 04:19:40 MESZ schrieb Heinrich Schuchardt: > > Dear Tom, > > > > The following changes since commit ec9263b4f15c4cf82eb6a211c67baa6385065b8e: > > > >Fix neighbor discovery ethernet address sa

Re: [PATCH v3 3/3] DONOTMERGE: arm: dts: k3-j784s4-main: Add PBIST_14 node

2025-03-31 Thread Neha Malcom Francis
On 28/03/25 19:48, Nishanth Menon wrote: > On 18:01-20250328, Neha Malcom Francis wrote: >> Add DT node for PBIST_14 that is responsible for triggering the PBIST >> self-tests for the MAIN_R5_2_x cores. >> >> Signed-off-by: Neha Malcom Francis >> --- >> Linux dt-binding patch >> https://lore.kerne

[PATCH v2] sama5d27: Fix the 'reset' command

2025-03-31 Thread Fabio Estevam
From: Fabio Estevam Since commit 61040097a9d1 ("reset: at91: Add reset driver for basic assert/deassert operations") the "atmel,sama5d3-rstc" compatible for the sama5d2 reset controller in sama5d2.dtsi is not handled by CONFIG_SYSRESET_AT91 anymore, but by CONFIG_RESET_AT91 now. This resulted in

Re: Pull request efi-next-20250104

2025-03-31 Thread Heiko Stübner
Hi, Am Samstag, 4. Januar 2025, 04:19:40 MESZ schrieb Heinrich Schuchardt: > Dear Tom, > > The following changes since commit ec9263b4f15c4cf82eb6a211c67baa6385065b8e: > >Fix neighbor discovery ethernet address saving (2025-01-01 14:40:04 > -0600) > > are available in the Git repository at:

[PATCH v2 1/2] bloblist: fix the overriding of fdt from bloblist

2025-03-31 Thread Raymond Mao
When a bloblist is valid and contains fdt, it explicitly means a previous boot stage is passing transfer list compliant with Firmware Handoff specification, thus the fdt from bloblist should not be overridden with the ones from board or env variables. Fixes: 70fe23859437 ("fdt: Allow the devicetre

[PATCH v2 6/8] doc: starfive: use consistent formatting

2025-03-31 Thread Heinrich Schuchardt
Always use for the H2 level. Signed-off-by: Heinrich Schuchardt --- v2: new patch --- doc/board/starfive/milk-v_mars.rst| 10 +- doc/board/starfive/milk-v_mars_cm.rst | 12 ++-- doc/board/starfive/pine64_star64.rst | 12 ++-- doc/board/starfive/visionfiv

[PATCH v2 7/8] doc: starfive: use jh7110_common.rst

2025-03-31 Thread Heinrich Schuchardt
To avoid duplicate maintenance just include jh7110_common.rst to describe the usage of the different boot sources. Signed-off-by: Heinrich Schuchardt --- v2: new patch --- doc/board/starfive/milk-v_mars.rst | 12 + doc/board/starfive/pine64_star64.rst | 18 + doc/bo

[PATCH v2 5/8] doc: add DeepComputing FML13V01 documentation

2025-03-31 Thread Heinrich Schuchardt
Describe building U-Boot for the board and booting. Carve out common information for JH7110 boards into an include. Signed-off-by: Heinrich Schuchardt --- v2: carve out common information for JH7110 boards into an include --- doc/board/starfive/deepcomputing_fml13v01.rst | 80 ++

[PATCH v2 8/8] doc: jh7110: describe debug UART

2025-03-31 Thread Heinrich Schuchardt
Provide the settings for using the debug UART in SPL. Signed-off-by: Heinrich Schuchardt --- v2: new patch --- doc/board/starfive/jh7110_common.rst | 14 ++ 1 file changed, 14 insertions(+) diff --git a/doc/board/starfive/jh7110_common.rst b/doc/board/starfive/jh7110_common

[PATCH v2 3/8] board: starfive: DeepComputing FML13V01 fdt selection

2025-03-31 Thread Heinrich Schuchardt
We support all JH7110 boards with starfive_visionfive2_defconfig. The relevant device-tree is selected at runtime based on EEPROM data. Support setting $fdtfile to the file name of the DeepComputing Framework motherboard (FML13V01) device-tree. Signed-off-by: Heinrich Schuchardt Reviewed-by: Hal

[PATCH v2 0/8] board: starfive: DeepComputing FML13V01

2025-03-31 Thread Heinrich Schuchardt
We use starfive_visionfive2_defconfig for supporting JH7110 based boards. The DeepComputing Framework motherboard is a new JH7110 device with upstream kernel support since v6.13. Add support and documentation for the board. This patch is prerequisite: [PATCH 1/1] riscv: dts: jh7110: add bootph-p

[PATCH] mach-snapdragon: of_fixup: fix condition check in ft_board_setup()

2025-03-31 Thread Caleb Connolly
The fdt_node_check_compatible() function returns 0 on success which is pretty confusing, and we were using it wrong! Invert the condition check and refactor things to be more readable. Additionally, add the check for the RB1 which needs the same fixup as the RB2. Reported-by: Sam Day Fixes: e64

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

2025-03-31 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 --- v2: reba

Re: [PATCH] mach-snapdragon: of_fixup: fix condition check in ft_board_setup()

2025-03-31 Thread Sam Day
Hey Caleb, On Monday, 31 March 2025 at 12:43, Caleb Connolly wrote: > > > The fdt_node_check_compatible() function returns 0 on success which is > pretty confusing, and we were using it wrong! > > Invert the condition check and refactor things to be more readable. > > Additionally, add the

[PATCH v5 06/16] uthread: add cooperative multi-tasking interface

2025-03-31 Thread Jerome Forissier
Add a new internal API called uthread (Kconfig symbol: UTHREAD) which provides cooperative multi-tasking. The goal is to be able to improve the performance of some parts of U-Boot by overlapping lengthy operations, and also implement background jobs in the U-Boot shell. Each uthread has its own sta

[PATCH v5 13/16] dm: usb: initialize and scan multiple buses simultaneously with uthread

2025-03-31 Thread Jerome Forissier
Use the uthread framework to initialize and scan USB buses in parallel for better performance. The console output is slightly modified with a final per-bus report of the number of devices found, common to UTHREAD and !UTHREAD. The USB tests are updated accordingly. Tested on two platforms: 1. arm

Re: [PATCH 3/4] dfu: scsi: don't call scsi_scan()

2025-03-31 Thread Ilias Apalodimas
On Wed, 26 Mar 2025 at 19:41, Caleb Connolly wrote: > > Calling scsi_scan() results in all the block devices (and EFI block > devices) being destroyed and re-created. This breaks the EFI filesystem > drivers during capsule update. > > Remove the call, since boards really should be calling scsi_sca

Re: [PATCH] arm: mediatek: remove wmcpu-reserved@50000000 node from mt7987 dts

2025-03-31 Thread Tom Rini
On Fri, 07 Mar 2025 11:22:13 +0800, Weijie Gao wrote: > The reserved-memory node 'wmcpu-reserved@5000' only applies to > linux kernel and is useless in u-boot. > Remove it in *-u-boot.dtsi to make this memory region usable. > > Applied to u-boot/next, thanks! [1/1] arm: mediatek: remove wm

Re: [PATCH 0/2] Clarify DM_FLAG_PROBE_AFTER_BIND behaviour

2025-03-31 Thread Tom Rini
On Fri, 17 Jan 2025 08:28:55 +0100, Caleb Connolly wrote: > In Simons series reworking autoprobe[1], a discussion came up about > DM_FLAG_PROBE_AFTER_BIND, specifically that it wasn't very clear where > this flag should be used. > > This series implements my suggestions made there to clarify the

Re: [PATCH 1/1] test: use truncate in mk_fs()

2025-03-31 Thread Tom Rini
On Thu, 06 Mar 2025 18:46:59 +0100, Heinrich Schuchardt wrote: > While the dd command actually writes to the block device the truncate > command only updates the metadata (at least on ext4). This is faster and > reduces wear on the block device. > > Applied to u-boot/next, thanks! [1/1] test:

Re: [PATCH 3/4] dfu: scsi: don't call scsi_scan()

2025-03-31 Thread Neil Armstrong
On 26/03/2025 18:40, Caleb Connolly wrote: Calling scsi_scan() results in all the block devices (and EFI block devices) being destroyed and re-created. This breaks the EFI filesystem drivers during capsule update. Remove the call, since boards really should be calling scsi_scan() themselves duri

Re: [PATCH v2 00/56] expo: Various features and improvements

2025-03-31 Thread Tom Rini
On Mon, Mar 31, 2025 at 01:18:25AM +, Simon Glass wrote: > Hi Tom, > > On Mon, 31 Mar 2025 at 03:47, Tom Rini wrote: > > > > On Fri, Mar 28, 2025 at 07:05:47AM -0600, Simon Glass wrote: > > > > > This series collects together some new features for expo to make it more > > > useful for boot me

Re: [PATCH 1/2] pwm: mediatek: add pwm support for MediaTek MT7987 SoC

2025-03-31 Thread Tom Rini
On Fri, 07 Mar 2025 11:22:23 +0800, Weijie Gao wrote: > This patch adds pwm support for MediaTek MT7987 SoC. > > Applied to u-boot/next, thanks! [1/2] pwm: mediatek: add pwm support for MediaTek MT7987 SoC commit: f87b959080d95528c93cc7fcae84768aafc75740 [2/2] arm: dts: mediatek: disable

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

2025-03-31 Thread Tom Rini
On Tue, 11 Mar 2025 15:05:45 +0530, Anshul Dalal wrote: > During linux build process the header size is computed including the BSS > whereas it's removed when creating the uncompressed image. Therefore the > size of the uncompressed image on filesystem will be smaller than the > size specified in

Re: [PATCH] configs: am64x_evm_a53_defconfig: Enable support for UMS

2025-03-31 Thread Tom Rini
On Mon, 10 Mar 2025 17:38:56 +0530, Hrushikesh Salunke wrote: > Enable support for USB mass storage class (UMS) via USB0 instance of > USB on AM64x SoC. UMS allows USB host to access U-Boot block device > and enable file transfer. > > Example usage of UMS command : > => mmc list > mmc

Re: [PATCH 2/2] env: point fdt address to the fdt in a bloblist

2025-03-31 Thread Raymond Mao
Hi Tom, On Fri, 28 Mar 2025 at 19:51, Tom Rini wrote: > > On Thu, Mar 27, 2025 at 04:13:17PM -0700, Raymond Mao wrote: > > > Point fdt_addr to the fdt embedded in the bloblist since fdt_addr > > is a default address for bootefi, bootm and booti to look for the > > device tree when launching the k

Re: [PATCH 2/2] env: point fdt address to the fdt in a bloblist

2025-03-31 Thread Tom Rini
On Mon, Mar 31, 2025 at 10:07:29AM -0400, Raymond Mao wrote: > Hi Tom, > > On Fri, 28 Mar 2025 at 19:51, Tom Rini wrote: > > > > On Thu, Mar 27, 2025 at 04:13:17PM -0700, Raymond Mao wrote: > > > > > Point fdt_addr to the fdt embedded in the bloblist since fdt_addr > > > is a default address for

Re: [PATCH 13/18] arm: mach-k3: am62p: annotate switch/case fallthrough

2025-03-31 Thread Tom Rini
On Thu, Mar 27, 2025 at 03:33:08PM +, Andre Przywara wrote: > The MMC boot mode selection for the TI AM62P series of SoCs uses an > implicit switch/case fallthrough for falling back to some default > boot mode. > > Add our "fallthrough;" statement-like macro before the default branch in > the

Re: [PATCH 1/4] mach-snapdragon: track boot source

2025-03-31 Thread Neil Armstrong
On 26/03/2025 18:40, Caleb Connolly wrote: Keep track of whether we were loaded via ABL or if U-Boot is running as a first-stage bootloader. For now we set this based on if we have a valid external FDT or not, since it isn't possible to chainload U-Boot from ABL without there being an external F

Re: [PATCH 03/18] gadget: f_thor: annotate switch/case fallthrough

2025-03-31 Thread Mattijs Korpershoek
Hi Andre, Thank you for the patch. On jeu., mars 27, 2025 at 15:32, Andre Przywara wrote: > Even though we seem to catch POWEROFF and EFSCLEAR commands in the THOR > protocol request handling, we ultimately do not seem to handle them > (apart from sending a response), so those commands still pr

Re: [PATCH 1/3] configs: phycore_am64x_a53_defconfig: Enable remoteproc cmd

2025-03-31 Thread Mattijs Korpershoek
Hi Daniel, Thank you for the patch. On jeu., mars 27, 2025 at 22:58, Daniel Schultz wrote: > This enables the 'rproc' command, allowing users to > start, stop, and manage co-processors as well as load firmware > images. > > Useful for systems with auxiliary cores, such as M4 or R5 cores > in th

Re: [PATCH 2/3] configs: phycore_am62x_a53_defconfig: Enable remoteproc cmd

2025-03-31 Thread Mattijs Korpershoek
Hi Daniel, Thank you for the patch. On jeu., mars 27, 2025 at 22:58, Daniel Schultz wrote: > This enables the 'rproc' command, allowing users to > start, stop, and manage co-processors as well as load firmware > images. > > Useful for systems with auxiliary cores, such as the M4 core > in the A

Re: [PATCH] usb: gadget: atmel: Add SAM9X60 support

2025-03-31 Thread Eugen Hristev
On 3/31/25 12:05, Mattijs Korpershoek wrote: > Hi Eugen, Zixun, > > On lun., mars 24, 2025 at 11:23, Eugen Hristev > wrote: > >> On 3/22/25 22:56, Zixun LI wrote: >>> Add compatible "microchip,sam9x60-udc" and device tree binding. >>> Compared to SAM9X5 the only difference is the DPRAM memor

Re: [PATCH] usb: gadget: atmel: Add SAM9X60 support

2025-03-31 Thread Mattijs Korpershoek
Hi Eugen, On lun., mars 31, 2025 at 12:26, Eugen Hristev wrote: > On 3/31/25 12:05, Mattijs Korpershoek wrote: >> Hi Eugen, Zixun, >> >> On lun., mars 24, 2025 at 11:23, Eugen Hristev >> wrote: >> >>> On 3/22/25 22:56, Zixun LI wrote: Add compatible "microchip,sam9x60-udc" and device tr

Re: [PATCH v1 1/1] sysreset: add PHASE_ to GPIO reset and poweroff configs

2025-03-31 Thread Quentin Schulz
Hi Svyatoslav, On 3/30/25 11:28 AM, Svyatoslav Ryhel wrote: GPIO reset and power-off functionality depends on device tree data, which is often absent in SPL or TPL. To address this, incorporate PHASE_ into the config option. Signed-off-by: Svyatoslav Ryhel --- drivers/sysreset/Makefile | 4 +

Re: [PATCH 09/18] usb: xhci: annotate switch/case fallthrough properly

2025-03-31 Thread Tom Rini
On Thu, Mar 27, 2025 at 03:33:04PM +, Andre Przywara wrote: > The USB XHCI code uses an implicit switch/case fallthrough to share code > for handling full speed and low speed transfers. > > Add our "fallthrough;" statement-like macro before the second label in > the XHCI code, to avoid a warn

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

2025-03-31 Thread Tom Rini
On Thu, Mar 27, 2025 at 03:33:00PM +, Andre Przywara wrote: > The net_check_prereq() routine in the generic network handling code > mixes case: labels with #ifdef's, which makes predicting fallthrough > situations tricky. We had two "fall through" comments in the code, but > at the wrong place

Re: [PATCH] usb: gadget: atmel: Add SAM9X60 support

2025-03-31 Thread Zixun LI
On Mon, Mar 31, 2025 at 11:39 AM Mattijs Korpershoek wrote: > > Hi Eugen, > > On lun., mars 31, 2025 at 12:26, Eugen Hristev > wrote: > > > On 3/31/25 12:05, Mattijs Korpershoek wrote: > >> Hi Eugen, Zixun, > >> > >> On lun., mars 24, 2025 at 11:23, Eugen Hristev > >> wrote: > > If there is a

Re: U-Boot interferes with initrd binary — Revert "efi: Correct smbios-table installation" ?

2025-03-31 Thread Michael Brown
On 31/03/2025 17:49, Christian Kohlschütter wrote: # hexdump /.argh 000 * 0044100 15dc f9c8 6f16 e188 0044110 00a0 52b0 a01c 6d59 0044120 0044130 00

Re: [PATCH 4/4] qcom_defconfig: enable capsule update support

2025-03-31 Thread Ilias Apalodimas
On Wed, 26 Mar 2025 at 19:41, Caleb Connolly wrote: > > We can now correctly identify which partition U-Boot is flashed to > between uefi, xbl, and boot (including A/B support) so enable capsule > update support for all boards. > > Signed-off-by: Caleb Connolly > --- > configs/qcm6490_defconfig

Re: [PATCH 16/18] cmd: pmic: annotate switch/case fallthrough

2025-03-31 Thread Tom Rini
On Thu, Mar 27, 2025 at 03:33:11PM +, Andre Przywara wrote: > The argument parsing code in the pmic command uses an implicit switch/case > fallthrough to handle the common part of having one or two arguments. > > Add our "fallthrough;" statement-like macro before the second branch in > the pa

Re: [PATCH 14/18] mtd: spi-nor-tiny: annotate switch/case fallthrough

2025-03-31 Thread Tom Rini
On Thu, Mar 27, 2025 at 03:33:09PM +, Andre Przywara wrote: > The SPI NOR code uses an implicit switch/case fallthrough when checking > different vendors to determine how to deal with extended addressig modes. > > Add our "fallthrough;" statement-like macro before some label in the > 4-byte a

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

2025-03-31 Thread Gabor Juhos
ICE(0x04e8, 0xa101) }, + /* Linksys */ + { USB_DEVICE(0x13b1, 0x0041) }, /* USB3GIGV1 */ + /* Lenovo */ { USB_DEVICE(0x17ef, 0x304f) }, { USB_DEVICE(0x17ef, 0x3052) }, --- base-commit: 3d8be1f5ec30180748259a251efe4f63c8b4b329 change-id: 20250331-usb3gigv1-5061f609abc0 Best regards, -- Gabor Juhos

[PATCH v2] drivers: pinctrl: Add Qualcomm SDM630/660 TLMM driver

2025-03-31 Thread Alexey Minnekhanov
Add support for TLMM pin controller block (Top Level Mode Multiplexer) on SDM630/660 SoCs, with support for special pins. Correct pin configuration is required for working debug UART and eMMC/SD cards. SDM630 and SDM660 TLMM blocks are the same. Signed-off-by: Alexey Minnekhanov Reviewed-by: Ca

[PATCH v2 3/3] ARM: dts: at91: sam9x60-curiosity: Enable USB gadget node

2025-03-31 Thread Zixun LI
Enable USB gadget usb0 node support. Signed-off-by: Zixun LI --- arch/arm/dts/at91-sam9x60_curiosity.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/at91-sam9x60_curiosity.dts b/arch/arm/dts/at91-sam9x60_curiosity.dts index 99867d2bf8e..08480df88c6 100644 --- a/arch/arm

[PATCH] sama5d27: Fix the 'reset' command

2025-03-31 Thread Fabio Estevam
From: Fabio Estevam Since commit 61040097a9d1 ("reset: at91: Add reset driver for basic assert/deassert operations") the "atmel,sama5d3-rstc" compatible for the sama5d2 reset controller in sama5d2.dtsi is not handled by CONFIG_SYSRESET_AT91 anymore, but by CONFIG_RESET_AT91 now. This resulted in

U-Boot interferes with initrd binary — Revert "efi: Correct smbios-table installation" ?

2025-03-31 Thread Christian Kohlschütter
Hi all, After upgrading some rather old U-Boot/IPXE setup on two aarch64 boards (Amlogic S922X-based ODROID N2+ and RK3399-based NanoPi R4S), I noticed strange errors in the initrd phase of my Linux kernel — usually something like "Illegal instruction" coming from "udhcpc", etc. The setup I ha

Re: Please pull net-20250314

2025-03-31 Thread Tom Rini
On Mon, 31 Mar 2025 11:07:33 +0200, Jerome Forissier wrote: > The following changes since commit 5e74863ad6613df9c69c576910b536e885083d65: > > MAINTAINERS: Update email of Mattijs Korpershoek (2025-03-28 10:33:48 -0600) > > are available in the Git repository at: > > https://source.denx.de/

Re: [PATCH v1 1/1] sysreset: add PHASE_ to GPIO reset and poweroff configs

2025-03-31 Thread Svyatoslav Ryhel
пн, 31 бер. 2025 р. о 13:16 Quentin Schulz пише: > > Hi Svyatoslav, > > On 3/30/25 11:28 AM, Svyatoslav Ryhel wrote: > > GPIO reset and power-off functionality depends on device tree data, which > > is often absent in SPL or TPL. To address this, incorporate PHASE_ into the > > config option. > >

Re: [PATCH v1 1/1] sysreset: add PHASE_ to GPIO reset and poweroff configs

2025-03-31 Thread Svyatoslav Ryhel
пн, 31 бер. 2025 р. о 13:31 Quentin Schulz пише: > > On 3/31/25 12:27 PM, Svyatoslav Ryhel wrote: > > пн, 31 бер. 2025 р. о 13:16 Quentin Schulz пише: > >> > >> Hi Svyatoslav, > >> > >> On 3/30/25 11:28 AM, Svyatoslav Ryhel wrote: > >>> GPIO reset and power-off functionality depends on device tre

[PATCH v5 16/16] MAINTAINERS: add UTHREAD

2025-03-31 Thread Jerome Forissier
Add myself as the maintainer for the UTHREAD framework, the spawn/wait commands and the associated tests. Signed-off-by: Jerome Forissier Acked-by: Ilias Apalodimas --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 92d4a158fd0..4b6bb7df

[PATCH v5 15/16] test: cmd: add test for spawn and wait commands

2025-03-31 Thread Jerome Forissier
Test the spawn and wait commands. Signed-off-by: Jerome Forissier Acked-by: Ilias Apalodimas --- test/cmd/Makefile | 1 + test/cmd/spawn.c | 32 2 files changed, 33 insertions(+) create mode 100644 test/cmd/spawn.c diff --git a/test/cmd/Makefile b/test/cmd/M

[PATCH v5 14/16] cmd: add spawn and wait commands

2025-03-31 Thread Jerome Forissier
Add a spawn command which runs another command in the background, as well as a wait command to suspend the shell until one or more background jobs have completed. The job_id environment variable is set by spawn and wait accepts optional job ids, so that one can selectively wait on any job. Example

Re: [PATCH] mach-snapdragon: of_fixup: fix condition check in ft_board_setup()

2025-03-31 Thread Alexey Minnekhanov
On 3/31/25 13:43, Caleb Connolly via groups.io wrote: The fdt_node_check_compatible() function returns 0 on success which is pretty confusing, and we were using it wrong! Invert the condition check and refactor things to be more readable. Additionally, add the check for the RB1 which needs the

Re: [PATCH v2 00/56] expo: Various features and improvements

2025-03-31 Thread Caleb Connolly
On 3/31/25 03:18, Simon Glass wrote: Hi Tom, On Mon, 31 Mar 2025 at 03:47, Tom Rini wrote: On Fri, Mar 28, 2025 at 07:05:47AM -0600, Simon Glass wrote: This series collects together some new features for expo to make it more useful for boot menus: - measurement and display of multi-line

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

2025-03-31 Thread Caleb Connolly
Add some documentation which attempts to describe Qualcomm smartphone support with the qcom-phone.config fragment, as well as a high level debugging guide for diagnosing U-Boot issues when UART and framebuffer are unavailable. Reviewed-by: Simon Glass Tested-by: Danila Tikhonov # google-sunfish

[PATCH v4 1/6] board/qualcomm: introduce phone config

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

[PATCH v4 2/6] cli_hush: support running bootcmd on boot retry

2025-03-31 Thread Caleb Connolly
Introduce a new config option: RETRY_BOOTCMD. When enabled this causes hush shell to re-run "bootcmd" when the auto-boot counter times out. Tested-by: Danila Tikhonov # google-sunfish Tested-by: Jens Reidel # xiaomi-davinci Signed-off-by: Caleb Connolly --- boot/Kconfig | 7 +

[PATCH v4 3/6] bootretry: check for bootretry variable changes

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

[PATCH v4 5/6] button: qcom-pmic: prettify and standardise button labels

2025-03-31 Thread Caleb Connolly
Boards using gpio-keys for volume buttons label them "Volume Down", let's match that here, and make the power button nicer too. This simplifies configuring button_cmds in a board-agnostic way. Tested-by: Danila Tikhonov # google-sunfish Tested-by: Jens Reidel # xiaomi-davinci Signed-off-by: Cal

[PATCH v4 6/6] button: make button_get_by_label() case insensitive

2025-03-31 Thread Caleb Connolly
This function is already doing a fuzzy match, since there are no guarantees that a given label is unique. Ignoring case makes it much easier to catch "Volume down" or "Volume Down" in board-agnostic code. Tested-by: Danila Tikhonov # google-sunfish Tested-by: Jens Reidel # xiaomi-davinci Signed

[PATCH v5 00/16] Uthreads

2025-03-31 Thread Jerome Forissier
This series introduces threads and uses them for two things: - Improve the performance of the USB bus scanning code (scan multiple busses simultaneously), - Implement background jobs in the shell via two new commands: 'spawn' and 'wait'. The threading framework is called 'uthread' and is inspired

[PATCH v5 01/16] arch: introduce initjmp() and Kconfig symbol HAVE_INITJMP

2025-03-31 Thread Jerome Forissier
Add the HAVE_INIJMP symbol to be set by architectures that support initjmp(), a non-standard extension to setjmp()/longjmp() allowing to initialize a jump buffer with a function pointer and a stack pointer. This will be useful to later introduce threads. With this new function it becomes possible t

[PATCH v5 03/16] riscv: add initjmp()

2025-03-31 Thread Jerome Forissier
Implement initjmp() for RISC-V, a non-standard extension to setjmp()/ longjmp() allowing to initialize a jump buffer with a function pointer and a stack pointer. This will be useful to later introduce threads. With this new function it becomes possible to longjmp() to a particular function pointer

[PATCH v5 02/16] arm: add initjmp()

2025-03-31 Thread Jerome Forissier
Implement initjmp() for Arm. a non-standard extension to setjmp()/ longjmp() allowing to initialize a jump buffer with a function pointer and a stack pointer. This will be useful to later introduce threads. With this new function it becomes possible to longjmp() to a particular function pointer (ra

[PATCH v5 09/16] lib: time: hook uthread_schedule() into udelay()

2025-03-31 Thread Jerome Forissier
Introduce a uthread scheduling loop into udelay() when CONFIG_UTHREAD is enabled. This means that any uthread calling into udelay() may yield to uthread and be scheduled again later. There is no delay in the scheduling loop because tests have shown that such a delay can have a detrimental effect on

[PATCH v5 11/16] test: lib: add uthread_mutex test

2025-03-31 Thread Jerome Forissier
Add a test for uthread mutexes. Signed-off-by: Jerome Forissier --- test/lib/uthread.c | 66 ++ 1 file changed, 66 insertions(+) diff --git a/test/lib/uthread.c b/test/lib/uthread.c index 0c0540585e7..d33daa62f6c 100644 --- a/test/lib/uthread.c +++ b/

[PATCH v5 10/16] test: lib: add uthread test

2025-03-31 Thread Jerome Forissier
Add a thread framework test to the lib tests. Update the API documentation to use the test as an example. Signed-off-by: Jerome Forissier Acked-by: Ilias Apalodimas --- doc/api/uthread.rst | 12 +++ test/lib/Makefile | 1 + test/lib/uthread.c | 80 +++

Re: [PATCH 0/4] Qualcomm: fix sdm845 clocks and enable fastboot

2025-03-31 Thread Caleb Connolly
On Mon, 24 Mar 2025 19:17:36 +0100, Caleb Connolly wrote: > Fix clock init failures for USB and UFS on SDM845 devices, stub the RPMh > clock controller, enable DM_USB_GADGET and fastboot support for all > Qualcomm platforms supported by qcom_defconfig. > > Fastboot isn't super useful yet, but ca

Re: [PATCH] phy: Add SDM660 support to Qualcomm QUSB2 phy

2025-03-31 Thread Caleb Connolly
On Tue, 25 Mar 2025 11:37:13 +0300, Alexey Minnekhanov wrote: > Imported from Linux driver. > > Note that already existing but previously unused member of > struct qusb2_phy::has_se_clk_scheme is now utilized for it's > purpose. > > > [...] Applied, thanks! [1/1] phy: Add SDM660 support to Q

Re: [PATCH] qcom_defconfig: enable OF_UPSTREAM_BUILD_VENDOR

2025-03-31 Thread Caleb Connolly
On Fri, 28 Mar 2025 11:40:07 +0100, Caleb Connolly wrote: > A single U-Boot binary can be run on many different Qualcomm boards just > by booting with a different DTB. > > Simplify the build process for this by enabling OF_UPSTREAM_BUILD_VENDOR > so that all the DTBs will be available after buil

Re: [PATCH 0/2] power: regulator: add qcom usb vbus

2025-03-31 Thread Caleb Connolly
On Thu, 27 Feb 2025 09:45:48 +, Rui Miguel Silva wrote: > Add PMIC USB vbus regulator driver (bindings already present); > and fix related with property overwriting found out during > testing of host setup. > > Cheers; > Rui > > [...] Applied, thanks! [1/2] mach-snapdragon: of_fixup:

Re: [PATCH] mach-snapdragon: of_fixup: fix condition check in ft_board_setup()

2025-03-31 Thread Caleb Connolly
On Mon, 31 Mar 2025 12:43:18 +0200, Caleb Connolly wrote: > The fdt_node_check_compatible() function returns 0 on success which is > pretty confusing, and we were using it wrong! > > Invert the condition check and refactor things to be more readable. > > Additionally, add the check for the RB1

Re: [PATCH 0/4] spmi: msm: fix pid mapping for v5 & v7 controllers

2025-03-31 Thread Caleb Connolly
On Fri, 28 Mar 2025 09:53:20 +0100, Neil Armstrong wrote: > The v5 & v7 controllers has complex mapping for > different Execution Environment, and v7 supports > two busses within the same controller so it needs > some special care when parsing the hardware map > table to get the proper read & wri

Re: [PATCH] usb: gadget: atmel: Add SAM9X60 support

2025-03-31 Thread Mattijs Korpershoek
Hi Eugen, Zixun, On lun., mars 24, 2025 at 11:23, Eugen Hristev wrote: > On 3/22/25 22:56, Zixun LI wrote: >> Add compatible "microchip,sam9x60-udc" and device tree binding. >> Compared to SAM9X5 the only difference is the DPRAM memory from the >> USB High Speed Device Port (UDPHS) hardware bloc

Re: [PATCH 02/18] zlib: annotate switch/case fallthrough cases

2025-03-31 Thread Tom Rini
On Thu, Mar 27, 2025 at 03:32:57PM +, Andre Przywara wrote: > The inflate state machine in zlib uses switch/case fall-through's > extensively, as it sometimes advances the state, and lets the > conveniently placed next case statement handle the new state already. > The pattern here is: >

[PATCH v5 04/16] sandbox: add initjmp()

2025-03-31 Thread Jerome Forissier
Add initjm[() to sandbox, a non-standard extension to setjmp()/ longjmp() allowing to initialize a jump buffer with a function pointer and a stack pointer. This will be useful to later introduce threads. With this new function it becomes possible to longjmp() to a particular function pointer (rathe

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2025-03-31 Thread Heinrich Schuchardt
On 31.03.25 18:30, Tom Rini wrote: On Sun, Mar 30, 2025 at 04:38:12PM +0200, Caleb Connolly wrote: Hi Heinrich, On 3/28/25 15:18, Heinrich Schuchardt wrote: On 28.03.25 14:00, Caleb Connolly wrote: On 3/28/25 13:01, Simon Glass wrote: Hi Caleb, On Sun, 23 Mar 2025 at 12:39, Caleb Connolly

Re: [PATCH 07/17] bootstd: Fully complete iteration of a uclass

2025-03-31 Thread Tom Rini
On Wed, Mar 19, 2025 at 03:38:01PM +0100, Simon Glass wrote: > When trying all bootdevs in a uclass, the method flags are not preserved > in the iterator. > > This has no impact on the first bootdev, since that is the one which > sets the flags. For the next one, iter_inc() is used and it finds t

Re: [PATCH 06/17] bootstd: Try all bootmeths on the final partition

2025-03-31 Thread Tom Rini
On Wed, Mar 19, 2025 at 03:38:00PM +0100, Simon Glass wrote: > At present when one bootmeth fails on the final partition, the next > bootmeth is not tried. Adjust the logic to go to the next bootmeth, > which is the more natural behaviour. > > Signed-off-by: Simon Glass > --- > > boot/bootflow

Re: [RFC PATCH] docker: add ADI build-related tools to docker image

2025-03-31 Thread Tom Rini
On Fri, Mar 21, 2025 at 01:37:42AM -0400, Greg Malysa wrote: > ADI processors require packaging with the ldr utility for bootrom > compatibility. Normally this is available as part of our yocto-derived > toolchain but it is not a part of any other premade toolchain, so it is > otherwise unavailabl

Re: [PATCH] binman: Fill in most of the imx8mimage and imx8mcst tests

2025-03-31 Thread Tom Rini
On Mon, Mar 31, 2025 at 03:18:12PM -0300, Fabio Estevam wrote: > Hi Leonard, > > On Mon, Mar 31, 2025 at 11:43 AM Leonard Anderweit > wrote: > > > The error looks like binman is never building the missing tools. > > Run something like: > > ./tools/binman/binman tool -f missing > > before the bin

Please pull net-20250314

2025-03-31 Thread Jerome Forissier
Hi Tom, The following changes since commit 5e74863ad6613df9c69c576910b536e885083d65: MAINTAINERS: Update email of Mattijs Korpershoek (2025-03-28 10:33:48 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-net.git/ tags/net-20250314 for you to fe