[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

Re: [PATCH] ARM: stm32: Default dfu_alt_info for STM32MP13xx SPI NOR

2024-03-26 Thread Marek Vasut
On 3/19/24 11:22 AM, Patrice CHOTARD wrote: On 3/19/24 03:44, Marek Vasut wrote: Define dfu_alt_info with SPI NOR layout to make it easy to install or update bootloader in the SPI NOR using dfu-util. Use the following U-Boot commands to start DFU mode: " => sf probe &&

[PATCH v2 11/11] net: dwc_eth_qos: Add support for st, ext-phyclk property

2024-03-26 Thread Marek Vasut
t; selects clock direction for RMII mode - "st,ext-phyclk" selects clock direction for all RMII/GMII/RGMII modes The "st,ext-phyclk" is the preferrable property to use. Signed-off-by: Marek Vasut --- Cc: Christophe Roullier Cc: Joe Hershberger Cc: Patrice Chotard Cc: Patrick

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

2024-03-26 Thread Marek Vasut
From: Christophe Roullier Add compatible "st,stm32mp13-dwmac" to manage STM32MP13 boards. Reviewed-by: Patrice Chotard Signed-off-by: Christophe Roullier Signed-off-by: Marek Vasut # Rebase, reshuffle, squash code --- Cc: Christophe Roullier Cc: Joe Hershberger Cc: Patrice C

[PATCH v2 09/11] net: dwc_eth_qos: Add DT parsing for STM32MP13xx platform

2024-03-26 Thread Marek Vasut
From: Christophe Roullier Manage 2 ethernet instances, select which instance to configure with mask If mask is not present in DT, it is stm32mp15 platform. Signed-off-by: Christophe Roullier Signed-off-by: Marek Vasut # Rework the code --- Cc: Christophe Roullier Cc: Joe Hershberger Cc

[PATCH v2 08/11] net: dwc_eth_qos: Constify st, eth-* values parsed out of DT

2024-03-26 Thread Marek Vasut
Use const bool for the values parsed out of DT. Drop the duplicate assignment of false into those bool variables, assign them directly with the content parsed out of DT. Abbreviate the variable name too. Reviewed-by: Patrice Chotard Signed-off-by: Marek Vasut --- Cc: Christophe Roullier Cc

[PATCH v2 07/11] net: dwc_eth_qos: Use consistent logging prints

2024-03-26 Thread Marek Vasut
Use dev_*() only to print all the logs from this glue code, instead of mixing dev_*(), log_*(), pr_*() all in one code. Reviewed-by: Patrice Chotard Signed-off-by: Marek Vasut --- Cc: Christophe Roullier Cc: Joe Hershberger Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Ramon Fried Cc: u-b

[PATCH v2 06/11] net: dwc_eth_qos: Move log_debug statements on top of case block

2024-03-26 Thread Marek Vasut
Move the log_debug() calls on top of the bit manipulation code. No functional change. Reviewed-by: Patrice Chotard Signed-off-by: Marek Vasut --- Cc: Christophe Roullier Cc: Joe Hershberger Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Ramon Fried Cc: u-b...@dh-electronics.com Cc: uboot-st

[PATCH v2 05/11] net: dwc_eth_qos: Use FIELD_PREP for ETH_SEL bitfield

2024-03-26 Thread Marek Vasut
Use FIELD_PREP to configure content of ETH_SEL bitfield in SYSCFG_PMCSETR register. No functional change. Reviewed-by: Patrice Chotard Signed-off-by: Marek Vasut --- Cc: Christophe Roullier Cc: Joe Hershberger Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Ramon Fried Cc: u-b...@dh

[PATCH v2 04/11] net: dwc_eth_qos: Scrub ifdeffery

2024-03-26 Thread Marek Vasut
rd Signed-off-by: Marek Vasut --- Cc: Christophe Roullier Cc: Joe Hershberger Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Ramon Fried Cc: u-b...@dh-electronics.com Cc: uboot-st...@st-md-mailman.stormreply.com --- V2: Add RB from Patrice --- drivers/net/dwc_eth_qos_st

[PATCH v2 03/11] net: dwc_eth_qos: Fold board_interface_eth_init into STM32 glue code

2024-03-26 Thread Marek Vasut
driver code instead. Drop the now unused duplicates from board files. Reviewed-by: Patrice Chotard Signed-off-by: Marek Vasut --- Cc: Christophe Roullier Cc: Joe Hershberger Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Ramon Fried Cc: u-b...@dh-electronics.com Cc: uboot-st...@st-md

[PATCH v2 02/11] net: dwc_eth_qos: Rename eqos_stm32_config to eqos_stm32mp15_config

2024-03-26 Thread Marek Vasut
The current glue code is specific to STM32MP15xx, the upcoming STM32MP13xx will introduce another entry specific to the STM32MP13xx. Rename the current entry to eqos_stm32mp15_config in preparation for STM32MP13xx addition. No functional change. Reviewed-by: Patrice Chotard Signed-off-by: Marek

[PATCH v2 01/11] net: dwc_eth_qos: Split STM32 glue into separate file

2024-03-26 Thread Marek Vasut
Move STM32 glue code into separate file to contain the STM32 specific code outside of the DWMAC core code. No functional change. Reviewed-by: Patrice Chotard Signed-off-by: Marek Vasut --- Cc: Christophe Roullier Cc: Joe Hershberger Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Ramon Fried

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

2024-03-26 Thread Marek Vasut
platform net: dwc_eth_qos: Add support of STM32MP13xx platform Marek Vasut (9): net: dwc_eth_qos: Split STM32 glue into separate file net: dwc_eth_qos: Rename eqos_stm32_config to eqos_stm32mp15_config net: dwc_eth_qos: Fold board_interface_eth_init into STM32 glue code net: dwc_eth_qos

Re: [PATCH v3 4/6] usb: Add environment based device ignorelist

2024-03-26 Thread Marek Vasut
On 3/26/24 9:40 AM, Janne Grunau wrote: On Fri, Mar 22, 2024 at 12:56:37PM +0100, Marek Vasut wrote: On 3/22/24 8:47 AM, Janne Grunau via B4 Relay wrote: [...] @@ -1099,6 +1142,20 @@ int usb_select_config(struct usb_device *dev) le16_to_cpus(>descriptor.idProd

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

2024-03-26 Thread Marek Vasut
On 3/26/24 3:32 AM, Greg Malysa wrote: 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

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] ARM: dts: renesas: Switch to using upstream DT

2024-03-25 Thread Marek Vasut
igned-off-by: Marek Vasut --- Cc: Adam Ford Cc: Biju Das Cc: Lad Prabhakar Cc: Paul Barker Cc: Ralph Siemsen Cc: Sumit Garg Cc: Tom Rini --- arch/arm/Kconfig | 1 + configs/alt_defconfig| 2 +- configs/blanche_defconfig| 2 +- configs/gose_defconfig | 2 +-

Re: [PATCH v3 2/3] configs: imx93-phyboard-segin: Add USB support

2024-03-24 Thread Marek Vasut
On 3/24/24 7:00 PM, Fabio Estevam wrote: On Thu, Mar 21, 2024 at 4:17 PM Marek Vasut wrote: $ git grep -i usb.*phytec configs configs/phycore_pcl063_defconfig:CONFIG_USB_GADGET_MANUFACTURER="Phytec" configs/phycore_pcl063_ull_defconfig:CONFIG_USB_GADGET_MANUFACTURER="Phytec&quo

Re: [PATCH v3 04/11] imx8mp: power-domain: Don't power off pd_bus

2024-03-22 Thread Marek Vasut
On 3/22/24 5:55 AM, Sumit Garg wrote: Hi, I think if people are concerned about power consumption then it should be implemented properly in U-Boot to remove all the DT based devices before passing on control to the next stage. I would expect imx8mp_hsiomix_off() to be called either on 'usb

Re: [PATCH v3 07/11] phy: phy-imx8m-pcie: Add support for i.MX8M{M/P} PCIe PHY

2024-03-22 Thread Marek Vasut
On 3/22/24 5:36 AM, Sumit Garg wrote: On Fri, 22 Mar 2024 at 00:47, Marek Vasut wrote: On 3/21/24 1:40 PM, Sumit Garg wrote: On Thu, 14 Mar 2024 at 09:46, Marek Vasut wrote: On 3/12/24 8:03 AM, Sumit Garg wrote: Add initial support for i.MX8M{M/P} PCIe PHY. On i.MX8M{M/P} SoCs PCIe PHY

Re: [PATCH v3 4/6] usb: Add environment based device ignorelist

2024-03-22 Thread Marek Vasut
ct); + return err; + } else if (err == -EINVAL) { + printf("usb_ignorelist parse error in \"%s\"\n", + env_get("usb_ignorelist")); Please use dev_err() here consistently with dev_dbg() above. With that fixed: Reviewed-by: Marek Vasut Thanks !

Re: [PATCH v2 4/6] usb: Add environment based device blocklist

2024-03-21 Thread Marek Vasut
On 3/19/24 10:17 PM, Janne Grunau wrote: Hi, sorry for the abysmal delay in response. On Mon, Mar 18, 2024 at 03:17:33PM +0100, Marek Vasut wrote: On 3/18/24 8:33 AM, Janne Grunau wrote: +static int usb_blocklist_parse_error(const char *blocklist, size_t pos) +{ + printf

Re: [PATCH 1/2] usb: udc: dwc3: Fold board dm_usb_gadget_handle_interrupts() into DWC3 gadget

2024-03-21 Thread Marek Vasut
On 3/21/24 11:01 AM, Mattijs Korpershoek wrote: Hi Marek, Thank you for the patch. On dim., mars 17, 2024 at 05:42, Marek Vasut wrote: The dm_usb_gadget_handle_interrupts() has no place in board code. Move this into DWC3 driver. The OMAP implementation is special, add new weak

Re: [PATCH 1/2] usb: udc: dwc3: Fold board dm_usb_gadget_handle_interrupts() into DWC3 gadget

2024-03-21 Thread Marek Vasut
On 3/21/24 6:05 PM, Caleb Connolly wrote: On 20/03/2024 20:18, Marek Vasut wrote: On 3/18/24 1:47 PM, Caleb Connolly wrote: On 17/03/2024 04:42, Marek Vasut wrote: The dm_usb_gadget_handle_interrupts() has no place in board code. Move this into DWC3 driver. The OMAP implementation

Re: [PATCH v3 04/11] imx8mp: power-domain: Don't power off pd_bus

2024-03-21 Thread Marek Vasut
On 3/21/24 6:46 AM, Sumit Garg wrote: On Thu, 21 Mar 2024 at 11:06, Marek Vasut wrote: On 3/15/24 11:41 AM, Sumit Garg wrote: On Fri, 15 Mar 2024 at 14:53, Marek Vasut wrote: On 3/15/24 6:31 AM, Sumit Garg wrote: On Thu, 14 Mar 2024 at 09:45, Marek Vasut wrote: On 3/12/24 8:03 AM

  1   2   3   4   5   6   7   8   9   10   >