[PATCH] cmd: efidebug: check pointer after memory allocation

2024-01-11 Thread Heinrich Schuchardt
After calling efi_alloc() we must check that the return value is not NULL. Fixes: f01c961ee34c ("cmd: efidebug: add uri device path") Addresses-Coverity-ID: 477185 Dereference null return value Signed-off-by: Heinrich Schuchardt --- cmd/efidebug.c | 4 1 file changed, 4 insertions(+) diff

Re: [PATCH] arm64: xilinx: Move address/size-cells to proper locations

2024-01-11 Thread Michal Simek
On 1/11/24 09:18, Krzysztof Kozlowski wrote: On 11/01/2024 09:10, Michal Simek wrote: On 1/11/24 08:56, Krzysztof Kozlowski wrote: On 11/01/2024 08:09, Michal Simek wrote: On 1/10/24 22:27, Krzysztof Kozlowski wrote: On 10/01/2024 14:35, Michal Simek wrote: Move cells to board dtsi

Re: [PATCH] arm64: xilinx: Move address/size-cells to proper locations

2024-01-11 Thread Krzysztof Kozlowski
On 11/01/2024 09:48, Michal Simek wrote: > > > On 1/11/24 09:18, Krzysztof Kozlowski wrote: >> On 11/01/2024 09:10, Michal Simek wrote: >>> >>> >>> On 1/11/24 08:56, Krzysztof Kozlowski wrote: On 11/01/2024 08:09, Michal Simek wrote: > > > On 1/10/24 22:27, Krzysztof Kozlowski

[PATCH] board: phytec: fix link error when disabling PHYTEC_SOM_DETECTION

2024-01-11 Thread Yannic Moog
mx8m_som_detection.o --- base-commit: 7a59d520ef0bfd29b339cba5282149271d5ac3b2 change-id: 20240111-wip-y-moog-phytec-de-som-detection-fixup-5cade747a48a Best regards, -- Yannic Moog

[PATCH 1/1] cmd: bootflow: remove dead code in do_bootflow_cmdline()

2024-01-11 Thread Heinrich Schuchardt
Checking argc < 3 twice is redundant. Addresses-Coverity-ID: 477198 Logically dead code Fixes: 921f63e57238 ("bootflow: Allow setting a cmdline arg with no value") Signed-off-by: Heinrich Schuchardt --- cmd/bootflow.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/bootflow.c

Re: [PATCH v1 1/3] arm: config: xea: Update environment variables for XEA board (imx287)

2024-01-11 Thread Lukasz Majewski
Hi Tom, > On Wed, Jan 10, 2024 at 03:48:47PM +0100, Lukasz Majewski wrote: > > > As the XEA now supports fitImage, the default envs shall reflect > > this as well. > > > > Moreover, some SPI-NOR layout re-organization has took place. > > > > Signed-off-by: Lukasz Majewski > > --- > > > >

Re: [PATCH] arm64: xilinx: Move address/size-cells to proper locations

2024-01-11 Thread Krzysztof Kozlowski
On 11/01/2024 09:10, Michal Simek wrote: > > > On 1/11/24 08:56, Krzysztof Kozlowski wrote: >> On 11/01/2024 08:09, Michal Simek wrote: >>> >>> >>> On 1/10/24 22:27, Krzysztof Kozlowski wrote: On 10/01/2024 14:35, Michal Simek wrote: > Move cells to board dtsi files from generic

Re: [PATCH] cmd: efidebug: check pointer after memory allocation

2024-01-11 Thread Ilias Apalodimas
On Thu, 11 Jan 2024 at 10:25, Heinrich Schuchardt wrote: > > After calling efi_alloc() we must check that the return value is not NULL. > > Fixes: f01c961ee34c ("cmd: efidebug: add uri device path") > Addresses-Coverity-ID: 477185 Dereference null return value > Signed-off-by: Heinrich Schuchardt

[PATCH 1/1] sandbox: move sandbox specifics to booti_setup()

2024-01-11 Thread Heinrich Schuchardt
Instead of checking a configuration setting in booti_start() adjust the sandbox implementation of booti_setup(). Write a console message when trying to run the booti command on the sandbox indicating that it is not supported. Signed-off-by: Heinrich Schuchardt --- arch/sandbox/lib/bootm.c | 4

Re: [PATCH] arm64: xilinx: Move address/size-cells to proper locations

2024-01-11 Thread Michal Simek
On 1/11/24 08:56, Krzysztof Kozlowski wrote: On 11/01/2024 08:09, Michal Simek wrote: On 1/10/24 22:27, Krzysztof Kozlowski wrote: On 10/01/2024 14:35, Michal Simek wrote: Move cells to board dtsi files from generic zynqmp.dtsi. Changes are related to qspi, spi, nand, i2c and ethernet

Re: [PATCH v2] boot: add support for button commands

2024-01-11 Thread Michael Walle
>> This is simply awesome, but I see one possible issue -- the need to have >> proper environment variables defined for a particular board or device, >> to make the buttons work as expected.  Obviously, those environment >> variables can be absent or can become missing for numerous reasons. > >

Re: [PATCH v1] fastboot: introduce 'oem board' subcommand

2024-01-11 Thread Mattijs Korpershoek
Hi Alexey, Sean, On mer., janv. 10, 2024 at 08:03, Alexey Romanov wrote: > Hi, > > On Tue, Jan 09, 2024 at 10:45:46AM -0500, Sean Anderson wrote: >> On 1/9/24 05:27, Alexey Romanov wrote: >> > Hello Sean! >> > >> > Thanks for you reply. >> > >> > On Thu, Dec 28, 2023 at 11:45:04AM -0500,

[GIT PULL] Please pull u-boot-dfu-20240111

2024-01-11 Thread Mattijs Korpershoek
/custodians/u-boot-imx (2024-01-08 13:39:43 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-dfu.git tags/u-boot-dfu-20240111 for you to fetch changes up to 6c2f753f4ad3dcee60190949d1286736a6d51d17: test: hush: dollar: fix bugous behavior (2024

Re: [PATCH V2 00/10] board/ti: k3 boards: Stop using findfdt

2024-01-11 Thread Roger Quadros
On 09/01/2024 21:14, Nishanth Menon wrote: > This is a wide cleanup to switch to setting fdtfile using env_set > instead of scripted magic. 'fdtfile' is expected to be set by default. > This allows the stdboot triggered efi loaders to find the correct OS > device tree file even if regular boot

Re: [PATCH v2 2/3] doc: board: phytec: Add phyGATE-Tauri board documentation

2024-01-11 Thread Teresa Remmet
Am Mittwoch, dem 10.01.2024 um 14:35 +0100 schrieb Yannic Moog: > Add brief documentation on how to build a bootable U-Boot image for > the > phyGATE-Tauri-L. > > Signed-off-by: Yannic Moog Reviewed-by: Teresa Remmet > --- >  board/phytec/phycore_imx8mm/MAINTAINERS |  2 + >  

Re: [PATCH v2 1/3] Add support for phyGATE-Tauri-L-iMX8MM

2024-01-11 Thread Teresa Remmet
Am Mittwoch, dem 10.01.2024 um 14:35 +0100 schrieb Yannic Moog: > phyGATE-Tauri-L-iMX8MM is a Gateway based on the phycore-imx8mm SoM. > As a result, all the board code of the phycore-imx8mm is used. > Device tree synced with kernel v6.7. > > Signed-off-by: Yannic Moog Reviewed-by: Teresa

[PATCH v2 2/3] arm: config: Enable CRC8 support in SPL on imx287 XEA board

2024-01-11 Thread Lukasz Majewski
The boot0/1 feature uses simple CRC8 to check (in SPL) if SPI-NOR content is not corrupted, hence the need to enable it. Signed-off-by: Lukasz Majewski --- (no changes since v1) configs/imx28_xea_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx28_xea_defconfig

[PATCH v2 3/3] arm: xea: Add support for boot image source descriptor in SPL

2024-01-11 Thread Lukasz Majewski
From: Anatolij Gustschin We load two boot image source descriptor structures from last two sectors in the SPI NOR flash and determine the boot source for loading the kernel/DTB images, then adjust the boot order for loading image from eMMC boot0 or boot1 partition. Signed-off-by: Anatolij

Re: [PATCH v2 3/3] board: phytec: MAINTAINERS: add missing phytec doc files

2024-01-11 Thread Teresa Remmet
Am Mittwoch, dem 10.01.2024 um 14:35 +0100 schrieb Yannic Moog: > Add rst documentation files to the respective MAINTAINERS file for > PHYTEC boards. > > Signed-off-by: Yannic Moog Reviewed-by: Teresa Remmet > --- >  board/phytec/phycore_imx8mm/MAINTAINERS | 1 + >  

[PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Lukasz Majewski
The default set of environment variables from CFG_EXTRA_ENV_SETTINGS has been moved to a separate file - board/liebherr/xea/xea.env Adjustments done: - fitImage support - SPI-NOR layout re-organization Signed-off-by: Lukasz Majewski --- (no changes since v1) board/liebherr/xea/xea.env | 141

Re: [PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Fabio Estevam
Hi Lukasz, On Thu, Jan 11, 2024 at 8:06 AM Lukasz Majewski wrote: > +serverip=10.8.217.79 > +nfs_serverip=10.8.218.113 > +gatewayip=10.8.209.250 These IP addresses should not be hardcoded here. They were not present in xea.h originally. Please remove them.

Re: [PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Fabio Estevam
On Thu, Jan 11, 2024 at 8:16 AM Fabio Estevam wrote: > > Hi Lukasz, > > On Thu, Jan 11, 2024 at 8:06 AM Lukasz Majewski wrote: > > > +serverip=10.8.217.79 > > +nfs_serverip=10.8.218.113 > > +gatewayip=10.8.209.250 > > These IP addresses should not be hardcoded here. > > They were not present in

Re: [PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Thu, Jan 11, 2024 at 8:06 AM Lukasz Majewski wrote: > > > +serverip=10.8.217.79 > > +nfs_serverip=10.8.218.113 > > +gatewayip=10.8.209.250 > > These IP addresses should not be hardcoded here. > > They were not present in xea.h originally. Please remove them.

Re: [PATCH v7 15/17] configs: Add am69_sk_* defconfig fragments

2024-01-11 Thread Manorit Chawdhry
Hi Nishanth, On 11:59-20240103, Nishanth Menon wrote: > On 00:45-20231220, Apurva Nandan wrote: > > From: Dasnavis Sabiya > > > > Add config fragments for am69_sk A72 and R5 configuration. > > > > This applies on to: > > j784s4_evm_a72_defconfig -> am69_sk_a72.config > >

Re: [PATCH v2 00/32] Qualcomm generic board support

2024-01-11 Thread Sumit Garg
On Tue, 9 Jan 2024 at 17:03, Caleb Connolly wrote: > > > > On 09/01/2024 06:07, Sumit Garg wrote: > > On Fri, 5 Jan 2024 at 19:15, Caleb Connolly > > wrote: > >> > >> > >> > >> On 05/01/2024 13:14, Sumit Garg wrote: > >>> Hi Caleb, > >> > >> Hi Sumit, > >> > >> [snip] > >> > --- > I

[PATCH RFC] Kconfig: Add support for FIT image signature enforcing

2024-01-11 Thread Manorit Chawdhry
FIT_SIGNATURE doesn't enforce the U-boot setup to be correct for booting the FIT images, the DTB might not have all the proper nodes and it just boots up without any warning. This makes it difficult to get the correct setup working. Adds an enforcement flag that doesn't allow the setup to have

Re: [PATCH] arm64: xilinx: Move address/size-cells to proper locations

2024-01-11 Thread Michal Simek
On 1/11/24 09:52, Krzysztof Kozlowski wrote: On 11/01/2024 09:48, Michal Simek wrote: On 1/11/24 09:18, Krzysztof Kozlowski wrote: On 11/01/2024 09:10, Michal Simek wrote: On 1/11/24 08:56, Krzysztof Kozlowski wrote: On 11/01/2024 08:09, Michal Simek wrote: On 1/10/24 22:27,

Re: [PATCH V6 00/10] Update SPL splashscreen framework for AM62x

2024-01-11 Thread Jagan Teki
Hi Nikhil, On Tue, Jul 18, 2023 at 2:27 PM Nikhil M Jain wrote: > > This patch series aims at updating SPL splashscreen framework for AM62x. > > This patch series depends on > https://lore.kernel.org/u-boot/20230504225829.2537050-1-...@chromium.org/ > > This series: > - Fixes compilation issues

[PATCH 1/1] get_maintainer.pl: slightly modify penguin_chief

2024-01-11 Thread Anthony Loiseau
From: Anthony Loiseau Penguin chiefs are actually stripped out from get_maintainer results unless --git-chief-penguins is provided, which appends them to all results instead. This is a issue for U-Boot since Tom Rini (penguin chief) is also maintainer of some sub-trees ("ARM", "ARM TI" and "THE

Re: [PATCH 1/1] test: Skip cleanup test if not built out of tree

2024-01-11 Thread rahix
On Mon, 2024-01-08 at 22:11 +0100, Tobias Deiminger wrote: > 42c0e5bb054d ("test: Find leftovers after clean/mrproper") assumes out > of tree builds. test_clean and test_mrproper fail if the assumption > isn't met. > > However there are valid scenarios where tests run with in source builds >

Re: [PATCH 1/4] riscv: sophgo: milkv_duo: initial support added

2024-01-11 Thread 刘孔阳
Tom Rini 于2024年1月9日周二 04:42写道: > > On Sun, Jan 07, 2024 at 07:27:07PM +0800, Kongyang Liu wrote: > > > Add support for Sophgo's Milk-V Duo board, only minimal device tree and > > serial console are enabled, and it can boot via vendor first stage > > bootloader. > > > > Signed-off-by: Kongyang Liu

Re: [PATCH 1/1] get_maintainer.pl: slightly modify penguin_chief

2024-01-11 Thread Tom Rini
On Thu, Jan 11, 2024 at 05:51:27PM +0100, Anthony Loiseau wrote: > From: Anthony Loiseau > > Penguin chiefs are actually stripped out from get_maintainer results unless > --git-chief-penguins is provided, which appends them to all results instead. > > This is a issue for U-Boot since Tom Rini

Re: [PATHv3 0/8] net fixes prior lwip

2024-01-11 Thread Tom Rini
On Tue, 26 Dec 2023 21:46:11 +0600, Maxim Uvarov wrote: > Add small net fixes prior lwip patches. > > v3: - some small review fixes. > v2: - rebase on the top of master tree with descriptions fixes > suggested in review comments. > Maxim Uvarov (8): > test_net: print out net list >

Re: [GIT PULL] Please pull u-boot-dfu-20240111

2024-01-11 Thread Tom Rini
> https://source.denx.de/u-boot/custodians/u-boot-dfu.git > tags/u-boot-dfu-20240111 > > for you to fetch changes up to 6c2f753f4ad3dcee60190949d1286736a6d51d17: > > test: hush: dollar: fix bugous behavior (2024-01-09 15:31:59 +0100) > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH 0/1] get_maintainer.pl: slightly modify penguin_chief

2024-01-11 Thread Anthony Loiseau
From: Anthony Loiseau Please find a patch proposal which slightly modifies get_maintainer.pl penguin_chief list. This proposal aims to workaround get_maintainer.pl behavior for ARM, ARM_TI and THE_REST sections (see MAINTAINERS file) for which Tom Rini was not outputed as a maintainer by

Re: [PATCH v4 5/6] mmc: bcmstb: Add support for bcm2712 SD controller

2024-01-11 Thread Stefan Wahren
Hi Ivan, Am 10.01.24 um 13:29 schrieb Ivan T. Ivanov: Borrow SD quirks from vendor Linux driver. "BCM2712 unfortunately carries with it a perennial bug with the SD controller register interface present on previous chips (2711/2709/2708). Accesses must be dword-sized and a read-modify-write

Re: [PATCH v13 00/24] Modernize U-Boot shell

2024-01-11 Thread Francesco Dolcini
Hello Tom, Francis On Fri, Dec 29, 2023 at 07:55:37PM +0100, Francis Laniel wrote: > Le jeudi 28 décembre 2023, 21:58:59 CET Tom Rini a écrit : > > On Fri, 22 Dec 2023 22:02:20 +0100, Francis Laniel wrote: > > > During 2021 summer, Sean Anderson wrote a contribution to add a new shell, > > >

Re: [PATCH] usb: dwc3: Integrate usb5744 & usb2244 driver support

2024-01-11 Thread Marek Vasut
On 1/11/24 08:42, Michal Simek wrote: First of all I think this should be more RFC. On 1/11/24 08:10, Venkatesh Yadav Abbarapu wrote: Usb5744 & usb2244 are Microchip based usbhub and usb-2.0 based SD controller devices. Integrate these devices into dwc3 driver to bind and probe the respective

Re: [PATCH v1] fastboot: introduce 'oem board' subcommand

2024-01-11 Thread Sean Anderson
On 1/10/24 03:03, Alexey Romanov wrote: > Hi, > > On Tue, Jan 09, 2024 at 10:45:46AM -0500, Sean Anderson wrote: >> On 1/9/24 05:27, Alexey Romanov wrote: >> > Hello Sean! >> > >> > Thanks for you reply. >> > >> > On Thu, Dec 28, 2023 at 11:45:04AM -0500, Sean Anderson wrote: >> >> On 12/28/23

[PATCH v3 2/3] efi_loader: auto-generate boot option for each blkio device

2024-01-11 Thread Masahisa Kojima
Current efibootmgr auto-generates the boot option for all disks and partitions installing EFI_SIMPLE_FILE_SYSTEM_PROTOCOL, while EDK II reference implementation auto-generates the boot option for all devices installing EFI_BLOCK_IO_PROTOCOL with eliminating logical partitions. This commit

[PATCH v3 3/3] efi_loader: auto-generate removable media boot option first

2024-01-11 Thread Masahisa Kojima
This commit auto-generates the boot option for removable block io devices followed by fixed block io devices. This is what EDK II reference implementation does. Signed-off-by: Masahisa Kojima --- lib/efi_loader/efi_bootmgr.c | 33 ++--- 1 file changed, 26

[PATCH v3 1/3] efi_loader: rename check_disk_has_default_file function

2024-01-11 Thread Masahisa Kojima
check_disk_has_default_file() function checks if the architecture-specific default file exists in the blk device, and fills the default file device path if it exists. Rename the function name to fill_default_file_path(). Signed-off-by: Masahisa Kojima --- lib/efi_loader/efi_bootmgr.c | 10

Re: Re: [PATCH v4 5/6] mmc: bcmstb: Add support for bcm2712 SD controller

2024-01-11 Thread Ivan T. Ivanov
On 01-11 23:07, Stefan Wahren wrote: > > Hi Ivan, > > Am 10.01.24 um 13:29 schrieb Ivan T. Ivanov: > > Borrow SD quirks from vendor Linux driver. > > > > "BCM2712 unfortunately carries with it a perennial bug with the SD > > controller register interface present on previous chips

[PATCH 2/2] configs: zynqmp_kria: Enable CONFIG_OF_BOARD_SETUP

2024-01-11 Thread Venkatesh Yadav Abbarapu
Enable CONFIG_OF_BOARD_SETUP, so we could use ft_board_setup() to enable the kaslr-seed and pass to kernel. Signed-off-by: Michal Simek Signed-off-by: Venkatesh Yadav Abbarapu --- configs/xilinx_zynqmp_kria_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 02/10] firmware: ti_sci: Add No-OP for "RX_FL_CFG"

2024-01-11 Thread Siddharth Vadapalli
From: Kishon Vijay Abraham I RX_FL_CFG message should not be forwarded to TIFS and should be handled within R5 SPL (when DM services are not available). Add a no-op function to not handle RX_FL_CFG messages. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Siddharth Vadapalli ---

[PATCH 00/10] Add support for Ethernet Boot on SK-AM62

2024-01-11 Thread Siddharth Vadapalli
Hello, This series enables Ethernet Boot on SK-AM62 device. Product Link: https://www.ti.com/tool/SK-AM62 User Guide: https://www.ti.com/lit/pdf/spruj40 Ethernet Boot flow is as follows: 1. The BOOT MODE pins are configured for Ethernet Boot. 2. On powering on the device, ROM uses the Ethernet

[PATCH 01/10] board: ti: am62x: Init DRAM size in R5/A53 SPL

2024-01-11 Thread Siddharth Vadapalli
From: Kishon Vijay Abraham I Call dram_init_banksize() from spl_board_init() otherwise TFTP download fails with error "TFTP error: trying to overwrite reserved memory..." due to lmb_get_free_size() not able to find unreserved region due to lack of DRAM size info. Required to support Ethernet

[PATCH 1/2] xilinx: board: Update the kaslr-seed property

2024-01-11 Thread Venkatesh Yadav Abbarapu
Create a ft_board_setup() api that gets called as part of bootm/booti before jumping to kernel. In this ft_board_setup() callback that will inspect the DTB and insert the device tree blob with the "kaslr-seed" property. Signed-off-by: Michal Simek Signed-off-by: Venkatesh Yadav Abbarapu ---

[PATCH 0/2] xilinx: Update the kaslr-seed property

2024-01-11 Thread Venkatesh Yadav Abbarapu
Update the kaslr-seed property and enable the config CONFIG_OF_BOARD_SETUP. Venkatesh Yadav Abbarapu (2): xilinx: board: Update the kaslr-seed property configs: zynqmp_kria: Enable CONFIG_OF_BOARD_SETUP board/xilinx/common/board.c | 59

RE: [EXT] AW: FIELD_RETURN on i.MX8MNANOLPD4 EVK

2024-01-11 Thread Ye Li
Hi Thomas, It is due to ARMV8_SPL_EXCEPTION_VECTORS not enabled by default in upstream. I will send a patch Best regards, Ye Li > -Original Message- > From: Thomas Schaefer > Sent: Thursday, January 11, 2024 9:40 PM > To: Ye Li ; Peng Fan (OSS) ; > 'u-boot@lists.denx.de' >

[PATCH v3 0/3] fix auto-generated boot options

2024-01-11 Thread Masahisa Kojima
This series aims to get aligned to the EDK II reference implementation for auto-generated boot options, and tries to address the following issue. https://source.denx.de/u-boot/custodians/u-boot-efi/-/issues/13 This series is based on the heinrich/efi-2024-04 branch. [Changelog] v2 -> v3 - rename

[PATCH 1/1] docker: build QEMU v8.2.0

2024-01-11 Thread Heinrich Schuchardt
ACPI support for RISC-V requires a recent QEMU. Upgrade the used QEMU to v8.2.0. QEMU commit 0c7ffc977195 ("hw/net: cadence_gem: Fix MDIO_OP_xxx values") is needed to fix the Ethernet PHY driver used by the emulated SiFive Unleashed Board emulation. Signed-off-by: Heinrich Schuchardt ---

[PATCH 10/10] arm: dts: k3-am625-r5-sk: Enable DM services for main_pktdma

2024-01-11 Thread Siddharth Vadapalli
Enable DM services for main_pktdma during R5 SPL stage. Signed-off-by: Siddharth Vadapalli --- arch/arm/dts/k3-am625-r5-sk.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/k3-am625-r5-sk.dts b/arch/arm/dts/k3-am625-r5-sk.dts index 6b9f40e555..0912b953db 100644 ---

[PATCH] misc: usb5744: Add support for usb5744 usb hub driver

2024-01-11 Thread Venkatesh Yadav Abbarapu
Microchip usb5744 driver resets the usbhub by toggling gpio to bring the hub from reset. Also configures the usbhub by sending command using i2c after hub reset. Signed-off-by: T Karthik Reddy Signed-off-by: Venkatesh Yadav Abbarapu --- MAINTAINERS| 1 + drivers/misc/Kconfig |

[PATCH 06/10] arm: mach-k3: am62: Update SoC autogenerated data to enable Ethernet Boot

2024-01-11 Thread Siddharth Vadapalli
From: Andreas Dannenberg In order to enable Ethernet Boot using CPSW, update the clock data. Signed-off-by: Andreas Dannenberg Signed-off-by: Siddharth Vadapalli --- arch/arm/mach-k3/r5/am62x/clk-data.c | 79 ++-- 1 file changed, 39 insertions(+), 40 deletions(-)

[PATCH 09/10] configs: am62x_evm_a53_defconfig: Enable configs required for Ethboot

2024-01-11 Thread Siddharth Vadapalli
From: Kishon Vijay Abraham I Enable config options needed to support Ethernet boot on AM62x SK. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Siddharth Vadapalli --- configs/am62x_evm_a53_defconfig | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 03/10] soc: ti: k3-navss-ringacc: Initialize base address of ring cfg registers

2024-01-11 Thread Siddharth Vadapalli
From: Kishon Vijay Abraham I Initialize base address of ring config registers required to natively setup ring cfg registers in the absence of Device Manager (DM) services at R5 SPL stage. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Siddharth Vadapalli ---

[PATCH 05/10] dma: ti: k3-udma: Add support for native configuration of chan/flow

2024-01-11 Thread Siddharth Vadapalli
From: Kishon Vijay Abraham I In absence of Device Manager (DM) services such as at R5 SPL stage, driver will have to natively setup TCHAN/RCHAN/RFLOW cfg registers. Existing UDMA driver performed the above mentioned configuration for UDMA. Add similar configuration for PKTDMA here.

[PATCH 04/10] soc: ti: k3-navss-ringacc: Fix reset ring API

2024-01-11 Thread Siddharth Vadapalli
From: Vignesh Raghavendra Expectation of k3_ringacc_ring_reset_raw() is to reset the ring to requested size and not to 0. Fix this. Signed-off-by: Vignesh Raghavendra Signed-off-by: Siddharth Vadapalli --- drivers/soc/ti/k3-navss-ringacc-u-boot.c | 9 - 1 file changed, 8

[PATCH 08/10] configs: am62: Add configs for enabling ETHBOOT in R5SPL

2024-01-11 Thread Siddharth Vadapalli
From: Kishon Vijay Abraham I Add configs for enabling ETHBOOT in R5SPL. Adding a separate config minimizes the risk of going past the R5-SPL size limit for any future config additions. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Andreas Dannenberg Signed-off-by: Siddharth Vadapalli

[PATCH 07/10] arm: mach-k3: am625_init: Probe AM65 CPSW NUSS

2024-01-11 Thread Siddharth Vadapalli
From: Kishon Vijay Abraham I In order to support Ethernet boot on AM62x, probe AM65 CPSW NUSS driver in board_init_f(). Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Siddharth Vadapalli --- arch/arm/mach-k3/am625_init.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH] arm: imx: imx8m: Enable the SError exception

2024-01-11 Thread Ye Li
To work with commit 2f3c920(imx8m: workaround ROM serror), we need to enable the SError exception and install vector in SPL. Signed-off-by: Ye Li Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/Kconfig

[PATCH] misc: usb2244: Add support to reset usb2244 usb2.0 SD controller

2024-01-11 Thread Venkatesh Yadav Abbarapu
Usb2244 driver needs to be reset to bring usb2244 out of reset. This driver will reset the controller using gpio. Signed-off-by: T Karthik Reddy Signed-off-by: Venkatesh Yadav Abbarapu --- MAINTAINERS| 1 + drivers/misc/Kconfig | 8 + drivers/misc/Makefile | 1 +

Re: [EXTERNAL] Re: [PATCH V6 00/10] Update SPL splashscreen framework for AM62x

2024-01-11 Thread Nikhil Jain
Hi Jagan, On 11/01/24 15:50, Jagan Teki wrote: > Hi Nikhil, > > On Tue, Jul 18, 2023 at 2:27 PM Nikhil M Jain wrote: >> This patch series aims at updating SPL splashscreen framework for AM62x. >> >> This patch series depends on >>

Re: [PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Lukasz Majewski
Hi Fabio, > On Thu, Jan 11, 2024 at 8:16 AM Fabio Estevam > wrote: > > > > Hi Lukasz, > > > > On Thu, Jan 11, 2024 at 8:06 AM Lukasz Majewski > > wrote: > > > +serverip=10.8.217.79 > > > +nfs_serverip=10.8.218.113 > > > +gatewayip=10.8.209.250 > > > > These IP addresses should not be

[PATCH] test/py: saveenv: Add a test for saveenv command

2024-01-11 Thread Love Kumar
Add test case for saveenv command in non-JTAG bootmode which saves the u-boot environment variables in persistent storage. Signed-off-by: Love Kumar --- test/py/tests/test_saveenv.py | 125 ++ 1 file changed, 125 insertions(+) create mode 100644

[RFC PATCH v2 03/15] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-01-11 Thread MD Danish Anwar
Add APIs to set a firmware_name to a rproc and boot the rproc with the same firmware. Clients can call rproc_set_firmware() API to set firmware_name for a rproc whereas rproc_boot() will load the firmware set by rproc_set_firmware() to a buffer by calling request_firmware_into_buf(). rproc_boot()

[RFC PATCH v2 00/15] Introduce ICSSG Ethernet driver

2024-01-11 Thread MD Danish Anwar
Introduce ICSSG PRUETH support in uboot. The ICSSG driver is used in TI AM654 SR2.0. The ICSSG PRU Sub-system runs on EMAC firmware. This series Introduces support for ICSSG driver in uboot. This series also adds the driver's dependencies. The ICSSG2 node is added in device tree overlay so that

[RFC PATCH v2 01/15] dma: ti: k3-udma: Use ring_idx to pair k3 nav rings

2024-01-11 Thread MD Danish Anwar
Use ring_idx to pair rings. ring_idx will be same as tx flow_id for all non-negative flow_ids. For negative flow_ids, ring_idx will be tchan->id added with bchan_cnt. Signed-off-by: MD Danish Anwar --- drivers/dma/ti/k3-udma.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-)

[RFC PATCH v2 04/15] net: ti: icssg: Add Firmware Interface for ICSSG Ethernet driver.

2024-01-11 Thread MD Danish Anwar
Add firmware interface related headers and macros for ICSSG Ethernet driver. These macros will be later used by the ICSSG ethernet driver. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_switch_map.h | 209 ++ 1 file changed, 209 insertions(+) create mode

[RFC PATCH v2 02/15] misc: fs-loader: Use fw_storage_interface instead of storage_interface

2024-01-11 Thread MD Danish Anwar
The fs-loader driver reads env storage_interface and uses it to load firmware file into memory using the medium set by env. Update the driver to use env fw_storage_interface as this variable is only used to load firmwares. The env storage_interface will act as fallback so that the existing

Re: [PATCH v1] fastboot: introduce 'oem board' subcommand

2024-01-11 Thread Alexey Romanov
On Thu, Jan 11, 2024 at 10:14:45AM +, Alexey Romanov wrote: > Hi Mattijs, > > On Thu, Jan 11, 2024 at 10:50:26AM +0100, Mattijs Korpershoek wrote: > > Hi Alexey, Sean, > > > > On mer., janv. 10, 2024 at 08:03, Alexey Romanov > > wrote: > > > > > Hi, > > > > > > On Tue, Jan 09, 2024 at

Re: [PATCH v1] fastboot: introduce 'oem board' subcommand

2024-01-11 Thread Alexey Romanov
Hi Mattijs, On Thu, Jan 11, 2024 at 10:50:26AM +0100, Mattijs Korpershoek wrote: > Hi Alexey, Sean, > > On mer., janv. 10, 2024 at 08:03, Alexey Romanov > wrote: > > > Hi, > > > > On Tue, Jan 09, 2024 at 10:45:46AM -0500, Sean Anderson wrote: > >> On 1/9/24 05:27, Alexey Romanov wrote: > >> >

[PATCH 1/1] imx: imx9: fixup thermal trips from fuses

2024-01-11 Thread Primoz Fiser
Read i.MX9 CPU temp grade from fuses and fixup thermal trips in Linux device-tree accordingly. Based on commit 0543a1ed2787 ("imx8m: fixup thermal trips") Signed-off-by: Primoz Fiser --- arch/arm/mach-imx/imx9/soc.c | 45 1 file changed, 45 insertions(+)

[PATCH 0/1] i.MX9 thermal trip fixups

2024-01-11 Thread Primoz Fiser
With recent introduction of i.MX93 silicone revision A1, the thermal grade fuses are properly set for the different CPU temperature grades (e.g. Industrial or Automotive grade). Thus read thermal trips from fuses and fixup Linux device-tree temp trips accordingly to the CPU temp grade. BR,

[PATCH v2 2/4] mtd: rawnand: omap_gpmc: Use DT provided IO address

2024-01-11 Thread Roger Quadros
For DM case we can get the NAND chip's IO address from DT so we don't need to rely on CFG_SYS_NAND_BASE. Signed-off-by: Roger Quadros --- Notes: v2: no change drivers/mtd/nand/raw/omap_gpmc.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git

[PATCH v2 1/4] memory: ti-gpmc: Fix build

2024-01-11 Thread Roger Quadros
sys_proto.h no longer exists for K3 platform so drop it. Include sizes.h to so SZ_16M is visible. Signed-off-by: Roger Quadros --- Notes: v2: no change drivers/memory/ti-gpmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/ti-gpmc.c

[PATCH v2 3/4] mtd: rawnand: omap_gpmc: fix OF based partition parsing for NAND

2024-01-11 Thread Roger Quadros
Set NAND chip ofnode and device so OF based partition parsing can work. Signed-off-by: Roger Quadros --- Notes: v2: initial commit drivers/mtd/nand/raw/omap_gpmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/raw/omap_gpmc.c b/drivers/mtd/nand/raw/omap_gpmc.c

AW: FIELD_RETURN on i.MX8MNANOLPD4 EVK

2024-01-11 Thread Thomas Schaefer
Hi Ye, Yes, I can boot SPL without signature. I also added some debug messages to my build and I can see that SPL can load u-boot proper via USB until 'Jumping to U-Boot' message in board_init_r function (common/spl/spl.c) Actually this looks like the SError problem caused by errata ERR050350

Re: [PATCH v2 1/3] arm: xea: Move XEA's environment variables from xea.h to xea.env

2024-01-11 Thread Lukasz Majewski
Hi Fabio, > Hi Fabio, > > > On Thu, Jan 11, 2024 at 8:16 AM Fabio Estevam > > wrote: > > > > > > Hi Lukasz, > > > > > > On Thu, Jan 11, 2024 at 8:06 AM Lukasz Majewski > > > wrote: > > > > +serverip=10.8.217.79 > > > > +nfs_serverip=10.8.218.113 > > > > +gatewayip=10.8.209.250 > > > >

Re: [PATCH v2 0/2] mtd: nand: omap_gpmc: Fix NAND for AM335x

2024-01-11 Thread Roger Quadros
Hi, On 11/12/2023 13:45, Roger Quadros wrote: > Hi, > > These patches fix NAND and ELM for AM335x and related legacy platforms > that use HW BCH and ELM modules. > > All CI tests pass: https://github.com/u-boot/u-boot/pull/453 > > Changelog: > > v2: > - added __maybe_unused to

[RFC PATCH v2 05/15] net: ti: icssg: Add Firmware config and classification APIs.

2024-01-11 Thread MD Danish Anwar
Add icssg_config.h / .c and icssg_classifier.c files. These are firmware configuration and classification related files. Add MII helper APIs and MACROs. These APIs and MACROs will be later used by ICSSG Ethernet driver. Also introduce icssg_prueth.h which has definition of prueth related

[RFC PATCH v2 07/15] net: ti: icssg: Add ICSSG ethernet driver

2024-01-11 Thread MD Danish Anwar
This is the PURSS Ethernet driver for TI AM654 Sr2.0 and laterSoCs with the ICSSG PRU Sub-system running EMAC firmware. This driver caters to either of the slices of the icssg subsystem. One and exactly one of the slices is supported as the u-boot ethernet supports probing one interface at a

[RFC PATCH v2 06/15] net: ti: icssg: Add icssg queues APIs and macros

2024-01-11 Thread MD Danish Anwar
Add icssg_queue.c file. This file introduces macros and APIs related to ICSSG queues. These will be used by ICSSG Ethernet driver. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_prueth.h | 5 drivers/net/ti/icssg_queues.c | 51 +++ 2 files changed,

[RFC PATCH v2 09/15] net: ti: icssg: Enforce pinctrl state on the MDIO child node

2024-01-11 Thread MD Danish Anwar
The binding represents the MDIO controller as a child device tree node of the MAC device tree node. The U-Boot driver mostly ignores that child device tree node and just hardcodes the resources it uses to support both the MAC and MDIO in a single driver. However, some resources like pinctrl

[RFC PATCH v2 08/15] net: ti: icssg: Add support sending FDB command to update rx_flow_id

2024-01-11 Thread MD Danish Anwar
ICSSG firmware supports FDB commands. Add support to send FDB commands from driver. Once rx_flow_id is obtained from dma, let firmware know that we are using this rx_flow_id by sending a FDB command. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_config.c | 66

[PATCH v2 4/4] arm: mach-k3: am642: Define NAND boot device

2024-01-11 Thread Roger Quadros
AM642 SoC supports booting from GPMC NAND device. Define boot device for it. Signed-off-by: Roger Quadros --- Notes: v2: No change arch/arm/mach-k3/am642_init.c| 3 +++ arch/arm/mach-k3/include/mach/am64_spl.h | 1 + 2 files changed, 4 insertions(+) diff --git

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

2024-01-11 Thread Ilias Apalodimas
On Thu, 11 Jan 2024 at 15:49, Michal Simek wrote: > > SOMs have HW tpm but previous stages won't start it that's why start it at > U-Boot which will also provide access to random generator and it's usage > with KASLR. > > Signed-off-by: Michal Simek > --- > > board/xilinx/zynqmp/zynqmp_kria.env

Re: [RFC PATCH 2/2] board: ti: am65x: Move to using Extension framework

2024-01-11 Thread Roger Quadros
Hi Köry, On 06/10/2023 19:47, Simon Glass wrote: > Hi Köry, > > On Fri, 6 Oct 2023 at 07:26, Köry Maincent wrote: >> >> On Wed, 4 Oct 2023 15:39:23 +0300 >> Roger Quadros wrote: >> >> Hello, >> Thanks for adding me in cc. Also it seems I forgot to add myself to >> MAINTAINERS >> for the

Re: [PATCH 0/4] arm: mach-k3: am64: Add NAND configuration

2024-01-11 Thread Roger Quadros
On 09/01/2024 21:17, Nishanth Menon wrote: > On 14:26-20240109, Roger Quadros wrote: >> Hi, >> >> AM64-EVM [1] supports NAND via expansion card. >> >> This series fixes the GPMC memory and NAND drivers >> and provides NAND configuration for AM642 platform. >> >> The extension card support and

Re: [PATCH v7 15/17] configs: Add am69_sk_* defconfig fragments

2024-01-11 Thread Nishanth Menon
On 15:06-20240111, Manorit Chawdhry wrote: > Hi Nishanth, > > On 11:59-20240103, Nishanth Menon wrote: > > On 00:45-20231220, Apurva Nandan wrote: > > > From: Dasnavis Sabiya > > > > > > Add config fragments for am69_sk A72 and R

Re: [PATCH v7 15/17] configs: Add am69_sk_* defconfig fragments

2024-01-11 Thread Roger Quadros
On 19/12/2023 21:15, Apurva Nandan wrote: > From: Dasnavis Sabiya > > Add config fragments for am69_sk A72 and R5 configuration. > > This applies on to: > j784s4_evm_a72_defconfig -> am69_sk_a72.config > j784s4_evm_r5_defconfig -> am69_sk_r5.config > > The usage model (with the fragment)

Re: [PATCH v7 15/17] configs: Add am69_sk_* defconfig fragments

2024-01-11 Thread Nishanth Menon
On 14:25-20240111, Roger Quadros wrote: [...] > > Signed-off-by: Dasnavis Sabiya > > Signed-off-by: Apurva Nandan > > --- > > configs/am69_sk_a72.config | 3 +++ > > configs/am69_sk_r5.config | 3 +++ > > Shouldn't the config fragments lie in the board//co

[RFC PATCH v2 11/15] arm: dts: k3-am65x-binman: Add ICSSG2 overlay and configuration

2024-01-11 Thread MD Danish Anwar
Add ICSSG2 overlay and configuration to tispl and u-boot images. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65x-binman.dtsi | 65 +-- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/k3-am65x-binman.dtsi

[RFC PATCH v2 10/15] arm: dts: k3-am654-base-board: Add ICSSG2 Ethernet support

2024-01-11 Thread MD Danish Anwar
ICSSG2 provides dual Gigabit Ethernet support. Add ICSSG2 ethernet node to an overlay k3-am654-icssg2.dtso Signed-off-by: MD Danish Anwar --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am654-icssg2.dtso | 145 ++ 2 files changed, 147 insertions(+), 1

[RFC PATCH v2 13/15] configs: am65x_evm_a53: add SPL_LOAD_FIT_APPLY_OVERLAY

2024-01-11 Thread MD Danish Anwar
We want SPL to apply DTB overlays (e.g. ICSSG2 overlay) so enable SPL_LOAD_FIT_APPLY_OVERLAY. Signed-off-by: MD Danish Anwar --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index

[RFC PATCH v2 14/15] board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()

2024-01-11 Thread MD Danish Anwar
When CONFIG_TI_ICSSG_PRUETH is enabled, add config name check for the icssg2 overlay in board_fit_config_match() API. Signed-off-by: MD Danish Anwar --- board/ti/am65x/evm.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/board/ti/am65x/evm.c

[RFC PATCH v2 15/15] board: ti: am65x: Set fw_storage_interface and fw_dev_part ENVs

2024-01-11 Thread MD Danish Anwar
When ICSSG driver is enabled (CONFIG_TI_ICSSG_PRUETH=y) set fw_storage_interface and fw_dev_part env variables. These variables need be set appropriately in order to load differnet ICSSG firmwares needed for ICSSG driver. By default the storage interface is mmc and the partition is 1:2. User can

[RFC PATCH v2 12/15] configs: am65x_evm_a53: Enable ICSSG Driver

2024-01-11 Thread MD Danish Anwar
Enable ICSSG driver in am65x_evm_a53_defconfig Signed-off-by: MD Danish Anwar --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 529bda283d..aeea24d773 100644 ---

Re: [PATCH v2 0/2] mtd: nand: omap_gpmc: Fix NAND for AM335x

2024-01-11 Thread Michael Nazzareno Trimarchi
Hi Il gio 11 gen 2024, 14:06 Roger Quadros ha scritto: > Hi, > > On 11/12/2023 13:45, Roger Quadros wrote: > > Hi, > > > > These patches fix NAND and ELM for AM335x and related legacy platforms > > that use HW BCH and ELM modules. > > > > All CI tests pass:

  1   2   >