[PATCH 2/2] sunxi: CONFIG_SYS_MMC_ENV_DEV undeclared

2024-03-30 Thread Heinrich Schuchardt
bananapi_m64_defconfig with CONFIG_ENV_IS_NOWHERE results in: board/sunxi/board.c: In function 'mmc_get_env_dev': board/sunxi/board.c:535:24: error: 'CONFIG_SYS_MMC_ENV_DEV' undeclared (first use in this function) 535 | return CONFIG_SYS_MMC_ENV_DEV; |

[PATCH 1/2] env: ENV_IS_IN_EXT4 should enable SYS_MMC_ENV_DEV

2024-03-30 Thread Heinrich Schuchardt
When enabling CONFIG_ENV_IS_IN_EXT4 the environment might be stored on an mmc device similar to the CONFIG_ENV_IS_IN_FAT case. Fixes: 7d080773347c ("Convert CONFIG_SYS_MMC_ENV_DEV et al to Kconfig") Signed-off-by: Heinrich Schuchardt --- env/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 0/2] sunxi: CONFIG_SYS_MMC_ENV_DEV undeclared

2024-03-30 Thread Heinrich Schuchardt
When enabling CONFIG_ENV_IS_IN_EXT4 the environment might be stored on an mmc device similar to the CONFIG_ENV_IS_IN_FAT case. Enable CONFIG_SYS_MMC_ENV_DEV in this case. bananapi_m64_defconfig with CONFIG_ENV_IS_NOWHERE results in: board/sunxi/board.c: In function 'mmc_get_env_dev':

Re: [PATCH] lib: add missing line breaks in debug messages

2024-03-30 Thread Heinrich Schuchardt
On 3/30/24 12:11, Maxim Moskalets wrote: Add missing line breaks to improve debug log readability. Signed-off-by: Maxim Moskalets Reviewed-by: Heinrich Schuchardt --- lib/rsa/rsa-verify.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/rsa/rsa-verify.c

[PATCH v2] mx6cuboxi: Fix Ethernet after DT sync with Linux

2024-03-30 Thread Fabio Estevam
From: Josua Mayer The i.MX6 Cubox-i and HummingBoards can have different PHYs at varying addresses. U-Boot needs to auto-detect which phy is actually present, and at which address it is responding. Auto-detection from multiple phy nodes specified in device-tree does not currently work correct.

Re: [RFC 2/2] rockchip: rk3588: Add SoC specific RAM bank logic

2024-03-30 Thread Chris Morgan
On Sat, Mar 30, 2024 at 11:53:38AM +0100, Jonas Karlman wrote: > Hi Chris, > > On 2024-03-30 06:05, Chris Morgan wrote: > > From: Chris Morgan > > > > Add SoC specific RAM bank logic for the rk3588 boards. This logic > > works by reading the ATAGS created by the ROCKCHIP_TPL stage and > >

Re: [RFC 1/2] rockchip: sdram: Allow board/soc specific RAM bank logic

2024-03-30 Thread Chris Morgan
On Sat, Mar 30, 2024 at 12:00:46PM +0100, Jonas Karlman wrote: > Hi Chris, > > On 2024-03-30 06:05, Chris Morgan wrote: > > From: Chris Morgan > > > > Allow individual boards or SoCs to alter the RAM bank addition logic > > by defining a __weak function that these boards can then override > >

[PATCH v2] mx6cuboxi: Do not print devicetree model

2024-03-30 Thread Fabio Estevam
The mx6cuboxi_defconfig target supports several board variants. All of these variants use the hummingboard devicetree in U-Boot. Currently, the devicetree model as well as the board variant name are shown: ... Model: SolidRun HummingBoard2 Dual/Quad (1.5som+emmc) Board: MX6 Cubox-i ... Printing

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

2024-03-30 Thread Fabio Estevam
Hi Tom, On Mon, Mar 25, 2024 at 5:37 PM Hiago De Franco wrote: > > How much testing has this seen outside of imx? > > Tom, I tested with the AM62 TI arm processor (Toradex Verdin AM62) and > it works fine. Do you think this one can be applied to next? Then we would have time for more testing

Re: [PATCH] net: fec_mxc: Avoid enable regulator failure

2024-03-30 Thread Fabio Estevam
On Thu, Mar 28, 2024 at 7:58 AM Ye Li wrote: > > Change to regulator_set_enable_if_allowed to avoid enable failure, > in case same phy supply shared by multiple FEC controllers. > > Signed-off-by: Ye Li Applied to u-boot-imx/next, thanks.

Re: [PATCH] arm: imx: Fix incorrect return value

2024-03-30 Thread Fabio Estevam
On Thu, Mar 28, 2024 at 7:51 AM Ye Li wrote: > > The spl_spi_get_uboot_offs weak function is defined unsigned int. > > Signed-off-by: Ye Li The original Subject is too generic, I changed it to: image-container: Fix incorrect return value Applied to u-boot-imx/next, thanks.

Re: [PATCH] thermal: imx_tmu: Fix TMU error on iMX8MQ

2024-03-30 Thread Fabio Estevam
On Thu, Mar 28, 2024 at 7:50 AM Ye Li wrote: > > imx_tmu_arch_init does not implement for iMX8MQ, error is returned > > Signed-off-by: Ye Li Applied to u-boot-imx/next, thanks.

Re: [PATCH] arm: imx9: Fix MMU map table overlap

2024-03-30 Thread Fabio Estevam
On Thu, Mar 28, 2024 at 7:49 AM Ye Li wrote: > > The size for flexspi AHB buffer space is wrong, so correct it. > > Signed-off-by: Ye Li Applied to u-boot-imx/next, thanks.

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

2024-03-30 Thread Fabio Estevam
On Thu, Mar 28, 2024 at 7:18 AM Emanuele Ghidoli wrote: > > 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

Re: [PATCH v2 0/4] imx8m: convert i.MX8MM/Q/N/P-EVK to OF_UPSTREAM

2024-03-30 Thread Fabio Estevam
On Wed, Mar 27, 2024 at 10:46 PM Peng Fan (OSS) wrote: > > This patchset is to convert NXP i.MX8M[Q,M,N,P] EVK boards to > OF_UPSTREAM > > Signed-off-by: Peng Fan > --- > Changes in v2: > - Sorry for the quick respin. > - Drop the dtb build in arch/arm/dts/Makefile > - Link to v1: >

Re: [PATCH v1] board: toradex: colibri-imx8x: Remove board_gpio_init

2024-03-30 Thread Fabio Estevam
On Wed, Mar 27, 2024 at 9:46 AM Hiago De Franco wrote: > > From: Hiago De Franco > > On Colibri iMX8X, the gpio initialization and usage should be handled by > the device tree, not by the colibri-imx8x.c code. Therefore, remove it. > > Signed-off-by: Hiago De Franco Applied to u-boot-imx/next,

Re: [PATCH] imx8: Add a default reset_cpu() implementation

2024-03-30 Thread Fabio Estevam
On Tue, Mar 26, 2024 at 9:19 AM Fabio Estevam wrote: > > From: Fabio Estevam > > Add a weak default reset_cpu() implementation just like > it is done on arch/arm/mach-imx/cpu.c. > > This allows the removal of the empty reset_cpu() in several > board files. > > Signed-off-by: Fabio Estevam

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

2024-03-30 Thread Fabio Estevam
On Mon, Mar 25, 2024 at 1:27 PM Tim Harvey wrote: > > 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 Applied to u-boot-imx/next, thanks.

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

2024-03-30 Thread Fabio Estevam
On Mon, Mar 25, 2024 at 1:27 PM Tim Harvey wrote: > > 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 Applied to u-boot-imx/next, thanks.

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

2024-03-30 Thread Fabio Estevam
On Mon, Mar 25, 2024 at 10:52 AM 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 Applied to u-boot-imx/next, thanks.

Re: [PATCH] imx8mq_evk: Remove FEC and Ethernet PHY board code

2024-03-30 Thread Fabio Estevam
On Thu, Mar 28, 2024 at 3:43 PM Fabio Estevam wrote: > > With Ethernet DM in place, there is no longer the need for having > the board_phy_config() and setup_fec() functions anymore. > > Remove them. > > Successfully tested a TFTP transfer after these changes. > > Signed-off-by: Fabio Estevam

Re: [PATCH 0/4] arm: xea: Provide enhancements for XEA board

2024-03-30 Thread Fabio Estevam
On Fri, Mar 29, 2024 at 8:18 AM Lukasz Majewski wrote: > > > This patch series is a preparatory patch for supporting > different versions of XEA board HW (until problem with > Linux kernel support for multiple revisions is resorted). > > Moreover, limits for u-boot.sb and u-boot.img has been set

[GIT PULL] Please pull u-boot-imx-next-20240330

2024-03-30 Thread Fabio Estevam
.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-next-20240330 for you to fetch changes up to f21b3e2cd954634d405fb522198d099879f3f1e7: config: xea: Add limits for SPL and u-boot proper sizes (2024-03-30 15:12:22 -0300) u-boot-imx-next-20240330 --

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

2024-03-30 Thread Tom Rini
://source.denx.de/u-boot/custodians/u-boot-efi (2024-03-28 16:01:03 > -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-master-20240330 > > for you to fetch changes up to fc07cac02adebc87b69

Re: [PATCH 1/2] arm: imx9: Correct imx9_probe_mu prototype

2024-03-30 Thread Fabio Estevam
On Thu, Mar 28, 2024 at 7:48 AM Ye Li wrote: > - ret = imx9_probe_mu(NULL, NULL); > + ret = imx9_probe_mu(); This series breaks the build because you missed updating phycore_imx93 and imx93_var_som: board/phytec/phycore_imx93/spl.c: ret = imx9_probe_mu(NULL, NULL);

[RFC PATCH v1 1/1] mmc: snps_sdhci: Add sdhci driver support for TH1520 SoC

2024-03-30 Thread Maksim Kiselev
Add support for DesignWare SDHCI host controller on Alibaba TH1520 SoC Signed-off-by: Maksim Kiselev --- drivers/mmc/Kconfig | 12 + drivers/mmc/Makefile | 1 + drivers/mmc/snps_sdhci.c | 464 +++ 3 files changed, 477 insertions(+) create mode

[RFC PATCH v1 0/1] Add TH1520 eMMC/SD controller support

2024-03-30 Thread Maksim Kiselev
Hi list, I want to introduce support for DesignWare SDHCI host controller on Alibaba TH1520 SoC. The driver based on mainline Linux and Revyos U-boot drivers. Work with eMMC and SD was tested on a LicheePi 4A board. I would like to point out that the TH1520's SDHCI controller is very similar to

Re: [PATCH] mx6cuboxi: Convert to watchdog driver model

2024-03-30 Thread Fabio Estevam
On Wed, Mar 27, 2024 at 11:19 AM Fabio Estevam wrote: > > Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused > the 'reset' command in U-Boot to not cause a board reset. > > Fix it by switching to the watchdog driver model via sysreset, which > is the preferred method for

Re: [PATCH] warp7: Convert to watchdog driver model

2024-03-30 Thread Fabio Estevam
On Wed, Mar 27, 2024 at 10:46 AM Fabio Estevam wrote: > > Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused > the 'reset' command in U-Boot to not cause a board reset. > > Fix it by switching to the watchdog driver model via sysreset, which > is the preferred method for

Re: [PATCH] mx6cuboxi: Fix board revision detection

2024-03-30 Thread Fabio Estevam
On Wed, Mar 27, 2024 at 8:50 AM Fabio Estevam wrote: > > Currently, an i.MX6 Cuboxi board is incorrectly detected > as the HummingBoard model: > > U-Boot 2024.04-rc5 (Mar 26 2024 - 15:59:22 +0100) > > CPU: Freescale i.MX6Q rev1.3 996 MHz (running at 792 MHz) > CPU: Extended Commercial

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

2024-03-30 Thread Fabio Estevam
repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-master-20240330 for you to fetch changes up to fc07cac02adebc87b69cd82f6ca6f0283d11cd5a: mx6cuboxi: Convert to watchdog driver model (2024-03-30 09:49:53 -0300) u-boot-imx-master-20240330

Re: [RFC 2/2] rockchip: rk3588: Add SoC specific RAM bank logic

2024-03-30 Thread Jonas Karlman
Hi Chris, On 2024-03-30 06:05, Chris Morgan wrote: > From: Chris Morgan > > Add SoC specific RAM bank logic for the rk3588 boards. This logic > works by reading the ATAGS created by the ROCKCHIP_TPL stage and > applies fixups on those to ensure we aren't stepping on any > reserved memory

[PATCH] lib: add missing line breaks in debug messages

2024-03-30 Thread Maxim Moskalets
Add missing line breaks to improve debug log readability. Signed-off-by: Maxim Moskalets --- lib/rsa/rsa-verify.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c index 1007b6979a..d3b4f71d6b 100644 ---

Re: [RFC 1/2] rockchip: sdram: Allow board/soc specific RAM bank logic

2024-03-30 Thread Jonas Karlman
Hi Chris, On 2024-03-30 06:05, Chris Morgan wrote: > From: Chris Morgan > > Allow individual boards or SoCs to alter the RAM bank addition logic > by defining a __weak function that these boards can then override > if needed. In the event this function fails, fallback to the default > detection

Re: [RFC] Makefile.lib: find capsule ESL dtsi file when CONFIG_OF_UPSTREAM=y

2024-03-30 Thread Sughosh Ganu
On Fri, 29 Mar 2024 at 14:04, Jon Humphreys wrote: > > Sughosh Ganu writes: > > > On Thu, 28 Mar 2024 at 09:34, Jon Humphreys wrote: > >> > >> Sughosh Ganu writes: > >> > >> > hi Jonathan, > >> > > >> > On Wed, 27 Mar 2024 at 08:05, Jonathan Humphreys > >> > wrote: > >> >> > >> >> When

Re: [PATCH v2] tpm-v2: allow algoirthm name to be configured for pcr_read and pcr_extend

2024-03-30 Thread Ilias Apalodimas
On Sat, 30 Mar 2024 at 09:15, Ilias Apalodimas wrote: > > Hi Tim > > On Sat, 30 Mar 2024 at 02:40, Tim Harvey wrote: > > > > On Thu, Mar 28, 2024 at 11:18 PM Ilias Apalodimas > > wrote: > > > > > > Hi Tim, > > > > > > On Thu, 28 Mar 2024 at 19:01, Tim Harvey wrote: > > > > > > > > For pcr_read

Re: [PATCH v2] tpm-v2: allow algoirthm name to be configured for pcr_read and pcr_extend

2024-03-30 Thread Ilias Apalodimas
Hi Tim On Sat, 30 Mar 2024 at 02:40, Tim Harvey wrote: > > On Thu, Mar 28, 2024 at 11:18 PM Ilias Apalodimas > wrote: > > > > Hi Tim, > > > > On Thu, 28 Mar 2024 at 19:01, Tim Harvey wrote: > > > > > > For pcr_read and pcr_extend commands allow the digest algorithm to be > > > specified by an