Re: [RFC] usb: xhci: Some USB devices fail to initialize

2024-05-27 Thread Marek Vasut
On 5/27/24 7:16 PM, Elena Popa wrote: Hello, Hi, We've noticed that, at least, on the i.MX8M* platforms Which exact platforms, which SoC, which board ? , some USB devices (especially USB2.0 sticks) fail Which exact sticks ? USB IDs and model would be helpful. Which U-Boot version is

[PATCH 2/2] ARM: dts: renesas: Drop R8A779H0 V4M DTs with OF_UPSTREAM counterparts

2024-05-26 Thread Marek Vasut
Remove R8A779H0 V4M DTs which are now replaced by OF_UPSTREAM counterparts. No functional change expected. This patch finalizes OF_UPSTREAM conversion of R8A779H0 V4M which DTs landed in Linux 6.9 . Signed-off-by: Marek Vasut --- Cc: Adam Ford Cc: Hai Pham Cc: Paul Barker Cc: Sumit Garg Cc

[PATCH 1/2] ARM: dts: renesas: Switch to using upstream DT on Renesas R8A779H0 V4M

2024-05-26 Thread Marek Vasut
. Signed-off-by: Marek Vasut --- Cc: Adam Ford Cc: Hai Pham Cc: Paul Barker Cc: Sumit Garg Cc: Tom Rini Cc: u-boot@lists.denx.de --- configs/r8a779h0_grayhawk_defconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/r8a779h0_grayhawk_defconfig b/configs

Re: [PATCH v2] ARM: imx: verdin-imx8mm: Set CAN oscillator frequency based on model

2024-05-22 Thread Marek Vasut
On 5/22/24 8:39 AM, Francesco Dolcini wrote: Hi, diff --git a/board/toradex/verdin-imx8mm/verdin-imx8mm.c b/board/toradex/verdin-imx8mm/verdin-imx8mm.c index 55c02653da6..ef632d95f0a 100644 --- a/board/toradex/verdin-imx8mm/verdin-imx8mm.c +++ b/board/toradex/verdin-imx8mm/verdin-imx8mm.c @@

Re: [PATCH] ARM: dts: imx8mm: Enable CPLD_Dn pull down resistor on MX8Menlo

2024-05-21 Thread Marek Vasut
On 5/21/24 2:51 PM, Peng Fan wrote: Subject: [PATCH] ARM: dts: imx8mm: Enable CPLD_Dn pull down resistor on MX8Menlo Enable CPLD_Dn pull down resistor instead of pull up to avoid intefering with CPLD power off functionality. [...] diff --git a/arch/arm/dts/imx8mm-mx8menlo.dts

[PATCH v2] ARM: imx: verdin-imx8mm: Set CAN oscillator frequency based on model

2024-05-21 Thread Marek Vasut
and V1.1D, use a 20MHz oscillator - 0059, V1.1A and V1.1B, use a 20MHz oscillator Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Francesco Dolcini Cc: Marcel Ziswiler Cc: Martyn Welch Cc: Stefano Babic Cc: u-boot@lists.denx.de --- V2: - Update t

Re: [PATCH] ARM: imx: Increase PHY auto-negotiation timeout to 20s on MX8Menlo

2024-05-21 Thread Marek Vasut
On 5/21/24 12:12 PM, Francesco Dolcini wrote: On Tue, May 21, 2024 at 11:39:38AM +0200, Marek Vasut wrote: The ethernet PHY on MX8Menlo board takes a while to come out of reset, increase the auto-negotiation timeout to prevent it from timing out in case the ethernet is used right after

[PATCH] ARM: imx: mx5: Simplify TFTP server layout on MX53 Menlo board

2024-05-21 Thread Marek Vasut
From: Olaf Mandel By removing the "boot" directory in the "m53menlo/boot/fitImage" path, we simplify the TFTP server directory layout a bit. This also requires a change to the mmcload command as it (mis-)uses the same variable as the TFTP boot. Signed-off-by: Olaf Mandel

[PATCH v4 4/4] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-21 Thread Marek Vasut
Update documentation and use nxp_imx8mcst binman etype for signing of flash.bin instead of previous horrible shell scripting. Reviewed-by: Tim Harvey Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Adam Ford Cc: Alper Nebi Yasak Cc: Andrejs Cainikovs Cc: Angus A

[PATCH v4 3/4] ARM: dts: imx: Wrap i.MX8M binman SPL and FIT nodes in CST node if IMX_HAB enabled

2024-05-21 Thread Marek Vasut
In case CONFIG_IMX_HAB is enabled, extend the binman image description for all of i.MX8M{Q,M,N,P} with CST wrapper node. This way, if CONFIG_IMX_HAB is enabled, binman will be automatically used to sign SPL and fitImage. Reviewed-by: Tim Harvey Signed-off-by: Marek Vasut --- Cc: "NXP i

[PATCH v4 2/4] ARM: dts: imx: Introduce SPL and FIT labels to i.MX8M DTs binman nodes

2024-05-21 Thread Marek Vasut
Add binman_imx_spl and binman_imx_fit labels to nxp-imx8mimage {} and fit {} nodes respectively, so they can be referened in board DTs no matter how deep in the top level binman image description they are. Update current board DTs to use those labels. Reviewed-by: Tim Harvey Signed-off-by: Marek

[PATCH v4 1/4] binman: Add nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-21 Thread Marek Vasut
Harvey Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Adam Ford Cc: Alper Nebi Yasak Cc: Andrejs Cainikovs Cc: Angus Ainslie Cc: Emanuele Ghidoli Cc: Fabio Estevam Cc: Francesco Dolcini Cc: Marcel Ziswiler Cc: Rasmus Villemoes Cc: Simon Glass Cc: Stefan Eichen

[PATCH] ARM: imx: mx5: Enable BMODE command on MX53 Menlo board

2024-05-21 Thread Marek Vasut
The board can do primary/secondary boot switching, enable the bmode command. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Stefano Babic Cc: u-boot@lists.denx.de --- configs/m53menlo_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] ARM: dts: imx8mm: Enable CPLD_Dn pull down resistor on MX8Menlo

2024-05-21 Thread Marek Vasut
Enable CPLD_Dn pull down resistor instead of pull up to avoid intefering with CPLD power off functionality. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Francesco Dolcini Cc: Marcel Ziswiler Cc: Philippe Schenker Cc: Martyn Welch Cc: Stefano Ba

[PATCH] ARM: dts: imx8mm: Update iMX8MM Menlo board configuration

2024-05-21 Thread Marek Vasut
Synchronize Toradex Verdin iMX8MM based MX8Menlo board configuration with Toradex Verdin iMX8MM and enable convenience commands like cat, hexdump, xxd. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Francesco Dolcini Cc: Marcel Ziswiler Cc: Philipp

[PATCH] ARM: imx: Increase PHY auto-negotiation timeout to 20s on MX8Menlo

2024-05-21 Thread Marek Vasut
The ethernet PHY on MX8Menlo board takes a while to come out of reset, increase the auto-negotiation timeout to prevent it from timing out in case the ethernet is used right after the board was reset. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc:

[PATCH] ARM: imx: verdin-imx8mm: Set CAN oscillator frequency based on model

2024-05-21 Thread Marek Vasut
and V1.1D, use a 20MHz oscillator - 0059, V1.1A and V1.1B, use a 20MHz oscillator Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Francesco Dolcini Cc: Marcel Ziswiler Cc: Philippe Schenker Cc: Martyn Welch Cc: Stefano Babic Cc: u-boot@lists.denx.de

[PATCH] ARM: dts: renesas: Reserve space in 64bit R-Car DTs

2024-05-19 Thread Marek Vasut
Reserve 4 kiB of space in 64bit R-Car DTs when those DTs are compiled to permit patching in OpTee-OS /firmware node, /reserved-memory node, possibly also additional /memory@ nodes and RPC node by TFA. This duplicates behavior in arch/arm/dts/Makefile with OF_UPSTREAM. Signed-off-by: Marek Vasut

[PATCH] ARM: dts: renesas: Remove leftovers after OF_UPSTREAM conversion

2024-05-19 Thread Marek Vasut
Remove leftover DTSI files after OF_UPSTREAM conversion. Those are no longer used and no longer necessary, remove them. No functional change. Signed-off-by: Marek Vasut --- Cc: Adam Ford Cc: Tom Rini --- arch/arm/dts/salvator-common.dtsi| 1104 -- arch/arm/dts

Re: [PATCH 1/1] usb: Assimilate usb_get_descriptor() to linux

2024-05-17 Thread Marek Vasut
On 5/17/24 11:18 AM, Philip Oberfichtner wrote: Before this commit, usb_get_descriptor() failed for some flakey USB devices. We hereby adopt the more robust linux implementation [1]. Can you include which exact device fails and how? Details of the failure are valuable for the next person who

Re: [PATCH v1 7/7] MAINTAINERS: Update Starfive visionfive2 maintain files.

2024-05-17 Thread Marek Vasut
/starfive_visionfive2_defconfig F: drivers/pci/pcie_starfive_jh7110.c +F: drivers/phy/starfive/ +F: drivers/usb/cdns3/cdns3-starfive.c Thanks ! Reviewed-by: Marek Vasut Thanks for reviewing the patch set! I will follow the comments. Thank you !

Re: [PATCH v3 4/4] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-16 Thread Marek Vasut
On 5/16/24 11:40 PM, Tim Harvey wrote: [...] -The entire script is available in doc/imx/habv4/csf_examples/mx8m/csf.sh -and can be used as follows to modify flash.bin to be signed -(adjust paths as needed): -``` -export CST_DIR=/usr/src/cst-3.3.1/ -export

[PATCH] ARM: dts: stm32: Add generic SoM compatible to STM32MP15xx DH electronics DHSOM

2024-05-16 Thread Marek Vasut
Add generic SoM compatible string into machine compatible string for all STM32MP15xx based DH electronics DHSOM. This way, common board code can match on this compatible. No functional change. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Simon Glass Cc: Tom Rini

[PATCH v3 4/4] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-16 Thread Marek Vasut
Update documentation and use nxp_imx8mcst binman etype for signing of flash.bin instead of previous horrible shell scripting. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Adam Ford Cc: Alper Nebi Yasak Cc: Andrejs Cainikovs Cc: Angus Ainslie Cc: Emanuele Ghidoli

[PATCH v3 3/4] ARM: dts: imx: Wrap i.MX8M binman SPL and FIT nodes in CST node if IMX_HAB enabled

2024-05-16 Thread Marek Vasut
In case CONFIG_IMX_HAB is enabled, extend the binman image description for all of i.MX8M{Q,M,N,P} with CST wrapper node. This way, if CONFIG_IMX_HAB is enabled, binman will be automatically used to sign SPL and fitImage. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc:

[PATCH v3 2/4] ARM: dts: imx: Introduce SPL and FIT labels to i.MX8M DTs binman nodes

2024-05-16 Thread Marek Vasut
Add binman_imx_spl and binman_imx_fit labels to nxp-imx8mimage {} and fit {} nodes respectively, so they can be referened in board DTs no matter how deep in the top level binman image description they are. Update current board DTs to use those labels. Signed-off-by: Marek Vasut --- Cc: "NXP

[PATCH v3 1/4] binman: Add nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-16 Thread Marek Vasut
-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Adam Ford Cc: Alper Nebi Yasak Cc: Andrejs Cainikovs Cc: Angus Ainslie Cc: Emanuele Ghidoli Cc: Fabio Estevam Cc: Francesco Dolcini Cc: Marcel Ziswiler Cc: Rasmus Villemoes Cc: Simon Glass Cc: Stefan Eichenberger Cc: Stefano Babi

Re: [v2][PATCH 2/2] MAINTAINERS: add USB gadget regex to u-boot-dfu tree

2024-05-16 Thread Marek Vasut
Korpershoek Acked-by: Marek Vasut You can try and look at the N: instead of F: (see top of MAINTAINERS for meaning), but that should be separate clean up patch.

Re: [PATCH v2 4/4] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-15 Thread Marek Vasut
On 5/16/24 12:31 AM, Tim Harvey wrote: Hi, (this is a resend... apologies if its a duplicate. I got some strange bounce that mime types were included so I'm resending with the otuput of strace cliped out) strace was a good idea and showed me what was going on. The previous documentation

Re: [PATCH v2] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-15 Thread Marek Vasut
On 5/15/24 11:11 PM, Tim Harvey wrote: On Wed, May 15, 2024 at 2:06 PM Marek Vasut wrote: On 5/15/24 10:50 PM, Tim Harvey wrote: [...] diff --git a/boot/fdt_support.c b/boot/fdt_support.c index 874ca4d6f5af..3455d60d69dc 100644 --- a/boot/fdt_support.c +++ b/boot/fdt_support.c @@ -8,6 +8,7

Re: [PATCH v2] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-15 Thread Marek Vasut
On 5/15/24 10:50 PM, Tim Harvey wrote: [...] diff --git a/boot/fdt_support.c b/boot/fdt_support.c index 874ca4d6f5af..3455d60d69dc 100644 --- a/boot/fdt_support.c +++ b/boot/fdt_support.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -300,6

Re: [PATCH] fdt: add kaslr-seed if DM_RNG is enabled

2024-05-15 Thread Marek Vasut
On 5/15/24 9:57 PM, Tim Harvey wrote: [...] The kaslrseed command similarly becomes obsolete with your patch and should be removed. 'git grep -n CMD_KASLR' indicates which defconfigs would be impacted. There are several users of this command currently: $ git grep CMD_KASLR configs/

Re: [PATCH] fdt: add kaslr-seed if DM_RNG is enabled

2024-05-15 Thread Marek Vasut
On 5/15/24 6:29 PM, Tim Harvey wrote: On Tue, May 14, 2024 at 5:50 PM Marek Vasut wrote: On 5/15/24 2:22 AM, Tim Harvey wrote: If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to randomize the virtual address at which the kernel image is loaded, it expects entropy

Re: [PATCH] mtd: spi-nor: Clear Winbond SR3 WPS bit on boot

2024-05-15 Thread Marek Vasut
On 3/6/24 1:55 PM, Michael Walle wrote: Hi, On Wed Mar 6, 2024 at 3:56 AM CET, Marek Vasut wrote: I'd argue if one wants to use the locking at all, you have to set UNLOCK_ALL=n. Otherwise, the bootloader might come alone and just clear your locking bits again. Clearing the WPS bit

Re: [PATCH v1] usb: remove not used variable in usb_ether_curr_dev

2024-05-15 Thread Marek Vasut
. Signed-off-by: Heiko Schocher Reviewed-by: Marek Vasut

Re: [PATCH] fdt: add kaslr-seed if DM_RNG is enabled

2024-05-14 Thread Marek Vasut
On 5/15/24 2:22 AM, Tim Harvey wrote: If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to randomize the virtual address at which the kernel image is loaded, it expects entropy to be provided by the bootloader by populating /chosen/kaslr-seed with a 64-bit value from source of

Re: [PATCH v2 4/4] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-14 Thread Marek Vasut
On 5/14/24 8:34 PM, Tim Harvey wrote: Hi, diff --git a/doc/imx/habv4/guides/mx8m_spl_secure_boot.txt b/doc/imx/habv4/guides/mx8m_spl_secure_boot.txt index e16e5410bd9..ce1de659d8c 100644 --- a/doc/imx/habv4/guides/mx8m_spl_secure_boot.txt +++ b/doc/imx/habv4/guides/mx8m_spl_secure_boot.txt @@

Re: [PATCH v3] mmc: allow use of hardware partition names for mmc partconf

2024-05-13 Thread Marek Vasut
On 5/13/24 10:52 PM, Tim Harvey wrote: On Mon, Apr 29, 2024 at 1:51 PM Marek Vasut wrote: On 4/29/24 6:48 PM, Tim Harvey wrote: On Sat, Apr 27, 2024 at 4:20 PM Marek Vasut wrote: On 4/27/24 2:11 AM, Tim Harvey wrote: [...] diff --git a/include/mmc.h b/include/mmc.h index 4b8327f1f93b

Re: [PATCH] imx: hab: add documentation about the required keys/certs

2024-05-12 Thread Marek Vasut
On 5/8/24 9:23 AM, Claudius Heine wrote: Hi Marek, Hi, On 2024-05-07 3:28 pm, Marek Vasut wrote: On 5/7/24 3:06 PM, Claudius Heine wrote: For CST to find the certificates and keys for signing, some keys and certs need to be copied into the u-boot build directory. Make sure to CC &quo

[PATCH] ARM: imx: Add doc/imx/ to i.MX MAINTAINERS entry

2024-05-12 Thread Marek Vasut
Make sure i.MX maintainers are CCed on doc/imx/ patches. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Claudius Heine Cc: Fabio Estevam Cc: Stefano Babic --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0

[PULL] u-boot-sh/master-cleanup

2024-05-11 Thread Marek Vasut
er-cleanup for you to fetch changes up to 2d10e76547b896fb002cb3f946ac6f9b628e9fb7: ARM: dts: renesas: Drop DTs with OF_UPSTREAM counterparts (2024-05-12 01:12:00 +0200) -------- Marek Vasut (1): ARM: dts: renesas: Drop DTs with O

Re: [PATCH v1 7/7] MAINTAINERS: Update Starfive visionfive2 maintain files.

2024-05-07 Thread Marek Vasut
/pcie_starfive_jh7110.c +F: drivers/phy/starfive/ +F: drivers/usb/cdns3/cdns3-starfive.c Thanks ! Reviewed-by: Marek Vasut

Re: [PATCH v1 4/7] usb: cdns: starfive: Add cdns USB driver

2024-05-07 Thread Marek Vasut
On 5/4/24 5:03 PM, Minda Chen wrote: [...] +static void cdns_mode_init(struct cdns_starfive *data, enum usb_dr_mode mode) +{ + regmap_update_bits(data->stg_syscon, data->stg_usb_mode, + USB_MISC_CFG_MASK, + USB_SUSPENDM_BYPS | USB_PLL_EN

Re: [PATCH v1 3/7] phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver

2024-05-07 Thread Marek Vasut
On 5/4/24 5:03 PM, Minda Chen wrote: Fix up the copyrights to year 2024 globally please. [...] +static int phy_usb3_mode_set(struct jh7110_pcie_phy *data) +{ Can this phy_usb3_mode_set and phy_pcie_mode_set be unified into single function with parameter to select usb3/pcie mode instead ?

Re: [PATCH v1 2/7] phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver

2024-05-07 Thread Marek Vasut
On 5/4/24 5:03 PM, Minda Chen wrote: [...] diff --git a/drivers/phy/starfive/Makefile b/drivers/phy/starfive/Makefile new file mode 100644 index 00..a405a75e34 --- /dev/null +++ b/drivers/phy/starfive/Makefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C)

Re: [PATCH v1 1/7] usb: cdns3: Set USB PHY mode in cdns3_probe()

2024-05-07 Thread Marek Vasut
On 5/4/24 5:03 PM, Minda Chen wrote: USB PHY maybe need to set PHY mode in different USB dr mode. So translate to generic PHY mode and call generic_phy_set_mode(). Signed-off-by: Minda Chen --- drivers/usb/cdns3/core.c | 17 + 1 file changed, 17 insertions(+) diff --git

Re: [PATCH v2 1/1] net: dwc_eth_qos: mdio: Implement clause 45

2024-05-07 Thread Marek Vasut
'<<' shifting - Fix whitespace errors Reviewed-by: Marek Vasut

Re: [PATCH] imx: hab: add documentation about the required keys/certs

2024-05-07 Thread Marek Vasut
On 5/7/24 3:06 PM, Claudius Heine wrote: For CST to find the certificates and keys for signing, some keys and certs need to be copied into the u-boot build directory. Make sure to CC "NXP i.MX U-Boot Team" , else NXP is not informed. Use scripts/get_maintainer to get the full list or just

Re: [PATCH v2 1/4] binman: Add nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-06 Thread Marek Vasut
On 5/6/24 1:52 PM, Francesco Dolcini wrote: Hello Marek, On Fri, May 03, 2024 at 03:05:09AM +0200, Marek Vasut wrote: Add new binman etype which allows signing both the SPL and fitImage sections of i.MX8M flash.bin using CST. There are multiple DT properties which govern the signing process

[PATCH v2 4/4] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-02 Thread Marek Vasut
Update documentation and use nxp_imx8mcst binman etype for signing of flash.bin instead of previous horrible shell scripting. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Adam Ford Cc: Alper Nebi Yasak Cc: Andrejs Cainikovs Cc: Angus Ainslie Cc: Emanuele Ghidoli

[PATCH v2 3/4] ARM: dts: imx: Wrap i.MX8M binman SPL and FIT nodes in CST node if IMX_HAB enabled

2024-05-02 Thread Marek Vasut
In case CONFIG_IMX_HAB is enabled, extend the binman image description for all of i.MX8M{Q,M,N,P} with CST wrapper node. This way, if CONFIG_IMX_HAB is enabled, binman will be automatically used to sign SPL and fitImage. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc:

[PATCH v2 2/4] ARM: dts: imx: Introduce SPL and FIT labels to i.MX8M DTs binman nodes

2024-05-02 Thread Marek Vasut
Add binman_imx_spl and binman_imx_fit labels to nxp-imx8mimage {} and fit {} nodes respectively, so they can be referened in board DTs no matter how deep in the top level binman image description they are. Update current board DTs to use those labels. Signed-off-by: Marek Vasut --- Cc: "NXP

[PATCH v2 1/4] binman: Add nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-05-02 Thread Marek Vasut
-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Adam Ford Cc: Alper Nebi Yasak Cc: Andrejs Cainikovs Cc: Angus Ainslie Cc: Emanuele Ghidoli Cc: Fabio Estevam Cc: Francesco Dolcini Cc: Marcel Ziswiler Cc: Rasmus Villemoes Cc: Simon Glass Cc: Stefan Eichenberger Cc: Stefano Babi

Re: [PATCH] ARM: imx: Enable kaslrseed command on DH i.MX8M Plus DHCOM

2024-04-29 Thread Marek Vasut
On 4/29/24 10:52 PM, Tim Harvey wrote: On Mon, Apr 29, 2024 at 1:51 PM Marek Vasut wrote: On 4/29/24 9:10 PM, Tim Harvey wrote: On Tue, Apr 23, 2024 at 4:18 PM Marek Vasut wrote: On 4/19/24 5:24 PM, Tim Harvey wrote: On Thu, Apr 18, 2024 at 11:42 AM Marek Vasut wrote: On 4/18/24 8:02

Re: [PATCH v4] mmc: Poll CD in case cyclic framework is enabled

2024-04-29 Thread Marek Vasut
On 4/30/24 12:36 AM, Jaehoon Chung wrote: -Original Message- From: Marek Vasut Sent: Friday, April 26, 2024 8:41 PM To: Jaehoon Chung ; u-boot@lists.denx.de Cc: 'Peng Fan' ; 'Simon Glass' Subject: Re: [PATCH v4] mmc: Poll CD in case cyclic framework is enabled On 4/26/24 8:27 AM

Re: [PATCH v3] mmc: allow use of hardware partition names for mmc partconf

2024-04-29 Thread Marek Vasut
On 4/29/24 6:48 PM, Tim Harvey wrote: On Sat, Apr 27, 2024 at 4:20 PM Marek Vasut wrote: On 4/27/24 2:11 AM, Tim Harvey wrote: [...] diff --git a/include/mmc.h b/include/mmc.h index 4b8327f1f93b..7243bd761202 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -381,6 +381,21 @@ enum

Re: [PATCH] ARM: imx: Enable kaslrseed command on DH i.MX8M Plus DHCOM

2024-04-29 Thread Marek Vasut
On 4/29/24 9:10 PM, Tim Harvey wrote: On Tue, Apr 23, 2024 at 4:18 PM Marek Vasut wrote: On 4/19/24 5:24 PM, Tim Harvey wrote: On Thu, Apr 18, 2024 at 11:42 AM Marek Vasut wrote: On 4/18/24 8:02 PM, Fabio Estevam wrote: Hi Tim, On Thu, Apr 18, 2024 at 2:54 PM Tim Harvey wrote: Fabio

Re: [EXT] Re: [PATCH 2/3] crypto/fsl: Introduce SPL_FSL_CAAM_RNG

2024-04-29 Thread Marek Vasut
On 4/29/24 11:02 AM, Gaurav Jain wrote: Hi, diff --git a/drivers/crypto/fsl/Makefile b/drivers/crypto/fsl/Makefile index 7a2543e16cc..4fbce519a0b 100644 --- a/drivers/crypto/fsl/Makefile +++ b/drivers/crypto/fsl/Makefile @@ -6,6 +6,6 @@ obj-y += sec.o obj-$(CONFIG_FSL_CAAM) += jr.o

Re: [PATCH v3] mmc: allow use of hardware partition names for mmc partconf

2024-04-27 Thread Marek Vasut
On 4/27/24 2:11 AM, Tim Harvey wrote: [...] diff --git a/include/mmc.h b/include/mmc.h index 4b8327f1f93b..7243bd761202 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -381,6 +381,21 @@ enum mmc_voltage { #define MMC_TIMING_MMC_HS200 9 #define MMC_TIMING_MMC_HS400 10 +/* emmc

Re: [PATCH v3] mmc: allow use of hardware partition names for mmc partconf

2024-04-27 Thread Marek Vasut
On 4/27/24 2:06 PM, E Shattow wrote: On Sat, Apr 27, 2024 at 3:22 AM Marek Vasut wrote: On 4/27/24 3:29 AM, E Shattow wrote: Hi Marek, On Fri, Apr 26, 2024 at 5:49 PM Marek Vasut wrote: [...] diff --git a/include/mmc.h b/include/mmc.h index 4b8327f1f93b..7243bd761202 100644

[PATCH v2 2/2] ARM: dts: stm32: Add support for STM32MP13xx DHCOR SoM and DHSBC board

2024-04-27 Thread Marek Vasut
contains the following peripherals: - Two RGMII Ethernet ports - USB-A Host port, USB-C peripheral port, USB-C power supply plug - Expansion connector Reviewed-by: Patrice Chotard Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: u-b...@dh-electronics.com Cc: uboot-st

[PATCH v2 1/2] ARM: dts: stm32: Add pinmux nodes for DH electronics STM32MP13xx DHCOR SoM and DHSBC board

2024-04-27 Thread Marek Vasut
- UART4 pins - UART7 pins - USART1 pins - USART2 pins Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: u-b...@dh-electronics.com Cc: uboot-st...@st-md-mailman.stormreply.com --- V2: Squash the pinmux patches into one megapatch --- arch/arm/dts/stm32mp13-pinctrl.dtsi

Re: [PATCH v3] mmc: allow use of hardware partition names for mmc partconf

2024-04-27 Thread Marek Vasut
On 4/27/24 3:29 AM, E Shattow wrote: Hi Marek, On Fri, Apr 26, 2024 at 5:49 PM Marek Vasut wrote: [...] diff --git a/include/mmc.h b/include/mmc.h index 4b8327f1f93b..7243bd761202 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -381,6 +381,21 @@ enum mmc_voltage { #define

Re: [PATCH v3] mmc: allow use of hardware partition names for mmc partconf

2024-04-26 Thread Marek Vasut
[...] diff --git a/include/mmc.h b/include/mmc.h index 4b8327f1f93b..7243bd761202 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -381,6 +381,21 @@ enum mmc_voltage { #define MMC_TIMING_MMC_HS200 9 #define MMC_TIMING_MMC_HS400 10 +/* emmc hardware partition values */ +enum

Re: [PATCH v2] cmd: mmc: allow use of hardware partition names for mmc partconf

2024-04-26 Thread Marek Vasut
On 4/26/24 7:36 PM, Tim Harvey wrote: On Fri, Apr 26, 2024 at 10:25 AM Marek Vasut wrote: On 4/26/24 7:12 PM, Tim Harvey wrote: eMMC devices have hardware partitions such as user, boot0, and boot1. Allow these names to be displayed when reading the mmc PARTITION_CONFIG field via 'mmc

Re: [PATCH 2/3] crypto/fsl: Introduce SPL_FSL_CAAM_RNG

2024-04-26 Thread Marek Vasut
On 4/26/24 4:39 PM, Heinrich Schuchardt wrote: On 26.04.24 06:03, Marek Vasut wrote: On 4/26/24 2:16 AM, Tim Harvey wrote: diff --git a/drivers/crypto/fsl/Makefile b/drivers/crypto/fsl/Makefile index 7a2543e16cc..4fbce519a0b 100644 --- a/drivers/crypto/fsl/Makefile +++ b/drivers/crypto/fsl

Re: [PATCH v2] cmd: mmc: allow use of hardware partition names for mmc partconf

2024-04-26 Thread Marek Vasut
On 4/26/24 7:12 PM, Tim Harvey wrote: eMMC devices have hardware partitions such as user, boot0, and boot1. Allow these names to be displayed when reading the mmc PARTITION_CONFIG field via 'mmc partconf'. Additionally allow a name to be specified when setting the PARTITION_CONFIG. Before:

Re: [PATCH 2/2] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-04-26 Thread Marek Vasut
On 4/26/24 6:00 PM, Tom Rini wrote: On Fri, Apr 26, 2024 at 08:56:29AM -0700, Tim Harvey wrote: On Fri, Apr 26, 2024 at 8:51 AM Tom Rini wrote: On Fri, Apr 26, 2024 at 08:30:23AM -0700, Tim Harvey wrote: On Thu, Apr 25, 2024 at 4:07 PM Marek Vasut wrote: Update documentation and use

Re: [PATCH] cmd: mmc: allow use of hardware parittion names for mmc partconf

2024-04-26 Thread Marek Vasut
On 4/26/24 5:14 PM, Tim Harvey wrote: On Thu, Apr 25, 2024 at 9:07 PM Marek Vasut wrote: On 4/26/24 2:14 AM, Tim Harvey wrote: eMMC devices have hardware partitions such as user, boot0, and boot1. Allow these names to be displayed when reading the mmc PARTITION_CONFIG field via 'mmc partconf

Re: [PATCH v4] mmc: Poll CD in case cyclic framework is enabled

2024-04-26 Thread Marek Vasut
On 4/26/24 8:27 AM, Jaehoon Chung wrote: Dear Marek, -Original Message- From: Marek Vasut Sent: Wednesday, April 24, 2024 8:18 AM To: u-boot@lists.denx.de; Jaehoon Chung Cc: Peng Fan ; Simon Glass Subject: Re: [PATCH v4] mmc: Poll CD in case cyclic framework is enabled On 3/16/24 9

Re: [PATCH 01/19] ARM: dts: stm32: Add alternate pinmux for MP13 ADC pins

2024-04-26 Thread Marek Vasut
On 4/26/24 9:49 AM, Patrice CHOTARD wrote: On 4/22/24 01:16, Marek Vasut wrote: Add another mux option for ADC pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: u-b...@dh-electronics.com Cc

Re: [PATCH] cmd: mmc: allow use of hardware parittion names for mmc partconf

2024-04-25 Thread Marek Vasut
On 4/26/24 2:14 AM, Tim Harvey wrote: eMMC devices have hardware partitions such as user, boot0, and boot1. Allow these names to be displayed when reading the mmc PARTITION_CONFIG field via 'mmc partconf'. Additionally allow a name to be specified when setting the PARTITION_CONFIG. Before:

Re: [PATCH 2/3] crypto/fsl: Introduce SPL_FSL_CAAM_RNG

2024-04-25 Thread Marek Vasut
On 4/26/24 2:16 AM, Tim Harvey wrote: diff --git a/drivers/crypto/fsl/Makefile b/drivers/crypto/fsl/Makefile index 7a2543e16cc..4fbce519a0b 100644 --- a/drivers/crypto/fsl/Makefile +++ b/drivers/crypto/fsl/Makefile @@ -6,6 +6,6 @@ obj-y += sec.o obj-$(CONFIG_FSL_CAAM) += jr.o fsl_hash.o

Re: [PATCH 3/3] ARM: dts: imx: Convert i.MX8M flash.bin image generation to binman

2024-04-25 Thread Marek Vasut
On 4/25/24 10:34 PM, Tim Harvey wrote: On Tue, Apr 23, 2024 at 11:33 AM Marek Vasut wrote: Rework the flash.bin image generation such that it uses the new binman nxp_imx8mimage etype. This way, the flash.bin is assembled in correct order using plain binman, without any workarounds or sections

[PATCH 2/2] imx: hab: Use nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-04-25 Thread Marek Vasut
Update documentation and use nxp_imx8mcst binman etype for signing of flash.bin instead of previous horrible shell scripting. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Adam Ford Cc: Alper Nebi Yasak Cc: Andrejs Cainikovs Cc: Angus Ainslie Cc: Emanuele Ghidoli

[PATCH 1/2] binman: Add nxp_imx8mcst etype for i.MX8M flash.bin signing

2024-04-25 Thread Marek Vasut
ge etype superclass */ + fit { description = "Configuration to load ATF before U-Boot"; #ifndef CONFIG_IMX_HAB @@ -191,5 +205,6 @@ }; }; }; + }; };

[PATCH 3/3] crypto/fsl: Differentiate between CAAM and DCP in Kconfig entry

2024-04-25 Thread Marek Vasut
Differentiate between "Enable Random Number Generator support" and "Enable Random Number Generator support" in Kconfig entry, mark the first as CAAM and the second as DCP, otherwise users cannot easily decide which of the options is which and enable the correct one. Signed

[PATCH 2/3] crypto/fsl: Introduce SPL_FSL_CAAM_RNG

2024-04-25 Thread Marek Vasut
Add SPL variant of SPL_FSL_CAAM_RNG so that the SPL_FSL_CAAM_RNG can be disabled in SPL if necessary. This may be necessary due to e.g. size constraints of the SPL. Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Emanuele Ghidoli Cc: Fabio Estevam Cc: Gaurav Jain Cc: Heinrich

[PATCH 1/3] rng: Introduce SPL_DM_RNG

2024-04-25 Thread Marek Vasut
Add SPL variant of DM_RNG so that the DM_RNG can be disabled in SPL if necessary. This may be necessary due to e.g. size constraints of the SPL. Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Emanuele Ghidoli Cc: Fabio Estevam Cc: Gaurav Jain Cc: Heinrich Schuchardt Cc: Marek

[PATCH v2 3/3] ARM: dts: imx: Convert i.MX8M flash.bin image generation to binman

2024-04-25 Thread Marek Vasut
# imx8mm_venice Tested-by: Fabio Estevam # imx8mm-evk and imx8mn-evk Signed-off-by: Marek Vasut --- WARNING: This is very likely to break corner case uses, so please do test this on your platform. NOTE: This also opens the implementation for proper CST signing etype, the CST signing would

[PATCH v2 2/3] ARM: dts: imx: Switch Ronetix iMX8MQ-CM to imx8mq-u-boot.dtsi

2024-04-25 Thread Marek Vasut
Include imx8mq-u-boot.dtsi in the board -u-boot.dtsi to pull in binman configuration instead of duplicating it in the board -u-boot.dtsi again. Drop the duplicate binman configuration. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Adam Ford Cc: Alper Nebi Yasak C

[PATCH v2 1/3] binman: Add nxp_imx8mimage etype

2024-04-25 Thread Marek Vasut
it a/tools/binman/etype/nxp_imx8mimage.py b/tools/binman/etype/nxp_imx8mimage.py new file mode 100644 index 000..3585120b79b --- /dev/null +++ b/tools/binman/etype/nxp_imx8mimage.py @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright 2023-2024 Marek Vasut +# Written with

[PATCH] binman: Fix typo in mkimage etype description

2024-04-25 Thread Marek Vasut
Fix a typo, no functional change. Signed-off-by: Marek Vasut --- Cc: Alper Nebi Yasak Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- tools/binman/btool/mkimage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/btool/mkimage.py b/tools/binman/btool

Re: [PATCH v3] usb: cdns3: gadget.c: Set fast access bit

2024-04-24 Thread Marek Vasut
s bit") in the upstream kernel is taken as reference. Signed-off-by: Aswath Govindraju Signed-off-by: Ravi Gunasekaran Reviewed-by: Roger Quadros Reviewed-by: Marek Vasut --- Changes since v2: * Updated the commit description with reference to upstream kernel commit *

Re: [PATCH] ARM: imx: Enable kaslrseed command on DH i.MX8M Plus DHCOM

2024-04-23 Thread Marek Vasut
On 4/19/24 5:24 PM, Tim Harvey wrote: On Thu, Apr 18, 2024 at 11:42 AM Marek Vasut wrote: On 4/18/24 8:02 PM, Fabio Estevam wrote: Hi Tim, On Thu, Apr 18, 2024 at 2:54 PM Tim Harvey wrote: Fabio, if you enable CONFIG_DM_RNG on an imx8m{m,p}_evk do you get the following in the SPL

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

2024-04-23 Thread Marek Vasut
On 4/23/24 9:09 AM, Mattijs Korpershoek wrote: Hi Greg, On ven., avril 19, 2024 at 15:21, Greg Malysa wrote: Hi Mattijs, Please avoid top-posting when replying, it makes following the discussion more difficult:

Re: [PATCH v4] mmc: Poll CD in case cyclic framework is enabled

2024-04-23 Thread Marek Vasut
On 3/16/24 9:13 PM, Marek Vasut wrote: In case the cyclic framework is enabled, poll the card detect of already initialized cards and deinitialize them in case they are removed. Since the card initialization is a longer process and card initialization is done on first access to an uninitialized

[PATCH] ARM: dts: imx: Enable PCIe and NVMe on DH i.MX8M Plus DHCOM PDK3

2024-04-23 Thread Marek Vasut
on, it is possible to supplant the generator functionality by fixed-clock. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Fabio Estevam Cc: Simon Glass Cc: Stefano Babic Cc: Tom Rini Cc: u-b...@dh-electronics.com Cc: u-boot@lists.denx.de --- arch/arm/dts/imx8mp-dhcom-pdk3-u-boot

[PATCH 3/3] ARM: dts: imx: Convert i.MX8M flash.bin image generation to binman

2024-04-23 Thread Marek Vasut
Rework the flash.bin image generation such that it uses the new binman nxp_imx8mimage etype. This way, the flash.bin is assembled in correct order using plain binman, without any workarounds or sections assembled in special DT node order. Signed-off-by: Marek Vasut --- WARNING: This is very

[PATCH 2/3] ARM: dts: imx: Switch Ronetix iMX8MQ-CM to imx8mq-u-boot.dtsi

2024-04-23 Thread Marek Vasut
Include imx8mq-u-boot.dtsi in the board -u-boot.dtsi to pull in binman configuration instead of duplicating it in the board -u-boot.dtsi again. Drop the duplicate binman configuration. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Adam Ford Cc: Alper Nebi Yasak C

[PATCH 1/3] binman: Add nxp_imx8mimage etype

2024-04-23 Thread Marek Vasut
nman/etype/nxp_imx8mimage.py b/tools/binman/etype/nxp_imx8mimage.py new file mode 100644 index 000..5a106e0a76e --- /dev/null +++ b/tools/binman/etype/nxp_imx8mimage.py @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright 2023-2024 Marek Vasut +# Written with much help from Simon Glass +

Re: [PATCH v2 1/3] net: eth-uclass: Introduce NET_PREFER_ROM_MAC_ADDR

2024-04-23 Thread Marek Vasut
On 4/23/24 3:35 PM, Detlev Casanova wrote: On Monday, April 22, 2024 3:47:21 P.M. EDT Marek Vasut wrote: On 4/22/24 3:56 PM, Detlev Casanova wrote: On some boards, a MAC address is set based on the CPU ID or other information. This is usually done in the misc_init_r() function. This becomes

Re: [PATCH v2] usb: cdns3: gadget.c: Set fast access bit

2024-04-23 Thread Marek Vasut
the commit message. With that fixed: Reviewed-by: Marek Vasut Thanks !

Re: [RFC PATCH 1/1] net: dwc_eth_qos: mdio: Implement clause 45

2024-04-23 Thread Marek Vasut
On 4/23/24 10:51 AM, Philip Oberfichtner wrote: Bevor this commit, only clause 22 access was possible. After this commit, clause 45 direct access will available as well. Note that there is a slight change of behavior: Before this commit, the C45E bit was set to whatever value was left in the

Re: [PATCH] usb: dwc3: support USB 3.1 controllers

2024-04-22 Thread Marek Vasut
On 4/22/24 12:53 PM, Caleb Connolly wrote: On 21/04/2024 22:38, Marek Vasut wrote: On 4/11/24 6:05 PM, Caleb Connolly wrote: The revision is different for these, add the additional check as in xhci-dwc3 core_init code. Signed-off-by: Caleb Connolly Is there a matching Linux kernel patch

Re: [PATCH] usb: dwc2: update reset method for host and device mode

2024-04-22 Thread Marek Vasut
On 4/22/24 7:31 AM, Kongyang Liu wrote: [...] @@ -167,9 +168,20 @@ static void dwc_otg_core_reset(struct udevice *dev, dev_info(dev, "%s: Timeout!\n", __func__); /* Core Soft Reset */ + snpsid = readl(>gsnpsid); writel(DWC2_GRSTCTL_CSFTRST, >grstctl); -

Re: [PATCH v2 2/3] configs/rock5b: Set NET_PREFER_ROM_MAC_ADDR to y

2024-04-22 Thread Marek Vasut
On 4/22/24 3:56 PM, Detlev Casanova wrote: --- configs/rock5b-rk3588_defconfig | 1 + 1 file changed, 1 insertion(+) This patch seems to be missing commit message and SoB line

Re: [PATCH v2 1/3] net: eth-uclass: Introduce NET_PREFER_ROM_MAC_ADDR

2024-04-22 Thread Marek Vasut
On 4/22/24 3:56 PM, Detlev Casanova wrote: On some boards, a MAC address is set based on the CPU ID or other information. This is usually done in the misc_init_r() function. This becomes a problem for net devices that are probed after the call to misc_init_r(), for example, when the ethernet is

[PATCH 19/19] ARM: dts: stm32: Add support for STM32MP13xx DHCOR SoM and DHSBC board

2024-04-21 Thread Marek Vasut
contains the following peripherals: - Two RGMII Ethernet ports - USB-A Host port, USB-C peripheral port, USB-C power supply plug - Expansion connector Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: u-b...@dh-electronics.com Cc: uboot-st...@st-md-mailman.stormreply.com

[PATCH 18/19] ARM: dts: stm32: Add alternate pinmux for MP13 UART7 pins

2024-04-21 Thread Marek Vasut
Add another mux option for UART7 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: u-b...@dh-electronics.com Cc: uboot-st...@st-md-mailman.stormreply.com --- arch/arm/dts/stm32mp13-pinctrl.dtsi | 41

  1   2   3   4   5   6   7   8   9   10   >