[PATCH v3] stm32mp: Add tamp_nvram driver

2025-04-28 Thread Patrice Chotard
From: Simeon Marijon TAMP backup registers will be exposed as nvmem cells. Each registers ([0..127] for STM32MP2, [0..31] for STM32MP1) could be exposed as nvmem cells under the nvram node in device tree Signed-off-by: Simeon Marijon Signed-off-by: Patrice Chotard Reviewed-by: Patrick Delauna

Re: [PATCH] sunxi: enable MMU_PGPROT proper page table protection

2025-04-28 Thread Ilias Apalodimas
Thanks Andre On Sat, 26 Apr 2025 at 15:10, Andre Przywara wrote: > > Select the new MMU_PGPROT Kconfig symbol for all Allwinner board builds, > to use a write-protected .rodata, non-executable .data and .rodata > sections, and non-writable .text sections. > > This might trigger runtime exceptions

Re: [PATCH v2 2/2] efi_loader: fix typo initd_sz to initrd_sz

2025-04-28 Thread Ilias Apalodimas
On Mon, 28 Apr 2025 at 17:53, Adriano Cordova wrote: > > Signed-off-by: Adriano Cordova > --- > lib/efi_loader/efi_bootbin.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/efi_loader/efi_bootbin.c b/lib/efi_loader/efi_bootbin.c > index 6a189c31ffa..94ba7c5589b 1

Re: [PATCH v2 1/2] efi_loader: bootbin: do not load an initrd if none is provided

2025-04-28 Thread Ilias Apalodimas
On Mon, 28 Apr 2025 at 17:53, Adriano Cordova wrote: > > Do not try to create an initrd device path nor try to register > an initrd with the EFI_LOAD_FILE2_PROTOCOL if none is provided. > > Handle initrd installation in efi_binary_run_dp with > efi_install_initrd, imitating what is done for the fd

Re: [PATCH] arm: dts: k3: binman: Fix DM firmware selection

2025-04-28 Thread Francis, Neha
Hi Andrew On 4/26/2025 4:24 AM, Andrew Davis wrote: > Just like TF-A and OP-TEE, the documentation states a custom path for DM > can be provided at build time by setting TI_DM. This should then set > ti-dm-path which updates ti-dm node filenames in binman. > > Two issues prevent this from functio

Re: [PATCH 0/3] u-boot chain-loading LineageOS bootimg

2025-04-28 Thread george chan
Hi Casey, Thx for reply. Sorry for a bit long message for explain the problem. 在 2025年4月28日週一 21:53,Casey Connolly 寫道: > Hi George, > > Thanks a lot for the series, it's super exciting to see support for > booting Android on top of U-Boot :D > > On 4/27/25 13:25, George Chan via B4 Relay wrote:

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

2025-04-28 Thread Ng, Boon Khai
> -Original Message- > From: Tom Rini > Sent: Friday, 25 April, 2025 12:45 AM > To: Ng, Boon Khai > Cc: U-boot Openlist ; Jagan Teki > ; Michal Simek ; > Venkatesh Yadav Abbarapu ; Tejas Bhumkar > ; William Zhang > ; Hea, Kok Kiang > ; Maniyam, Dinesh > ; Chee, Tien Fong > ; Zamri, Muhamm

RE: [PATCH] net: fsl_enetc: fix imdio register calculation

2025-04-28 Thread Wei Fang
> > > With commit cc4e8af2c552, fsl_enetc register accessors have been > > > split to > > > > With 'commit cc4e8af2c552 ("net: fsl_enetc: Split register accessors")' > > > > > handle different register offsets on different SoCs. However, for > > > internal MDIO register calculation, only ENETC_PM_I

RE: [PATCH] drivers: spi: Fix data loss issue in QSPI

2025-04-28 Thread Chee, Tien Fong
> -Original Message- > From: Ravulapalli, Naresh Kumar > Sent: Friday, March 7, 2025 5:38 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Simon Goldschmidt > ; Chee, Tien Fong > ; Jagan Teki ; > Tom Rini ; Ravulapalli, Naresh Kumar > > Subject: [PATCH] drivers: spi: Fix data loss iss

[PATCH] common: board: fix build condition of noncached memory initcall

2025-04-28 Thread Weijie Gao
CONFIG_SYS_NONCACHED_MEMORY is defined as hex, not bool. It should be replaced with CONFIG_SYS_HAS_NONCACHED_MEMORY when switched from #ifdef to CONFIG_IS_ENABLED(). Fixes: 6c171f7a184 (common: board: make initcalls static) Signed-off-by: Weijie Gao --- common/board_r.c | 2 +- 1 file changed, 1

Re: [PATCH 1/2] include: env: ti: mmc.h: Find DTB files in dtb directory for AM57xx

2025-04-28 Thread Tom Rini
On Sat, Apr 26, 2025 at 08:00:44AM +0530, Kumar, Udit wrote: > > On 4/25/2025 12:19 PM, Neha Malcom Francis wrote: > > Hi Anurag > > > > On 25/04/25 11:04, Anurag Dutta wrote: > > > Add dtb/ to the DTB search path. > > > > > > Signed-off-by: Anurag Dutta > > > --- > > > include/env/ti/mmc.h |

Re: [PATCH v1 1/1] Initial support for Wiznet W5500

2025-04-28 Thread Tom Rini
On Fri, Apr 25, 2025 at 01:12:13AM +, Verdun, Jean-Marie wrote: > Hi Tom, > > WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? > #51: > new file mode 100644 > > CHECK: Avoid CamelCase: > #530: FILE: drivers/net/w5500.c:475: > + w5500_spi_write(dev, W5500_Sn_RXM

Re: [PATCH v3 09/17] cmd/cbsysinfo: Skip the CMOS 'option_table' when not present

2025-04-28 Thread Tom Rini
On Mon, Apr 28, 2025 at 12:24:16PM -0700, Stephen Boyd wrote: > The CMOS 'option_table' isn't populated on ARM devices running coreboot. > Check to see if the pointer is NULL and bail out if it is. > > Signed-off-by: Stephen Boyd Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP

Re: [PATCH v3 07/17] coreboot: Locate table earlier than arch_cpu_init()

2025-04-28 Thread Tom Rini
On Mon, Apr 28, 2025 at 12:24:14PM -0700, Stephen Boyd wrote: > Currently we locate the coreboot table in arch_cpu_init(). One of the > first things that happens in initcall_run_f() initialization is > fdtdec_setup() is called which could inspect the DTB for memory > information (see mach-snapdrag

Re: [PATCH v3 06/17] coreboot: Move coreboot logic out of x86 to a generic place

2025-04-28 Thread Tom Rini
On Mon, Apr 28, 2025 at 12:24:13PM -0700, Stephen Boyd wrote: > Lay the groundwork to run U-Boot as a payload on ARM coreboot based > devices. Move the coreboot table parsing code out of arch/x86 into > lib/coreboot. The headers like cb_sysinfo.h and coreboot_tables.h need > to be globally accessi

Re: [PATCH v3 14/17] coreboot: Move timestamp parsing to generic place

2025-04-28 Thread Tom Rini
On Mon, Apr 28, 2025 at 12:24:21PM -0700, Stephen Boyd wrote: > Move the timestamp code out of x86/cpu/coreboot to lib/coreboot and make > it generic. This lets us migrate the timestamp table from coreboot into > U-Boot's version of boot stage timing and use it on ARM based devices. > --- You mis

Fwd: New Defects reported by Coverity Scan for Das U-Boot

2025-04-28 Thread Tom Rini
Hey all, Here's the latest set of Coverity defects. Please let me know if some of these are false positives for example, thanks. -- Forwarded message - From: Date: Mon, Apr 28, 2025 at 3:52 PM Subject: New Defects reported by Coverity Scan for Das U-Boot To: Hi, Please find t

Missing UTHREAD doc annotations

2025-04-28 Thread Tom Rini
Hey, As part of manually building the docs before doing -rc1, I saw the following: ./include/uthread.h:56: warning: cannot understand function prototype: 'enum uthread_mutex_state ' ./include/uthread.h:64: warning: cannot understand function prototype: 'struct uthread_mutex ' ./include/uthread.h:5

[ANN] U-Boot v2025.07-rc1 released

2025-04-28 Thread Tom Rini
Hey all, So it's release day and I have tagged and pushed things out. Looking at my own TODO list, I think it's in reasonable shape. I do think there's a few other pull requests that need to happen still and I am optimistic will come shortly (but I've not reached out to anyone in particular). If t

Re: [PATCH] mtd: mtdparts: calculate mtd partition offset before calculating size

2025-04-28 Thread Tom Rini
On Fri, 25 Apr 2025 11:43:03 +0800, Weijie Gao wrote: > The mtd partition offset must be calculated first as it will be > referenced when calculating the mtd partition size. > > Applied to u-boot/master, thanks! [1/1] mtd: mtdparts: calculate mtd partition offset before calculating size

Re: [PATCH] mkimage: fix option parsing segfault

2025-04-28 Thread Tom Rini
On Thu, 24 Apr 2025 17:08:19 +0200, Carlos López wrote: > getopt_long() expects a NULL-terminated list of structures. The current > list in mkimage does not have a zero-filled structure at the end, which > can cause getopt_long() to walk past the end of the array when passing > an unknown option,

Re: [PATCH] lmb: use a different bit position for LMB_NOMAP

2025-04-28 Thread Tom Rini
On Wed, 23 Apr 2025 17:01:23 +0530, Sughosh Ganu wrote: > The LMB memory region attributes flags are used to specify the > behaviour of the memory regions with respect to allocations -- for > e.g. it is allowed to re-allocate a memory region already reserved > with the LMB_NONE flag. The flags use

Re: [PATCH] cmd: Kconfig: Fix typos

2025-04-28 Thread Tom Rini
On Sun, 20 Apr 2025 16:12:10 +0800, Aristo Chen wrote: > fix the following typos > - from "categorys" to "categories" > - from "indivdually" to "individually" > > Applied to u-boot/master, thanks! [1/1] cmd: Kconfig: Fix typos commit: 1c07d22ebee96ae9c113f5674c3c134a899426ff -- Tom

Re: [PATCH] cros_ec_sandbox.c: Drop spi.h include

2025-04-28 Thread Tom Rini
On Thu, 17 Apr 2025 07:56:15 -0600, Tom Rini wrote: > As this driver needs to use the special sandbox header > rather than normal malloc, it must be careful of the includes it brings > in. It does not need for anything, so drop it. > > Applied to u-boot/master, thanks! [1/1] cros_ec_sandbox.

Re: [PATCH] net: ti: am65-cpsw-nuss: invoke phy_config() in driver's .start callback

2025-04-28 Thread Tom Rini
On Wed, 16 Apr 2025 18:26:43 +0530, Siddharth Vadapalli wrote: > Currently, the phy_config() API is invoked by the driver only once since it > has been probed. While this works in general, it doesn't allow the driver > to bring the PHY back to its default reset state. As a result, the driver > mig

Re: [PATCH 0/6] Apple RTKit improvements

2025-04-28 Thread Tom Rini
On Sun, 20 Apr 2025 13:58:02 +0200, Mark Kettenis wrote: > This is a collection of improvements for the Apple RTKit code > that we have been carrying downstream for some time now. > > Hector Martin (6): > arm: apple: rtkit: Add support for AP power & syslogs > arm: apple: rtkit: Add default b

[PATCH v3 16/17] cmd: ximg: Support LZO compressed images

2025-04-28 Thread Stephen Boyd
Add support to decompress LZO images. Reviewed-by: Tom Rini Signed-off-by: Stephen Boyd --- cmd/ximg.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/cmd/ximg.c b/cmd/ximg.c index 29d7c3279b39..a6341a078019 100644 --- a/cmd/ximg.c +++ b/cmd/ximg.c @@ -14,6 +14,9 @@ #inclu

[PATCH v3 17/17] cmd: ximg: Support LZ4 compressed images

2025-04-28 Thread Stephen Boyd
Add support to decompress LZ4 images. LZ4 is used on more recent Chromebooks to store the FIT image. Reviewed-by: Tom Rini Signed-off-by: Stephen Boyd --- cmd/ximg.c | 13 + 1 file changed, 13 insertions(+) diff --git a/cmd/ximg.c b/cmd/ximg.c index a6341a078019..eed66c776d12 10064

[PATCH v3 15/17] mach-snapdragon: Support booting as a coreboot payload

2025-04-28 Thread Stephen Boyd
Coreboot sets up the DRAM, CPU, and devices before booting a payload, meaning we can parse the coreboot tables at boot for memory info when running as a payload. Use the memory descriptors from coreboot if the tables are present so that Snapdragon SoCs can run U-boot as a coreboot payload. Reviewe

[PATCH v3 14/17] coreboot: Move timestamp parsing to generic place

2025-04-28 Thread Stephen Boyd
Move the timestamp code out of x86/cpu/coreboot to lib/coreboot and make it generic. This lets us migrate the timestamp table from coreboot into U-Boot's version of boot stage timing and use it on ARM based devices. --- arch/x86/cpu/coreboot/Makefile | 1 - arch/x86/cpu/coreb

[PATCH v3 13/17] coreboot: Add /firmware/coreboot node to DT

2025-04-28 Thread Stephen Boyd
Populate the firmware node with a coreboot node detailing where the coreboot tables and CBMEM area are located. Signed-off-by: Stephen Boyd --- boot/image-fdt.c | 4 ++ include/cb_sysinfo.h | 7 +++ lib/coreboot/cb_sysinfo.c | 120 ++ 3 files

[PATCH v3 12/17] pstore: Add pstore address from coreboot tables

2025-04-28 Thread Stephen Boyd
Set the pstore address and size based on the coreboot tables if the coreboot tables are populated. Signed-off-by: Stephen Boyd --- cmd/pstore.c | 44 +++- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/cmd/pstore.c b/cmd/pstore.c index 9795

[PATCH v3 11/17] coreboot: Parse sku_id/fw_config from coreboot tables

2025-04-28 Thread Stephen Boyd
The SKU ID is part of the coreboot tables. Historically, it was under the coreboot tag for sku_id specifically, but modern coreboot versions have put all the ID values together in one entry CB_TAG_BOARD_CONFIG along with fw_config. Parse that tag to populate the sku_id and fw_config fields. Signed

[PATCH v3 10/17] cmd/cbsysinfo: Allow on ARM as well

2025-04-28 Thread Stephen Boyd
This command isn't x86 specific. Move it up one level so that it can be used on a platform that can find the coreboot table, i.e. x86 or ARM. Reviewed-by: Tom Rini Signed-off-by: Stephen Boyd --- cmd/Kconfig | 4 ++-- cmd/Makefile | 1 + cmd/{x86 => }/cbsysinfo.c | 0

[PATCH v3 09/17] cmd/cbsysinfo: Skip the CMOS 'option_table' when not present

2025-04-28 Thread Stephen Boyd
The CMOS 'option_table' isn't populated on ARM devices running coreboot. Check to see if the pointer is NULL and bail out if it is. Signed-off-by: Stephen Boyd --- cmd/x86/cbsysinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/x86/cbsysinfo.c b/cmd/x86/cbsysinfo.c in

[PATCH v3 08/17] arm: Support running U-Boot as a coreboot payload on ARM64

2025-04-28 Thread Stephen Boyd
Add a 'coreboot' cpu to armv8 that looks for the coreboot table near the top of the 4G address space. Reviewed-by: Tom Rini Signed-off-by: Stephen Boyd --- arch/arm/cpu/armv8/Makefile | 1 + arch/arm/cpu/armv8/coreboot/Makefile | 4 arch/arm/cpu/armv8/coreboot/cpu.c| 22

[PATCH v3 07/17] coreboot: Locate table earlier than arch_cpu_init()

2025-04-28 Thread Stephen Boyd
Currently we locate the coreboot table in arch_cpu_init(). One of the first things that happens in initcall_run_f() initialization is fdtdec_setup() is called which could inspect the DTB for memory information (see mach-snapdragon's board_fdt_blob_setup() code). Introduce an initcall specifically t

[PATCH v3 05/17] spi: Add Qualcomm GENI SPI driver

2025-04-28 Thread Stephen Boyd
Add a SPI driver for Qualcomm's GENI hardware. Signed-off-by: Stephen Boyd --- drivers/spi/Kconfig | 10 + drivers/spi/Makefile| 1 + drivers/spi/spi-geni-qcom.c | 545 3 files changed, 556 insertions(+) create mode 100644 drivers/spi/spi-

[PATCH v3 06/17] coreboot: Move coreboot logic out of x86 to a generic place

2025-04-28 Thread Stephen Boyd
Lay the groundwork to run U-Boot as a payload on ARM coreboot based devices. Move the coreboot table parsing code out of arch/x86 into lib/coreboot. The headers like cb_sysinfo.h and coreboot_tables.h need to be globally accessible, so move them into the top level include directory. Introduce helpe

[PATCH v3 04/17] pinctrl: qcom: Add driver for sc7180

2025-04-28 Thread Stephen Boyd
Add a driver for Qualcomm's sc7180 pinctrl device (TLMM). This is largely a copy of a similar driver in U-Boot along with reference to the Linux driver to fix up the data properly. Signed-off-by: Stephen Boyd --- drivers/pinctrl/qcom/Kconfig | 8 ++ drivers/pinctrl/qcom/Makefile

[PATCH v3 03/17] clk/stub: add sc7180-rpmh clock

2025-04-28 Thread Stephen Boyd
Stub the RPMh clock controller on SC7180 Signed-off-by: Stephen Boyd --- drivers/clk/clk-stub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c index 5f5aca41d5b3..23670c2f4425 100644 --- a/drivers/clk/clk-stub.c +++ b/drivers/clk/clk-stub.c @@

[PATCH v3 02/17] clk: qcom: Add driver for sc7180

2025-04-28 Thread Stephen Boyd
The clks are already configured properly by coreboot on sc7180, but this is good enough to make the MMC and USB drivers work. Reviewed-by: Neil Armstrong Signed-off-by: Stephen Boyd --- drivers/clk/qcom/Kconfig| 8 ++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clock-sc7

[PATCH v3 00/17] Support to run U-Boot on sc7180 Trogdor Chromebooks

2025-04-28 Thread Stephen Boyd
This series supports running U-Boot as a payload on sc7180 Trogdor Chromebooks like Lazor or Wormdingler. This is a jumble of different patches to get to the final goal of booting a Linux distro from the eMMC on Lazor. I'm able to boot Fedora Workstation 41 from a USB stick on my Lazor. I moved th

[PATCH v3 01/17] bootstd: cros: Return negative error code

2025-04-28 Thread Stephen Boyd
This should be negative EFAULT to indicate an error code. Reviewed-by: Simon Glass Signed-off-by: Stephen Boyd --- boot/bootmeth_cros.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/bootmeth_cros.c b/boot/bootmeth_cros.c index c7b862e512a0..d4c4ed328bd0 100644 --- a/b

Re: Pull request: u-boot-sunxi/master for v2025.07

2025-04-28 Thread Tom Rini
On Mon, Apr 28, 2025 at 04:09:07PM +0100, Andre Przywara wrote: > Hi Tom, > > please pull the sunxi/master branch, containing changes for the second > part of this cycle's sunxi updates. > > We have improvements to the reliability of H6 and H616 DRAM > initialisation, hopefully avoiding those oc

Re: [GIT PULL] Please pull u-boot-imx-master-20250428

2025-04-28 Thread Tom Rini
On Mon, 28 Apr 2025 13:06:52 -0300, Fabio Estevam wrote: > Please pull from u-boot-imx/master, thanks. > > The following changes since commit 10f48365112b164bee6564033ab682747efcb483: > > Merge patch series "Add PCIe support for TI AM64 SoC" (2025-04-24 10:46:17 > -0600) > > are available in

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

2025-04-28 Thread Tom Rini
On Mon, 31 Mar 2025 15:40:09 -0700, Raymond Mao wrote: > 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 o

Re: [PULL] Pull request for u-boot master / v2025.07 = u-boot-stm32-20250428

2025-04-28 Thread Tom Rini
On Mon, 28 Apr 2025 15:35:03 +0200, Patrice CHOTARD wrote: > Please pull the STM32 related patches for u-boot/master, v2025.07 = > u-boot-stm32-20250428 > > CI status: > https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/25970 > > > The follow

Re: [PATCH v5 9/9] doc: ti: am62: add falcon mode documentation

2025-04-28 Thread Tom Rini
On Mon, Apr 28, 2025 at 11:44:06AM +0530, Anshul Dalal wrote: > On Fri Apr 25, 2025 at 11:35 PM IST, Tom Rini wrote: > > On Fri, Apr 25, 2025 at 08:26:40PM +0530, Anshul Dalal wrote: > >> This patch adds user documentation for falcon boot for am62 platforms. > >> The main section is added to am62x_

Re: [PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-28 Thread Tom Rini
On Mon, Apr 28, 2025 at 02:07:57PM +0800, Aristo Chen wrote: > Currently, when decompressing a gzip-compressed image during bootm, a > generic error such as "inflate() returned -5" is shown when the buffer is > too small. However, it is not immediately clear that this is caused by > CONFIG_SYS_BOO

Re: [PATCH v3 00/22] passage: Define a standard for firmware data flow

2025-04-28 Thread Raymond Mao
Hi Simon, On Thu, 17 Apr 2025 at 14:16, Simon Glass wrote: > > > This series adds a standard way of passing information between different > firmware phases. This already exists in U-Boot at a very basic level, in > the form of a bloblist containing an spl_handoff structure, but the intent > here

Re: [PATCH v2 01/13] ARM: dts: sti: convert stih410-b2260 board to OF_UPSTREAM

2025-04-28 Thread Patrice CHOTARD
On 4/22/25 15:12, Patrice Chotard wrote: > Enable OF_UPSTREAM flag for stih410-b2260 board. > > Signed-off-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > --- > > (no changes since v1) > > arch/arm/dts/Makefile |2 - > arch/arm/dts/st-pincfg.h

[PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-28 Thread Aristo Chen
Currently, when decompressing a gzip-compressed image during bootm, a generic error such as "inflate() returned -5" is shown when the buffer is too small. However, it is not immediately clear that this is caused by CONFIG_SYS_BOOTM_LEN being too small. This patch improves error handling by: - Dete

Re: [PATCH 0/3] board: dragonboard410c: More fixes for U-Boot v2025.07

2025-04-28 Thread Casey Connolly
On 4/17/25 15:49, Stephan Gerhold wrote: Fix some more issues in the U-Boot configuration for the DragonBoard 410c that I noticed when testing the current master branch after the recent changes were merged. Ideally these should go as fixes into v2025.07. Thanks, I'll pick these up and send a

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

2025-04-28 Thread Casey Connolly
On 4/10/25 14:02, Varadarajan Narayanan wrote: Add SYSRESET_EDL to sysreset_t and handle the different SYSRESET_xxx requests in sysreset_qcom-psci.c. To be honest, I'm not really excited about this. Copying the entire PSCI reset code and polluting the global sysreset reason enum with entire

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

2025-04-28 Thread Casey Connolly
Hi Varadarajan, Please rebase on U-Boot master. On 4/10/25 14:02, Varadarajan Narayanan wrote: 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 dupl

Re: [PATCH 0/3] u-boot chain-loading LineageOS bootimg

2025-04-28 Thread Casey Connolly
Hi George, Thanks a lot for the series, it's super exciting to see support for booting Android on top of U-Boot :D On 4/27/25 13:25, George Chan via B4 Relay wrote: This is a series of patches to enable chainloading LineageOS on qcom SOC. First patch is to workaround kernel/ramdisk invalid a

[PATCH v4 6/6] ARM: dts: at91: sam9x60-curiosity: Enable watchdog node

2025-04-28 Thread Zixun LI
Enable watchdog node on SAM9X60-Curiosity board. A default timeout of 16s is added which is the maximum supported value, also matching Linux driver's behavior. Signed-off-by: Zixun LI --- arch/arm/dts/at91-sam9x60_curiosity-u-boot.dtsi | 4 arch/arm/dts/at91-sam9x60_curiosity.dts |

[PATCH v4 5/6] ARM: dts: sam9x60: Add watchdog DT node

2025-04-28 Thread Zixun LI
Add the watchdog timer node for the sam9x60 SoC's. Signed-off-by: Zixun LI --- arch/arm/dts/sam9x60.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60.dtsi index 7631dfaa07fc1e7c605c70840da1196c1daeb638..79449042c24f90686613f0082f40

[PATCH v4 4/6] watchdog: at91sam9_wdt: Add SAM9X60 support

2025-04-28 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 which is the same as existing SAM9260. Signed-off-by: Zixun LI --- arch/

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

2025-04-28 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 dab7

[PATCH v4 2/6] arm: at91: wdt: Rename regval in priv data to mr

2025-04-28 Thread Zixun LI
Use the name "mr" since we are referring to timer mode register. Signed-off-by: Zixun LI --- arch/arm/mach-at91/include/mach/at91_wdt.h | 2 +- drivers/watchdog/at91sam9_wdt.c| 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-at91/include/mach/

[PATCH v4 1/6] arm: at91: wdt: Remove at91_wdt struct

2025-04-28 Thread Zixun LI
at91_wdt struct is only used by spl, remove this reference and the struct itself. Signed-off-by: Zixun LI --- arch/arm/mach-at91/include/mach/at91_wdt.h | 6 -- arch/arm/mach-at91/spl.c | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/arm/mach-at

[PATCH v4 0/6] watchdog: at91sam9_wdt driver enhancement

2025-04-28 Thread Zixun LI
This patch series includes some code refactor and adds new device support for at91sam9_wdt driver. Instead of add a new driver like Linux kernel, at91sam9_wdt driver is extended as new watchdog variant is similar to existing one, especially for the function subset used by u-boot. 1. Remove typede

[PATCH v3 6/6] ARM: dts: at91: sam9x60-curiosity: Enable watchdog node

2025-04-28 Thread Zixun LI
Enable watchdog node on SAM9X60-Curiosity board. 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 1c7f0fa6a49004943e5a4ac6637db5e80

[PATCH v3 4/6] watchdog: at91sam9_wdt: Add SAM9X60 support

2025-04-28 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 which is the same as existing SAM9260. Signed-off-by: Zixun LI --- arch/

[PATCH v3 5/6] ARM: dts: sam9x60: Add watchdog DT node

2025-04-28 Thread Zixun LI
Add the watchdog timer node for the sam9x60 SoC's. A default timeout of 16s is added which is the maximum supported value, also matching Linux driver's behavior. Signed-off-by: Zixun LI --- arch/arm/dts/sam9x60.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/sam9x

[PATCH v3 2/6] arm: at91: wdt: Rename regval in priv data to mr

2025-04-28 Thread Zixun LI
Use the name "mr" since we are referring to timer mode register. Signed-off-by: Zixun LI --- arch/arm/mach-at91/include/mach/at91_wdt.h | 2 +- drivers/watchdog/at91sam9_wdt.c| 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-at91/include/mach/

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

2025-04-28 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 dab7

[PATCH v3 1/6] arm: at91: wdt: Remove at91_wdt struct

2025-04-28 Thread Zixun LI
at91_wdt struct is only used by spl, remove this reference and the struct itself. Signed-off-by: Zixun LI --- arch/arm/mach-at91/include/mach/at91_wdt.h | 6 -- arch/arm/mach-at91/spl.c | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/arm/mach-at

[PATCH v3 0/6] watchdog: at91sam9_wdt driver enhancement

2025-04-28 Thread Zixun LI
This patch series includes some code refactor and adds new device support for at91sam9_wdt driver. Instead of add a new driver like Linux kernel, at91sam9_wdt driver is extended as new watchdog variant is similar to existing one, especially for the function subset used by u-boot. 1. Remove typede

Re: [PATCH] imx: mx51evk: drop Stefano Babic from MAINTAINERS

2025-04-28 Thread Fabio Estevam
On Sun, Apr 13, 2025 at 8:01 AM Stefano Babic wrote: > > I haven't anymore the MX51EVK board. > > Signed-off-by: Stefano Babic Applied, thanks.

Re: [PATCH] MAINTAINERS: Update email of Stefano Babic

2025-04-28 Thread Fabio Estevam
On Sun, Apr 13, 2025 at 10:47 AM Stefano Babic wrote: > > Replace my old e-mail with the current one to get still involved in the > project. > > Signed-off-by: Stefano Babic Applied, thanks.

Re: [PATCH 0/2] power-domain: Enable uclass refcounting

2025-04-28 Thread Fabio Estevam
On Fri, Apr 25, 2025 at 11:09 AM Miquel Raynal wrote: > > On one side we have a power domain uclass which is mostly clueless about > the topology of the power domains it manages. > > On the other side we have SoCs which are getting more and more complex, > ie. with several layers of power domains.

Re: [PATCH] clk: imx: Pass CCM udevice into clk_register_composite()

2025-04-28 Thread Fabio Estevam
On Sun, Apr 27, 2025 at 12:40 PM Marek Vasut wrote: > > Pass the clock controller udevice into clk_register_composite(), > so it can be passed further to any registered composite clocks > and used for look up of parent clock referenced in DT "clocks" > and "clock-names" properties by phandle and n

Re: [PATCH 3/3] board: phytec: phycore_am62ax: Update Environment

2025-04-28 Thread Tom Rini
On Mon, Apr 28, 2025 at 07:49:04AM -0700, Daniel Schultz wrote: > Add fit_addr_r to the environment to allow us to boot from a FIT image. > > Increase the maximum Image size from 23 MB to 26 MB by moving the > initramfs start address up. This gives us a bigger ranger to > provide kernel images wh

Re: [PATCH v2 0/5] Updates for the siemens cxg3 for 2025.07

2025-04-28 Thread Fabio Estevam
On Mon, Apr 28, 2025 at 2:29 AM Heiko Schocher wrote: > > > some small updates for the cxg3 board: > > - collect common Kconfig options in an include file, which > makes syncing downstream defconfig files easier > - Move the U-Boot Environment setttings in a txt file > - minor defconfig updates

Re: [PATCH] arm64: dts: imx8mm: Make osc_32k available in SPL

2025-04-28 Thread Fabio Estevam
On Fri, Apr 25, 2025 at 2:39 PM Fabio Estevam wrote: > > From: Fabio Estevam > > Since commit b4734c9c333b ("clk: imx: Convert clock-osc-* back to osc_*") > SPL takes a long time to load U-Boot proper on an imx8mm-evk board. > > The reason for the long delay is because the osc_32k clock is not av

Re: [PATCH v1] toradex: tdx-cfg-block: fix verdin imx95 sku 0089 pid4

2025-04-28 Thread Fabio Estevam
On Thu, Apr 24, 2025 at 5:29 AM Emanuele Ghidoli wrote: > > The memory size of the 0089 SKU is 8 GB instead of 16 GB. > Fix PID4 0089 Verdin iMX95 definition, in the configuration block. > > Fixes: ce53f46f33b4 ("toradex: tdx-cfg-block: add verdin imx95 sku 0089 pid4") > Signed-off-by: Emanuele Gh

Re: [PATCH] clk: imx: Finish converting clock-osc-24 back to osc_24

2025-04-28 Thread Fabio Estevam
On Wed, Apr 16, 2025 at 7:12 PM Adam Ford wrote: > > The UART clocks were added around the same time some other clock > updates were happening, so converting clock-osc-24 back to osc_24 > was missed on the UART clocks for imx8mm and imx8mn, so update > them here. > > Fixes: b4734c9c333b ("clk: imx

[GIT PULL] Please pull u-boot-imx-master-20250428

2025-04-28 Thread Fabio Estevam
.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-master-20250428 for you to fetch changes up to ef41a9f01d20e9209942db4a679ab89b80bb876c: siemens: imx8qxp: remove unused config file (2025-04-28 10:46:12 -0300) u-boot-imx-master-20250428 -- CI: https://source.denx

Re: [PATCH 1/2] bootstd: Add implementation for bootmeth rauc

2025-04-28 Thread Tom Rini
On Mon, Apr 28, 2025 at 08:25:37AM +, Martin Schwan wrote: > Hi Simon, > Hi Tom, > > On Fri, 2025-04-25 at 10:19 -0600, Tom Rini wrote: > > On Fri, Apr 25, 2025 at 09:03:17AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 25 Apr 2025 at 08:37, Tom Rini wrote: > > > > > > > > On

Re: [PATCH] arm: dts: k3: binman: Fix DM firmware selection

2025-04-28 Thread Andrew Davis
On 4/28/25 8:36 AM, Bryan Brattlof wrote: On April 25, 2025 thus sayeth Andrew Davis: Just like TF-A and OP-TEE, the documentation states a custom path for DM can be provided at build time by setting TI_DM. This should then set ti-dm-path which updates ti-dm node filenames in binman. Two issues

Pull request: u-boot-sunxi/master for v2025.07

2025-04-28 Thread Andre Przywara
Hi Tom, please pull the sunxi/master branch, containing changes for the second part of this cycle's sunxi updates. We have improvements to the reliability of H6 and H616 DRAM initialisation, hopefully avoiding those occasional size misdetections many people reported before. Also there is some mod

Re: [PATCH] efi_loader: bootbin: do not load an initrd if none is provided

2025-04-28 Thread Adriano Cordova Fedeli
Thanks, I updated the patch and split it into two On Mon, 28 Apr 2025 at 10:32, Ilias Apalodimas wrote: > Hi Adriano, > > On Mon, 28 Apr 2025 at 02:45, Adriano Cordova wrote: > > > > Do not try to create an initrd device path nor try to register > > an initrd with the EFI_LOAD_FILE2_PROTOCOL if

[PATCH v2 2/2] efi_loader: fix typo initd_sz to initrd_sz

2025-04-28 Thread Adriano Cordova
Signed-off-by: Adriano Cordova --- lib/efi_loader/efi_bootbin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_bootbin.c b/lib/efi_loader/efi_bootbin.c index 6a189c31ffa..94ba7c5589b 100644 --- a/lib/efi_loader/efi_bootbin.c +++ b/lib/efi_loader/efi_boo

[PATCH v2 1/2] efi_loader: bootbin: do not load an initrd if none is provided

2025-04-28 Thread Adriano Cordova
Do not try to create an initrd device path nor try to register an initrd with the EFI_LOAD_FILE2_PROTOCOL if none is provided. Handle initrd installation in efi_binary_run_dp with efi_install_initrd, imitating what is done for the fdt. Fixes: 36835a9105c ("efi_loader: binary_run: register an init

[PATCH v2 0/2] Fix initrd loading in efi_bootbin.

2025-04-28 Thread Adriano Cordova
This series consists on a couple of fixes for initrd loading when booting an EFI binary. First patch fixes 36835a9105c ("efi_loader: binary_run: register an initrd"), second one fixes a small typo on efi_binary_run_dp. Patches are sent together as the typo propagates to the first patch. Adriano Co

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

2025-04-28 Thread Raymond Mao
Hi Tom, Can we merge this series into master? Actually my below OP-TEE patches depend on this for merging to allow testing firmware handoff on QEMU v8 through TF-A, OP-TEE, U-Boot to Kernel. https://github.com/OP-TEE/build/pull/821 https://github.com/OP-TEE/optee_test/pull/788 https://github.com/O

Re: [PATCH 1/2] Makefile: Strip leading spaces when preprocessing generated_defconfig

2025-04-28 Thread Tom Rini
On Mon, Apr 28, 2025 at 03:57:27AM +, Yao Zi wrote: > On Sun, Apr 27, 2025 at 10:16:27AM -0600, Tom Rini wrote: > > On Sun, Apr 27, 2025 at 03:46:56PM +, Yao Zi wrote: > > > On Sun, Apr 27, 2025 at 05:19:04PM +0200, Heinrich Schuchardt wrote: > > > > Am 27. April 2025 16:50:10 MESZ schrieb

[PATCH 3/3] board: phytec: phycore_am62ax: Update Environment

2025-04-28 Thread Daniel Schultz
Add fit_addr_r to the environment to allow us to boot from a FIT image. Increase the maximum Image size from 23 MB to 26 MB by moving the initramfs start address up. This gives us a bigger ranger to provide kernel images which are not stripped down too much. Signed-off-by: Daniel Schultz --- bo

[PATCH 2/3] include: env: phytec: k3_net: Use get_cmd

2025-04-28 Thread Daniel Schultz
'net_fetch_cmd' is not defined by the K3 board files. They use the more common 'get_cmd' from NXP products. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_net.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/env/phytec/k3_net.env b/include/env/phytec/k

[PATCH 1/3] include: env: phytec: k3_net: Remove net_apply_extensions

2025-04-28 Thread Daniel Schultz
Extensions are now handled by the board-code. Remove this non-existing function to proper boot from network. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_net.env | 1 - 1 file changed, 1 deletion(-) diff --git a/include/env/phytec/k3_net.env b/include/env/phytec/k3_net.env index 8ad1

Re: [PATCH] efi_loader: bootbin: do not load an initrd if none is provided

2025-04-28 Thread Ilias Apalodimas
Hi Adriano, On Mon, 28 Apr 2025 at 02:45, Adriano Cordova wrote: > > Do not try to create an initrd device path nor try to register > an initrd with the EFI_LOAD_FILE2_PROTOCOL if none is provided. > > Handle initrd installation in efi_binary_run_dp with > efi_install_initrd, imitating what is do

Re: [PATCH] net: fsl_enetc: fix imdio register calculation

2025-04-28 Thread Vladimir Oltean
On Mon, Apr 28, 2025 at 12:06:28PM +0200, Michael Walle wrote: > [+ Vladimir] > > Hi, > > nice catch! > > > With commit cc4e8af2c552, fsl_enetc register accessors have been split to > > With 'commit cc4e8af2c552 ("net: fsl_enetc: Split register accessors")' > > > handle different register offs

[PATCH v6 9/9] doc: ti: am62: add falcon mode documentation

2025-04-28 Thread Anshul Dalal
This patch adds user documentation for falcon boot for am62 platforms. The main section is added to am62x_sk.rst and other documents just include the section. Steps to build falcon support, usage and the modified R5 memory map have been documented. Two svg images have also been added for reference

[PATCH v6 8/9] Makefile: update tispl regex to also clean falcon spl

2025-04-28 Thread Anshul Dalal
Build for A53 on am62 platforms now generates tispl_falcon.bin alongside tispl.bin, edit the regex for `make clean` so that both files are removed. Signed-off-by: Anshul Dalal --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e83672b1823..

[PATCH v6 7/9] mach-k3: common: enable falcon mode for 62 platform

2025-04-28 Thread Anshul Dalal
We use the spl_board_prepare_for_boot hook to call k3_falcon_prep which is ran after tispl is loaded but before jump_to_image. In here, we find the boot media and load the image just as std falcon flow (since spl_start_uboot returns 0 now). Once the kernel and args are loaded, we perform fdt fixup

[PATCH v6 6/9] board: ti: add default dtb for am62 in falcon mode

2025-04-28 Thread Anshul Dalal
The SPL_FS_LOAD_ARGS_NAME config is used for the arguments to the kernel (dtb in our case) in falcon boot. Setting it in board specific Kconfig allows us to reuse the same config fragment 'am62x_r5_falcon.config' for all 3 platforms for enabling falcon boot. Signed-off-by: Anshul Dalal --- boar

[PATCH v6 5/9] config: add falcon boot config fragment for am62x

2025-04-28 Thread Anshul Dalal
This fragment enables falcon boot for the am62x, 62a and 62p. To have enough stack and heap space for loading kernel image as FIT the memory map was modified by expanding stack + heap size, the PRELOADED_BL33_BASE in ATF has to also be updated to 0x8200 since the kernel requires to be loaded a

  1   2   >