Re: [PATCH v2 0/6] Introduce UBI block device

2024-03-25 Thread Heiko Schocher
Hello Alexey, On 25.03.24 15:41, Alexey Romanov wrote: Hello! This series adds support for the UBI block device, which allows to read/write data block by block. For example, it can now be used for BCB or Android AB command: $ bcb load ubi 0 part_name Tested only on SPI NAND, so bind is

Upcoming Analog Devices SoC Support Submission

2024-03-25 Thread Greg Malysa
Hi Tom, I wanted to get a little bit of guidance before dumping some patches on the mailing list. I've been preparing to submit support we've developed for the Analog Devices SC5xx SoCs including both core SoC support and specific device trees and defconfigs for the eval kits available from ADI.

[PATCH] usb: dwc2: Add in version 4xx compatibility

2024-03-25 Thread Greg Malysa
From: Nathan Barrett-Morrison This adds the Synopsys device id for version 4xx of the designware IP block and extends the version check to include it to permit new hardware to run. It does not add any 4xx-specific features. Signed-off-by: Ian Roberts Signed-off-by: Greg Malysa Signed-off-by:

[PATCH] mmc: Support 32-bit only ADMA on 64-bit platforms

2024-03-25 Thread Greg Malysa
Some arm64 platforms may include SDIO host controllers that only support 32-bit ADMA. While the Linux kernel detects which size is supported and adjusts the descriptor size used dynamically, the previous u-boot implementation statically selected between the two depending on whether

[PATCH] mmc: sdhci: Fix potential ADMA descriptor table overflow

2024-03-25 Thread Greg Malysa
From: Ian Roberts Change ADMA_TABLE_NO_ENTRIES to round the division up to fully contain CONFIG_SYS_MMC_MAX_BLK_COUNT, fixing potential buffer overflow of the ADMA descriptor table. sdhci_prepare_adma_table() expecitily states it does _not_ check for overflow as the descriptor table size is

[PATCH] mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops

2024-03-25 Thread Greg Malysa
From: Ian Roberts Add this hook so that it can be overridden with driver specific implementations. We also let the original sdhci_adma_write_desc() accept so that the function can set its new value. Then export the function so that it could be reused by driver's specific implementations. The

Re: [PATCH 0/5] net: mdio-uclass: probe generic Ethernet PHY driver & Fix Beagleplay Ethernet

2024-03-25 Thread Tom Rini
On Mon, Mar 25, 2024 at 02:16:53PM +0200, Roger Quadros wrote: > Hi Tom / Joe, > > On 05/03/2024 15:24, Roger Quadros wrote: > > Currently, the GPIO Reset Device Tree properties of the > > PHY node are ignored when the PHY is probed via mdio-uclass driver [1]. > > > > To resolve this, for each

[ANN] U-Boot v2024.04-rc4 released

2024-03-25 Thread Tom Rini
Hey all, It's very late in thee release day but here's -rc5, and I'll be updating the next branch with this as well shortly. In terms of a changelog, git log --merges v2024.04-rc4..v2024.04-rc5 contains what I've pulled but as always, better PR messages and tags will provide better results

tcg2_platform_get_log failing to read address and size of memory-region via ofnode_get_addr_size

2024-03-25 Thread Tim Harvey
Greetings, I'm unable to understand why tcg2_platform_get_log is failing to read a memory region. For example the following diffs: diff --git a/arch/arm/dts/imx8mm-venice-gw73xx.dtsi b/arch/arm/dts/imx8mm-venice-gw73xx.dtsi index 7b2130dbdb21..57b3c227ceaf 100644 ---

Re: [PATCH] arm64: Fix map_range() not splitting mapped blocks

2024-03-25 Thread Hiago De Franco
On Mon, Mar 18, 2024 at 04:46:55PM -0300, Fabio Estevam wrote: > Hi Pierre, > > On Mon, Mar 18, 2024 at 4:35 PM Pierre-Clément Tosi wrote: > > > > The implementation of map_range() creates the requested mapping by > > walking the page tables, iterating over multiple PTEs and/or descending > >

Re: U-boot fails for khadas-edge -v

2024-03-25 Thread Vivek Jaiswal
Hello Fabio, I have also attached the Makefile where also the error was reported make[2]: *** [/home/vjaiswal/dev/Projects/SOLAR/khadas-dev/forTesting/yocto2_actual_meta_rockchip/build/tmp/work/rockchip_rk3399_khadas_edge_v-poky-linux/u-boot-rockchip/1_2017.09-r0/git/scripts/Makefile.build:280:

Re: [PATCH u-boot-mvebu v2 06/18] arm: mvebu: turris_omnia: Print board ECDSA public key if available

2024-03-25 Thread Marek Behún
On Sat, 23 Mar 2024 19:06:59 +0100 Marek Behún wrote: > If MCU supports the FEAT_CRYPTO feature, read board ECDSA public key > from MCU and print it. > > Signed-off-by: Marek Behún > --- > board/CZ.NIC/turris_omnia/turris_omnia.c | 25 +++- > 1 file changed, 24

Re: bugs with EFI "reserved" memory and LMB?

2024-03-25 Thread Francesco Dolcini
Hello all, re-opening this old email thread ... On Sat, Aug 12, 2023 at 08:23:32AM +0200, Heinrich Schuchardt wrote: > On 7/27/23 14:14, Emanuele Ghidoli wrote: > > On 27/07/2023 13:21, Heinrich Schuchardt wrote: > > > On 27.07.23 13:08, Emanuele Ghidoli wrote: > > > > Efi loader module have its

[PATCH] imx8m*-venice: enable TPM support

2024-03-25 Thread Tim Harvey
Enable support for TPM2 devices. As the ATTPM20P TPM2 used on the Gateworks Venice boards hangs off the SPI bus we enable SPI support as well. Signed-off-by: Tim Harvey --- configs/imx8mm_venice_defconfig | 10 ++ configs/imx8mn_venice_defconfig | 10 ++

[PATCH] arm: dts: imx8m*-venice-gw72xx: add TPM device

2024-03-25 Thread Tim Harvey
The GW71xx baseboard has a TPM that defined in the upstream dt however we need to ensure the GPIO reset line is de-asserted which we do in boot firmware with a gpio hog. Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mm-venice-gw71xx-0x-u-boot.dtsi | 7 +++

[PATCH] arm: dts: imx8mm-venice-gw7901: add digital I/O direction control GPIO's

2024-03-25 Thread Tim Harvey
The GW7901 has GPIO's to configure the direction of its isolated digital I/O signals. Add the GPIO pinmux, line names, and hog configuration. Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mm-venice-gw7901-u-boot.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH v2 6/6] spinand: bind UBI block

2024-03-25 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH v2 5/6] disk: support UBI partitions

2024-03-25 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v2 4/6] disk: don't try search for partition type if already set

2024-03-25 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v2 3/6] drivers: introduce UBI block abstraction

2024-03-25 Thread Alexey Romanov
UBI block is an virtual device, that runs on top of the MTD layer. The blocks are UBI volumes. Intended to be used in combination with other MTD drivers. Despite the fact that it, like mtdblock abstraction, it used with UCLASS_MTD, they can be used together on the system without conflicting. For

[PATCH v2 2/6] ubi: allow to write to volume with offset

2024-03-25 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 71 +++-- env/ubi.c | 10 +++

[PATCH v2 1/6] ubi: allow to read from volume with offset

2024-03-25 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7

[PATCH v2 0/6] Introduce UBI block device

2024-03-25 Thread Alexey Romanov
Hello! This series adds support for the UBI block device, which allows to read/write data block by block. For example, it can now be used for BCB or Android AB command: $ bcb load ubi 0 part_name Tested only on SPI NAND, so bind is made only for SPI NAND drivers. Can be used with mtdblock

Re: [PATCH] arm64: zynqmp: dts: Add required properties for rs485 support for KD240

2024-03-25 Thread Michal Simek
On 3/19/24 12:27, Michal Simek wrote: From: Manikanta Guntupalli Add "rts-gpios" and "linux,rs485-enabled-at-boot-time" properties to uartps node to support RS485 on KD240. Signed-off-by: Manikanta Guntupalli Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-sck-kd-g-revA.dtso | 2

Re: [PATCH] arm64: zynqmp: Disable Tri-state for SDIO

2024-03-25 Thread Michal Simek
On 3/21/24 09:52, Tejas Bhumkar wrote: Since the zynqmp pinctrl driver now includes support for the tri-state registers, ensure that the pins needing output-enable are correctly configured for SOMs. Currently, there is an issue with the detection of the MMC for the SOM kv260, resulting in

Re: [PATCH] arm64: zynqmp: Add bootcmd_usb4 variable

2024-03-25 Thread Michal Simek
On 3/20/24 12:24, Michal Simek wrote: From: Shubhangi Shrikrushna Mahalle Add "bootcmd_usb4" variable to boot through usb4 device. Signed-off-by: Shubhangi Shrikrushna Mahalle Signed-off-by: Michal Simek --- It should be the part of

Re: [PATCH] arm64: zynqmp: Also support JTAG as alternative boot mode

2024-03-25 Thread Michal Simek
On 3/20/24 12:18, Michal Simek wrote: if (reg >> BOOT_MODE_ALT_SHIFT) condition rules out alternative jtag boot mode which is 0. When 0 was used origin(HW) boot mode was used instead. That's why directly fill reg variable with requested boot mode and don't let code to read value back. "else"

Re: [PATCH] phycore_pcl063: Drop leading zero from USB vendor number

2024-03-25 Thread Marek Vasut
On 3/25/24 2:52 PM, Fabio Estevam wrote: CONFIG_USB_GADGET_VENDOR_NUM is a 16-bit number, so remove the leading zero. Reported-by: Marek Vasut Signed-off-by: Fabio Estevam --- configs/phycore_pcl063_defconfig | 2 +- configs/phycore_pcl063_ull_defconfig | 2 +- 2 files changed, 2

[PATCH] phycore_pcl063: Drop leading zero from USB vendor number

2024-03-25 Thread Fabio Estevam
CONFIG_USB_GADGET_VENDOR_NUM is a 16-bit number, so remove the leading zero. Reported-by: Marek Vasut Signed-off-by: Fabio Estevam --- configs/phycore_pcl063_defconfig | 2 +- configs/phycore_pcl063_ull_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [GIT PULL] Please pull u-boot-amlogic-fixes-20240325

2024-03-25 Thread Tom Rini
adex: verdin-am62_r5: Increase SPL_STACK_R_MALLOC_SIMPLE_LEN > (2024-03-22 11:10:51 -0400) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-amlogic.git > tags/u-boot-amlogic-fixes-20240325 > > for you to fetch changes up to d54f87f09a36ac20154955

Re: [PULL next] u-boot-at91-2024.07-a

2024-03-25 Thread Tom Rini
On Mon, Mar 25, 2024 at 09:45:44AM +0200, Eugen Hristev wrote: > Hello Tom, > > > Please pull tag u-boot-at91-2024.07-a , the first set of at91 > features for the next cycle 2024.07 . > > This feature set includes a new board named sama7g54 Curiosity. > > Thanks, > Eugen > > The following

Re: [GIT PULL] Please pull u-boot-imx-next-20240324

2024-03-25 Thread Tom Rini
On Sun, Mar 24, 2024 at 02:53:08PM -0300, Fabio Estevam wrote: > Hi Tom, > > Please pull this material for next from u-boot-imx, thanks. > > The following changes since commit fb49d6c289d942ff7de309a5c5eaa37a7f4235db: > > remoteproc: uclass: Add methods to load firmware to rproc and boot

Re: [PATCH v1 1/3] crypto/fsl: allow accessing Job Ring from non-TrustZone

2024-03-25 Thread Fabio Estevam
Hi Emanuele, On Mon, Mar 25, 2024 at 8:47 AM Emanuele Ghidoli wrote: > +config FSL_CAAM_JR_NTZ_ACCESS > + bool "Give caam Job Ring access to non-secure world" Please spell CAAM instead. > + default n 'default n' is already the default, please drop this line.

Re: [PATCH 0/5] net: mdio-uclass: probe generic Ethernet PHY driver & Fix Beagleplay Ethernet

2024-03-25 Thread Roger Quadros
Hi Tom / Joe, On 05/03/2024 15:24, Roger Quadros wrote: > Currently, the GPIO Reset Device Tree properties of the > PHY node are ignored when the PHY is probed via mdio-uclass driver [1]. > > To resolve this, for each child of the MDIO bus node, bind and probe > the generic Ethernet PHY driver

[PATCH v1 3/3] configs: colibri-imx7: allow accessing job-rings from non-TrustZone

2024-03-25 Thread Emanuele Ghidoli
From: Emanuele Ghidoli Set FSL_CAAM_JR_NTZ_ACCESS configuration since colibri-imx7 uses Freescale CAAM Job Ring linux driver Signed-off-by: Emanuele Ghidoli --- configs/colibri_imx7_defconfig | 1 + configs/colibri_imx7_emmc_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH v1 2/3] configs: colibri-imx7: set non-secure boot mode as default

2024-03-25 Thread Emanuele Ghidoli
From: Emanuele Ghidoli Linux kernel is supposed to run in non-secure world, fix the defconfig accordingly. Signed-off-by: Emanuele Ghidoli --- configs/colibri_imx7_emmc_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/colibri_imx7_emmc_defconfig

[PATCH v1 1/3] crypto/fsl: allow accessing Job Ring from non-TrustZone

2024-03-25 Thread Emanuele Ghidoli
From: Emanuele Ghidoli Add a new kconfig option to allow non-secure world access to the CAAM Job Ring. This is needed, for example, when running linux without OP-TEE services, as it's done on Colibri iMX7. Fixes: 51f1357f3428 ("Revert "drivers/crypto/fsl: assign job-rings to non-TrustZone"")

[PATCH v1 0/3] crypto/fsl: allow accessing Job Ring from non-TrustZone

2024-03-25 Thread Emanuele Ghidoli
From: Emanuele Ghidoli This series allows using Freescale CAAM Job Ring from Linux without having OP-TEE, this is needed for example on Toradex Colibri iMX7 where we just have U-Boot + Linux kernel. To achieve this add a new config option to allow the non-secure world to access job rings.

Re: [PATCH u-boot v2019.04-aspeed-openbmc] ARM: dts: aspeed: Add Ampere's BMC platform (AST2600)

2024-03-25 Thread Chanh Nguyen
On 25/03/2024 12:32, Andrew Jeffery wrote: Hi Chanh, On Tue, 2024-03-19 at 14:21 +0700, Chanh Nguyen wrote: Add the initial version of the device tree for the Ampere BMC platform, which is equipped with the Aspeed AST2600 BMC SoC. Signed-off-by: Chanh Nguyen --- arch/arm/dts/Makefile

Re: [PATCH u-boot v2019.04-aspeed-openbmc] ARM: dts: aspeed: Add Ampere's BMC platform (AST2600)

2024-03-25 Thread Andrew Jeffery
Hi Chanh, On Tue, 2024-03-19 at 14:21 +0700, Chanh Nguyen wrote: > Add the initial version of the device tree for the Ampere BMC > platform, which is equipped with the Aspeed AST2600 BMC SoC. > > Signed-off-by: Chanh Nguyen > --- > arch/arm/dts/Makefile | 1 + >

Re: [PATCH 3/4] arm: dts: k3-*-binman.dtsi: Clean up and templatize boot binaries

2024-03-25 Thread Neha Malcom Francis
Hi Manorit On 25/03/24 14:50, Manorit Chawdhry wrote: Hi Neha, On 18:40-20240322, Neha Malcom Francis wrote: Clean up templatized boot binaries for all K3 boards. This includes modifying the k3-binman.dtsi to use SPL_BOARD_DTB, BOARD_DESCRIPTION and UBOOT_BOARD_DESCRIPTION from the files that

[PATCH] arm64: dts: zynqmp: make hw-ecc as the default ecc mode

2024-03-25 Thread Venkatesh Yadav Abbarapu
Except for Linux no other component (i.e., u-boot, fsbl or BootRom) of the software stack supports software ecc engine. So, make hw-ecc as the default ecc mode. Update the same for mini u-boot nand configuration as well. Signed-off-by: Venkatesh Yadav Abbarapu ---

[GIT PULL] Please pull u-boot-amlogic-fixes-20240325

2024-03-25 Thread Neil Armstrong
://source.denx.de/u-boot/custodians/u-boot-amlogic.git tags/u-boot-amlogic-fixes-20240325 for you to fetch changes up to d54f87f09a36ac20154955297b7c999b368b0443: board: amlogic: fix buffler overflow in seria, mac & usid read (2024-03-25 09:16:19 +

Re: [PATCH v1 3/3] board: amlogic: jethubj100: update docs

2024-03-25 Thread Neil Armstrong
On 27/02/2024 07:54, Viacheslav Bocharov wrote: Improove documentation, add new revision. Signed-off-by: Viacheslav Bocharov --- doc/board/amlogic/jethub-j100.rst | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/board/amlogic/jethub-j100.rst

Re: [PATCH 3/4] arm: dts: k3-*-binman.dtsi: Clean up and templatize boot binaries

2024-03-25 Thread Manorit Chawdhry
Hi Neha, On 18:40-20240322, Neha Malcom Francis wrote: > Clean up templatized boot binaries for all K3 boards. This includes > modifying the k3-binman.dtsi to use SPL_BOARD_DTB, BOARD_DESCRIPTION and > UBOOT_BOARD_DESCRIPTION from the files that include it to further reuse > code. > > All

Re: [PATCH 00/12] arm: xea: Provide support for different XEA board HW versions

2024-03-25 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Fri, Mar 22, 2024 at 8:43 AM Lukasz Majewski wrote: > > > arch/arm/dts/Makefile | 3 +- > > arch/arm/dts/imx28-xea-1-u-boot.dtsi | 11 > > arch/arm/dts/imx28-xea-1.dts | 8 +++ > >

RE: [PATCH v3 00/20] FWU: Add support for FWU metadata version 2

2024-03-25 Thread kojima.masahisa
Hi Sughosh, > -Original Message- > From: Sughosh Ganu > Sent: Friday, March 22, 2024 7:57 PM > To: u-boot@lists.denx.de > Cc: Heinrich Schuchardt ; Ilias Apalodimas > ; Yann GAUTIER ; > Etienne Carriere ; Patrick DELAUNAY - foss > ; Michal Simek ; > Kojima, Masahisa/小島 雅久 ; Michal >

[PATCH] ARM: dts: renesas: Switch to using upstream DT

2024-03-25 Thread Marek Vasut
Enable OF_UPSTREAM to use upstream DT and add renesas/ prefix to the DEFAULT_DEVICE_TREE and OF_LIST. And thereby directly build DTB from dts/upstream/src/ including *-u-boot.dtsi files from arch/$(ARCH)/dts/ directory. The configuration update has been done using the following script: ``` sed -i

Re: [PATCH v2] board: amlogic: fix buffler overflow in seria, mac & usid read

2024-03-25 Thread Neil Armstrong
Hi, On Wed, 20 Mar 2024 09:46:11 +0100, Neil Armstrong wrote: > While meson_sm_read_efuse() doesn't overflow, the string is not > zero terminated and env_set*() will buffer overflow and add random > characters to environment. > > Thanks, Applied to

Re: [PATCH v2 0/2] ARM: dts: fix Ethernet and random MAC's on WeTek Hub/Play2

2024-03-25 Thread Neil Armstrong
Hi, On Sun, 24 Mar 2024 15:19:03 +, Christian Hewitt wrote: > In submitting the original patches for WeTek Hub/Play2 I appear to have > squashed an experimental change to place the u-boot.dtsi file on the common > board dtsi, but this was incorrect and results in broken Ethernet. Patch 1 >

Re: [PATCH v1 0/3] board: amlogic: jethubj100: small updates

2024-03-25 Thread Neil Armstrong
Hi, On Tue, 27 Feb 2024 09:54:03 +0300, Viacheslav Bocharov wrote: > Update JetHub D1/D1+ board support files. > > Viacheslav Bocharov (3): > board: amlogic: jethubj100: fix common config header > board: amlogic: jethubj100: update MAINTAINERS > board: amlogic: jethubj100: update docs > >

[PULL next] u-boot-at91-2024.07-a

2024-03-25 Thread Eugen Hristev
Hello Tom, Please pull tag u-boot-at91-2024.07-a , the first set of at91 features for the next cycle 2024.07 . This feature set includes a new board named sama7g54 Curiosity. Thanks, Eugen The following changes since commit 20a0ce574d6642e0dfe651467159039fac48cc4f: Merge tag 'v2024.04-rc4'