[PULL] u-boot-usb/master

2023-03-10 Thread Marek Vasut
Two minimal Kconfig/Makefile fixes for USB below. The following changes since commit b08ffdffdce95e267e782366f4a77bf6b5537b28: Merge https://source.denx.de/u-boot/custodians/u-boot-marvell (2023-03-06 14:56:05 -0500) are available in the Git repository at: git://source.denx.de/u-boot-usb

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

2023-03-11 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

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

2023-03-11 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] test: cmd: fdt: Drop unused fdt_test_header_get() fdt parameter

2023-03-11 Thread Marek Vasut
The 'fdt' parameter is not used anywhere in the function, drop it. This also should fix the following compiler warning in sandbox_spl: test/cmd/fdt.c:1159:9: warning: 'fdt_test_header_get' accessing 4096 bytes in a region of size 256 [-Wstringop-overflow=] Signed-off-by:

[PATCH v3] cmd: fdt: Use env_set_hex() for "get addr" and "get size"

2023-03-11 Thread Marek Vasut
The 'fdt get addr' and 'env get size' is always assumed to be hex value, drop the prefix, and outright switch to env_set_hex(). Since this might break existing users who depend on the existing behavior with 0x prefix, this is a separate patch. Revert if this breaks anything.

Re: sandbox_spl build warning

2023-03-11 Thread Marek Vasut
On 3/11/23 02:38, Simon Glass wrote: Hi Marek, I see this in CI for -next: Building current source for 1 boards (0 threads, 64 jobs per thread) sandbox: w+ sandbox_spl + 1159 | fdt_test_header_get(uts, fdt, "magic", fdt_magic(fdt)); + | ^ +test/cmd/fdt.c:1159:9: note

Re: i.MX8MP SPL failures due to memory corruption/overflow?

2023-03-16 Thread Marek Vasut
On 3/15/23 15:12, Frieder Schrempf wrote: Hi, Hi, I'm trying to bring up a new board based on the i.MX8MP and I have an issue I'm hoping someone can help solving. I'm seeing failures in the early SPL code, usually in the DDR initialization. Often they look like: U-Boot SPL 2023.04-rc3 (M

Re: [PATCH] fdt: Make fdt addr -q quieter

2023-03-17 Thread Marek Vasut
On 3/16/23 17:34, Peter Hoyes wrote: From: Peter Hoyes 64597346 "fdt: Add -q option to fdt addr for distro_bootcmd" introduced the -q option for fdt addr, which sets the current working fdt address without printing any output. baf41410 "fdt: Show a message when the working FDT changes" made th

[PULL] u-boot-sh/next

2023-03-18 Thread Marek Vasut
B on Eagle/Condor ARM: renesas: Demote overlap memory nodes message to debug on Gen3 ARM: renesas: falcon: Initialize ARM generic timer and GICv3 if EL3 ARM: renesas: falcon: Enable RWDT reset for V3U Falcon Marek Vasut (13): ARM: renesas: Enable DTO support by default on

[PATCH] lib: Fix SYS_TIMER_COUNTS_DOWN description in Kconfig

2023-03-18 Thread Marek Vasut
The SYS_TIMER_COUNTS_DOWN description contains a typo, s@rathe@&r@ , fix it. Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Huan Wang Cc: Marek Vasut Cc: Simon Glass Cc: Stefan Roese Cc: Tom Rini --- lib/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH 1/4] arch: m68k: Use existing CONFIG_MCFTMR instead of CFG_MCFTMR

2023-03-18 Thread Marek Vasut
There is an existing CONFIG_MCFTMR Kconfig symbol, use it and drop all other instances of CFG_MCFTMR. This duality is likely a result of bogus conversion to Kconfig. Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Huan Wang Cc: Marek Vasut Cc: Simon Glass Cc: Stefan Roese Cc: Tom

[PATCH 4/4] CI: Add m68k target

2023-03-18 Thread Marek Vasut
-bios u-boot.bin Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Huan Wang Cc: Marek Vasut Cc: Simon Glass Cc: Stefan Roese Cc: Tom Rini --- .azure-pipelines.yml | 5 + .gitlab-ci.yml | 8 2 files changed, 13 insertions(+) diff --git a/.azure-pipelines.yml b/.azure

[PATCH 2/4] arch: m68k: Introduce trivial PIT based timer

2023-03-18 Thread Marek Vasut
The QEMU emulation of m68k does not support DMA timer, the only timer that is supported is the PIT timer. Implement trivial PIT timer support for m68k. Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Huan Wang Cc: Marek Vasut Cc: Simon Glass Cc: Stefan Roese Cc: Tom Rini --- arch

[PATCH 3/4] arch: m68k: Add QEMU specific RAMBAR workaround

2023-03-18 Thread Marek Vasut
The QEMU emulation of m68k does not support RAMBAR accesses, add Kconfig option which inhibits those accesses, so that U-Boot can be started in m68k QEMU for CI testing purpopses until QEMU emulation improves. Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Huan Wang Cc: Marek Vasut

[PATCH] clk: renesas: Pack reset identifier before look up

2023-03-19 Thread Marek Vasut
: Add and enable CPG reset driver") Signed-off-by: Marek Vasut --- drivers/clk/renesas/clk-rcar-gen3.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c index d778db6569d..c121d82de7e 10

[PATCH 01/41] net: phy: aquantia: Staticize PHY driver entries

2023-03-19 Thread Marek Vasut
These struct phy_driver ... instances are local to this source code file, staticize them. No functional change. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex Nemirovsky Cc: Haolin Li Cc: Heinrich

[PATCH 02/41] net: phy: ca_phy: Staticize PHY driver entries

2023-03-19 Thread Marek Vasut
These struct phy_driver ... instances are local to this source code file, staticize them. No functional change. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex Nemirovsky Cc: Haolin Li Cc: Heinrich

[PATCH 03/41] net: phy: cortina: Staticize PHY driver entries

2023-03-19 Thread Marek Vasut
These struct phy_driver ... instances are local to this source code file, staticize them. No functional change. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex Nemirovsky Cc: Haolin Li Cc: Heinrich

[PATCH 04/41] net: phy: teranetics: Staticize PHY driver entries

2023-03-19 Thread Marek Vasut
These struct phy_driver ... instances are local to this source code file, staticize them. No functional change. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex Nemirovsky Cc: Haolin Li Cc: Heinrich

[PATCH 07/41] net: phy: adin: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 06/41] net: phy: Iterate over both registered PHYs and struct phy_driver linker list

2023-03-19 Thread Marek Vasut
that point in time, and phy_register() is not called for those drivers. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex Nemirovsky Cc: Haolin Li Cc: Heinrich Schuchardt Cc: Joe Hershberger Cc: Joel

[PATCH 05/41] net: phy: Factor manual relocation into separate function

2023-03-19 Thread Marek Vasut
Create separate function to implement manual relocation of PHY driver functions and make use of that function. This is a preparatory patch for introduction of PHY driver definition using linker lists. No functional change. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro"

[PATCH 08/41] net: phy: aquantia: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 09/41] net: phy: atheros: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 10/41] net: phy: b53: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 11/41] net: phy: broadcom: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 12/41] net: phy: ca_phy: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 32/41] net: phy: mscc: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 31/41] net: phy: intel-xway: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 18/41] net: phy: marvell: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 15/41] net: phy: mv88e61xx: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 20/41] net: phy: ksz90x1: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 36/41] net: phy: genphy: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 29/41] net: phy: vitesse: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 39/41] net: phy: Drop unused phy_register()

2023-03-19 Thread Marek Vasut
This function is no longer used, drop it. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex Nemirovsky Cc: Haolin Li Cc: Heinrich Schuchardt Cc: Joe Hershberger Cc: Joel Stanley Cc: Josua

[PATCH 13/41] net: phy: cortina: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 22/41] net: phy: natsemi: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 33/41] net: phy: fixed: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 16/41] net: phy: et1011c: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 30/41] net: phy: xilinx: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 19/41] net: phy: ksz8xxx: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 38/41] net: phy: Drop static phy_drivers list

2023-03-19 Thread Marek Vasut
The static phy_drivers list is superseded by linker list of struct phy_drivers now that all drivers have been converted to the later. Drop the phy_drivers list as well as list_head from struct phy_driver. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le

[PATCH 21/41] net: phy: meson-gxl: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 17/41] net: phy: lxt: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 41/41] net: phy: Only call phy_init() on systems needing manual relocation

2023-03-19 Thread Marek Vasut
The phy_init() is now used only to perform manual relocation of PHY driver callbacks. Wrap it in ifdeffery and only call it on systems which still require manual relocation, i.e. m68k . Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc

[PATCH 25/41] net: phy: realtek: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 28/41] net: phy: ti: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex Nemirovsky Cc: Haolin Li Cc: Heinrich Schuchardt Cc: Joe Hershberger Cc: Joel Stanley Cc: Josua Mayer Cc: Marek Vasut Cc: Michael Trimarchi Cc: Michal Simek

[PATCH 26/41] net: phy: smsc: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 34/41] net: phy: ncsi: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 24/41] net: phy: nxp-tja11xx: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 27/41] net: phy: teranetics: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 1/3] net: mvpp2: Replace PHY_INTERFACE_MODE_SGMII_2500 with SGMII and speed

2023-03-19 Thread Marek Vasut
Replace PHY_INTERFACE_MODE_SGMII_2500 with PHY_INTERFACE_MODE_SGMII and phydev->speed check where applicable. The PHY_INTERFACE_MODE_SGMII_2500 does not exist in Linux, so remove it from U-Boot too. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behú

[PATCH 23/41] net: phy: nxp-c45-tja11xx: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 40/41] net: phy: Re-inline phy_drv_reloc()

2023-03-19 Thread Marek Vasut
Wrap phy_drv_reloc() back into phy_init() to reduce ifdeffery, since phy_drv_reloc() is now called only from one call site. No functional change. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex Nemi

[PATCH 2/3] net: mvpp2: Replace PHY_INTERFACE_MODE_SFI with 5GBASER/10GBASER/XAUI

2023-03-19 Thread Marek Vasut
Replace PHY_INTERFACE_MODE_SFI with PHY_INTERFACE_MODE_5GBASER, PHY_INTERFACE_MODE_10GBASER and PHY_INTERFACE_MODE_XAUI to match Linux PHY interface modes. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe Hershberger Cc: Marek V

[PATCH 35/41] net: phy: xilinx-gmii2rgmii: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 3/3] net: phy: Synchronize PHY interface modes with Linux

2023-03-19 Thread Marek Vasut
nux kernel. Note that the ifdeffery cannot be avoided with IS_ENABLED() here due to compilation of the entire conditional, which would fail in case NCSI symbols are not available. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe Hers

[PATCH 37/41] net: phy: gen10g: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 14/41] net: phy: davicom: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater

[PATCH 3/5] net: phy: Add phy_read_mmd_poll_timeout() from Linux

2023-03-19 Thread Marek Vasut
Add phy_read_mmd_poll_timeout() from Linux 5.7.y as of commit bd971ff0b7392 ("net: phy: introduce phy_read_mmd_poll_timeout macro") This is used by the upcoming Marvell 10G PHY driver. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún&qu

[PATCH 2/5] net: phy: Add phy_modify_mmd() and phy_modify_mmd_changed() from Linux

2023-03-19 Thread Marek Vasut
Add phy_modify_mmd()/phy_modify_mmd_changed() from Linux 5.1.y as of commit b8554d4f7288f ("net: phy: add register modifying helpers returning 1 on change") This is used by the upcoming Marvell 10G PHY driver. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" C

[PATCH 1/5] net: phy: marvell: Import and use marvell_phy.h from Linux

2023-03-19 Thread Marek Vasut
y sync the length of the hexadecimal number to 8 digits. No functional change. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe Hershberger Cc: Marek Vasut Cc: Michael Trimarchi Cc: Nate Drude Cc: Ramon Fried Cc: Simon Glass C

[PATCH 2/4] phy: Fix kerneldoc alignment

2023-03-19 Thread Marek Vasut
Insert missing space in front of asterisk to avoid checkpatch warning. Replace 'beeing' with 'being' as well, to fix another checkpatch warning. Signed-off-by: Marek Vasut --- Cc: Jim Liu Cc: Neil Armstrong Cc: Patrice Chotard Cc: Samuel Holland Cc: Sumit Garg Cc: Weij

[PATCH 1/4] phy: Add empty generic_phy_configure() implementation for PHY disabled case

2023-03-19 Thread Marek Vasut
In case PHY is not enabled, the generic_phy_configure() implementation is missing. Add an empty one so that the list of empty functions is complete. Fixes: f8da8a82c57 ("generic-phy: add configure op") Signed-off-by: Marek Vasut --- Cc: Jim Liu Cc: Neil Armstrong Cc: Patrice C

[PATCH 3/4] phy: Add .set_mode and .set_speed callbacks

2023-03-19 Thread Marek Vasut
configure callback, which is used to pass arbitrary custom information to the PHY, these two callbacks are used to pass standardized set of information to the PHY. Signed-off-by: Marek Vasut --- Cc: Jim Liu Cc: Neil Armstrong Cc: Patrice Chotard Cc: Samuel Holland Cc: Sumit Garg Cc: Weijie Gao

[PATCH 4/4] phy: renesas: Add Renesas Ethernet SERDES driver for R-Car S4-8

2023-03-19 Thread Marek Vasut
er is imported and adjusted from Linux 6.3-rc1 commit: 50133cd3e8dd1 ("phy: renesas: r8a779f0-eth-serdes: Remove retry code in .init()") Signed-off-by: Marek Vasut --- Cc: Jim Liu Cc: Neil Armstrong Cc: Patrice Chotard Cc: Samuel Holland Cc: Sumit Garg Cc: Weijie Gao --- driv

[PATCH 5/5] net: phy: marvell10g: Adapt Marvell 10G PHY driver from Linux

2023-03-19 Thread Marek Vasut
ch simpler driver which can only bring the PHY up and set MAC type. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe Hershberger Cc: Marek Vasut Cc: Michael Trimarchi Cc: Nate Drude Cc: Ramon Fried Cc: Simon Glass Cc: Stefan Roese

[PATCH 4/5] net: phy: Add MDIO PCS 2.5G and 5G speed macros from Linux

2023-03-19 Thread Marek Vasut
Add MDIO PCS 2.5G and 5G speed macros from Linux 5.1.y as of commit 7fd8afa8933a0 ("net: phy: Add generic support for 2.5GBaseT and 5GBaseT") This is used by the upcoming Marvell 10G PHY driver. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek B

Re: [PATCH] fdt: Make fdt addr -q quieter

2023-03-19 Thread Marek Vasut
On 3/17/23 18:27, Peter Hoyes wrote: On 17/03/2023 12:17, Marek Vasut wrote: On 3/16/23 17:34, Peter Hoyes wrote: From: Peter Hoyes 64597346 "fdt: Add -q option to fdt addr for distro_bootcmd" introduced the -q option for fdt addr, which sets the current working fdt address withou

Re: [PATCH v3] Let the EQoS in imx8mp handle fixed-phy too.

2023-03-19 Thread Marek Vasut
On 3/19/23 11:43, Elmar Psilog wrote: Without that patch it lost track to the node to scan speed and duplex. Patch was created by Marek Vasut, just tested by me. Signed-off-by: Elmar Psilog Reviewed-by: Marek Vasut ---    changes v2: fix format issues    changes v3: remove {} around single if

Re: [PATCH v3] Let the EQoS in imx8mp handle fixed-phy too.

2023-03-19 Thread Marek Vasut
On 3/19/23 21:02, Elmar Psilog wrote: Am 19.03.23 um 18:21 schrieb Marek Vasut: On 3/19/23 11:43, Elmar Psilog wrote: Without that patch it lost track to the node to scan speed and duplex. Patch was created by Marek Vasut, just tested by me. Signed-off-by: Elmar Psilog Reviewed-by: Marek

Re: [PATCH 4/4] CI: Add m68k target

2023-03-19 Thread Marek Vasut
On 3/19/23 20:27, Angelo Dureghello wrote: Hi, [...] +qemu_m68k test.py: +  variables: +    TEST_PY_BD: "M5208EVBE" +    TEST_PY_TEST_SPEC: "not sleep and not efi" +    TEST_PY_ID: "--id qemu" +    OVERRIDE: "-a CONFIG_M68K_QEMU=y -a CONFIG_MCFTMR=n" +  <<: *buildman_and_testpy_dfn +   qemu_ma

[PATCH] travis-ci: Add m68k M5208EVBE machine

2023-03-20 Thread Marek Vasut
Add m68k M5208EVBE machine configured to test U-Boot m68k support. Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Stephen Warren Cc: Tom Rini --- bin/travis-ci/conf.M5208EVBE_qemu | 27 +++ .../u_boot_boardenv_M5208EVBE_qemu.py | 6 + 2

[PATCH] net: rswitch: Add Renesas Ethernet Switch

2023-03-20 Thread Marek Vasut
From: Phong Hoang This patch adds Ethernet Switch support that found on R-Car S4 (r8a779f0) SoC. This is extracted from multiple patches from downstream BSP, with additional rework of the network device registration. Signed-off-by: Hai Pham Signed-off-by: Marek Vasut Signed-off-by: Phong

[PATCH] ARM: renesas: Enable rswitch, serdes and PHY driver on R8A779F0 S4 Spider

2023-03-20 Thread Marek Vasut
Enable Renesas RSwitch driver, matching SERDES PHY driver and Marvell 10G ethernet PHY driver in R8A779F0 S4 Spider board configuration to make ethernet available via the RSwitch ports. Signed-off-by: Marek Vasut --- Cc: Hai Pham Cc: Joe Hershberger Cc: Marek Vasut Cc: Peng Fan Cc: Ramon

[PULL] u-boot-sh/master

2023-03-20 Thread Marek Vasut
6:44 +0100) -------- Marek Vasut (1): clk: renesas: Pack reset identifier before look up drivers/clk/renesas/clk-rcar-gen3.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-)

Re: [PATCH v2] fdt: Make fdt addr -q quieter

2023-03-21 Thread Marek Vasut
rking_fdt_addr_quiet. set_working_fdt_addr_quiet can be called by "quiet" fdt cmd logic and set_working_fdt_addr is exported (as before) to other boot logic. The latter calls the former. Remove the assertion from the fdt addr test case when calling with the -q argument. Signed-off-by: Pet

[PATCH v2 1/3] net: mvpp2: Drop PHY_INTERFACE_MODE_SGMII_2500 support

2023-03-21 Thread Marek Vasut
2500 behavior is unclear Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe Hershberger Cc: Marek Vasut Cc: Ramon Fried Cc: Stefan Roese Cc: Tim Harvey Cc: Vladimir Oltean --- V2: Drop SGMII 2500 support, if it becomes required and/

[PATCH v2 3/3] net: phy: Synchronize PHY interface modes with Linux

2023-03-21 Thread Marek Vasut
nux kernel. Note that the ifdeffery cannot be avoided with IS_ENABLED() here due to compilation of the entire conditional, which would fail in case NCSI symbols are not available. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe Hers

[PATCH v2 2/3] net: mvpp2: Replace PHY_INTERFACE_MODE_SFI with 5GBASER/10GBASER/XAUI

2023-03-21 Thread Marek Vasut
Replace PHY_INTERFACE_MODE_SFI with PHY_INTERFACE_MODE_5GBASER, PHY_INTERFACE_MODE_10GBASER and PHY_INTERFACE_MODE_XAUI to match Linux PHY interface modes. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe Hershberger Cc: Marek V

Re: [PATCH 1/2] Dockerfile: Add m68k-softmmu to qemu

2023-03-21 Thread Marek Vasut
On 3/21/23 20:31, Tom Rini wrote: Given efforts to add an m68k target to CI, build qemu for it. Signed-off-by: Tom Rini --- Cc: Marek Vasut Reviewed-by: Marek Vasut +CC Angelo too.

Re: [PATCH 1/3] net: mvpp2: Replace PHY_INTERFACE_MODE_SGMII_2500 with SGMII and speed

2023-03-21 Thread Marek Vasut
On 3/19/23 20:45, Marek Behún wrote: On Sun, 19 Mar 2023 18:06:45 +0100 Marek Vasut wrote: Replace PHY_INTERFACE_MODE_SGMII_2500 with PHY_INTERFACE_MODE_SGMII and phydev->speed check where applicable. The PHY_INTERFACE_MODE_SGMII_2500 does not exist in Linux, so remove it from U-Boot

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

2023-03-22 Thread Marek Vasut
There is an existing CONFIG_MCFTMR Kconfig symbol, use it and drop all other instances of CFG_MCFTMR. This duality is likely a result of bogus conversion to Kconfig. Fixes: 7ff7b46e6ce ("m68k: rename CONFIG_MCFTMR to CFG_MCFTMR") Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello

[PATCH v2 3/3] arch: m68k: Add QEMU specific RAMBAR workaround

2023-03-22 Thread Marek Vasut
The QEMU emulation of m68k does not support RAMBAR accesses, add Kconfig option which inhibits those accesses, so that U-Boot can be started in m68k QEMU for CI testing purpopses until QEMU emulation improves. Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Huan Wang Cc: Marek Vasut

[PATCH v2 2/3] arch: m68k: Introduce trivial PIT based timer

2023-03-22 Thread Marek Vasut
The QEMU emulation of m68k does not support DMA timer, the only timer that is supported is the PIT timer. Implement trivial PIT timer support for m68k. Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Huan Wang Cc: Marek Vasut Cc: Simon Glass Cc: Stefan Roese Cc: Tom Rini --- V2

[PATCH] configs: m68k: Use default shell prompt

2023-03-22 Thread Marek Vasut
#x27;=>' one to avoid this interference. Suggested-by: Tom Rini # found the CI oddity Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Huan Wang Cc: Marek Vasut Cc: Simon Glass Cc: Stefan Roese Cc: Tom Rini --- configs/M5208EVBE_defconfig | 1 - configs/M5235EVB_d

[PATCH v2] CI: Add m68k target

2023-03-22 Thread Marek Vasut
-bios u-boot.bin Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Huan Wang Cc: Marek Vasut Cc: Simon Glass Cc: Stefan Roese Cc: Tom Rini --- V2: Disable CONFIG_MCFTMR using -a ~CONFIG_MCFTMR --- .azure-pipelines.yml | 5 + .gitlab-ci.yml | 8 2 files changed, 13

[PULL] u-boot-usb/master

2023-07-03 Thread Marek Vasut
The following changes since commit ac29400f1f4ae5df2542bacfe4c142db7824bd6c: Merge tag 'efi-2023-07-rc6' of https://source.denx.de/u-boot/custodians/u-boot-efi (2023-07-01 16:11:51 -0400) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to fetch ch

Re: [PATCH 1/2] mxs: Fix VDDx brownout interrupt disable/enable

2023-07-03 Thread Marek Vasut
On 7/3/23 18:33, Cody Green wrote: HW_POWER_CTRL register contains brownout interrupt enable bits ENIRQ_VDDIO_BO, ENIRQ_VDDA_BO and ENIRQ_VDDD_BO. So what does this patch do (that is missing in the commit message) ?

Re: [PATCH 2/2] mxs: Don't enable 4P2 reg if MXS is powered only from DCDC_BATT

2023-07-03 Thread Marek Vasut
ll the 'mxs_power_enable_4p2()' function if the MXS is powered only by the DCDC_BATT, because there is no reason to enable 4P2 regulator in this case. Also 5V brownout should not be enabled in 'mxs_power_init()' and linear regulator checks should be disabled in 'mxs_power_set

Re: [PATCH 1/2] mxs: Fix VDDx brownout interrupt disable/enable

2023-07-03 Thread Marek Vasut
On 7/3/23 20:33, Cody Green wrote: On Mon, Jul 3, 2023 at 5:40 PM Marek Vasut wrote: On 7/3/23 18:33, Cody Green wrote: HW_POWER_CTRL register contains brownout interrupt enable bits ENIRQ_VDDIO_BO, ENIRQ_VDDA_BO and ENIRQ_VDDD_BO. So what does this patch do (that is missing in the commit

Re: v2023.07-rc5 regression: Image overlaps SPL

2023-07-03 Thread Marek Vasut
On 7/3/23 18:49, Francesco Dolcini wrote: Short update on this regression. On Thu, Jun 29, 2023 at 04:19:22PM +0200, Francesco Dolcini wrote: I also noticed something weird on a colibri imx7s, this is not using SPL, likely something completly different, however given this is new also from rc5 I

Re: [PATCH 1/1] tools: spkgimage: correct printf specifier

2023-07-04 Thread Marek Vasut
t;config error: unknown keyword on line %zu\n", line_num); return -EINVAL; } Reviewed-by: Marek Vasut Tom, can you pick this directly for 2023.07 ? It is low impact and fixes a warning.

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

2023-07-04 Thread Marek Vasut
On 5/18/23 00:02, Marek Vasut wrote: In case the DHSOM is in suspend state and either reset button is pushed or IWDG2 triggers a watchdog reset, then DRAM initialization could fail as follows: " RAM: DDR3L 32bits 2x4Gb 533MHz DDR invalid size : 0x4, expected 0x4000 DRAM

[PATCH] ARM: dts: imx: Fix eMMC boot on Data Modul i.MX8M Plus eDM SBC

2023-07-05 Thread Marek Vasut
: Marek Vasut --- Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- board/data_modul/imx8mp_edm_sbc/spl.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/board/data_modul/imx8mp_edm_sbc/spl.c b/board/data_modul/imx8mp_edm_sbc/spl.c index c30185e48d4..2fdd95a730c 100644

[PATCH] ARM: stm32: Inhibit PDDS because CSTBYDIS is set

2023-07-06 Thread Marek Vasut
problem too. When both PWR_MPUCR and PWR_MCUCR PDDS bits are set, then the chip enters CStandby state even though the PWR_MCUCR CSTBYDIS is set. Clearing the PWR_MPUCR PDDS prevents that from happening. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: uboot-st...@st-md

Re: [PATCH v1] HSD #18028953892: usb: xhci-dwc3: Fix USB3.1 controller register access in reset state

2023-07-06 Thread Marek Vasut
On 6/22/23 16:08, Lim, Jit Loon wrote: -Original Message- From: Marek Vasut Sent: Thursday, 22 June, 2023 5:35 PM To: Lim, Jit Loon ; u-boot@lists.denx.de Cc: Jagan Teki ; Simon ; Chee, Tien Fong ; Hea, Kok Kiang ; Lokanathan, Raaj ; Maniyam, Dinesh ; Ng, Boon Khai ; Yuslaimi, Alif

Re: [PATCH v2] phy: phy-imx8mq-usb: add vbus regulator support

2023-07-08 Thread Marek Vasut
On 6/9/23 19:28, Tim Harvey wrote: Add support for enabling and disabling vbus-supply regulator found on several imx8mp boards in the usb3_phy0 and usb3_phy1 nodes. Signed-off-by: Tim Harvey Reviewed-by: Adam Ford --- v2: - protect ret with __maybe_unused in case CONFIG_CLK and CONFIG_DM

Re: [PATCH] spl: Add function called after fpga image upload

2023-07-10 Thread Marek Vasut
On 6/27/23 11:04, christian.taedcke-...@weidmueller.com wrote: From: Christian Taedcke This way custom logic can be implemented per board after the fpga image is uploaded. Signed-off-by: Christian Taedcke --- common/spl/spl_fit.c | 13 + 1 file changed, 13 insertions(+) diff

Re: [PATCH] spl: Add function called after fpga image upload

2023-07-10 Thread Marek Vasut
On 7/10/23 15:02, Taedcke, Christian wrote: Am 10.07.2023 um 13:41 schrieb Michal Simek: On 6/27/23 11:04, christian.taedcke-...@weidmueller.com wrote: From: Christian Taedcke This way custom logic can be implemented per board after the fpga image is uploaded. What do you want to do there

<    1   2   3   4   5   6   7   8   9   10   >