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

[PATCH 17/19] ARM: dts: stm32: Add alternate pinmux for MP13 UART4 pins

2024-04-21 Thread Marek Vasut
Add another mux option for UART4 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 | 30

[PATCH 16/19] ARM: dts: stm32: Add alternate pinmux for MP13 USART2 pins

2024-04-21 Thread Marek Vasut
Add another mux option for USART2 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

[PATCH 15/19] ARM: dts: stm32: Add alternate pinmux for MP13 USART1 pins

2024-04-21 Thread Marek Vasut
Add another mux option for USART1 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 | 30

[PATCH 14/19] ARM: dts: stm32: Add alternate pinmux for MP13 SPI3 pins

2024-04-21 Thread Marek Vasut
Add another mux option for SPI3 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 | 23

[PATCH 13/19] ARM: dts: stm32: Add alternate pinmux for MP13 SPI2 pins

2024-04-21 Thread Marek Vasut
Add another mux option for SPI2 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 | 23

[PATCH 12/19] ARM: dts: stm32: Add alternate pinmux for MP13 SDMMC2 D4..D7 pins

2024-04-21 Thread Marek Vasut
Add another mux option for SDMMC2 D4..D7 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

[PATCH 11/19] ARM: dts: stm32: Add alternate pinmux for MP13 SAI1 pins

2024-04-21 Thread Marek Vasut
Add another mux option for SAI1 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 | 32

[PATCH 10/19] ARM: dts: stm32: Add alternate pinmux for MP13 QSPI pins

2024-04-21 Thread Marek Vasut
Add another mux option for QSPI 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 | 51

[PATCH 09/19] ARM: dts: stm32: Add alternate pinmux for MP13 PWM13 pins

2024-04-21 Thread Marek Vasut
Add another mux option for PWM13 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 | 15

[PATCH 08/19] ARM: dts: stm32: Add alternate pinmux for MP13 PWM5 pins

2024-04-21 Thread Marek Vasut
Add another mux option for PWM5 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 | 15

[PATCH 07/19] ARM: dts: stm32: Add alternate pinmux for MP13 MCAN2 pins

2024-04-21 Thread Marek Vasut
Add another mux option for MCAN2 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 | 20

[PATCH 06/19] ARM: dts: stm32: Add alternate pinmux for MP13 MCAN1 pins

2024-04-21 Thread Marek Vasut
Add another mux option for MCAN1 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 | 20

[PATCH 05/19] ARM: dts: stm32: Add alternate pinmux for MP13 I2C5 pins

2024-04-21 Thread Marek Vasut
Add another mux option for I2C5 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 | 17

[PATCH 04/19] ARM: dts: stm32: Add alternate pinmux for MP13 ETH2 pins

2024-04-21 Thread Marek Vasut
Add another mux option for ETH2 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 | 45

[PATCH 03/19] ARM: dts: stm32: Add alternate pinmux for MP13 ETH1 pins

2024-04-21 Thread Marek Vasut
Add another mux option for ETH1 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 | 46

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

2024-04-21 Thread Marek Vasut
Add another mux option for ADC CC 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 | 7

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

2024-04-21 Thread Marek Vasut
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: uboot-st...@st-md-mailman.stormreply.com --- arch/arm/dts/stm32mp13-pinctrl.dtsi | 6

[PATCH] ARM: dts: stm32: add eth1 and eth2 support on stm32mp13

2024-04-21 Thread Marek Vasut
From: Christophe Roullier Add both ethernet MACs based on GMAC SNPS IP on stm32mp13. Signed-off-by: Christophe Roullier --- Cc: Christophe Roullier Cc: Joe Hershberger Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Ramon Fried Cc: u-b...@dh-electronics.com Cc:

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

2024-04-21 Thread Marek Vasut
On 3/28/24 2:14 PM, Kongyang Liu wrote: [...] @@ -464,12 +464,26 @@ static void reconfig_usbd(struct dwc2_udc *dev) { /* 2. Soft-reset OTG Core and then unreset again. */ int i; - unsigned int uTemp = writel(CORE_SOFT_RESET, >grstctl); + unsigned int uTemp;

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

2024-04-21 Thread Marek Vasut
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 , or does Linux do some other check ?

Re: [PATCH 1/2] ARM: dts: stm32: add PWR regulators support on stm32mp131

2024-04-21 Thread Marek Vasut
On 3/19/24 3:45 AM, Marek Vasut wrote: This patch adds STM32 PWR regulators DT support on stm32mp131. This requires TFA to clear RCC_SECCFGR, is disabled by default and can only be enabled on board DT level. Signed-off-by: Marek Vasut It seems these patches have been missed from the recent

[PATCH] ARM: stm32: Ping IWDG on exit from PSCI suspend code

2024-04-19 Thread Marek Vasut
. In case either of the IWDG is enabled, ping it first and then return to the OS. Signed-off-by: Marek Vasut --- Cc: Igor Opaniuk Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Simon Glass Cc: Tom Rini Cc: u-b...@dh-electronics.com Cc: uboot-st...@st-md-mailman.stormreply.com --- arch/arm/mach-stm32mp

Re: [PATCH v3 1/3] clk: imx8mm: Add support for PCIe clocks

2024-04-19 Thread Marek Vasut
On 4/19/24 5:29 PM, Tim Harvey wrote: Add support for PCIe clocks required to enable PCIe support on iMX8MM SoC. Signed-off-by: Tim Harvey Reviewed-by: Marek Vasut

Re: [PATCH v2] ARM: stm32: Initialize TAMP_SMCR BKP..PROT fields on STM32MP15xx

2024-04-18 Thread Marek Vasut
On 4/18/24 8:24 PM, Patrick DELAUNAY wrote: Hi, Hi, [...] @@ -136,6 +140,18 @@ static void security_init(void)    */   writel(0x0, TAMP_CR1); +    /* + * TAMP: Configure non-zero secure protection settings. This is + * checked by BootROM function 35ac on OTP-CLOSED device

[PATCH v3] ARM: stm32: Initialize TAMP_SMCR BKP..PROT fields on STM32MP15xx

2024-04-18 Thread Marek Vasut
until it reaches handoff to the TAMP BKPxR 5 branch address. This fixes CPU core 1 release using U-Boot PSCI implementation on an OTP-CLOSED system, i.e. system with fuse 0 bit 6 set. Reviewed-by: Patrick Delaunay Signed-off-by: Marek Vasut --- Cc: Igor Opaniuk Cc: Patrice Chotard Cc: Patrick

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

2024-04-18 Thread Marek Vasut
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? Couldn't bind rng driver (-96) SEC0: RNG instantiated sec_init failed! Yes, if I add

Re: [PATCH v2 1/3] clk: imx8mm: Add support for PCIe clocks

2024-04-18 Thread Marek Vasut
On 4/18/24 8:24 PM, Tim Harvey wrote: On Thu, Apr 18, 2024 at 11:14 AM Marek Vasut wrote: On 4/18/24 7:56 PM, Tim Harvey wrote: Add support for PCIe clocks required to enable PCIe support on iMX8MM SoC. Signed-off-by: Tim Harvey --- v2: no changes --- drivers/clk/imx/clk-imx8mm.c | 21

Re: [PATCH v2 1/3] clk: imx8mm: Add support for PCIe clocks

2024-04-18 Thread Marek Vasut
On 4/18/24 7:56 PM, Tim Harvey wrote: Add support for PCIe clocks required to enable PCIe support on iMX8MM SoC. Signed-off-by: Tim Harvey --- v2: no changes --- drivers/clk/imx/clk-imx8mm.c | 21 + 1 file changed, 21 insertions(+) diff --git

Re: [PATCH v2 2/3] pci: dw_imx: add support for IMX8MM

2024-04-18 Thread Marek Vasut
On 4/18/24 7:56 PM, Tim Harvey wrote: Add support for the IMX8MM SoC by adding driver data with the compatible string of the GPR controller. Signed-off-by: Tim Harvey Reviewed-by: Marek Vasut

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

2024-04-18 Thread Marek Vasut
On 4/18/24 6:21 PM, Tim Harvey wrote: On Fri, Jan 19, 2024 at 4:36 PM Marek Vasut wrote: Linux 6.6.y with KASLR enabled would print the following message on boot: " KASLR disabled due to lack of seed " Enable the 'kaslrseed' command so a random number seed can be pulled from CAAM an

Re: [PATCH v2 00/11] net: dwc_eth_qos: Clean up STM32 glue code and add STM32MP13xx support

2024-04-18 Thread Marek Vasut
On 4/18/24 1:36 PM, Patrice CHOTARD wrote: On 4/17/24 18:47, Marek Vasut wrote: On 3/26/24 1:07 PM, Marek Vasut wrote: Split off STM32 glue code from the DWMAC driver into separate file, similar to what other SoCs already do, to avoid mixing the ST specifics with generic DWMAC core code

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

2024-04-18 Thread Marek Vasut
master-fdt for you to fetch changes up to aad511a488c40393728156333d983c31001aac32: ARM: dts: renesas: Switch to using upstream DT (2024-04-18 05:21:26 +0200) -------- Marek Vasut (4): ARM: dts: renesas: Stop using the -u-boot DTs

Re: [PATCH 2/3] pci: dw_imx: add support for IMX8MM

2024-04-17 Thread Marek Vasut
On 4/17/24 10:09 PM, Tim Harvey wrote: Add support for the IMX8MM SoC by adding driver data with the compatible string of the GPR controller. Signed-off-by: Tim Harvey --- drivers/pci/pcie_dw_imx.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2 00/11] net: dwc_eth_qos: Clean up STM32 glue code and add STM32MP13xx support

2024-04-17 Thread Marek Vasut
On 3/26/24 1:07 PM, Marek Vasut wrote: Split off STM32 glue code from the DWMAC driver into separate file, similar to what other SoCs already do, to avoid mixing the ST specifics with generic DWMAC core code. Clean the STM32 DWMAC board code which is currently duplicated in multiple board files

Re: [Patch] dwc_eth_qos: Revert regression handling fixed phy

2024-04-17 Thread Marek Vasut
On 4/17/24 10:41 AM, Nicole Battenfeld wrote: Subject: [PATCH] dwc_eth_qos: Revert regression handling fixed phy In imx8mp operation on eqos with fixed phy I get without that patch: ERROR: no/invalid Which commit is being reverted here ?

Re: [PATCH] ARM: stm32: Initialize TAMP_SMCR BKP..PROT fields on STM32MP15xx

2024-04-15 Thread Marek Vasut
On 4/15/24 11:48 AM, Patrice CHOTARD wrote: On 4/14/24 20:39, Marek Vasut wrote: In case of an OTP-CLOSED STM32MP15xx system, the CPU core 1 cannot be released from endless loop in BootROM only by populating TAMP BKPxR 4 and 5 with magic and branch address and sending SGI0 interrupt from core

[PATCH v2] ARM: stm32: Initialize TAMP_SMCR BKP..PROT fields on STM32MP15xx

2024-04-15 Thread Marek Vasut
until it reaches handoff to the TAMP BKPxR 5 branch address. This fixes CPU core 1 release using U-Boot PSCI implementation on an OTP-CLOSED system, i.e. system with fuse 0 bit 6 set. Signed-off-by: Marek Vasut --- Cc: Igor Opaniuk Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Simon Glass Cc

Re: [PATCH] boot: fdt: Turn all addresses and sizes into u64

2024-04-14 Thread Marek Vasut
On 4/14/24 11:28 PM, Laurent Pinchart wrote: On Sun, Apr 14, 2024 at 11:25:06PM +0200, Marek Vasut wrote: On 4/14/24 9:29 PM, Laurent Pinchart wrote: Hi Marek, Thank you for the patch. On Sun, Apr 14, 2024 at 08:37:20PM +0200, Marek Vasut wrote: In case of systems where DRAM bank ends

Re: [PATCH] boot: fdt: Turn all addresses and sizes into u64

2024-04-14 Thread Marek Vasut
On 4/14/24 9:29 PM, Laurent Pinchart wrote: Hi Marek, Thank you for the patch. On Sun, Apr 14, 2024 at 08:37:20PM +0200, Marek Vasut wrote: In case of systems where DRAM bank ends at the edge of 32bit boundary, start + size calculations would overflow. This happens on STM32MP15xx with 1 DRAM

[PULL] u-boot-usb/master

2024-04-14 Thread Marek Vasut
The following changes since commit cdfcc37428e06f4730ab9a17cc084eeb7676ea1a: Merge tag 'u-boot-dfu-next-20240402' of https://source.denx.de/u-boot/custodians/u-boot-dfu (2024-04-02 22:37:23 -0400) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you

[PATCH] ARM: stm32: Initialize TAMP_SMCR BKP..PROT fields on STM32MP15xx

2024-04-14 Thread Marek Vasut
until it reaches handoff to the TAMP BKPxR 5 branch address. This fixes CPU core 1 release using U-Boot PSCI implementation on an OTP-CLOSED system, i.e. system with fuse 0 bit 6 set. Signed-off-by: Marek Vasut --- Cc: Igor Opaniuk Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Simon Glass Cc

[PATCH] ARM: stm32: Report OTP-CLOSED instead of rev.? on closed STM32MP15xx

2024-04-14 Thread Marek Vasut
as this might open a brief window for timing attacks. Instead, report that this system is OTP-CLOSED and do not report any SoC revision to avoid confusing users. Use an SEC/C abbreviation to avoid growing SOC_NAME_SIZE . Signed-off-by: Marek Vasut --- Cc: Igor Opaniuk Cc: Patrice Chotard Cc: Patrick

[PATCH] ARM: stm32: Drop superfluous Makefile entry for ecdsa_romapi.o

2024-04-14 Thread Marek Vasut
The source file is in arch/arm/mach-stm32mp/ecdsa_romapi.c and not in arch/arm/mach-stm32mp/stm32mp1/ecdsa_romapi.c . There are two Makefile entries in each subdirectory. Drop the bogus one and keep only the correct one, the one in arch/arm/mach-stm32mp/Makefile . Signed-off-by: Marek Vasut

[PATCH] boot: fdt: Turn all addresses and sizes into u64

2024-04-14 Thread Marek Vasut
calculations using u64 types. This also covers a case where a 32bit PAE system might be able to address up to 36bits of DRAM. Fixes: a4df06e41fa2 ("boot: fdt: Change type of env_get_bootm_low() to phys_addr_t") Signed-off-by: Marek Vasut --- Cc: Laurent Pinchart Cc: Matthias Schiffer Cc: S

Re: [PATCH v4 0/6] USB keyboard improvements for asahi / desktop systems

2024-04-12 Thread Marek Vasut
On 4/12/24 8:37 PM, Tom Rini wrote: On Fri, Apr 12, 2024 at 08:26:18PM +0200, Marek Vasut wrote: On 4/12/24 2:53 PM, Marek Vasut wrote: Hi, Seems to work here with a broken imx8 config from the CI. Is it ok to rely on dead code elimination? Apparently it is, build with KCFLAGS=-O0 has

Re: [PATCH v4 0/6] USB keyboard improvements for asahi / desktop systems

2024-04-12 Thread Marek Vasut
On 4/12/24 2:53 PM, Marek Vasut wrote: Hi, Seems to work here with a broken imx8 config from the CI. Is it ok to rely on dead code elimination? Apparently it is, build with KCFLAGS=-O0 has already several other missing symbols. See attached fixup Thanks, squashed, let's see how CI likes

Re: [PATCH] usb: musb-new: sunxi: support usage with DM_USB_GADGET

2024-04-12 Thread Marek Vasut
On 12/31/23 9:38 PM, Aren Moynihan wrote: Add support for building the sunxi-musb driver with DM_USB_GADGET including adding a separate IRQ handling function and registering the driver with the musb system differently. The implementation of usb_gadget_register_driver from musb-new/musb_uboot.c

Re: [PATCH v4 0/6] USB keyboard improvements for asahi / desktop systems

2024-04-12 Thread Marek Vasut
On 4/8/24 9:46 AM, Janne Grunau wrote: On Sun, Apr 07, 2024 at 03:05:59AM +0200, Marek Vasut wrote: On 4/6/24 10:04 PM, Janne Grunau wrote: On Sat, Apr 06, 2024 at 08:52:17PM +0200, Marek Vasut wrote: On 4/5/24 9:05 PM, Janne Grunau wrote: On Fri, Apr 05, 2024 at 04:52:32PM +0200, Marek

[PATCH v2] ARM: stm32: Jump to ep on successful resume in PSCI suspend code

2024-04-07 Thread Marek Vasut
stored on stack with 'ep' value in case of a successful resume, which is really in every case unless some catastrophic failure occurred during suspend. Without this change, Linux counts every resume as failed in /sys/power/suspend_stats/fail Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc

Re: [PATCH v4 0/6] USB keyboard improvements for asahi / desktop systems

2024-04-06 Thread Marek Vasut
On 4/6/24 10:04 PM, Janne Grunau wrote: On Sat, Apr 06, 2024 at 08:52:17PM +0200, Marek Vasut wrote: On 4/5/24 9:05 PM, Janne Grunau wrote: On Fri, Apr 05, 2024 at 04:52:32PM +0200, Marek Vasut wrote: On 4/4/24 8:25 AM, Janne Grunau via B4 Relay wrote: Apple USB Keyboards from 2021 need

Re: [PATCH v4 0/6] USB keyboard improvements for asahi / desktop systems

2024-04-06 Thread Marek Vasut
On 4/5/24 9:05 PM, Janne Grunau wrote: On Fri, Apr 05, 2024 at 04:52:32PM +0200, Marek Vasut wrote: On 4/4/24 8:25 AM, Janne Grunau via B4 Relay wrote: Apple USB Keyboards from 2021 need quirks to be useable. The boot HID keyboard protocol is unfortunately not described in the first interface

Re: [PATCH 11/11] net: dwc_eth_qos: Add support of STM32MP13xx platform

2024-04-05 Thread Marek Vasut
On 4/5/24 4:56 PM, Christophe ROULLIER wrote: On 3/9/24 03:11, Marek Vasut wrote: From: Christophe Roullier Add compatible "st,stm32mp13-dwmac" to manage STM32MP13 boards. Signed-off-by: Christophe Roullier Signed-off-by: Marek Vasut # Rebase, reshuffle, squash code --- Cc:

Re: [PATCH v4 0/6] USB keyboard improvements for asahi / desktop systems

2024-04-05 Thread Marek Vasut
On 4/4/24 8:25 AM, Janne Grunau via B4 Relay wrote: Apple USB Keyboards from 2021 need quirks to be useable. The boot HID keyboard protocol is unfortunately not described in the first interface descriptor but the second. This needs several changes. The USB keyboard driver has to look at all (2)

[PATCH] ARM: stm32: Jump to ep on successful resume in PSCI suspend code

2024-03-31 Thread Marek Vasut
stored on stack with 'ep' value in case of a successful resume, which is really in every case unless some catastrophic failure occurred during suspend. Without this change, Linux counts every resume as failed in /sys/power/suspend_stats/fail Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc

Re: [PATCH] net: phy: ncsi: reslove the unaligned access issue

2024-03-28 Thread Marek Vasut
On 3/28/24 4:08 PM, Tom Rini wrote: On Mon, Feb 05, 2024 at 04:13:23PM +0800, Jacky Chou wrote: From the ethernet header is not on aligned, because the length of the ethernet header is 14 bytes. Therefore, unaligned access must be done here. Signed-off-by: Jacky Chou Applied to

Re: Thoughts about U-boot binary size increase

2024-03-28 Thread Marek Vasut
On 3/28/24 10:20 AM, Lukasz Majewski wrote: Dear Community, I'd like to share with you some thoughts about growth of u-boot's binary size for SPL and u-boot proper. Board: XEA SoC : imx287 (still in active production) Problem: SPL size constrained to ~55 KiB (This cannot be exceeded).

Re: [PATCH v2 2/4] boot: fdt: Clean up env_get_bootm_size()

2024-03-26 Thread Marek Vasut
On 3/20/24 10:00 PM, Laurent Pinchart wrote: On Wed, Mar 20, 2024 at 09:52:34PM +0100, Marek Vasut wrote: On 3/18/24 5:18 PM, Laurent Pinchart wrote: @@ -142,7 +140,7 @@ phys_size_t env_get_bootm_size(void) s = env_get("bootm_low"); if (s) - tmp = (p

[PATCH v4 6/6] boot: fdt: Move usable variable below updated comment

2024-03-26 Thread Marek Vasut
Move the variable below comment which explains what the variable means. Update the comment. No functional change. Reviewed-by: Laurent Pinchart Suggested-by: Laurent Pinchart Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Kuninori Morimoto Cc: Laurent Pinchart Cc: Simon Glass

[PATCH v4 5/6] boot: fdt: Drop lmb_alloc*() typecasts

2024-03-26 Thread Marek Vasut
The lmb_alloc_base() returns phys_addr_t , map_sysmem() accepts phys_addr_t as first parameter. Declare 'addr' as phys_addr_t and get rid of the casts. Reviewed-by: Laurent Pinchart Reported-by: Laurent Pinchart Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Kuninori Morimoto Cc

[PATCH v4 4/6] boot: fdt: Clean up env_get_bootm_mapsize()

2024-03-26 Thread Marek Vasut
Reduce tmp variable use and remove unnecessary type cast in env_get_bootm_mapsize(). This aligns the env variable parsing with env_get_bootm_low(). No functional change. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Kuninori Morimoto Cc: Laurent Pinchart Cc: Simon Glass Cc: Tom

[PATCH v4 3/6] boot: fdt: Fix tmp type in env_get_bootm_size() and rename to low

2024-03-26 Thread Marek Vasut
Change type of 'tmp' variable from phys_size_t to phys_addr_t and rename it to 'low' to better describe what the variable represents, which is either the bootm_low address from environment or start of DRAM address. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Kuninori Morimoto Cc

[PATCH v4 2/6] boot: fdt: Clean up env_get_bootm_size()

2024-03-26 Thread Marek Vasut
Reduce tmp variable use and remove unnecessary type cast in env_get_bootm_size(). This aligns the env variable parsing with env_get_bootm_low(). No functional change. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Kuninori Morimoto Cc: Laurent Pinchart Cc: Simon Glass Cc: Tom

[PATCH v4 1/6] boot: fdt: Change type of env_get_bootm_low() to phys_addr_t

2024-03-26 Thread Marek Vasut
the content of "bootm_low" environment variable. Fix it by using phys_addr_t, similar to what env_get_bootm_size() does, which returns phys_size_t . Reviewed-by: Laurent Pinchart Reported-by: Laurent Pinchart Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Kuninori Morimoto C

  1   2   3   4   5   6   7   8   9   10   >