Re: [PATCH v3 3/3] ARM: imx6: dh-imx6: Enable d-cache early in SPL

2022-08-09 Thread Marek Vasut
On 8/9/22 12:07, Philip Oberfichtner wrote: [...] +void spl_board_prepare_for_boot(void) +{ + /* Flush dcache. Without it U-Boot proper would hang at random locations. */ Do we know why these random hangs occur ? I think this really deserves more than a 1-liner comment. + dcach

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Marek Vasut
On 8/9/22 13:21, Pali Rohár wrote: (reducing the CC list) On Tuesday 09 August 2022 13:16:41 Marek Vasut wrote: On 8/9/22 12:58, Pali Rohár wrote: On Tuesday 09 August 2022 12:07:00 Philip Oberfichtner wrote: This converts CONFIG_SYS_L2_PL310 to Kconfig. ... diff --git a/arch/arm/Kconfig

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Marek Vasut
On 8/9/22 13:32, Pali Rohár wrote: On Tuesday 09 August 2022 13:27:38 Marek Vasut wrote: On 8/9/22 13:21, Pali Rohár wrote: (reducing the CC list) On Tuesday 09 August 2022 13:16:41 Marek Vasut wrote: On 8/9/22 12:58, Pali Rohár wrote: On Tuesday 09 August 2022 12:07:00 Philip Oberfichtner

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Marek Vasut
On 8/9/22 12:58, Pali Rohár wrote: On Tuesday 09 August 2022 12:07:00 Philip Oberfichtner wrote: This converts CONFIG_SYS_L2_PL310 to Kconfig. ... diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 949ebb46ba..dde06bdd96 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -488,6 +488,1

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Marek Vasut
On 8/9/22 15:46, Tom Rini wrote: On Tue, Aug 09, 2022 at 01:32:24PM +0200, Pali Rohár wrote: On Tuesday 09 August 2022 13:27:38 Marek Vasut wrote: On 8/9/22 13:21, Pali Rohár wrote: (reducing the CC list) On Tuesday 09 August 2022 13:16:41 Marek Vasut wrote: On 8/9/22 12:58, Pali Rohár

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Marek Vasut
On 8/9/22 18:36, Tom Rini wrote: [...] It's tricky to say when to "select" or just "default y if .." or "imply" a given option. It's not only a matter of "can you disable X and the system is functional" but "would you normally want to". There are certainly system bring-up cases and similar wher

[PATCH 1/7] ARM: imx: Enable USB ethernet on i.MX8M Plus DHCOM

2022-08-12 Thread Marek Vasut
Enable both USB CDC ethernet and USB host ethernet on i.MX8M Plus DHCOM. This is useful for bringing up systems without ethernet plug, but with either USB host or gadget plug. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: uboot-imx --- configs

[PATCH 2/7] ARM: dts: imx: Add HW variant details to i.MX8M Plus DHCOM PDK2

2022-08-12 Thread Marek Vasut
Add information about which exact SoM variant is used on which PDK2 variant. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: uboot-imx --- arch/arm/dts/imx8mp-dhcom-pdk2.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/imx8mp-dhcom

[PATCH 4/7] ARM: dts: imx: Add SoM compatible to i.MX8M Plus DHCOM PDK2

2022-08-12 Thread Marek Vasut
Add SoM compatible string into i.MX8MP DHCOM PDK2 compatible strings. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: uboot-imx --- arch/arm/dts/imx8mp-dhcom-pdk2.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/imx8mp

[PATCH 5/7] ARM: dts: imx: Rename imx8mp-dhcom{-pdk2,}-boot.dtsi

2022-08-12 Thread Marek Vasut
Rename imx8mp-dhcom-pdk2-u-boot.dtsi to imx8mp-dhcom-u-boot.dtsi, since this file is shared by PDK2, PicoITX and DRC02. No functional change. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: uboot-imx --- arch/arm/dts/imx8mp-dhcom-pdk2-u-boot.dtsi | 137

[PATCH 3/7] ARM: dts: imx: Drop Atheros PHY header from i.MX8M Plus DHCOM PDK2

2022-08-12 Thread Marek Vasut
This PHY is not used on PDK2, the header was added due to copy-paste error, drop it. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: uboot-imx --- arch/arm/dts/imx8mp-dhcom-pdk2.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/imx8mp-dhcom

[PATCH 6/7] ARM: dts: imx: Adjust ECSPI1 pinmux on i.MX8M Plus DHCOM

2022-08-12 Thread Marek Vasut
The ECSPI1 is on I2C1/I2C2 pins of the SoC, update the pinmux accordingly. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: uboot-imx --- arch/arm/dts/imx8mp-dhcom-som.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm

[PATCH 7/7] ARM: dts: imx: Fix I2C5 GPIO assignment on i.MX8M Plus DHCOM

2022-08-12 Thread Marek Vasut
Fix copy-paste error of the I2C5 bus recovery GPIO assignment, the I2C5 GPIOs are on gpio3 instead of gpio5. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: uboot-imx --- arch/arm/dts/imx8mp-dhcom-som.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH] ARM: imx: dh-imx6: Increase SF erase area for u-boot update

2022-08-12 Thread Marek Vasut
Erase the entire U-Boot area during U-Boot update instead of just a subset of it. This way, in case u-boot-with-spl.imx grows, the sf write won't write over non-erased part of the SPI NOR. Signed-off-by: Marek Vasut --- Cc: Christoph Niedermaier Cc: Fabio Estevam Cc: Stefano

Re: [PATCH] mx8m: csf.sh: Fix the calculation of fit_block_size

2022-08-14 Thread Marek Vasut
.*\(0x[0-9a-f]\+\).*@\1@p") + 0x1000 - 0x1 ) & ~(0x1000 - 0x1)) + 0x20 )) ) sed -i "/Blocks = / s@.*@ Blocks = $fit_block_base $fit_block_offset $fit_block_size \"flash.bin\", @" csf_fit.tmp Reviewed-by: Marek Vasut

Re: [PATCH v4 3/3] ARM: imx6: dh-imx6: Enable d-cache early in SPL

2022-08-17 Thread Marek Vasut
On 8/17/22 11:06, Philip Oberfichtner wrote: [...] +void spl_board_prepare_for_boot(void) +{ + /* +* Flush dcache. The dcache_disable() does not do any cache flushing, it just disables the Dcache enable C-bit. Without it U-Boot proper would hang at random locations. Presumab

Re: [PATCH v4 3/3] ARM: imx6: dh-imx6: Enable d-cache early in SPL

2022-08-17 Thread Marek Vasut
On 8/17/22 12:19, Philip Oberfichtner wrote: Hi, thanks for the feedback. On Wed, 2022-08-17 at 11:24 +0200, Marek Vasut wrote: On 8/17/22 11:06, Philip Oberfichtner wrote: [...] +void spl_board_prepare_for_boot(void) +{ +   /* +    * Flush dcache. The dcache_disable() does not

[PATCH] imx8m: ddrphy_utils: Remove unused file

2022-08-19 Thread Marek Vasut
The ddrphy_utils.c is now deduplicated in drivers/ddr/imx/phy/ddrphy_utils.c , this drivers/ddr/imx/imx8m/ddrphy_utils.c is a remnant from when the deduplication was implemented and was not removed. Remove it as it is unused. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc

[PATCH] ARM: imx: Update DDR frequency on i.MX8M Plus DHCOM

2022-08-19 Thread Marek Vasut
nd use the later value too. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- board/dhelectronics/dh_imx8mp/lpddr4_timing_4G_32.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/board/dhelectronics

Re: [RFC PATCH] imx8mp: fix boot hang when booting NXP kernel 5.15.32

2022-08-23 Thread Marek Vasut
On 8/23/22 15:36, Rasmus Villemoes wrote: We have observed a somewhat weird bug: When booting the downstream NXP kernel lf-5.15.32-2.0.0 [fa6c3168595c], sometimes the board would hang during imx_lcdifv3_probe(). Adding some printk debugging revealed that the hang always happened at the writel

[PATCH] ARM: imx: Deduplicate i.MX8M SNVS LPGPR unlock

2022-08-23 Thread Marek Vasut
Pull this LPGPR unlock into common code, since it is used in multiple systems already. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- arch/arm/include/asm/arch-imx8m/imx-regs.h| 5 + arch/arm/mach-imx/imx8m/soc.c

[PATCH 2/2] usb: gadget: Clean up Makefile ifdeffery

2022-08-23 Thread Marek Vasut
. Signed-off-by: Marek Vasut --- Cc: Heiko Schocher Cc: Patrice Chotard Cc: Patrick Delaunay --- drivers/usb/gadget/Makefile | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile index dd09ee01959

[PATCH 1/2] usb: gadget: designware-udc: Drop the driver

2022-08-23 Thread Marek Vasut
This driver is not used by any system and is long unmaintained, drop it. There is a DWC2 OTG driver which is maintained, see CONFIG_USB_GADGET_DWC2_OTG . Signed-off-by: Marek Vasut --- Cc: Heiko Schocher Cc: Patrice Chotard Cc: Patrick Delaunay --- drivers/serial/usbtty.h |2

[PATCH] spi: stm32_spi: Fix GPIO chipselect polarity handling

2022-08-23 Thread Marek Vasut
GPIO core code would set the GPIO accordingly. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- drivers/spi/stm32_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/stm32_spi.c b/drivers/spi/stm32_spi.c index fe5419e8518..0cb24546ca9

[PATCH] ARM: stm32: Switch DHSOM to FMC2 EBI driver

2022-08-23 Thread Marek Vasut
Perform long overdue conversion of ad-hoc FMC2 EBI bus initialization to upstream FMC2 EBI driver. No functional change. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- .../dts/stm32mp15xx-dhcom-picoitx-u-boot.dtsi | 8 --- arch/arm/dts/stm32mp15xx-dhcom-u-boot.dtsi

Re: [PATCH] spi: stm32_spi: Fix GPIO chipselect polarity handling

2022-08-25 Thread Marek Vasut
On 8/24/22 16:04, Patrice CHOTARD wrote: Hi Marek Hi, On 8/23/22 19:07, Marek Vasut wrote: The GPIO chipselect signal polarity is handled by the GPIO core code, the driver code is only responsible for asserting and deasserting the GPIO. Do not invert the GPIO polarity in the driver code

[PATCH 1/2] Revert "i2c: fix stack buffer overflow vulnerability in i2c md command"

2022-08-26 Thread Marek Vasut
documented in commit 8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409 can be fixed by extra sanitization in separate patch. Signed-off-by: Marek Vasut Cc: Heiko Schocher Cc: Nicolas Iooss Cc: Simon Glass Cc: Tim Harvey --- cmd/i2c.c | 24 1 file changed, 12 insertions(+), 12

[PATCH 2/2] i2c: fix stack buffer overflow vulnerability in i2c md command

2022-08-26 Thread Marek Vasut
This reinstates fix from commit 8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409 without the changes unrelated to the actual fix. Avoid the underflow by setting only nbytes and linebytes as unsigned integers. Signed-off-by: Marek Vasut Cc: Heiko Schocher Cc: Nicolas Iooss Cc: Simon Glass Cc: Tim

[PATCH] ARM: imx: Enable SPL GPIO hog on i.MX8M Plus DHCOM

2022-08-26 Thread Marek Vasut
Enable GPIO hog support in SPL to match the GPIO hog support in U-Boot proper. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: uboot-imx --- configs/imx8mp_dhcom_pdk2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

Re: [PATCH] usb: Add delay for control messages to reach usb stick

2022-08-28 Thread Marek Vasut
On 8/26/22 07:35, Ashok Reddy Soma wrote: We are seeing timing issues with transcend usb sticks. These devices seems to require more time than regular devices for the control messages to reach device. Add 1ms delay before sending control message to fix trancend device detection issue. In case y

[PATCH] ARM: imx: Update Data Modul i.MX8M Mini eDM SBC DRAM timing

2022-08-30 Thread Marek Vasut
: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- .../imx8mm_edm_sbc/lpddr4_timing_2G_32.c | 45 ++- .../imx8mm_edm_sbc/lpddr4_timing_4G_32.c | 40 + 2 files changed, 45 insertions(+), 40 deletions(-) diff --git a/board/data_modul

Re: [PATCH] ARM: imx: Update Data Modul i.MX8M Mini eDM SBC DRAM timing

2022-08-30 Thread Marek Vasut
On 8/30/22 18:01, Tim Harvey wrote: Hi, Marek, Might I ask how you ran into the issue There were a couple of boards which were unstable and kept crashing at runtime, often when using GPU. Either the machine locked up completely or there were rendering artifacts. Eventually also memtester t

Re: [PATCH] ddr: socfpga: Fix integer overflow

2022-09-02 Thread Marek Vasut
On 8/30/22 08:42, Jit Loon Lim wrote: From: Tien Fong Chee dramaddrw data structure are defined as u32. Compiler assume 32-bit arithmetic on expression and the shifting operation to be done on a 32-bit value. So, the expression would overflow if the shifting is more than 32-bit. Signed-off-by:

[PULL] u-boot-usb/master

2022-09-03 Thread Marek Vasut
The following changes since commit 4e10c1227aa879af809b3073bf917289f23e17d7: Merge branch '2022-08-31-assorted-fixes' (2022-08-31 19:32:31 -0400) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to fetch changes up to 2522bd3ea67d6e22259cf363eeb382

[PULL] u-boot-sh/master

2022-09-03 Thread Marek Vasut
The following changes since commit 4e10c1227aa879af809b3073bf917289f23e17d7: Merge branch '2022-08-31-assorted-fixes' (2022-08-31 19:32:31 -0400) are available in the Git repository at: git://source.denx.de/u-boot-sh.git master for you to fetch changes up to 68083b897b57309c29039b27d2580e4

Re: [PATCH v2 1/3] arch: m68k: Use existing CONFIG_MCFTMR instead of CFG_MCFTMR

2023-03-25 Thread Marek Vasut
On 3/25/23 23:01, Angelo Dureghello wrote: Hi Marek, Hi, applied all these patches in u-boot-coldfire: fb67f91b5e9b5e9aae5ab038895ebabc10af4d9d travis-ci: Add m68k M5208EVBE machine 04adf3b61690ba818f42e746ae79243cbe64aa55 CI: Add m68k target 9c5775623542b9a837e634e68e00746bcf35f53c arch: m6

Re: [PATCH 1/1] usb: gadget: missing fallthrough in composite_setup()

2023-04-02 Thread Marek Vasut
On 4/1/23 09:06, Heinrich Schuchardt wrote: Add a missing fallthrough macro. This fixes a -Wimplicit-fallthrough warning. Signed-off-by: Heinrich Schuchardt --- drivers/usb/gadget/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b

[PATCH v3] ARM: dts: imx: Add WDT reboot bindings on DH i.MX6 DHSOM

2023-04-03 Thread Marek Vasut
Add WDT reboot bindings on DH i.MX6 DHSOM to permit the platform to reboot via WDT in U-Boot. These are custom U-Boot bindings, hence they are placed in -u-boot.dtsi . Reviewed-by: Fabio Estevam Signed-off-by: Marek Vasut --- Cc: Andreas Geisreiter Cc: Christoph Niedermaier Cc: Fabio Estevam

[PATCH v3] ARM: dts: imx: Add support for Data Modul i.MX8M Plus eDM SBC

2023-04-03 Thread Marek Vasut
Add support for Data Modul i.MX8M Plus eDM SBC board. This is an evaluation board for various custom display units. Currently supported are serial console, ethernet, eMMC, SD, SPI NOR, USB. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- V2: Rebase on

[PULL] u-boot-usb/master

2023-04-03 Thread Marek Vasut
: gadget: f_sdp: Add missing spl_board_prepare_for_boot() call (2023-04-04 00:34:42 +0200) Heinrich Schuchardt (1): usb: gadget: missing fallthrough in composite_setup() Marek Vasut (1): usb: gadget: f_sdp: Add missing

[PATCH v3 1/2] spl: mmc: Pass eMMC HW partition and SW partition to spl_mmc_get_uboot_raw_sector()

2023-04-04 Thread Marek Vasut
Pass both eMMC HW partition and software partition numbers to spl_mmc_get_uboot_raw_sector() so the function can better decide which offset within the partition to load payload from. Signed-off-by: Fedor Ross Signed-off-by: Marek Vasut --- Cc: Jaehoon Chung Cc: Peng Fan --- V2: No change V3

[PATCH v3 2/2] spl: mmc: Pass eMMC HW partition 7 through

2023-04-04 Thread Marek Vasut
. Signed-off-by: Fedor Ross Signed-off-by: Marek Vasut --- Cc: Jaehoon Chung Cc: Peng Fan --- V2: Initialize the part variable, else it is passed uninitialized to mmc_load_image_raw_sector(..raw_sect + spl_mmc_raw_uboot_offset(part)); and that prevents pine64 from booting. Interestingly

[PATCH 1/2] thermal: imx_tmu: Clean up all prints

2023-04-04 Thread Marek Vasut
Use dev_(dev, ...) for all printing and debug logging, since this already includes the device name. Drop device name where duplicate. Signed-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Andrejs Cainikovs Cc: Fabio Estevam Cc: Fedor Ross Cc: Marek Vasut Cc: Peng Fan C

[PATCH 2/2] thermal: imx_tmu: Move architecture code into driver

2023-04-04 Thread Marek Vasut
-off-by: Marek Vasut --- Cc: "NXP i.MX U-Boot Team" Cc: Andrejs Cainikovs Cc: Fabio Estevam Cc: Fedor Ross Cc: Marek Vasut Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li --- arch/arm/mach-imx/imx8m/soc.c | 73 --- drivers/thermal/imx_tmu.

Re: [PATCH v3 2/2] spl: mmc: Pass eMMC HW partition 7 through

2023-04-04 Thread Marek Vasut
On 4/4/23 21:25, Pali Rohár wrote: On Tuesday 04 April 2023 20:05:15 Marek Vasut wrote: The eMMC HW partition 0 and 7 both mean USER HW partition. This is not truth! Can you please provide further details to back your claim ? This kind of screaming feedback with zero additional information

Re: [PATCH v3 2/2] spl: mmc: Pass eMMC HW partition 7 through

2023-04-04 Thread Marek Vasut
On 4/5/23 00:16, Pali Rohár wrote: On Wednesday 05 April 2023 00:11:17 Marek Vasut wrote: On 4/4/23 21:25, Pali Rohár wrote: On Tuesday 04 April 2023 20:05:15 Marek Vasut wrote: The eMMC HW partition 0 and 7 both mean USER HW partition. This is not truth! Can you please provide further

Re: [PATCH v3 2/2] spl: mmc: Pass eMMC HW partition 7 through

2023-04-04 Thread Marek Vasut
On 4/5/23 00:44, Pali Rohár wrote: On Wednesday 05 April 2023 00:33:02 Marek Vasut wrote: On 4/5/23 00:16, Pali Rohár wrote: On Wednesday 05 April 2023 00:11:17 Marek Vasut wrote: On 4/4/23 21:25, Pali Rohár wrote: On Tuesday 04 April 2023 20:05:15 Marek Vasut wrote: The eMMC HW partition 0

[PATCH] ARM: configs: imx8mm: Sync i.MX8M Mini Toradex Verdin and Menlo board configs

2023-04-05 Thread Marek Vasut
Synchronize the i.MX8M Mini Toradex Verdin based Menlo board config with i.MX8M Mini Toradex Verdin carrier board. This enables DM MDIO, eMMC HS modes, TMU for thermal monitoring, LTO and multiple commands (hexdump, pmic, read, time). Signed-off-by: Marek Vasut --- Cc: Marek Vasut Cc: Olaf

Re: [PATCH 7/9] usb: gadget: f_mass_storage: Rework do_request_sense slightly

2023-04-05 Thread Marek Vasut
x27;m honestly not sure why gcc isn't complaining here as this seems to be a real issue. It seems this also isn't the first issue where gcc isn't complaining and it should be complaining. IIRC there was one more case in spl_mmc.c too . Reviewed-by: Marek Vasut

[PULL] u-boot-sh/master

2023-04-07 Thread Marek Vasut
ans/u-boot-sh.git master_net/phy/prep-cleanup for you to fetch changes up to b0177a24d48e4ce13bfd7fce0d9c17dc0996f9a5: phy: Add .set_mode and .set_speed callbacks (2023-04-07 14:23:26 +0200) -------- Marek Vasut (52): net: phy: aquantia:

Re: [PULL] u-boot-sh/master_net/phy/prep-cleanup

2023-04-07 Thread Marek Vasut
On 4/7/23 16:50, Marek Vasut wrote: The following changes since commit b0b77fdf3d7d2c1a5e48c3971a677f14e372c164: Merge tag 'fsl-qoriq-2023-4-6' of https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq (2023-04-05 22:19:57 -0400) are available in the Git repository at:

[PATCH] net: ravb: Add R-Car Gen4 support

2023-04-07 Thread Marek Vasut
From: Hai Pham Add support for R-Car Gen4 SoCs and a matching DT compatible. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Drop SoC specific compatible, use RCAR_64 Kconfig symbol, update commit message] --- Cc: Joe Hershberger Cc: Ramon Fried

Re: [PATCH 6/9] ARM: dts: renesas: Add R8A779G0 V4H DT extras

2023-04-07 Thread Marek Vasut
On 2/28/23 22:37, Marek Vasut wrote: [...] +&extalr_clk { + u-boot,dm-pre-reloc; +}; Applied with one-line s@u-boot,dm-pre-reloc@bootph-all@ change .

Re: [PATCH 08/11] ARM: dts: renesas: Add R8A779F0 S4 DT extras

2023-04-07 Thread Marek Vasut
On 2/28/23 22:34, Marek Vasut wrote: [...] +/ { + soc { + rpc: spi@ee20 { + compatible = "renesas,r8a779f0-rpc-if", "renesas,rcar-gen4-rpc-if"; + reg = <0 0xee20 0 0x200>, &

[PULL] u-boot-sh/master_sh/gen4/initial

2023-04-07 Thread Marek Vasut
A779G0 V4H White Hawk board code LUU HOAI (1): pinctrl: renesas: Add R8A779F0 S4 PFC tables Marek Vasut (4): mmc: tmio: Check 'addr' width before checking for 64bit limitation mmc: tmio: Replace ifdeffery with IS_ENABLED/CONFIG_IS_ENABLED macros spi: renesas: Make d

[PULL] u-boot-sh/master_regulator/fixes

2023-04-08 Thread Marek Vasut
ans/u-boot-sh.git master_regulator/fixes for you to fetch changes up to e3fed5ce790730dd3e05c810de8ee483af3fe42a: video: tl070wsh30: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR (2023-04-08 03:53:23 +0200) -------- Marek Vasut (6):

[PATCH] mmc: tmio: Use IS_ENABLED() to check for CONFIG_ option

2023-04-08 Thread Marek Vasut
Use IS_ENABLED() instead of CONFIG_IS_ENABLED() to check for CONFIG_ option which is identical across all of U-Boot and xPL builds. Fixes: 2769ddc99fd ("mmc: tmio: Replace ifdeffery with IS_ENABLED/CONFIG_IS_ENABLED macros") Signed-off-by: Marek Vasut --- Cc: Jaehoon Chung Cc: Pe

[PATCH] serial: mxs: Add MXS AUART driver

2023-04-09 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/2] xen: Add dependency on armv8

2023-04-11 Thread Marek Vasut
On 4/11/23 13:23, Michal Simek wrote: Xen core calls HYPERVISOR_memory_op() in map_shared_info() which is just in xen_init() called from init_sequence_r[]. Xen can run only on armv8 where HVC calls are implemented that's why enable it only for arm64. Doesn't ARMv7a also support HYP mode ?

Re: [PATCH 1/2] xen: Add dependency on armv8

2023-04-12 Thread Marek Vasut
On 4/12/23 09:10, Michal Simek wrote: On 4/12/23 06:57, Marek Vasut wrote: On 4/11/23 13:23, Michal Simek wrote: Xen core calls HYPERVISOR_memory_op() in map_shared_info() which is just in xen_init() called from init_sequence_r[]. Xen can run only on armv8 where HVC calls are implemented

Re: [PATCH V2 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-14 Thread Marek Vasut
the enum's directly, drivers such as dp83867 use this helper to manage the configuration of the phy correctly. Reported-by: Tom Rini Signed-off-by: Nishanth Menon Reviewed-by: Marek Vasut It would be nice if you could do a follow-up patch as suggested by Marek Behun and inline this fu

Re: [PATCH V2 2/2] net: phy: Make phy_interface_is_rgmii a switch statement

2023-04-14 Thread Marek Vasut
s such as dp83867, dp83869, marvell, micrel_ksz90x1 etc use the same. Reported-by: Tom Rini Signed-off-by: Nishanth Menon Reviewed-by: Marek Vasut

[PULL] u-boot-sh/master_sh/gen4/mmcfix

2023-04-16 Thread Marek Vasut
oot-sh.git master_sh/gen4/mmcfix for you to fetch changes up to 53614bc2dc4b87979041ddf97be43b81b98d4b7e: mmc: tmio: Use IS_ENABLED() to check for CONFIG_ option (2023-04-16 16:16:20 +0200) -------- Marek Vasut (1): mmc: tmio: Use IS_EN

[PULL] u-boot-sh/master_sh/gen4/rswitch

2023-04-16 Thread Marek Vasut
oot-sh.git master_sh/gen4/rswitch for you to fetch changes up to 47811beaff1f2560cf681d58535644c6ab07a2ab: ARM: renesas: Enable rswitch, serdes and PHY driver on R8A779F0 S4 Spider (2023-04-16 22:50:54 +0200) -------- Marek Vasut (2): ph

Re: [PATCH] usb: onboard-hub: Don't disable regulator in remove() callback

2023-04-17 Thread Marek Vasut
On 4/17/23 18:56, Patrice Chotard wrote: In case USB hub regulator is shared, unexpected behavior occurs. On stm32mp135f-dk, stm32mp157c-ev1 and stm32mp157x-dkx, regulator v3v3 is shared between several IP/devices (USB, panel, ethernet phy, camera, ...). Running command "usb stop", v3v3 regulator

Re: [PATCH v4 02/10] clk: renesas: prepare for non-RCAR clock drivers

2023-04-17 Thread Marek Vasut
On 3/8/23 21:26, Ralph Siemsen wrote: Allow CONFIG_CLK_RENESAS to be set without bringing in RCAR-GEN2/3 code. CONFIG_RENESAS is used in drivers/clk/Makefile to control recursion into the drivers/clk/renesas subdirectory. It also controls compilation of renesas-cpg-mssr.c support code for the RC

Re: [PATCH v4 01/10] ARM: armv7: add non-SPL enable for Cortex SMPEN

2023-04-17 Thread Marek Vasut
PEN) works as expected. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut You could send this patch as a separate one.

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

2023-04-17 Thread Marek Vasut
On 3/8/23 21:26, Ralph Siemsen wrote: Clock driver for the Renesas RZ/N1 SoC family. This is based on Linux kernel 6.2.y drivers/clk/renesas/r9a06g032-clocks.c as found in commit 02693e11611e ("clk: renesas: r9a06g032: Repair grave increment error"), with the following additional patch series app

Re: [PATCH v4 04/10] pinctrl: renesas: add R906G032 driver

2023-04-17 Thread Marek Vasut
On 3/8/23 21:26, Ralph Siemsen wrote: Pinctrl/pinconf driver for Renesas RZ/N1 (R906G032) SoC. This is quite rudimentary right now, and only supports applying a default pin configuration as specified by the device tree. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut

Re: [PATCH v4 06/10] dts: basic devicetree for Renesas RZ/N1 SoC

2023-04-17 Thread Marek Vasut
On 3/8/23 21:26, Ralph Siemsen wrote: This is taken from Linux kernel 5.17, and contains just bare minimum functionality: CPU, UART and system timer. Why Linux 5.17 and not e.g. 6.2 or 6.1 LTS ? Additional functionality (from newer kernel versions) will be added later. Note that the Linux sid

Re: [PATCH v4 07/10] ARM: rzn1: basic support for Renesas RZ/N1 SoC

2023-04-17 Thread Marek Vasut
On 3/8/23 21:26, Ralph Siemsen wrote: [...] +++ b/arch/arm/Kconfig @@ -1031,6 +1031,21 @@ config ARCH_RMOBILE imply SYS_THUMB_BUILD imply ARCH_MISC_INIT if DISPLAY_CPUINFO +config ARCH_RZN1 + bool "Reneasa RZ/N1 SoC" + select CLK + select CLK_RENESAS +

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

2023-04-17 Thread Marek Vasut
On 3/8/23 21:26, Ralph Siemsen wrote: [...] diff --git a/board/schneider/rzn1-snarc/ddr_timing.c b/board/schneider/rzn1-snarc/ddr_timing.c new file mode 100644 index 00..8bc3fe7be4 --- /dev/null +++ b/board/schneider/rzn1-snarc/ddr_timing.c @@ -0,0 +1,140 @@ +// SPDX-License-Identifier

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

2023-04-17 Thread Marek Vasut
On 3/8/23 21:26, Ralph Siemsen wrote: Collect the list of currerently Typo, curr... . supported Renesas boards. For the RZ/N1 board, add details about booting and flashing. [...] +Renesas boards +-- + +Renesas is a SoC solutions provider for industrial applications. Automot

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

2023-04-17 Thread Marek Vasut
On 3/8/23 21:26, Ralph Siemsen wrote: [...] diff --git a/tools/Makefile b/tools/Makefile index e13effbb66..1d7abcb916 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -125,6 +125,7 @@ dumpimage-mkimage-objs := aisimage.o \ stm32image.o \ $(ROCK

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

2023-04-17 Thread Marek Vasut
On 3/8/23 21:26, Ralph Siemsen wrote: [...] +#define FUNCCTRL 0x00 +#define FUNCCTRL_MASKSDLOFS (0x18 << 16) +#define FUNCCTRL_DVDDQ_1_5V (1 << 8) +#define FUNCCTRL_RESET_N (1 << 0) +#define DLLCTRL0x04 +#define DLLCTRL_ASDLLOCK (1 << 26) +#define DLLCTR

Re: [PATCH v4 01/10] ARM: armv7: add non-SPL enable for Cortex SMPEN

2023-04-17 Thread Marek Vasut
On 4/17/23 20:26, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 07:04:15PM +0200, Marek Vasut wrote: On 3/8/23 21:26, Ralph Siemsen wrote: Commit 2564fce7eea3 ("sunxi: move Cortex SMPEN setting into start.S") added SPL_ARMV7_SET_CORTEX_SMPEN to enable setting SMP bit. For platforms

Re: [PATCH v4 06/10] dts: basic devicetree for Renesas RZ/N1 SoC

2023-04-17 Thread Marek Vasut
On 4/17/23 20:33, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 07:12:31PM +0200, Marek Vasut wrote: On 3/8/23 21:26, Ralph Siemsen wrote: This is taken from Linux kernel 5.17, and contains just bare minimum functionality: CPU, UART and system timer. Why Linux 5.17 and not e.g. 6.2 or 6.1 LTS

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

2023-04-17 Thread Marek Vasut
On 4/17/23 21:45, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 07:18:46PM +0200, Marek Vasut wrote: On 3/8/23 21:26, Ralph Siemsen wrote: diff --git a/board/schneider/rzn1-snarc/ddr_timing.c b/board/schneider/rzn1-snarc/ddr_timing.c new file mode 100644 index 00..8bc3fe7be4 --- /dev

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

2023-04-17 Thread Marek Vasut
On 4/17/23 22:17, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 07:23:46PM +0200, Marek Vasut wrote: On 3/8/23 21:26, Ralph Siemsen wrote: +    spkgimage.o \ Maybe just call the file renesas_spkgimage.o so its clear which SoC/vendor this file is associtated with. Okay, will do

Re: [PATCH v4 07/10] ARM: rzn1: basic support for Renesas RZ/N1 SoC

2023-04-17 Thread Marek Vasut
On 4/17/23 20:57, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 07:15:07PM +0200, Marek Vasut wrote: On 3/8/23 21:26, Ralph Siemsen wrote: [...] +++ b/arch/arm/Kconfig @@ -1031,6 +1031,21 @@ config ARCH_RMOBILE imply SYS_THUMB_BUILD imply ARCH_MISC_INIT if DISPLAY_CPUINFO +config

Re: [PATCH v4 02/10] clk: renesas: prepare for non-RCAR clock drivers

2023-04-17 Thread Marek Vasut
On 4/17/23 20:22, Ralph Siemsen wrote: Hi Marek, On Mon, Apr 17, 2023 at 07:02:34PM +0200, Marek Vasut wrote: On 3/8/23 21:26, Ralph Siemsen wrote: diff --git a/drivers/clk/renesas/Makefile b/drivers/clk/renesas/Makefile index 8f82a7aa3e..a0d8c10bdb 100644 --- a/drivers/clk/renesas/Makefile

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

2023-04-17 Thread Marek Vasut
On 4/17/23 22:29, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 07:28:05PM +0200, Marek Vasut wrote: On 3/8/23 21:26, Ralph Siemsen wrote: RZ/N1 +    - Schneider rzn1-snarc board + +Building + + +NOTE: the following information is for the rzn1 board only. Maybe this should be in a

Re: [PATCH v4 07/10] ARM: rzn1: basic support for Renesas RZ/N1 SoC

2023-04-17 Thread Marek Vasut
On 4/17/23 22:44, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 10:30:26PM +0200, Marek Vasut wrote: I mean, if you drop 'CLK' and 'CLK_RENESAS' from this list, do they still get selected because 'CLK_R8A06G032' is in this list ? If yes, then drop them from thi

Re: [PATCH v4 02/10] clk: renesas: prepare for non-RCAR clock drivers

2023-04-17 Thread Marek Vasut
On 4/17/23 22:48, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 10:33:18PM +0200, Marek Vasut wrote: On 4/17/23 20:22, Ralph Siemsen wrote: Perhaps we could change Kconfig to select CPG also for gen2. I can make this patch, but how to test that this does not introduce any new problems?  Might

Re: [PATCH] usb: onboard-hub: Don't disable regulator in remove() callback

2023-04-18 Thread Marek Vasut
On 4/18/23 09:21, Patrice CHOTARD wrote: Hi Marek Hello Patrice, On 4/17/23 19:00, Marek Vasut wrote: On 4/17/23 18:56, Patrice Chotard wrote: In case USB hub regulator is shared, unexpected behavior occurs. On stm32mp135f-dk, stm32mp157c-ev1 and stm32mp157x-dkx, regulator v3v3 is shared

Re: [PATCH] usb: onboard-hub: Don't disable regulator in remove() callback

2023-04-18 Thread Marek Vasut
On 4/18/23 11:14, Patrice CHOTARD wrote: Hi Marek Hello Patrice, On 4/18/23 10:25, Marek Vasut wrote: On 4/18/23 09:21, Patrice CHOTARD wrote: Hi Marek Hello Patrice, On 4/17/23 19:00, Marek Vasut wrote: On 4/17/23 18:56, Patrice Chotard wrote: In case USB hub regulator is shared

Re: [PATCH] usb: onboard-hub: Don't disable regulator in remove() callback

2023-04-18 Thread Marek Vasut
On 4/18/23 13:49, Fabio Estevam wrote: Hi Patrice and Marek, On Tue, Apr 18, 2023 at 4:22 AM Patrice CHOTARD wrote: Isn't the regulator enable/disable refcounted ? There is no refcount on regulator that's why we let regulator enable. There is a recent patch from Eugen that adds regulator

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

2023-04-18 Thread Marek Vasut
On 4/18/23 15:59, Patrick Delaunay wrote: Device tree alignment with Linux kernel v6.3-rc3: - ARM: dts: stm32: add i2c nodes into stm32mp131.dtsi - ARM: dts: stm32: enable i2c1 and i2c5 on stm32mp135f-dk.dts - ARM: dts: stm32: add spi nodes into stm32mp131.dtsi - ARM: dts: stm32: add pinctrl and

Re: [PATCH v4 01/10] ARM: armv7: add non-SPL enable for Cortex SMPEN

2023-04-18 Thread Marek Vasut
On 4/18/23 16:32, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 4:21 PM Marek Vasut wrote: On 4/17/23 20:26, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 07:04:15PM +0200, Marek Vasut wrote: You could send this patch as a separate one. In fact I did that almost a year ago: https

Re: [PATCH] rmobile: avoid deprecated srec_cat flags

2023-04-18 Thread Marek Vasut
On 4/18/23 20:20, Ralph Siemsen wrote: The -l-e-constant flag has been deprecated since 2012. [1] Use the recommended replacement instead. [1] https://sourceforge.net/p/srecord/code/ci/1.59.D009/ Signed-off-by: Ralph Siemsen I'm afraid this needs some backward compatibility sreccat version c

Re: [PATCH] rmobile: avoid deprecated srec_cat flags

2023-04-19 Thread Marek Vasut
On 4/19/23 18:30, Ralph Siemsen wrote: On Tue, Apr 18, 2023 at 3:36 PM Marek Vasut wrote: I'm afraid this needs some backward compatibility sreccat version check . Similar to GCC compiler flags presence check. To avoid breaking legacy users. I'll revisit this after the rz/n1 work

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

2023-04-20 Thread Marek Vasut
On 4/20/23 11:08, Patrick DELAUNAY wrote: Hi, Hi, [...] no reason:  It was the version available when I start the synchronization and I don't see new patches on the  stm32mp device trees since v6.3-rc1 and the pull request stm32-dt-for-v6.3-1. I can update the commit message if it i

[PATCH 11/20] clk: renesas: Synchronize R8A77980 V3H clock tables with Linux 6.5.3

2023-09-17 Thread Marek Vasut
Synchronize R-Car R8A77980 V3H clock tables with Linux 6.5.3, commit 238589d0f7b421aae18c5704dc931595019fa6c7 . Signed-off-by: Marek Vasut --- drivers/clk/renesas/r8a77980-cpg-mssr.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers/clk

[PATCH 15/20] clk: renesas: Synchronize R8A779F0 S4 clock tables with Linux 6.5.3

2023-09-17 Thread Marek Vasut
Synchronize R-Car R8A779F0 S4 clock tables with Linux 6.5.3, commit 238589d0f7b421aae18c5704dc931595019fa6c7 . Signed-off-by: Marek Vasut --- drivers/clk/renesas/r8a779f0-cpg-mssr.c | 4 ++-- include/dt-bindings/clock/r8a779f0-cpg-mssr.h | 2 +- 2 files changed, 3 insertions(+), 3

[PATCH 16/20] clk: renesas: Synchronize R8A779G0 V4H clock tables with Linux 6.5.3

2023-09-17 Thread Marek Vasut
Synchronize R-Car R8A779G0 V4H clock tables with Linux 6.5.3, commit 238589d0f7b421aae18c5704dc931595019fa6c7 . The PLL2_VAR is not implemented yet and PLL2 is still configured as regular PLL2 only. Signed-off-by: Marek Vasut --- drivers/clk/renesas/r8a779g0-cpg-mssr.c | 28

[PATCH 17/20] clk: renesas: Synchronize R8A774A1 RZ/G2M clock tables with Linux 6.5.3

2023-09-17 Thread Marek Vasut
Synchronize R8A774A1 RZ/G2M clock tables with Linux 6.5.3, commit 238589d0f7b421aae18c5704dc931595019fa6c7 . Signed-off-by: Marek Vasut --- drivers/clk/renesas/r8a774a1-cpg-mssr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/renesas/r8a774a1-cpg-mssr.c

[PATCH 18/20] clk: renesas: Synchronize R8A774B1 RZ/G2N clock tables with Linux 6.5.3

2023-09-17 Thread Marek Vasut
Synchronize R8A774B1 RZ/G2N clock tables with Linux 6.5.3, commit 238589d0f7b421aae18c5704dc931595019fa6c7 . Signed-off-by: Marek Vasut --- drivers/clk/renesas/r8a774b1-cpg-mssr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/renesas/r8a774b1-cpg-mssr.c

[PATCH 19/20] clk: renesas: Synchronize R8A774C0 RZ/G2E clock tables with Linux 6.5.3

2023-09-17 Thread Marek Vasut
Synchronize R8A774C0 RZ/G2E clock tables with Linux 6.5.3, commit 238589d0f7b421aae18c5704dc931595019fa6c7 . Signed-off-by: Marek Vasut --- drivers/clk/renesas/r8a774c0-cpg-mssr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/renesas/r8a774c0-cpg-mssr.c

[PATCH 20/20] clk: renesas: Synchronize R8A774E1 RZ/G2H clock tables with Linux 6.5.3

2023-09-17 Thread Marek Vasut
Synchronize R8A774E1 RZ/G2H clock tables with Linux 6.5.3, commit 238589d0f7b421aae18c5704dc931595019fa6c7 . Signed-off-by: Marek Vasut --- drivers/clk/renesas/r8a774e1-cpg-mssr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/renesas/r8a774e1-cpg-mssr.c

[PATCH 01/19] ARM: dts: renesas: Synchronize R-Car R8A7790 H2 DTs with Linux 6.5.3

2023-09-17 Thread Marek Vasut
Synchronize R-Car R8A7790 H2 DTs with Linux 6.5.3, commit 238589d0f7b421aae18c5704dc931595019fa6c7 . Signed-off-by: Marek Vasut --- arch/arm/dts/r8a7790.dtsi | 85 ++- 1 file changed, 83 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/r8a7790.dtsi b

<    3   4   5   6   7   8   9   10   11   12   >