Re: [PATCH v2 5/8] gpio: axp: Remove virtual VBUS enable GPIO

2025-04-10 Thread Jernej Škrabec
Dne sreda, 9. april 2025 ob 02:20:33 Srednjeevropski poletni čas je Andre Przywara napisal(a): > From: Samuel Holland > > Now that this functionality is modeled using the device tree and > regulator uclass, the named GPIO is not referenced anywhere. Remove > it, along with the rest of the suppor

Re: [PATCH v2 4/8] sunxi: Remove obsolete USBx_VBUS_PIN Kconfig symbols

2025-04-10 Thread Jernej Škrabec
Dne sreda, 9. april 2025 ob 02:20:32 Srednjeevropski poletni čas je Andre Przywara napisal(a): > From: Samuel Holland > > Now that the USB PHY driver uses the device tree to get VBUS supply > regulators, these Kconfig symbols are unused. Remove them. > > Signed-off-by: Samuel Holland > Signed-

Re: [PATCH v2 8/8] sunxi: Kconfig: Remove obsolete USBx_* pin symbols

2025-04-10 Thread Jernej Škrabec
Dne sreda, 9. april 2025 ob 02:20:36 Srednjeevropski poletni čas je Andre Przywara napisal(a): > Now that the USB PHY driver uses the device tree to get the VBUS detect > and USB ID GPIOs, these Kconfig symbols are unused. Remove them from > their Kconfig definition, and also from all defconfig fi

Re: [PATCH v2 7/8] phy: sun4i-usb: Determine USB OTG detection pin from devicetree

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

[PATCH] amd: versal2: Enable SMBIOS command

2025-04-10 Thread Michal Simek
Enabel SMBIOS command as was done by commit aa815e6c7603 ("xilinx: Enable SMBIOS command") for our other platforms. Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/amd_versal2_virt_defconfig b/configs/amd_versal2_vi

[PATCH] xilinx: Remove UARTLITE from defconfigs

2025-04-10 Thread Michal Simek
Remove uartlite serial driver from defconfigs because is not tested or used on ARM based platform as console. Signed-off-by: Michal Simek --- configs/xilinx_versal_net_virt_defconfig | 1 - configs/xilinx_versal_virt_defconfig | 1 - configs/xilinx_zynqmp_kria_defconfig | 1 - configs/x

[PATCH v2 0/8] binman: Check code-coverage requirements

2025-04-10 Thread Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those. A few fixes are included for some other problems. Changes in v2: - Add new patch to add coverage to the requirements.txt file - Rebase to -master Jiaxun Yang

[PATCH v2 7/8] binman: Work around missing test coverage

2025-04-10 Thread Simon Glass
The iMX8 entry-types don't have proper test coverage. Add a work-around to skip this for now. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/main.py| 8 +++- tools/u_boot_pylib/test_util.py | 16 +++- 2 files changed, 22 insertions(+), 2 deletion

[PATCH v2 8/8] CI: Run code-coverage test for Binman

2025-04-10 Thread Simon Glass
Binman includes a good set of tests covering all of its functionality. This includes a code-coverage test. However to date the code-coverage test has not been checked automatically by CI, relying on people to run 'binman test -T' themselves. Plug the gap to avoid bugs creeping in future. Signed-

[PATCH v2 6/8] binman: Workaround lz4 cli padding in test cases

2025-04-10 Thread Simon Glass
From: Jiaxun Yang Newer lz4 util is not happy with any padding at end of file, it would abort with error message like: Stream followed by undecodable data at position 43. Workaround by skipping testCompUtilPadding test case and manually strip padding in testCompressSectionSize test case. Signe

[PATCH 4/6] board: phycore-imx93: env: Add option to disable bootenv.txt import

2025-04-10 Thread Primoz Fiser
Add support for disabling external environment import (bootenv.txt) by setting the ${no_bootenv} environment variable. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/board/phytec/phycor

Re: Community meeting April 8th 2025 (was: Re: [ANN] U-Boot v2025.04 released)

2025-04-10 Thread Raymond Mao
Hi all, I didn't have a chance to join the meeting due to a different time zone but I have a few comments on bloblist/fdt as below. On Wed, 9 Apr 2025 at 09:46, Caleb Connolly wrote: > > Hi Everyone, > > On 4/8/25 00:00, Tom Rini wrote: > > Hey all, > > > > It's release day and here's v2025.04.

[PATCH v2 2/8] binman: Exclude dist-packages and site-packages

2025-04-10 Thread Simon Glass
Newer versions of the python3-coverage tool require a directory separator before and after the directory name. Add this so that system package are not included in the coverage report. Signed-off-by: Simon Glass --- (no changes since v1) tools/u_boot_pylib/test_util.py | 2 +- 1 file changed, 1

[PATCH v2 1/8] binman: Add coverage to requirements

2025-04-10 Thread Simon Glass
We need the code-coverage package to run the coverage tests. Add this package. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to add coverage to the requirements.txt file tools/binman/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/binman/requirements.

[PATCH v2 3/8] binman: Drop GetRootSkipAtStart()

2025-04-10 Thread Simon Glass
This method is not called anymore, so drop it. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/section.py | 17 - 1 file changed, 17 deletions(-) diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py index 5e11cf58d28..4c4c8c417f8 1

[PATCH v2 5/8] binman: Drop algo check in CheckSetHashValue()

2025-04-10 Thread Simon Glass
The CheckAddHashValue() function is always called before this one, so the algorithm check is never used. Replace it with an assert to avoid a coverage error. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/state.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH v2 4/8] binman: fit: Drop unused code

2025-04-10 Thread Simon Glass
The key-name-hint case is not tested so is presumably not used. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/fit.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index 803fb66ea83..ed3cac4ee7e 1006

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

2025-04-10 Thread Alexander Vickberg
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 Brezillon Signed-off-by: Richard Weinberger Upstream Linux comm

[PATCH v1 1/1] include: configs: Adds support for AM335x ICE PRUSS mode

2025-04-10 Thread Parvathi Pudi
On the AM3359 ICE we have two modes of operation CPSW mode or PRU-ICSS mode. For PRU-ICSS mode, connect Pin2 and Pin3 of J18 and J19 and for CPSW mode, connect Pin1 and Pin2 of J18 and J19. This patch adds support for PRUSS mode boot strapping from uboot. Co-developed-by: Basharath Hussain Khaja

[PATCH] spin_table: add missing header for ENODEV and ENOSPC symbols

2025-04-10 Thread yan wang
Add the necessary header as is removed Signed-off-by: yan wang --- arch/arm/cpu/armv8/spin_table.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/armv8/spin_table.c b/arch/arm/cpu/armv8/spin_table.c index 485294b88d0..5ba20efa33b 100644 --- a/arch/arm/cpu/armv8/spin_table.c ++

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

2025-04-10 Thread Caleb Connolly
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 modified without caring about the underlying FDT. This is particularly valuable for working around U-B

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

2025-04-10 Thread Mattijs Korpershoek
: https://source.denx.de/u-boot/custodians/u-boot-dfu.git tags/u-boot-dfu-20250410 for you to fetch changes up to df50c821e75957113b93e45b363cb22c965e7a9b: bootstd: android: avoid possible null pointer dereference (2025-04-10 10:03:21 +0200

[PATCH v2] pinctrl: qcom: handle reserved ranges

2025-04-10 Thread neil . armstrong
From: Caleb Connolly Some Qualcomm boards feature reserved ranges of pins which are protected by firmware. Attempting to read or write any registers associated with these pins results the board resetting. Add support for parsing these ranges from devicetree and ensure that the pinctrl and GPIO d

[PATCH] amd: versal2: Enable NVMEM framework

2025-04-10 Thread Michal Simek
Enable NVMEM framework to be able to for example read MAC address from eeprom. For more information please look at commit 5db5b7e2a336 ("xilinx: Enable NVMEM framework for all platforms"). Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 1 + 1 file changed, 1 insertion(+)

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 08:04, Caleb Connolly wrote: > > > > 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 2

Re: [PATCH 5/7] binman: Workaround lz4 cli padding in test cases

2025-04-10 Thread Tom Rini
On Thu, Apr 10, 2025 at 08:53:14AM -0600, Simon Glass wrote: > Hi Mattijs, > > On Thu, 10 Apr 2025 at 03:27, Mattijs Korpershoek > wrote: > > > > Hi Simon, > > > > Thank you for the patch. > > > > On mar., mars 04, 2025 at 06:09, Simon Glass wrote: > > > > > From: Jiaxun Yang > > > > > > Newer

[PATCH v3 1/3] net-lwip: wget_do_request(): do not print anything to the console

2025-04-10 Thread Jerome Forissier
Functions called from EFI applications should not call printf(). Refactor wget_do_request() to implement this requirement. Signed-off-by: Jerome Forissier Reported-by: Heinrich Schuchardt --- Changes in v3: - New patch: net-lwip: wget_do_request(): do not print anything to the console net/l

[PATCH v3 2/3] net-lwip: wget: add LMB and buffer checks

2025-04-10 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 v3: - store_block() [wget]: add Sphinx-like documentation - store_block() [wget]: do no

[PATCH v3 3/3] 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 --- Changes in v3: - store_block() [tftp]: add Sphinx-like documentation net/lwip/tftp.c | 56 ++

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

2025-04-10 Thread Dhruva Gole
Hi, On Apr 07, 2025 at 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 repl

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

2025-04-10 Thread Francis, Neha
Hi Nishanth On 4/7/2025 5:45 PM, 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 th

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

2025-04-10 Thread Dhruva Gole
On Apr 10, 2025 at 18:57:46 +0530, Udit Kumar wrote: > 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

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

2025-04-10 Thread Caleb Connolly
Hi Simon, On 4/10/25 16:15, Simon Glass wrote: Hi Caleb, On Thu, 10 Apr 2025 at 08:04, Caleb Connolly wrote: 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 202

[PATCH] Dockerfile: Add fdisk

2025-04-10 Thread Tom Rini
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. Fixes: eb1b90ec57a4 ("Dockerfile: Update to drop virt-make-fs packages") Signed-off-by: Tom Rini --- tools/docker/Dockerfile

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

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

Re: [PATCH 5/6] mach-snapdragon: of_fixup: set dr_mode for RB1/2 boards

2025-04-10 Thread Sumit Garg
On Wed, Apr 09, 2025 at 07:17:28PM +0200, Caleb Connolly wrote: > The RB1 and RB2 have a single USB controller which is manually muxed > between a type-c port and an internal USB hub via a DIP switch. OTG is > supported in Linux, but the DWC3 driver in U-Boot can only handle a > single mode, and de

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

2025-04-10 Thread Neil Armstrong
On 09/04/2025 19:17, Caleb Connolly wrote: OF_LIVE offers a variety of benefits, one of them being that the live tree can be modified without caring about the underlying FDT. This is particularly valuable for working around U-Boot limitations like lacking USB superspeed support on Qualcomm platfo

Re: [PATCH 5/7] binman: Workaround lz4 cli padding in test cases

2025-04-10 Thread Simon Glass
Hi Mattijs, On Thu, 10 Apr 2025 at 03:27, Mattijs Korpershoek wrote: > > Hi Simon, > > Thank you for the patch. > > On mar., mars 04, 2025 at 06:09, Simon Glass wrote: > > > From: Jiaxun Yang > > > > Newer lz4 util is not happy with any padding at end of file, > > it would abort with error mess

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

2025-04-10 Thread Nishanth Menon
On 18:57-20250410, Udit Kumar wrote: > 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/ > &g

[PATCH] CI: Move to latest container images

2025-04-10 Thread Tom Rini
- Bump up "Jammy" tag to jammy-20250404 - Include most recent changes to the Dockerfile itself Signed-off-by: Tom Rini --- .azure-pipelines.yml| 2 +- .gitlab-ci.yml | 2 +- tools/docker/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelin

[PATCH 1/6] board: phycore-imx93: env: Move fdt and bootenv addresses

2025-04-10 Thread Primoz Fiser
Move the load addresses for FDTs and bootenv.txt to create space for loading OS image. Otherwise, parts of the image might get corrupted. and the following boot error will be present: ERROR: FDT image overlaps OS image (OS=8040..832a) Moreover, this commit also syncs addresses with down

Re: [PATCH] pinctrl: qcom: handle reserved ranges

2025-04-10 Thread Neil Armstrong
On 10/04/2025 01:40, Alexey Minnekhanov wrote: On 4/1/25 10:46, Neil Armstrong via groups.io wrote: From: Caleb Connolly Some Qualcomm boards feature reserved ranges of pins which are protected by firmware. Attempting to read or write any registers associated with these pins results the board

[PATCH 1/2] mmc: Add a new callback function to perform the 74 clocks cycle sequence

2025-04-10 Thread Mathieu Othacehe
From: Jean-Jacques Hiblot Add a new callback function *send_init_stream* which start a sequence of at least 74 clock cycles. The mmc core uses *mmc_send_init_stream* in order to invoke the callback function. This will be used during power cycle where the specification requires such a sequence aft

Re: [PATCH v2 2/2] phy: phy-qcom-qusb2: Fix USB PHY power on sequence

2025-04-10 Thread Caleb Connolly
On 4/10/25 10:00, Sumit Garg wrote: From: Sumit Garg Recent addition of support for SDM660 inadvertently broke USB PHY power on sequence on RB1/RB2 and others with following error: starting USB... Bus usb@4e0: QUSB2PHY pll lock failed: status reg = 0 qcom-qusb2-phy phy@1613000: PHY: Fai

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

2025-04-10 Thread Caleb Connolly
On Wed, 09 Apr 2025 19:17:23 +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 for properties

Re: [PATCH 1/3] usb: gadget: f_acm: Claim requested USB endpoints

2025-04-10 Thread Mattijs Korpershoek
Hi Stephan, Thank you for the patch. On lun., avril 07, 2025 at 16:59, Stephan Gerhold wrote: > U-Boot has an older version of the Linux gadget API, where USB endpoints > returned by usb_ep_autoconfig() are not automatically claimed. As written > in the documentation comment: > > "To prevent

Re: [PATCH 2/6] mach-snapdragon: use EVT_OF_LIVE_INIT to apply DT fixups

2025-04-10 Thread Neil Armstrong
On 09/04/2025 19:17, Caleb Connolly wrote: This will now apply fixups prior to devices being bound, which makes it possible to enable/disable devices and adjust more properties that might be read before devices probe. Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/board.c | 1

Re: [PATCH 6/6] pinctrl: qcom: qcm2290: fix off by 1 in pin_count

2025-04-10 Thread Sumit Garg
On Wed, Apr 09, 2025 at 07:17:29PM +0200, Caleb Connolly wrote: > There are 134 pins not 133, oops! This fixes the sdcard on the RB1 as > the pins now all get configured correctly. > > Fixes: 0ecb8cfcb930 ("pinctrl: qcom: add qcm2290 pinctrl driver") > Signed-off-by: Caleb Connolly > --- > drive

[PATCH 2/2] mmc: omap_hsmmc: implement send_init_stream callback

2025-04-10 Thread Mathieu Othacehe
This callback is used to send the 74 clock cycles after power up. Signed-off-by: Mathieu Othacehe --- drivers/mmc/omap_hsmmc.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index e66ab25d02a..92bc72b267c 100

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

2025-04-10 Thread Michal Simek
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-off-by: Venkatesh Yadav Abbarapu Signed-off-by: Michal

Re: [PATCH v2] pinctrl: qcom: handle reserved ranges

2025-04-10 Thread Sumit Garg
On Thu, Apr 10, 2025 at 10:52:38AM +0200, neil.armstr...@linaro.org wrote: > From: Caleb Connolly > > Some Qualcomm boards feature reserved ranges of pins which are protected > by firmware. Attempting to read or write any registers associated with > these pins results the board resetting. > > Ad

[PATCH v2 2/2] phy: phy-qcom-qusb2: Fix USB PHY power on sequence

2025-04-10 Thread Sumit Garg
From: Sumit Garg Recent addition of support for SDM660 inadvertently broke USB PHY power on sequence on RB1/RB2 and others with following error: starting USB... Bus usb@4e0: QUSB2PHY pll lock failed: status reg = 0 qcom-qusb2-phy phy@1613000: PHY: Failed to power on phy@1613000: -16. Can't p

[PATCH 0/2] mmc: omap_hsmmc: Restore the init_stream sequence

2025-04-10 Thread Mathieu Othacehe
Hello, Back in 2019, the init_stream sequence was disabled with db52e19ced because: This is not required. The MMC core sends CMD0 right after the initialization and it serves the same purpose. That is wrong. It does not serve the same purpose at all. The init_stream function role is to keep

Re: [PATCH 5/7] binman: Workaround lz4 cli padding in test cases

2025-04-10 Thread Mattijs Korpershoek
Hi Simon, Thank you for the patch. On mar., mars 04, 2025 at 06:09, Simon Glass wrote: > From: Jiaxun Yang > > Newer lz4 util is not happy with any padding at end of file, > it would abort with error message like: > > Stream followed by undecodable data at position 43. > > Workaround by skippi

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

2025-04-10 Thread Peng Fan
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: > > ## Checking hash(es) for Image atf-1 ... sha256+ OK > C

Re: [PATCH v2 2/8] sunxi: Enable PMIC drivevbus regulator support for USB supplies

2025-04-10 Thread Jernej Škrabec
Dne sreda, 9. april 2025 ob 02:20:30 Srednjeevropski poletni čas je Andre Przywara napisal(a): > From: Samuel Holland > > On many boards, the USB ports are powered by the PMIC's "drivevbus" > regulator. In preparation for switching the USB PHY driver to use the > regulator uclass instead of a vi

Re: [PATCH] tiny-printf: Handle formatting of %p with an extra Kconfig

2025-04-10 Thread Michael Walle
On Wed Apr 9, 2025 at 5:22 PM CEST, Tom Rini wrote: > On Wed, Apr 09, 2025 at 02:33:08PM +0200, Michael Walle wrote: > > Hi, > > > > > >> The formatting with %pa / %pap behaves like %x, which results in an > > > >> incorrect value being output. To improve this, a new fine-tuning > > > >> Kconfig X

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

2025-04-10 Thread Simon Glass
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 modified without caring about the underlying FDT. This is > particularly valuable for working around U-Boot limitations like lacking > USB superspee

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

2025-04-10 Thread Mike Looijmans
That looks broken to me. When reading a GPIO pin, you want to get the actual state of the pin. Even though the output state may be driving it high, the actual pin may still be low because it's shorted to ground. M. On 10-04-2025 10:25, Michal Simek wrote: From: Venkatesh Yadav Abbarapu Gp

[PATCH v1 0/3] Implement reset to EDL for qcs9100

2025-04-10 Thread Varadarajan Narayanan
Using the 'reboot edl' command in Linux, the platform can reboot to the Emergency Download mode. Implement the same for U-Boot. Varadarajan Narayanan (3): mach-snapdragon: Do not define reset_cpu() if SYSRESET is enabled sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs configs:

[PATCH v1 1/3] mach-snapdragon: Do not define reset_cpu() if SYSRESET is enabled

2025-04-10 Thread Varadarajan Narayanan
If CONFIG_SYSRESET is enabled, the reset_cpu() function defined in arch/arm/mach-snapdragon/board.c conflicts with the definition of reset_cpu() in drivers/sysreset/sysreset-uclass.c resulting in duplicate symbol error while compiling. So, do not include it if CONFIG_SYSRESET is enabled. Signed-of

[PATCH v1 3/3] configs: qcs9100_defconfig: Enable SYSRESET

2025-04-10 Thread Varadarajan Narayanan
Move to SYSRESET for implementing the reset command. Signed-off-by: Varadarajan Narayanan --- configs/qcs9100_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcs9100_defconfig b/configs/qcs9100_defconfig index 10ff4d25398..1fb621b27ce 100644 --- a/configs/qcs9100_defconfi

[PATCH v1 2/3] sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs

2025-04-10 Thread Varadarajan Narayanan
Add SYSRESET_EDL to sysreset_t and handle the different SYSRESET_xxx requests in sysreset_qcom-psci.c. Signed-off-by: Varadarajan Narayanan --- drivers/sysreset/Kconfig | 5 +++ drivers/sysreset/Makefile | 1 + drivers/sysreset/sysreset-uclass.c| 7 ++-- drivers/s

Re: [PATCH 2/3] usb: gadget: f_acm: Allow restarting ACM console after stopping it

2025-04-10 Thread Mattijs Korpershoek
Hi Stephan, Thank you for the patch. On lun., avril 07, 2025 at 16:59, Stephan Gerhold wrote: > When using IOMUX, the "usbacm" console can be added/removed dynamically > from the stdout/stderr/stdin environment variables to allow temporarily > starting other USB gadgets (e.g. Fastboot). > > Ho

RE: [PATCH] tiny-printf: Handle formatting of %p with an extra Kconfig

2025-04-10 Thread Christoph Niedermaier
From: Michael Walle Sent: Thursday, April 10, 2025 12:44 PM > On Wed Apr 9, 2025 at 5:22 PM CEST, Tom Rini wrote: > > On Wed, Apr 09, 2025 at 02:33:08PM +0200, Michael Walle wrote: > > > Hi, > > > > > > > >> The formatting with %pa / %pap behaves like %x, which results in an > > > > >> incorrect v

[PATCH] arm64: zynqmp: Start usb automatically via preboot on Kria

2025-04-10 Thread Michal Simek
From: Venkatesh Yadav Abbarapu U-Boot configures the USB config object which enables power for the IP, without this the linux usb driver won't work. So add "usb start" as part of preboot command. Fixes: dd4a82201694 ("arm64: zynqmp: Introduce kria SOM defconfig") Signed-off-by: Venkatesh Yadav A

Re: [PATCH 3/3] usb: gadget: introduce 'enabled' flag in struct usb_ep

2025-04-10 Thread Mattijs Korpershoek
Hi Stephan, Thank you for the patch. On lun., avril 07, 2025 at 16:59, Stephan Gerhold wrote: > f_acm calls usb_ep_disable(f_acm->ep_notify) unconditionally in > acm_start_ctrl(), even if the USB endpoint was never enabled before. This > causes crashes for some UDC drivers (e.g. ci_udc), becau

Re: [PATCH] mtd: spi-nor-core: Fixup SNOR_F_IO_MODE_EN_VOLATILE for MT35X

2025-04-10 Thread Prasanth Mantena
On 21:57, Kumar, Udit wrote: > Thanks for fix > > On 11/25/2024 4:19 PM, Prasanth Babu Mantena wrote: > > From: Vaishnav Achath > > > > MT35XU512ABA has only BFPT and 4-Byte Address Instruction Table > > in SFDP. commit bebdc237507c ("mtd: spi-nor: Parse SFDP SCCR Map") > > added checks in spi_

Re: [PATCH v2 1/8] power: regulator: Add a driver for the AXP PMIC drivevbus

2025-04-10 Thread Jernej Škrabec
Dne sreda, 9. april 2025 ob 02:20:29 Srednjeevropski poletni čas je Andre Przywara napisal(a): > From: Samuel Holland > > AXP PMICs have a pin which can either report the USB VBUS state, or > driving a regulator that supplies USB VBUS. Add a regulator driver for > controlling this pin. The selec

Re: [PATCH v2 3/8] phy: sun4i-usb: Control supplies via the regulator uclass

2025-04-10 Thread Jernej Škrabec
Dne sreda, 9. april 2025 ob 02:20:31 Srednjeevropski poletni čas je Andre Przywara napisal(a): > From: Samuel Holland > > The device tree binding for the PHY provides VBUS supplies as regulator > references. Now that all boards have the appropriate regulator uclass > drivers enabled, the PHY dri

Re: [PATCH 6/6] pinctrl: qcom: qcm2290: fix off by 1 in pin_count

2025-04-10 Thread Neil Armstrong
On 09/04/2025 19:17, Caleb Connolly wrote: There are 134 pins not 133, oops! This fixes the sdcard on the RB1 as the pins now all get configured correctly. Fixes: 0ecb8cfcb930 ("pinctrl: qcom: add qcm2290 pinctrl driver") Signed-off-by: Caleb Connolly --- drivers/pinctrl/qcom/pinctrl-qcm2290.

Re: [PATCH 5/6] mach-snapdragon: of_fixup: set dr_mode for RB1/2 boards

2025-04-10 Thread Neil Armstrong
On 09/04/2025 19:17, Caleb Connolly wrote: The RB1 and RB2 have a single USB controller which is manually muxed between a type-c port and an internal USB hub via a DIP switch. OTG is supported in Linux, but the DWC3 driver in U-Boot can only handle a single mode, and defaults to peripheral mode.

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

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

Re: [PATCH 3/6] mach-snapdragon: of_fixup: skip disabled USB nodes

2025-04-10 Thread Neil Armstrong
On 09/04/2025 19:17, Caleb Connolly wrote: There's no need to waste time fixing up nodes that aren't used on this device. Skip them. Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/of_fixup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-snapdragon/of_fixup.c

Re: [PATCH 4/6] clk/qcom: qcm2290: show clock name in set_rate()

2025-04-10 Thread Neil Armstrong
On 09/04/2025 19:17, Caleb Connolly wrote: The device name is always clk_qcom... Not very useful. Signed-off-by: Caleb Connolly --- drivers/clk/qcom/clock-qcm2290.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/clock-qcm2290.c b/drivers/clk/qcom/clock-q

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

2025-04-10 Thread Sumit Garg
On Wed, Apr 09, 2025 at 07:23:09PM +0200, Caleb Connolly wrote: > > > On 4/9/25 14:35, Sumit Garg wrote: > > 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 wrot

[PATCH 0/2] arm64: versal2: Enable boot from UFS and USB

2025-04-10 Thread Michal Simek
Hi, these two patches are wiring support for USB and UFS. It is still done via distro boot because we didn't switch our platforms to standard boot yet. But investigation is planned already. To bridge the gap between wire it via already available distro boot. Thanks, Michal Venkatesh Yadav Abbar

[PATCH 2/2] arm64: versal2: Add usb distro boot command

2025-04-10 Thread Michal Simek
From: Venkatesh Yadav Abbarapu Adding support for the usb distro boot command. Signed-off-by: Venkatesh Yadav Abbarapu Signed-off-by: Michal Simek --- include/configs/amd_versal2.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/amd_versal2.h b/include/configs/amd_

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

2025-04-10 Thread Michal Simek
On 4/8/25 16:14, Heinrich Schuchardt wrote: On 21.03.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 anywhere that's why extend fwu co

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

2025-04-10 Thread Sumit Garg
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 on RB1/RB2 although it should fix issues

[PATCH v2 0/2] RB1 fixes

2025-04-10 Thread Sumit Garg
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 a fix for USB PHY power on sequence which got broken by recent ad

[PATCH] xilinx: versal-net: Enable loading bitstreams via fpga

2025-04-10 Thread Michal Simek
Enable FPGA Xilinx interface and driver for loading bistreams. Signed-off-by: Michal Simek --- configs/xilinx_versal_net_virt_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/xilinx_versal_net_virt_defconfig b/configs/xilinx_versal_net_virt_defconfig index 49dc9bb5c4d3..

[PATCH 0/6] Update phyCORE-i.MX93 environment

2025-04-10 Thread Primoz Fiser
Update PHYTEC phyCORE-i.MX93 environment in mainline U-Boot with changes from the downstream fork to get back in sync. Leonard Anderweit (1): board: phycore-imx93: env: Move bootcmd from defconfig to env Martin Schwan (1): board: phycore-imx93: env: Add common RAUC boot logic Primoz Fiser (

[PATCH 2/6] board: phycore-imx93: env: Add optargs to environment

2025-04-10 Thread Primoz Fiser
Add the optargs variable so we can set optional arguments while booting. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec/phycore_imx93

Re: [PATCH 1/3] fastboot: lift restrictions on !NET_LWIP for USB

2025-04-10 Thread Mattijs Korpershoek
Hi, On Wed, 12 Mar 2025 08:36:55 +0100, Michael Walle wrote: > Fastboot works either over TCP, UDP or USB. The latter doesn't have > anything to do with networking, thus should work just fine with > regardless which network stack is selected. In practice, header symbols > are used inside common co

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

2025-04-10 Thread Sumit Garg
On Wed, Apr 09, 2025 at 07:17:24PM +0200, Caleb Connolly wrote: > OF_LIVE offers a variety of benefits, one of them being that the live > tree can be modified without caring about the underlying FDT. This is > particularly valuable for working around U-Boot limitations like lacking > USB superspeed

[PATCH 3/6] board: phycore-imx93: env: Add prepare_mcore to environment

2025-04-10 Thread Primoz Fiser
Add prepare_mcore script to environment to be able to notify Linux about the state of M33 core via the kernel cmdline by appending to ${optargs}. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 1 + 1 file changed, 1 insertion(+) diff --git a/board/phytec/phycore_

Re: [PATCH 0/4] usb: gadget: f_mass_storage: Fix crashes on low memory devices

2025-04-10 Thread Mattijs Korpershoek
Hi, On Fri, 28 Mar 2025 09:15:40 +0100, Mattijs Korpershoek wrote: > Zixun has reported an odd problem in [1]. > > He encountered a data abort on the 2nd "ums 0 mmc 0" command with > sam9x60-curiosity board: > > U-Boot> ums 0 mmc 0 > UMS: LUN 0, dev mmc 0, hwpart 0, sector 0x0, count 0x1d29000 >

Re: [PATCH] bootstd: android: avoid possible null pointer dereference

2025-04-10 Thread Mattijs Korpershoek
Hi, On Wed, 02 Apr 2025 16:42:19 +0200, Gary Bisson wrote: > - avb_slot_verify_data_free() doesn't check its data parameter > - out_data can be null if avb_slot_verify() fails to allocate memory > > Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu) [1/1] boot

Re: [PATCH 2/6] mach-snapdragon: use EVT_OF_LIVE_INIT to apply DT fixups

2025-04-10 Thread Sumit Garg
On Wed, Apr 09, 2025 at 07:17:25PM +0200, Caleb Connolly wrote: > This will now apply fixups prior to devices being bound, which makes it > possible to enable/disable devices and adjust more properties that might > be read before devices probe. > > Signed-off-by: Caleb Connolly > --- > arch/arm/

Re: [PATCH 3/6] mach-snapdragon: of_fixup: skip disabled USB nodes

2025-04-10 Thread Sumit Garg
On Wed, Apr 09, 2025 at 07:17:26PM +0200, Caleb Connolly wrote: > There's no need to waste time fixing up nodes that aren't used on this > device. Skip them. > > Signed-off-by: Caleb Connolly > --- > arch/arm/mach-snapdragon/of_fixup.c | 2 ++ > 1 file changed, 2 insertions(+) > Reviewed-by: Su

Re: [PATCH 4/6] clk/qcom: qcm2290: show clock name in set_rate()

2025-04-10 Thread Sumit Garg
On Wed, Apr 09, 2025 at 07:17:27PM +0200, Caleb Connolly wrote: > The device name is always clk_qcom... Not very useful. > > Signed-off-by: Caleb Connolly > --- > drivers/clk/qcom/clock-qcm2290.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Sumit Garg -Sumit > > diff

[PATCH] usb: onboard-hub: Fix return type for regulator APIs

2025-04-10 Thread Michal Simek
From: Padmarao Begari Apart from ENOENT observing return value as ENOSYS when !DM_REGULATOR that's why cover both configurations. Changed code is not working as operation should be "&&" not "||" (ret != -ENOENT && ret != -ENOSYS). Also fix the remove function where the regulator_set_enable_if_al

Re: [PATCH] usb: dwc3: gadget: Fix excepts/expects typo

2025-04-10 Thread Mattijs Korpershoek
Hi, On Mon, 24 Mar 2025 15:39:43 +0100, Marek Vasut wrote: > Fix the excepts typo to expects , no functional change. > > Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu) [1/1] usb: dwc3: gadget: Fix excepts/expects typo https://source.denx.de/u-boot/c

Re: [PATCH v2 2/2] phy: phy-qcom-qusb2: Fix USB PHY power on sequence

2025-04-10 Thread neil . armstrong
On 10/04/2025 10:00, Sumit Garg wrote: From: Sumit Garg Recent addition of support for SDM660 inadvertently broke USB PHY power on sequence on RB1/RB2 and others with following error: starting USB... Bus usb@4e0: QUSB2PHY pll lock failed: status reg = 0 qcom-qusb2-phy phy@1613000: PHY: Fai

Re: [PATCH v2 2/2] phy: phy-qcom-qusb2: Fix USB PHY power on sequence

2025-04-10 Thread neil . armstrong
On 10/04/2025 10:00, Sumit Garg wrote: From: Sumit Garg Recent addition of support for SDM660 inadvertently broke USB PHY power on sequence on RB1/RB2 and others with following error: starting USB... Bus usb@4e0: QUSB2PHY pll lock failed: status reg = 0 qcom-qusb2-phy phy@1613000: PHY: Fai

[PATCH 5/6] board: phycore-imx93: env: Move bootcmd from defconfig to env

2025-04-10 Thread Primoz Fiser
From: Leonard Anderweit Move the default bootcmd from the defconfig to the board environment in preparation for RAUC support. No change in functionality. Signed-off-by: Leonard Anderweit Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 9 + configs/imx93-

[PATCH 6/6] board: phycore-imx93: env: Add common RAUC boot logic

2025-04-10 Thread Primoz Fiser
From: Martin Schwan Add a common RAUC boot logic environment and make use of it in the i.MX93 environment. The RAUC boot logic is deactivated by default and can be activated by setting "doraucboot" to "1". Signed-off-by: Martin Schwan Reviewed-by: Leonard Anderweit Signed-off-by: Primoz Fiser

Re: [PATCH v2 24/30] adc: rockchip-saradc: Add support for RK3528

2025-04-10 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: The Successive Approximation ADC (SARADC) in RK3528 uses the v2 controller and support: - 10-bit resolution - Up to 1MS/s sampling rate - 4 single-ended input channels - Current consumption: 0.5mA @ 1MS/s Add support for the 4 channels of 10-bit resoluti

Re: [PATCH] usb: onboard-hub: Fix return type for regulator APIs

2025-04-10 Thread Marek Vasut
On 4/10/25 10:17 AM, Michal Simek wrote: From: Padmarao Begari Apart from ENOENT observing return value as ENOSYS when !DM_REGULATOR that's why cover both configurations. Changed code is not working as operation should be "&&" not "||" (ret != -ENOENT && ret != -ENOSYS). Also fix the remove fu

  1   2   3   >