[PATCH v2 6/9] test: bdinfo: Test both bdinfo and bdinfo -a

2023-10-07 Thread Marek Vasut
Factor out the core of test for all bdinfo output into bdinfo_test_all() and then reuse it to verify that both 'bdinfo' and 'bdinfo -a' print all the bdinfo output. Reviewed-by: Simon Glass Signed-off-by: Marek Vasut --- Cc: Bin Meng Cc: Mario Six Cc: Nikhil M Jain Cc:

[PATCH v2 8/9] test: bdinfo: Test bdinfo -m

2023-10-07 Thread Marek Vasut
The bdinfo -m should print only the board memory layout. Test the expected output. Signed-off-by: Marek Vasut --- Cc: Bin Meng Cc: Mario Six Cc: Nikhil M Jain Cc: Simon Glass --- V2: Rename bdinfo_test_mem() to bdinfo_check_mem() --- test/cmd/bdinfo.c | 26 +++--- 1 file

Re: [PATCH 1/3] usb: ehci: mxs: Fix the USB node pointer retrieval

2023-10-07 Thread Marek Vasut
come this was never trapped by CI ? Reviewed-by: Marek Vasut

Re: [PATCH 2/3] usb: ehci: mxs: Use regulator_set_enable_if_allowed()

2023-10-07 Thread Marek Vasut
r failed Signed-off-by: Fabio Estevam Reviewed-by: Marek Vasut

Re: [PATCH 3/3] mx28evk: Add USB Mass Storage support

2023-10-07 Thread Marek Vasut
On 10/7/23 23:56, Fabio Estevam wrote: From: Fabio Estevam Select the USB options to allow running "ums 0 mmc 0". Signed-off-by: Fabio Estevam --- configs/mx28evk_defconfig | 14 ++ 1 file changed, 14 insertions(+) diff --git a/configs/mx28evk_defconfig b/configs/mx28evk_defco

Re: [PATCH v2 3/3] mx28evk: Add USB Mass Storage support

2023-10-08 Thread Marek Vasut
On 10/8/23 22:59, Fabio Estevam wrote: From: Fabio Estevam Select the USB options to allow running "ums 0 mmc 0". Signed-off-by: Fabio Estevam --- Changes since v1: - Remove unrelated config options. (Marek) configs/mx28evk_defconfig | 12 1 file changed, 12 insertions(+) di

Re: [PATCH v3 3/3] mx28evk: Add USB Mass Storage support

2023-10-09 Thread Marek Vasut
On 10/9/23 15:15, Fabio Estevam wrote: From: Fabio Estevam Select the USB options to allow running "ums 0 mmc 0". Signed-off-by: Fabio Estevam Reviewed-by: Marek Vasut Thanks !

[PATCH] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-09 Thread Marek Vasut
Add extension to the 'mmc' command to read out the card registers. Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are supported. A register value can either be displayed or read into an environment variable. Signed-off-by: Marek Vasut --- Cc: Abdellatif El Khlifi Cc

[PATCH] ARM: dts: stm32mp: Repair damage from alignment with v6.3

2023-10-09 Thread Marek Vasut
The patch fixed by this commit renders ST STM32MP15xx EV1 board and all DHSOM SoM based boards unbootable from SPI NOR. Fix the damage by updating -u-boot.dtsi to match the stm32mp15-pinctrl.dtsi update. Fixes: 08002ffd083d ("ARM: dts: stm32mp: alignment with v6.3") Signed-off-by: M

[PATCH v2] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-10 Thread Marek Vasut
Add extension to the 'mmc' command to read out the card registers. Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are supported. A register value can either be displayed or read into an environment variable. Signed-off-by: Marek Vasut --- Cc: Abdellatif El Khlifi Cc

Re: [PATCH] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-10 Thread Marek Vasut
On 10/10/23 08:51, Heinrich Schuchardt wrote: Am 10. Oktober 2023 01:14:58 MESZ schrieb Marek Vasut : Add extension to the 'mmc' command to read out the card registers. Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are supported. A register value can either be display

[PATCH] test: fdt: Fix copyright message

2023-04-22 Thread Marek Vasut
Drop the map_to_sysmem() copy paste error. No functional change. Signed-off-by: Marek Vasut --- Cc: Jason Liu Cc: Michal Simek Cc: Ovidiu Panait Cc: Simon Glass --- test/cmd/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cmd/fdt.c b/test/cmd/fdt.c index

[PATCH 1/4] cmd: bdinfo: Map fdt_blob and new_fdt to sysmem

2023-04-22 Thread Marek Vasut
Map fdt_blob and new_fdt to sysmem, otherwise $fdtcontroladdr and bdinfo output do not match and the bdinfo output address is not a valid address accessible via sandbox memory accessors. Signed-off-by: Marek Vasut --- Cc: Jason Liu Cc: Michal Simek Cc: Ovidiu Panait Cc: Simon Glass --- cmd

[PATCH 2/4] cmd: bdinfo: Wrap network information printing into print_eth()

2023-04-22 Thread Marek Vasut
Move all the network information printing into print_eth(), no functional change. Signed-off-by: Marek Vasut --- Cc: Jason Liu Cc: Michal Simek Cc: Ovidiu Panait Cc: Simon Glass --- cmd/bdinfo.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/bdinfo.c b/cmd

[PATCH 3/4] cmd: bdinfo: Print ethaddr of current MAC

2023-04-22 Thread Marek Vasut
Instead of always printing ethaddr of MAC 0, print eth%daddr of the current MAC. Signed-off-by: Marek Vasut --- Cc: Jason Liu Cc: Michal Simek Cc: Ovidiu Panait Cc: Simon Glass --- cmd/bdinfo.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/cmd

[PATCH 4/4] test: bdinfo: Add test for command bdinfo

2023-04-22 Thread Marek Vasut
Add test for command bdinfo . Signed-off-by: Marek Vasut --- Cc: Jason Liu Cc: Michal Simek Cc: Ovidiu Panait Cc: Simon Glass --- include/test/suites.h | 1 + test/cmd/Makefile | 1 + test/cmd/bdinfo.c | 179 ++ test/cmd_ut.c | 6

[PATCH] mtd: spi-nor-core: Add fixups for s25fs512s

2023-04-22 Thread Marek Vasut
extended address mode and the page_size is fixed to 256 For future use, manufacturer code should be moved out from framework code as same as in Linux. Reviewed-by: Marek Vasut Signed-off-by: Takahiro Kuwano Signed-off-by: Hai Pham Signed-off-by: Cong Dang Signed-off-by: Marek Vasut --- Cc

[PATCH 1/4] mtd: spi: renesas: Extract strobe delay setting code into separate function

2023-04-22 Thread Marek Vasut
Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut # Fix for RZ/A1 --- Cc: Jagan Teki Cc: Vignesh R --- drivers/spi/renesas_rpc_spi.c | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/drivers/spi/renesas_rpc_spi.c b

[PATCH 2/4] mtd: spi: renesas: Enable SPI_FLASH_SFDP_SUPPORT

2023-04-22 Thread Marek Vasut
From: Hai Pham Enable support for parsing and auto discovery of parameters for SPI NOR flashes using Serial Flash Discoverable Parameters (SFDP) tables as per JESD216 standard. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Cong Dang Signed-off-by: Marek Vasut # Make SFDP

[PATCH 3/4] mtd: spi: renesas: Add R-Car Gen4 support

2023-04-22 Thread Marek Vasut
From: Hai Pham Support RPC SPI on R-Car Gen4 R8A779F0 S4 and R8A779G0 V4H SoCs. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Squash S4 and V4H patches, fix brackets around STRTIM2] --- Cc: Jagan Teki Cc: Vignesh R --- drivers/spi/renesas_rpc_spi.c

[PATCH 4/4] mtd: spi: renesas: Add 4 bytes address mode support

2023-04-22 Thread Marek Vasut
-byte address mode support possible. Reviewed-by: Marek Vasut Signed-off-by: Cong Dang Signed-off-by: Hai Pham Signed-off-by: Marek Vasut --- Cc: Jagan Teki Cc: Vignesh R --- drivers/spi/renesas_rpc_spi.c | 172 +++--- 1 file changed, 78 insertions(+), 94 deletions(-)

Re: [PATCH v2 2/2] ARM: dts: stm32mp: alignment with v6.3

2023-04-25 Thread Marek Vasut
. Reviewed-by: Marek Vasut You really could've just included the one Linux 6.3 commit hash and wrote this is synced with Linux 6.3, since all the commits listed above would be part of the Linux 6.3 commit hash anyway . It would make the commit message shorter, but this variant is also fine.

[PATCH] net: sh_eth: Fix RX error handling

2023-04-30 Thread Marek Vasut
instead of -EINVAL if the descriptor is not ready yet. Reviewed-by: Marek Vasut Signed-off-by: Valentine Barshak --- Cc: Joe Hershberger Cc: Ramon Fried --- drivers/net/sh_eth.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/net/sh_eth.c b/drivers/net

[PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-04-30 Thread Marek Vasut
In case NET networking is not enabled, it is not possible to compile the USB ethernet gadget. Protect the symbols in Makefile to avoid build failure. Such build failure may occur e.g. in case NET and USB ethernet gadget is enabled in U-Boot proper, but not in SPL. Signed-off-by: Marek Vasut

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-01 Thread Marek Vasut
On 5/1/23 15:47, Tom Rini wrote: On Sun, Apr 30, 2023 at 11:20:35PM +0200, Marek Vasut wrote: In case NET networking is not enabled, it is not possible to compile the USB ethernet gadget. Protect the symbols in Makefile to avoid build failure. Such build failure may occur e.g. in case NET and

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-01 Thread Marek Vasut
On 5/1/23 19:23, Tom Rini wrote: On Mon, May 01, 2023 at 06:53:52PM +0200, Marek Vasut wrote: On 5/1/23 15:47, Tom Rini wrote: On Sun, Apr 30, 2023 at 11:20:35PM +0200, Marek Vasut wrote: In case NET networking is not enabled, it is not possible to compile the USB ethernet gadget. Protect

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-01 Thread Marek Vasut
On 5/1/23 20:53, Tom Rini wrote: On Mon, May 01, 2023 at 07:40:57PM +0200, Marek Vasut wrote: On 5/1/23 19:23, Tom Rini wrote: On Mon, May 01, 2023 at 06:53:52PM +0200, Marek Vasut wrote: On 5/1/23 15:47, Tom Rini wrote: On Sun, Apr 30, 2023 at 11:20:35PM +0200, Marek Vasut wrote: In case

Re: [PATCH] usb: ehci-mx6: replace regulator_set_enable with *_if_allowed

2023-05-02 Thread Marek Vasut
On 5/2/23 08:51, Eugen Hristev wrote: regulator_set_enable_if_allowed already handles cases when the regulator is already enabled, or already disabled, and does not treat these as errors. With this change, the driver can work correctly even if the regulator is already taken or already disabled by

Re: [PATCH] usb: ehci-mx6: replace regulator_set_enable with *_if_allowed

2023-05-02 Thread Marek Vasut
On 5/2/23 12:41, Eugen Hristev wrote: On 5/2/23 12:18, Marek Vasut wrote: On 5/2/23 08:51, Eugen Hristev wrote: regulator_set_enable_if_allowed already handles cases when the regulator is already enabled, or already disabled, and does not treat these as errors. With this change, the driver can

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-03 Thread Marek Vasut
On 5/1/23 23:18, Tom Rini wrote: On Mon, May 01, 2023 at 10:49:37PM +0200, Marek Vasut wrote: On 5/1/23 20:53, Tom Rini wrote: On Mon, May 01, 2023 at 07:40:57PM +0200, Marek Vasut wrote: On 5/1/23 19:23, Tom Rini wrote: On Mon, May 01, 2023 at 06:53:52PM +0200, Marek Vasut wrote: On 5/1/23

Re: [PATCH] usb: ehci-mx6: replace regulator_set_enable with *_if_allowed

2023-05-03 Thread Marek Vasut
On 5/2/23 18:13, Tim Harvey wrote: On Mon, May 1, 2023 at 11:51 PM Eugen Hristev wrote: regulator_set_enable_if_allowed already handles cases when the regulator is already enabled, or already disabled, and does not treat these as errors. With this change, the driver can work correctly even if

Re: [PATCH] usb: ehci-mx6: replace regulator_set_enable with *_if_allowed

2023-05-03 Thread Marek Vasut
On 5/2/23 13:18, Eugen Hristev wrote: On 5/2/23 13:53, Marek Vasut wrote: On 5/2/23 12:41, Eugen Hristev wrote: On 5/2/23 12:18, Marek Vasut wrote: On 5/2/23 08:51, Eugen Hristev wrote: regulator_set_enable_if_allowed already handles cases when the regulator is already enabled, or already

Re: [PATCH] usb: gadget: Compile USB ethernet gadget only if NET is enabled

2023-05-04 Thread Marek Vasut
On 5/4/23 11:04, Lukasz Majewski wrote: On Sun, 30 Apr 2023 23:20:35 +0200 Marek Vasut wrote: In case NET networking is not enabled, it is not possible to compile the USB ethernet gadget. Protect the symbols in Makefile to avoid build failure. Such build failure may occur e.g. in case NET and

Re: [PATCH] usb: ehci-mx6: replace regulator_set_enable with *_if_allowed

2023-05-04 Thread Marek Vasut
On 5/4/23 10:12, Eugen Hristev wrote: On 5/4/23 00:52, Marek Vasut wrote: On 5/2/23 18:13, Tim Harvey wrote: On Mon, May 1, 2023 at 11:51 PM Eugen Hristev wrote: regulator_set_enable_if_allowed already handles cases when the regulator is already enabled, or already disabled, and does not

Re: [PATCH] usb: ehci-mx6: replace regulator_set_enable with *_if_allowed

2023-05-04 Thread Marek Vasut
On 5/4/23 13:51, Eugen Hristev wrote: On 5/4/23 14:41, Marek Vasut wrote: On 5/4/23 10:12, Eugen Hristev wrote: On 5/4/23 00:52, Marek Vasut wrote: On 5/2/23 18:13, Tim Harvey wrote: On Mon, May 1, 2023 at 11:51 PM Eugen Hristev wrote: regulator_set_enable_if_allowed already handles cases

Re: [PATCH 4/4] test: bdinfo: Add test for command bdinfo

2023-05-04 Thread Marek Vasut
On 5/4/23 17:51, Tom Rini wrote: On Sat, Apr 22, 2023 at 03:01:34PM +0200, Marek Vasut wrote: Add test for command bdinfo . Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Jason Liu Cc: Michal Simek Cc: Ovidiu Panait Cc: Simon Glass --- include/test/suites.h | 1 + test

[PATCH] ARM: stm32: Use __section(".data") with dot in the section name on DHSOM

2023-05-04 Thread Marek Vasut
The correct specifier of the section is ".data" and not "data", use the former to place the variables in ".data" section. Fixes: 731fd50e27f ("ARM: stm32: Implement board coding on AV96") Fixes: 92ca0f7446c ("ARM: dts: stm32: Synchronize DDR sett

[PATCH] ARM: stm32: Add missing header for save_boot_params

2023-05-04 Thread Marek Vasut
The get_stm32mp_rom_api_table() function is defined in sys_params.h , add the missing header to avoid compiler warning. Fixes: dbeaca79b79 ("ARM: stm32: Factor out save_boot_params") Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: uboot-s

Re: [PATCH] ARM: stm32: Fix OF_LIST on DHCOR

2023-05-05 Thread Marek Vasut
device trees used here in OF_LIST. Cc: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard This ^ should be ... Signed-off-by: Tom Rini --- ... here , followed by one more line of --- configs/stm32mp15_dhcor_basic_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[PATCH 1/4] usb: Move SPL_USB_HOST Kconfig symbol to drivers/usb/

2023-05-06 Thread Marek Vasut
To avoid piling up all the various Kconfig symbols in one place, i.e. common/spl/Kconfig, move the USB Kconfig symbols into drivers/usb/ . This commit moves SPL_USB_HOST and updates help text of both USB_HOST and SPL_USB_HOST . Signed-off-by: Marek Vasut --- Cc: Andrew Davis Cc: Chris Packham

[PATCH 2/4] usb: Move SPL_USB_STORAGE Kconfig symbol to drivers/usb/

2023-05-06 Thread Marek Vasut
To avoid piling up all the various Kconfig symbols in one place, i.e. common/spl/Kconfig, move the USB Kconfig symbols into drivers/usb/ . This commit moves SPL_USB_STORAGE and matching SYS_USB_FAT_BOOT_PARTITION . Signed-off-by: Marek Vasut --- Cc: Andrew Davis Cc: Chris Packham Cc: Jim Liu

[PATCH 3/4] usb: Move SPL_USB_GADGET and related Kconfig symbols to drivers/usb/

2023-05-06 Thread Marek Vasut
e to match the symbol changes. Signed-off-by: Marek Vasut --- Cc: Andrew Davis Cc: Chris Packham Cc: Jim Liu Cc: Lukasz Majewski Cc: Samuel Holland Cc: Simon Glass Cc: Stefan Roese Cc: Tom Rini Cc: Weijie Gao --- common/spl/Kconfig | 63 d

[PATCH 4/4] usb: gadget: Add and use matching SPL USB ethernet gadget Kconfig symbols

2023-05-06 Thread Marek Vasut
Define SPL_USB_ETH_RNDIS symbol to make it possible to select USB gadget ethernet support in SPL and U-Boot separately in Kconfig . Make use of the new symbols in gadget Makefile and move the rndis.o just below the now merged USB_ETHER symbol in Makefile. Signed-off-by: Marek Vasut --- Cc

[PATCH v2] serial: mxs: Add MXS AUART driver

2023-05-06 Thread Marek Vasut
Add trivial driver for the MXS AUART IP. This is the other UART IP present in i.MX23 and i.MX28, used to drive the non-DUART ports. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Andrejs Cainikovs Cc: Fabio Estevam Cc: Fedor Ross Cc: Jim Liu Cc: Johan Jonker Cc: M

Re: [PATCH 1/3] usb: Tidy up the usb_start flag

2023-05-06 Thread Marek Vasut
On 5/6/23 04:03, Simon Glass wrote: This should be declared in a header file so that type-checking works correctly. Add a single declaration to usb.h and remove the others. Signed-off-by: Simon Glass Reviewed-by: Marek Vasut

Re: [RFC] power: imx8m-power-domain: Add delay to align with kernel driver

2023-05-06 Thread Marek Vasut
o the lack of this delay in U-Boot, but better to align it with the driver implementation. Signed-off-by: Fabio Estevam Reviewed-by: Marek Vasut

Re: [PATCH v5 02/10] clk: renesas: prepare for non R-Car clock drivers

2023-05-07 Thread Marek Vasut
directory, without bringing in the R-Car support code. The support code contains platform specific access (TMU_BASE) which is not needed on other Renesas devices such as RZ/N1. Signed-off-by: Ralph Siemsen Reviewed-by: Sean Anderson Reviewed-by: Marek Vasut

Re: [PATCH v5 03/10] clk: renesas: add R906G032 driver

2023-05-07 Thread Marek Vasut
dev_dbg(dev, "unable to find regmap\n"); + return PTR_ERR(priv->regmap); + } + + /* Enable S/W reset */ + regmap_write(priv->regmap, 0x120, 0x41); Please introduce a macro for the register name and BIT()s for the register bits. With

Re: [PATCH v5 06/10] ARM: dts: add devicetree for Renesas RZ/N1 SoC

2023-05-07 Thread Marek Vasut
On 4/24/23 03:15, Ralph Siemsen wrote: This is taken directly from Linux kernel 6.3-rc7. You can now use final 6.3 since it was released . A commit ID of that 6.3 (source commit in Linux) in the commit message is a good practice. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut

Re: [PATCH v5 07/10] ARM: rmobile: Add support for Renesas RZ/N1 SoC

2023-05-07 Thread Marek Vasut
On 4/24/23 03:15, Ralph Siemsen wrote: [...] diff --git a/arch/arm/mach-rmobile/cpu_info.c b/arch/arm/mach-rmobile/cpu_info.c index 7e7465a2c8..15be32af31 100644 --- a/arch/arm/mach-rmobile/cpu_info.c +++ b/arch/arm/mach-rmobile/cpu_info.c @@ -31,6 +31,7 @@ void enable_caches(void) #ifdef

Re: [PATCH v5 08/10] board: schneider: add RZN1 board support

2023-05-07 Thread Marek Vasut
On 4/24/23 03:15, Ralph Siemsen wrote: Add support for Schneider Electronics RZ/N1D and RZ/N1S boards, which are based on the Reneasas RZ/N1 SoC devices. The intention is to support both boards using a single defconfig, and to handle the differences at runtime. The DT comes from Linux kernel,

Re: [PATCH v5 09/10] tools: spkgimage: add Renesas SPKG format

2023-05-07 Thread Marek Vasut
return -EINVAL; Wouldn't this return -EINVAL; leak memory allocated by the calloc() above? [...] With that fixed: Reviewed-by: Marek Vasut

Re: [PATCH v5 10/10] doc: renesas: add Renesas board docs

2023-05-07 Thread Marek Vasut
+* RZ/A1 (32-bit) +- GR-PEACH board +* RZ/G +- Beacon-rzg2 board +- Hihope-rzg2 board +- ek874 board +* RZ/N1 (32-bit) +- Schneider rzn1-snarc board [...] With the above fixed: Reviewed-by: Marek Vasut

Re: [PATCH v5 05/10] ram: cadence: add driver for Cadence EDAC

2023-05-07 Thread Marek Vasut
On 4/24/23 03:15, Ralph Siemsen wrote: [...] diff --git a/drivers/ram/cadence/ddr_ctrl.c b/drivers/ram/cadence/ddr_ctrl.c new file mode 100644 index 00..35544fbb95 --- /dev/null +++ b/drivers/ram/cadence/ddr_ctrl.c [...] +void cdns_ddr_ctrl_start(void *ddr_ctrl_basex) +{ + u32

Re: [UBOOT PATCH 0/3] Port the usb reset patches from linux

2023-05-08 Thread Marek Vasut
On 5/8/23 05:00, Venkatesh Yadav Abbarapu wrote: Port the usb reset patches from linux kernel. What kind of patches are these ? What sort of problem are those patches attempting to address ? Venkatesh Yadav Abbarapu (3): usb: dwc3: core: improve reset sequence usb: dwc3: gadget: Don't s

Re: [PATCH v5 09/10] tools: spkgimage: add Renesas SPKG format

2023-05-08 Thread Marek Vasut
On 5/8/23 19:50, Ralph Siemsen wrote: On Sun, May 07, 2023 at 06:08:33PM +0200, Marek Vasut wrote: [...] +static int spkgimage_parse_config_file(char *filename) +{ +    FILE *fcfg; +    char line[256]; +    size_t line_num = 0; + +    fcfg = fopen(filename, "r"); +   

Re: [PATCH v5 08/10] board: schneider: add RZN1 board support

2023-05-08 Thread Marek Vasut
On 5/8/23 20:23, Ralph Siemsen wrote: On Sun, May 07, 2023 at 06:06:40PM +0200, Marek Vasut wrote: On 4/24/23 03:15, Ralph Siemsen wrote: Add support for Schneider Electronics RZ/N1D and RZ/N1S boards, which are based on the Reneasas RZ/N1 SoC devices. The intention is to support both boards

Re: [PATCH 1/5] arm: mxs: Provide Kconfig option to to not use VDD5V as IMX28 PMU source

2023-05-09 Thread Marek Vasut
On 5/9/23 16:32, Lukasz Majewski wrote: This option sets the current limit for 5V source to zero, so all the PMU outputs are primarily powered from battery source (DCDC_BAT). This option may be set on systems, where the 5V is NOT supposed to be in any scenario powering the system - for example o

Re: [PATCH] dwc3: Get the ref clock from the child node(dwc3)

2023-05-09 Thread Marek Vasut
On 5/9/23 06:11, Venkatesh Yadav Abbarapu wrote: Currently the parent node(dwc3) ref_clk is updated to the dwc3->ref_clk, but we need to update the child node(dwc3) "ref" clock to the dwc3->ref_clk. For versal SOC, the parent node(usb) ref_clk is updated to dwc3->ref_clk which is USB3_DUAL_REF, w

Re: [PATCH 1/5] arm: mxs: Provide Kconfig option to to not use VDD5V as IMX28 PMU source

2023-05-09 Thread Marek Vasut
On 5/9/23 16:46, Lukasz Majewski wrote: Hi Marek, Hi, On 5/9/23 16:32, Lukasz Majewski wrote: This option sets the current limit for 5V source to zero, so all the PMU outputs are primarily powered from battery source (DCDC_BAT). This option may be set on systems, where the 5V is NOT suppose

Re: [PATCH v5 09/10] tools: spkgimage: add Renesas SPKG format

2023-05-09 Thread Marek Vasut
On 5/9/23 15:07, Ralph Siemsen wrote: On Tue, May 09, 2023 at 04:25:06AM +0200, Marek Vasut wrote: The usual fail path handling like: " if (there is an error)  goto exit; ... exit: free(data); return ret; " does not work here ? Yes, this would handle de-allocation in the fa

Re: [PATCH 1/5] arm: mxs: Provide Kconfig option to to not use VDD5V as IMX28 PMU source

2023-05-09 Thread Marek Vasut
On 5/9/23 17:04, Lukasz Majewski wrote: Hi Marek, On 5/9/23 16:46, Lukasz Majewski wrote: Hi Marek, Hi, On 5/9/23 16:32, Lukasz Majewski wrote: This option sets the current limit for 5V source to zero, so all the PMU outputs are primarily powered from battery source (DCDC_BAT). This opti

[PATCH] ARM: stm32: Add IWDG handling into PSCI suspend code

2023-05-10 Thread Marek Vasut
suspend again This does not seem to have any adverse impact on power consumption in suspend. Signed-off-by: Marek Vasut --- Cc: Ilias Apalodimas Cc: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Sughosh Ganu Cc: u-boot@lists.denx.de Cc: uboot-st...@st-md-mailman.stormreply.com --- arch

Re: [PATCH] ARM: stm32: Add IWDG handling into PSCI suspend code

2023-05-11 Thread Marek Vasut
On 5/11/23 08:39, Patrice CHOTARD wrote: Hi, On 5/11/23 02:22, Marek Vasut wrote: In case the IWDG is enabled by either U-Boot or Linux, the IWDG can never be disabled again. That includes low power states, which means that if the IWDG is enabled, the SoC would reset itself after a while in

[PATCH v2] ARM: stm32: Add IWDG handling into PSCI suspend code

2023-05-11 Thread Marek Vasut
suspend again This does not seem to have any adverse impact on power consumption in suspend. Signed-off-by: Marek Vasut --- Cc: Ilias Apalodimas Cc: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Sughosh Ganu Cc: u-boot@lists.denx.de Cc: uboot-st...@st-md-mailman.stormreply.com --- V2

Re: [PATCH] ARM: stm32: Add IWDG handling into PSCI suspend code

2023-05-12 Thread Marek Vasut
On 5/12/23 15:43, Patrick DELAUNAY wrote: Hi, Hi, +    /* Ping IWDG2 and ACK pretimer IRQ */ +    if (iwdg2_wake) { +    writel(IWDG_KR_RELOAD_KEY, STM32_IWDG2_BASE + IWDG_KR); +    writel(IWDG_EWCR_EWIC, STM32_IWDG2_BASE + IWDG_EWCR); +    } +    }     writel(

Re: [PATCH v5 07/10] ARM: rmobile: Add support for Renesas RZ/N1 SoC

2023-05-12 Thread Marek Vasut
, RTC, LCD Add basic support for this family, modeled on the existing RZA1. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut

Re: [PATCH v5 08/10] board: schneider: add RZN1 board support

2023-05-12 Thread Marek Vasut
Reviewed-by: Marek Vasut

Re: [PATCH v7 07/10] ARM: rmobile: Add support for Renesas RZ/N1 SoC

2023-05-12 Thread Marek Vasut
, RTC, LCD Add basic support for this family, modeled on the existing RZA1. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut

Re: [PATCH v7 08/10] board: schneider: add RZN1 board support

2023-05-12 Thread Marek Vasut
Reviewed-by: Marek Vasut

Re: [PATCH v7 05/10] ram: cadence: add driver for Cadence EDAC

2023-05-12 Thread Marek Vasut
On 5/13/23 03:36, Ralph Siemsen wrote: Driver for Cadence EDAC DDR controller, as found in the Renesas RZ/N1. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut

[PULL] u-boot-sh/master_rzn1/rzn1

2023-05-13 Thread Marek Vasut
The following changes since commit e94fbdd2729fdcd570035d43f67adda8e0dfc115: Merge https://source.denx.de/u-boot/custodians/u-boot-x86 (2023-05-11 08:40:33 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-sh.git master_rzn1/rzn1 for you to fetc

Re: [PATCH] usb: kbd: dwc2: Increase wait for dwc2 controller reset by 125us

2023-05-15 Thread Marek Vasut
On 5/15/23 16:53, Filip Zaludek wrote: Two following performance patches applied together occasionally harm usb keyboard on RPi3. 'dwc2: use the nonblock argument in submit_int_msg' commit 9dcab2c4d2cb50ab1864c818b82a72393c160236 'console: usb: kbd: Limit poll frequency to improve performance'

[PULL] u-boot-sh/next_gpio

2023-05-16 Thread Marek Vasut
The following changes since commit 5d0b3dde115b0d26d414199678983d01b738ad1b: Merge branch '2023-05-15-build-system-updates' into next (2023-05-15 15:26:54 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-sh.git next_gpio for you to fetch change

[PATCH 1/4] cmd: bind: Add unbind command with driver filter

2023-05-16 Thread Marek Vasut
d at the end. " bind /soc/usb-otg@4900 usb_ether setenv ethact usb_ether setenv loadaddr 0xc200 setenv ipaddr 10.0.0.2 setenv serverip 10.0.0.1 setenv netmask 255.255.255.0 tftpboot 0xc200 10.0.0.1:test.file unbind /soc/usb-otg@4900 usb_ether " Signed-off-by: Marek Vasut --

[PATCH 2/4] usb: gadget: ether: Inline functions used once

2023-05-16 Thread Marek Vasut
These functions here are only ever called once since drop of non-DM networking code. Inline them. No functional change. Signed-off-by: Marek Vasut --- Cc: Kevin Hilman Cc: Lukasz Majewski Cc: Marek Vasut Cc: Simon Glass --- drivers/usb/gadget/ether.c | 48

[PATCH 3/4] usb: gadget: ether: Move probe function above driver structure

2023-05-16 Thread Marek Vasut
Move the driver probe function above the driver structure, so it can be placed alongside other related functions, like upcoming remove function. No functional change. Signed-off-by: Marek Vasut --- Cc: Kevin Hilman Cc: Lukasz Majewski Cc: Marek Vasut Cc: Simon Glass --- drivers/usb/gadget

[PATCH 4/4] usb: gadget: ether: Handle gadget driver registration in probe and remove

2023-05-16 Thread Marek Vasut
ing USB gadget functionality. This also drops use of usb_gadget_initialize()/usb_gadget_release(), which are helper functions implemented in the UDC uclass to bind and unbind UDC drivers to controllers from U-Boot command line. Those have no place in drivers. Signed-off-by: Marek Vasut --- NOTE

Re: [UBOOT PATCH 0/3] Port the usb reset patches from linux

2023-05-17 Thread Marek Vasut
On 5/17/23 08:37, Michal Simek wrote: Hi, Hi, On 5/8/23 13:56, Marek Vasut wrote: On 5/8/23 05:00, Venkatesh Yadav Abbarapu wrote: Port the usb reset patches from linux kernel. What kind of patches are these ? What sort of problem are those patches attempting to address ? Venkatesh

[PATCH] ARM: stm32: Power cycle Buck3 in reset on DHSOM

2023-05-17 Thread Marek Vasut
27;t affect the DHSOM . Signed-off-by: Marek Vasut --- NOTE: This is 2023.07 material NOTE: d1a4b09de64 ("board: st: stpmic1: add function stpmic1_init") mentions 'keep vdd on during the reset cycle (to avoid issue when backup battery is absent)', but there is no furt

[PULL] u-boot-usb/next

2023-05-18 Thread Marek Vasut
nges up to da83ada02a2684f743fadaf3b915e92f83d74628: usb: gadget: Add and use matching SPL USB ethernet gadget Kconfig symbols (2023-05-17 01:51:39 +0200) -------- Marek Vasut (4): usb: Move SPL_USB_HOST Kconfig symbol to drivers/usb/

Re: [PATCH 1/5] arm: mxs: Provide Kconfig option to to not use VDD5V as IMX28 PMU source

2023-05-19 Thread Marek Vasut
On 5/19/23 10:41, Lukasz Majewski wrote: Hello Lukasz, On 5/9/23 16:32, Lukasz Majewski wrote: This option sets the current limit for 5V source to zero, so all the PMU outputs are primarily powered from battery source (DCDC_BAT). This option may be set on systems, where the 5V is NOT supposed

Re: [PATCH] net: dwc_eth_qos: add support of device tree configuration for reset delay

2021-04-09 Thread Marek Vasut
On 4/9/21 10:00 AM, Patrick Delaunay wrote: The gpio reset assert/deassert delay are today harcoded in U-Boot driver but the value should be read from DT. STM32 use the generic binding defined in linux: Documentation/devicetree/bindings/net/ethernet-phy.yaml reset-gpios: maxItems: 1

Re: [PATCH 19/19] ARM: imx8m: verdin-imx8mm: Enable USB Host support

2021-04-09 Thread Marek Vasut
On 4/8/21 9:08 AM, Marcel Ziswiler wrote: Hi Marek Hi, Upon compiling I noticed the following but I do realize that it is not this patch set which introduced this issue. drivers/usb/host/ehci-mx6.c: In function ‘ehci_usb_probe’: drivers/usb/host/ehci-mx6.c:686:30: warning: cast from pointer

[PATCH V2 01/24] phy: nop-phy: Add standard usb-nop-xceiv compat string

2021-04-11 Thread Marek Vasut
The USB no-op PHY uses "usb-nop-xceiv" compatible string. This driver is compatible with USB no-op PHY, so add the compatible string. Signed-off-by: Marek Vasut Cc: Alexey Brodkin Cc: Eugeniy Paltsev Cc: Fabio Estevam Cc: Jean-Jacques Hiblot Cc: Murali Karicheri Cc: Peng Fan C

[PATCH V2 02/24] arc: emsdp/iotdk: Use standard compatible string for USB no-op PHY

2021-04-11 Thread Marek Vasut
The standard compatible string is "usb-nop-xceiv", use it. Signed-off-by: Marek Vasut Cc: Alexey Brodkin Cc: Eugeniy Paltsev Cc: Fabio Estevam Cc: Jean-Jacques Hiblot Cc: Murali Karicheri Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: No change --- ar

[PATCH V2 05/24] ARM: dts: imx8mn: Replace deprecated fsl, usbphy DT props with phys

2021-04-11 Thread Marek Vasut
The fsl,usbphy DT property is deprecated, replace it with phys DT property and specify #phy-cells, so that the generic PHY framework can parse the PHY bindings without any extra hacking. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx

[PATCH V2 04/24] ARM: dts: imx8mm: Replace deprecated fsl, usbphy DT props with phys

2021-04-11 Thread Marek Vasut
The fsl,usbphy DT property is deprecated, replace it with phys DT property and specify #phy-cells, so that the generic PHY framework can parse the PHY bindings without any extra hacking. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx

[PATCH V2 10/24] usb: ehci-mx6: Turn off Vbus on probe failure

2021-04-11 Thread Marek Vasut
The driver turns on Vbus regulator in probe, but fails to turn it back off in case of probe failure. Add the missing code. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: Mark struct ehci_mx6_priv_data *priv as "__maybe_u

[PATCH V2 03/24] ARM: dts: k2g-evm: Use standard compatible string for USB no-op PHY

2021-04-11 Thread Marek Vasut
The standard compatible string is "usb-nop-xceiv", use it. Note that keystone-k2g.dtsi already uses the aforementioned compat string, so this patch can only remove the override. Signed-off-by: Marek Vasut Cc: Alexey Brodkin Cc: Eugeniy Paltsev Cc: Fabio Estevam Cc: Jean-Jacques

[PATCH V2 08/24] imx: power-domain: Add fsl, imx8mm-gpc compatible string

2021-04-11 Thread Marek Vasut
The driver is compatible with iMX8MM, add missing compatible string. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: No change --- drivers/power/domain/imx8m-power-domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH V2 06/24] ARM: dts: imx8mm: Add power domain nodes

2021-04-11 Thread Marek Vasut
Add power domain nodes to DT. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: No change --- arch/arm/dts/imx8mm.dtsi | 73 include/dt-bindings/power/imx8mm-power.h | 22 +++ 2 files

[PATCH V2 07/24] ARM: dts: imx8mn: Add power domain nodes

2021-04-11 Thread Marek Vasut
Add power domain nodes to DT. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: New patch --- arch/arm/dts/imx8mn.dtsi | 51 include/dt-bindings/power/imx8mn-power.h | 15 +++ 2 files

[PATCH V2 09/24] imx: power-domain: Add fsl, imx8mn-gpc compatible string

2021-04-11 Thread Marek Vasut
The driver is compatible with iMX8MN, add missing compatible string. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: New patch --- drivers/power/domain/imx8m-power-domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH V2 13/24] usb: ehci-mx6: Parse USB PHY and MISC offsets from DT

2021-04-11 Thread Marek Vasut
controller sequence number mapping. Fixes: 4de51cc25b5 ("usb: ehci-mx6: Drop assignment of sequence number") Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: - Move anatop_off variable inside if defined(CONFIG_MX6) to avoid

[PATCH V2 12/24] usb: ehci-mx6: Unify USBNC registers

2021-04-11 Thread Marek Vasut
Merge USBNC register layout structure into a single one, instead of having three separate structures and a lot of ifdeffery. No functional change. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: No change --- drivers/usb/host/ehci

[PATCH V2 11/24] usb: ehci-mx6: Add DM clock support

2021-04-11 Thread Marek Vasut
Add support for using DM clock framework to enable and disable all the necessary clock for the USB controller. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: No change --- drivers/usb/host/ehci-mx6.c | 37

[PATCH V2 14/24] usb: ehci-mx6: Split ehci_mx6_common_init()

2021-04-11 Thread Marek Vasut
("usb: ehci-mx6: Drop assignment of sequence number") Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: Declare ret only if CONFIG_IS_ENABLED(DM_REGULATOR) , to avoid warning that it is declared, but not used --- driver

[PATCH V2 16/24] usb: ehci-mx6: Split usb_power_config()

2021-04-11 Thread Marek Vasut
driver, similar to Linux phy-mxs-usb.c . Fixes: 4de51cc25b5 ("usb: ehci-mx6: Drop assignment of sequence number") Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: - Always call usb_oc_config(), independent of whether CON

[PATCH V2 17/24] usb: ehci-mx6: Pass MISC address to usb_oc_config()

2021-04-11 Thread Marek Vasut
ned-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: No change --- drivers/usb/host/ehci-mx6.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-m

<    5   6   7   8   9   10   11   12   13   14   >