[PATCH v4 0/3] spi: spi_flash_probe_bus_cs() rely on DT for spi speed and mode

2022-03-30 Thread Patrice Chotard
Since commit e2e95e5e2542 ("spi: Update speed/mode on change") when calling "sf probe" or "env save" on SPI flash, spi_set_speed_mode() is called twice. spi_get_bus_and_cs() |--> spi_claim_bus() | |--> spi_set_speed_mode(speed and mode from DT) ... |--> spi_set_spee

[PATCH v4 2/3] spi: spi_flash_probe_bus_cs() rely on DT for spi speed and mode

2022-03-30 Thread Patrice Chotard
Now, spi_flash_probe_bus_cs() relies on DT for spi speed and mode and logically calls spi_get_bus_and_cs(). In case spi mode and speed are not read from DT, make usage of spi_flash_probe() instead. To sum-up: - Previous call tree was: spi_flash_probe() -> spi_flash_probe_bus_cs() -> spi_get_b

[PATCH v4 3/3] test: dm: spi: Replace _spi_get_bus_and_cs() by spi_get_bus_and_cs() in some case

2022-03-30 Thread Patrice Chotard
In case _spi_get_bus_and_cs()'s parameters drv_name and dev_name are respectively set to NULL and 0, use spi_get_bus_and_cs() instead. Signed-off-by: Patrice Chotard Cc: Marek Behun Cc: Jagan Teki Cc: Vignesh R Cc: Joe Hershberger Cc: Ramon Fried Cc: Lukasz Majewski Cc: Marek Vasut Cc: Wo

[PATCH v4 1/3] spi: spi-uclass: Add new spi_get_bus_and_cs() implementation

2022-03-30 Thread Patrice Chotard
Move legacy spi_get_bus_and_cs() code to _spi_get_bus_and_cs(). Add new spi_get_bus_and_cs() implementation which rely on DT for speed and mode and don't need any drv_name nor dev_name parameters. This will prepare the ground for next patch. Update all callers to use _spi_get_bus_and_cs() to keep

[PATCH] dt-bindings: xilinx: Add missing ids for PD

2022-03-30 Thread Michal Simek
There are some new power domain IDs which are used in Linux kernel that's why add them here too. Signed-off-by: Michal Simek --- include/dt-bindings/power/xlnx-versal-power.h | 11 +++ include/dt-bindings/power/xlnx-zynqmp-power.h | 11 +++ 2 files changed, 22 insertions(+) dif

[PATCH 2/2] net: phy: marvell: Add support for 88E1240 PHY

2022-03-30 Thread Stefan Roese
This patch adds basic support for the Marvell 88E1240 PHY. This will be used by the upcoming ethernet support addition for the Marvell MIPS Octeon EBB7304 platform. Signed-off-by: Stefan Roese Cc: Ramon Fried Cc: Joe Hershberger Cc: Aaron Williams Cc: Chandrakala Chavva --- drivers/net/phy/

[PATCH 1/2] net: phy: marvell: Support reg config via "marvell, reg-init" DT property

2022-03-30 Thread Stefan Roese
This patch adds support for the "marvell,reg-init" DT property, which is used to describe board specific Marvell PHY register configurations in the board dts file. This DT property is supported in the Linux Kernel since a longer time. Adding it to U-Boot now, enables the boards which describe the r

Re: [PATCH v4 01/11] bootmenu: fix menu API error handling

2022-03-30 Thread Ilias Apalodimas
On Thu, Mar 24, 2022 at 10:54:33PM +0900, Masahisa Kojima wrote: > U-Boot menu framework(common/menu.c) returns 1 if it is successful, > returns negative value if it fails. > > Signed-off-by: Masahisa Kojima > --- > Newly added in v4 > > cmd/bootmenu.c | 4 ++-- > 1 file changed, 2 insertions(+

[PATCH 1/6] net: zynq_gem: Use shared MDIO bus support for zynqmp

2022-03-30 Thread Michal Simek
CONFIG_ETH_PHY enables support to utilize generic ethernet phy framework. Though if ethernet PHY node is in other ethernet node, it will use shared MDIO to access the PHY of other ethernet. Signed-off-by: Michal Simek Signed-off-by: T Karthik Reddy --- drivers/net/zynq_gem.c | 32 +

[PATCH 3/6] net: zynq_gem: Move ethernet info print statement

2022-03-30 Thread Michal Simek
From: T Karthik Reddy As we are not reading the PHY address in case of CONFIG_ETH_PHY in plat function, phy address always prints as -1. So move the ethernet info print statement to probe function, to display proper phy address. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek ---

[PATCH 4/6] gpio: slg7xl45106: Update gpio desc flags from DT

2022-03-30 Thread Michal Simek
From: T Karthik Reddy In current slg7xl45106 gpio driver xlate() function we are not updating gpio flags from DT. Read the given flag from DT and update the gpio desc flags variable with required gpio direction state. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- drivers/gpi

[PATCH 6/6] net: zynq_gem: Add SGMII dynamic config support

2022-03-30 Thread Michal Simek
From: T Karthik Reddy Add support for SGMII dynamic configuration which will takes care of configuring SGMII in the GEM secure (GEM_CLK_CTRL) configuration register. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 46 +++

[PATCH 2/6] net: phy: Avoid phy gpio reset sequence if DM_ETH_PHY is enabled

2022-03-30 Thread Michal Simek
From: T Karthik Reddy If DM_ETH_PHY config is enabled PHY gpio reset is taken care by the eth-phy-uclass driver, so use the PHY gpio reset functionality from ethernet_id file when this config is disabled to reset the PHY. Use debug() print instead of dev_err() to avoid warning incase if phy-id co

[PATCH 0/6] xilinx: Add support for DM_ETH_PHY

2022-03-30 Thread Michal Simek
Hi, I am sending series for adding support for DM_ETH_PHY for zynq_gem. I don't want to enable it by default now to have a time to also add support in emaclite and axi emac to be able to use shared MDIO bus across all xilinx IPs. Series also updating slg gpio driver and adding additional handling

[PATCH 5/6] firmware: firmware-zynqmp: Add zynqmp_pm_set_gem_config api

2022-03-30 Thread Michal Simek
From: T Karthik Reddy Add zynqmp_pm_set_gem_config() api to configure GEM secure registers. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- drivers/firmware/firmware-zynqmp.c | 13 + include/zynqmp_firmware.h | 7 +++ 2 files changed, 20 insertions(+)

[PATCH v1 1/1] efi_loader: initrddump: Actually use the custom CFLAGS

2022-03-30 Thread Andy Shevchenko
It seems a copy'n'paste typo when tool had been introduced. It has never had the 'exit' suffix in the file name. Hence, the custom CFLAGS never been applied and, for example, BFD linker complains: LD lib/efi_loader/initrddump_efi.so ld.bfd: lib/efi_loader/initrddump.o: warning: relocation

Re: [ANN] U-Boot v2022.04-rc1 released

2022-03-30 Thread Andy Shevchenko
On Fri, Feb 11, 2022 at 09:54:38PM +0200, Andy Shevchenko wrote: > On Fri, Feb 11, 2022 at 09:47:52PM +0200, Andy Shevchenko wrote: > > On Fri, Feb 11, 2022 at 12:31:46PM -0700, Simon Glass wrote: > > > On Fri, 11 Feb 2022 at 12:29, Andy Shevchenko > > > wrote: > > > > On Fri, Feb 11, 2022 at 9:2

Re: [PATCH v1 1/1] Makefile.lib: Always rebuild DSDT

2022-03-30 Thread Andy Shevchenko
On Mon, Oct 25, 2021 at 09:52:45PM +0300, Andy Shevchenko wrote: > On Mon, Oct 25, 2021 at 09:18:56AM -0600, Simon Glass wrote: > > On Mon, 25 Oct 2021 at 01:34, Andy Shevchenko > > wrote: > > > On Sun, Oct 24, 2021 at 11:00 PM Simon Glass wrote: > > > > On Wed, 20 Oct 2021 at 06:37, Andy Shevch

Re: [ANN] U-Boot v2022.04-rc5 released

2022-03-30 Thread Andy Shevchenko
On Mon, Mar 28, 2022 at 5:17 PM Tom Rini wrote: > > Hey all, > > It's release day and so here's v2022.04-rc5. The release itself is next > week and the next branch is open. I've merged all regression and > critical fixes I know of so if something else is missing please speak up > as soon as poss

[PATCH v1 1/1] Makefile.lib: Re-use $(UBOOTINCLUDE) in dtc_cpp_flags

2022-03-30 Thread Andy Shevchenko
As in ASL case use same basic set of the inclusions. Signed-off-by: Andy Shevchenko --- scripts/Makefile.lib | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index c14da10de780..2ff39d39dc8a 100644 --- a/scripts/Makefile.lib +++ b

Re: [PATCH v1 1/2] hexdump: Introduce debug APIs

2022-03-30 Thread Andy Shevchenko
On Sat, Nov 13, 2021 at 11:14:28AM -0700, Simon Glass wrote: > On Tue, 9 Nov 2021 at 05:03, Andy Shevchenko > wrote: > > > > debug_hex_dump() and debug_hex_dump_bytes() conditionally print > > the dump based on DEBUG definition. > > > > Signed-off-by: Andy Shevchenko > > --- > > include/hexdump.

[PATCH] tools: mkimage: No need to verify_header for header_v2

2022-03-30 Thread Kever Yang
From: Yi Liu rockchip header_v2 do not have a spl_hdr, so remove the verify. Signed-off-by: Yi Liu Signed-off-by: Kever Yang --- tools/rkcommon.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 29f2676c19..ff62c75caa 100644 --- a/tools/rkcomm

[PATCH 02/52] mips: octeon: Add cvmx-ilk-defs.h header file

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-igl-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/cvmx-ilk-defs.h | 2269

[PATCH 00/52] mips: octeon: Add ethernet support

2022-03-30 Thread Stefan Roese
This patchset adds the networking files and drivers including device helper headers and C files. Please excuse the massive amount of files in this patch series. Also the sometimes huge files (mostly headers with register definitions) that I needed to include. The infrastructure code with all the h

[PATCH 06/52] mips: octeon: Add cvmx-pcsxx-defs.h header file

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-pcsxxx-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../include/mach/cvmx-pcsxx-defs.h| 78

[PATCH 08/52] mips: octeon: Misc changes to existing headers for upcoming eth support

2022-03-30 Thread Stefan Roese
This patch includes misc changes to already present Octeon MIPS header files, which are necessary for the upcoming ethernet support. The changes are mostly: - DM GPIO & I2C infrastructure - Coding style cleanup while reworking the headers Signed-off-by: Stefan Roese --- .../mach-octeon/include/

[PATCH 07/52] mips: octeon: Add cvmx-xcv-defs.h header file

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-xcv-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/cvmx-xcv-defs.h | 226 +

[PATCH 12/52] mips: octeon: Add cvmx-helper-fpa.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-fpa.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-fpa.c | 329 +

[PATCH 04/52] mips: octeon: Add cvmx-lbk-defs.h header file

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-lbk-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/cvmx-lbk-defs.h | 157 +

[PATCH 09/52] mips: octeon: Add cvmx-helper-agl.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-agl.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-agl.c | 231 +

[PATCH 11/52] mips: octeon: Add cvmx-helper-board.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-board.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-board.c | 2030

[PATCH 13/52] mips: octeon: Add cvmx-helper-igl.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-igl.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-ilk.c | 926 +

[PATCH 05/52] mips: octeon: Add cvmx-npei-defs.h header file

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-npei-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/cvmx-npei-defs.h | 3550

[PATCH 15/52] mips: octeon: Add cvmx-helper-loop.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-loop.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-loop.c | 178 +++

[PATCH 24/52] mips: octeon: Add cvmx-agl.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-agl.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-agl.c | 216 +++

[PATCH 19/52] mips: octeon: Add cvmx-helper-pko3.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-pko3.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-pko3.c | 1252 ++

[PATCH 28/52] mips: octeon: Add cvmx-fpa-resource.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-fpa-resource.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-fpa-resource.c | 305 +

[PATCH 46/52] mips: octeon: octeon_common.h: Move init SP because of increased image size

2022-03-30 Thread Stefan Roese
This patch moves CONFIG_SYS_INIT_SP_OFFSET to a higher address so that it does not interfere with larger U-Boot images. This was noticed, while adding network support to the EBB7304 board. Signed-off-by: Stefan Roese --- include/configs/octeon_common.h | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH 45/52] mips: octeon: cpu.c: Implement configure_lmtdma_window()

2022-03-30 Thread Stefan Roese
Import configure_lmtdma_window from Marvell 2013 U-Boot as it's needed for network functionality. Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cpu.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/arch/mips/mach-octeon/cpu.c b/arch/

[PATCH 21/52] mips: octeon: Add cvmx-helper-sgmii.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-sgmii.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-sgmii.c | 781 +

[PATCH 48/52] mips: octeon: mrvl, octeon-ebb7304.dts: Add ethernet DT support

2022-03-30 Thread Stefan Roese
Add the Octeon ethernet (BGX), SMI and PHY DT nodes to the EBB7304 dts file to enable ethernet support on this board. Signed-off-by: Stefan Roese --- arch/mips/dts/mrvl,octeon-ebb7304.dts | 45 +++ 1 file changed, 45 insertions(+) diff --git a/arch/mips/dts/mrvl,octeon-e

[PATCH 51/52] mips: octeon: ebb7304: Enable ethernet support

2022-03-30 Thread Stefan Roese
This patch enables the Kconfig symbols needed for full ethernet support on the EBB7304. Also the PHY autonegotiation timeout is increased, as the default 5 seconds are sometime a bit short. With this, ethernet can be used on this board. Here an example of a tftp load: => tftp 8100 big

[PATCH 34/52] mips: octeon: Add cvmx-pko.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-pko.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-pko.c | 1110 ++

[PATCH 36/52] mips: octeon: Add cvmx-pko3-queue.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-pko3-queue.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-pko3-queue.c | 1331

[PATCH 52/52] mips: octeon: nic23: Enable ethernet support

2022-03-30 Thread Stefan Roese
This patch enables the Kconfig symbols needed for full ethernet support on the NIC23. Additionally board specific setup is done, mostly GPIOs related to SFP / GPIO configuration. With this, ethernet can be used on this board. Here an example of a tftp load: => tftp 8100 big Using ether

[PATCH 47/52] mips: octeon: mrvl, cn73xx.dtsi: Add ethernet (BGX) and SMI DT nodes

2022-03-30 Thread Stefan Roese
Add the Octeon ethernet (BGX) and SMI DT node to the dtsi file. Signed-off-by: Stefan Roese --- arch/mips/dts/mrvl,cn73xx.dtsi | 35 ++ 1 file changed, 35 insertions(+) diff --git a/arch/mips/dts/mrvl,cn73xx.dtsi b/arch/mips/dts/mrvl,cn73xx.dtsi index 2a17f7a6a63

[PATCH 39/52] mips: octeon: Add cvmx-pko-internal-ports-range.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-pko-internal-ports-range.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../cvmx-pko-internal-ports-range.c | 1

[PATCH 44/52] mips: octeon: cpu.c: Move bootmem init to arch_early_init_r()

2022-03-30 Thread Stefan Roese
Call octeon_bootmem_init() earlier in the boot process, so that this bootmemory infrastructure is already initialized when e.g. the networking support gets probed. Signed-off-by: Stefan Roese --- arch/mips/Kconfig | 1 + arch/mips/mach-octeon/cpu.c | 13 - 2 files changed,

[PATCH 42/52] mips: octeon: Misc changes to existing C files for upcoming eth support

2022-03-30 Thread Stefan Roese
This patch includes misc changes to already present Octeon MIPS C files files, which are necessary for the upcoming ethernet support. The changes are mostly: - DM GPIO & I2C infrastructure - Coding style cleanup while reworking of the code Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/c

[PATCH 30/52] mips: octeon: Add cvmx-ilk.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-ilk.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-ilk.c | 1618 ++

[PATCH 32/52] mips: octeon: Add cvmx-pki.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-pki.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-pki.c | 1619 ++

[PATCH 50/52] net: Add ethernet support for MIPS Octeon

2022-03-30 Thread Stefan Roese
This patchs adds the ethernet & MDIO driver for the MIPS Octeon II / III SoC platform. Please note that these drivers are based on the 2013 U-Boot version from Marvell and make use of the platform supported helper functions for the ethernet functionality, including stuff like SFP handling. Signed-

[PATCH 49/52] mips: octeon: mrvl, octeon-nic23.dts: Add ethernet DT support

2022-03-30 Thread Stefan Roese
Add the Octeon ethernet (BGX) and SFP DT nodes to the NIC23 dts file to enable ethernet support on this board. Signed-off-by: Stefan Roese --- arch/mips/dts/mrvl,octeon-nic23.dts | 238 1 file changed, 238 insertions(+) diff --git a/arch/mips/dts/mrvl,octeon-nic23.d

[PATCH 38/52] mips: octeon: Add cvmx-pko3-resources.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-pko3-resources.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-pko3-resources.c | 229 +

[PATCH 1/1] Makefile: make clean should delete include/generated/env.in

2022-03-30 Thread Heinrich Schuchardt
'make sifive_unamtched_defconfig; make clean; make' fails if file include/generated/env.in exists. 'make clean' should remove all files that stop building. Add file include/generated/env.in to the clean target. Signed-off-by: Heinrich Schuchardt --- Makefile | 4 ++-- 1 file changed, 2 insertio

[PATCH 41/52] mips: octeon: Add cvmx-range.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-range.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-range.c | 344 +++

[PATCH 43/52] mips: octeon: Makefile: Enable building of the newly added C files

2022-03-30 Thread Stefan Roese
This patch adds the newly added C files to the Makefile to enable compilation. This is done in a separate step, to not introduce build breakage while adding the single files with potentially missing externals. Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/Makefile | 35 ++

[PATCH 31/52] mips: octeon: Add cvmx-ipd.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-ipd.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-ipd.c | 690 +++

[PATCH 35/52] mips: octeon: Add cvmx-pko3.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-pko3.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-pko3.c | 2143

[PATCH 03/52] mips: octeon: Add cvmx-iob-defs.h header file

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-iob-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/cvmx-iob-defs.h | 1328

[PATCH 18/52] mips: octeon: Add cvmx-helper-pko.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-pko.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-pko.c | 312 +

[PATCH 17/52] mips: octeon: Add cvmx-helper-pki.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-pki.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-pki.c | 2156

[PATCH 29/52] mips: octeon: Add cvmx-global-resource.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-global-resource.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-global-resources.c | 639 ++

[PATCH 22/52] mips: octeon: Add cvmx-helper-sfp.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-sfp.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-sfp.c | 1877

[PATCH 25/52] mips: octeon: Add cvmx-cmd-queue.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-cmd-queue.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-cmd-queue.c | 449 +++

[PATCH 37/52] mips: octeon: Add cvmx-pko3-compat.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-pko3-compat.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-pko3-compat.c | 656 +++

[PATCH 20/52] mips: octeon: Add cvmx-helper-rgmii.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-rgmii.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-rgmii.c | 431 +

[PATCH 40/52] mips: octeon: Add cvmx-qlm-tables.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-qlm-tables.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-qlm-tables.c | 292 +

[PATCH 26/52] mips: octeon: Add cvmx-fau-compat.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-fau-compat.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-fau-compat.c | 53 ++

[PATCH 14/52] mips: octeon: Add cvmx-helper-ipd.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-ipd.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-ipd.c | 313 +

Re: [PATCH 00/52] mips: octeon: Add ethernet support

2022-03-30 Thread Stefan Roese
Add Daniel to Cc (sorry, I forgot you Daniel). Thanks, Stefan On 3/30/22 12:06, Stefan Roese wrote: This patchset adds the networking files and drivers including device helper headers and C files. Please excuse the massive amount of files in this patch series. Also the sometimes huge files (mos

[PATCH 01/52] mips: octeon: Add misc cvmx-* header files

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import misc cvmx-helper header files from 2013 U-Boot. They will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/include/mach/cvmx-agl.h |

[PATCH 10/52] mips: octeon: Add cvmx-helper-bgx.c

2022-03-30 Thread Stefan Roese
From: Aaron Williams Import cvmx-helper-bgx.c from 2013 U-Boot. It will be used by the later added drivers to support networking on the MIPS Octeon II / III platforms. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/cvmx-helper-bgx.c | 3215

[PATCH] arm: imx: parse-container: add some missing end of line

2022-03-30 Thread Clément Péron
Some printf() have strings that doesn't terminate with end of line and make the output hard to read. Signed-off-by: Clément Péron --- arch/arm/mach-imx/parse-container.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/parse-container.c b/arch/arm/mach-i

Re: [PATCH] arm: imx: parse-container: add some missing end of line

2022-03-30 Thread Fabio Estevam
Hi Clément, On Wed, Mar 30, 2022 at 8:49 AM Clément Péron wrote: > > Some printf() have strings that doesn't terminate with end of line > and make the output hard to read. > > Signed-off-by: Clément Péron Thanks for the patch: Reviewed-by: Fabio Estevam

Re: [PATCH 1/2] net: phy: marvell: Support reg config via "marvell, reg-init" DT property

2022-03-30 Thread Marek Behún
On Wed, 30 Mar 2022 10:38:25 +0200 Stefan Roese wrote: > This patch adds support for the "marvell,reg-init" DT property, which > is used to describe board specific Marvell PHY register configurations > in the board dts file. This DT property is supported in the Linux Kernel > since a longer time.

Re: [PATCH 1/1] Makefile: make clean should delete include/generated/env.in

2022-03-30 Thread Marek Behún
On Wed, 30 Mar 2022 12:11:00 +0200 Heinrich Schuchardt wrote: > 'make sifive_unamtched_defconfig; make clean; make' fails if file > include/generated/env.in exists. 'make clean' should remove all files that > stop building. > > Add file include/generated/env.in to the clean target. > > Signed-o

Broken P2020 board since commit be7dbb60c5bf ("Convert CONFIG_SYS_IMMR to Kconfig")

2022-03-30 Thread Pali Rohár
Hello! In current master branch is U-Boot for P2020 board (powerpc mpc85xx based) built by P2020RDB-PC_SDCARD_defconfig completely broken. U-Boot does not work at all and on UART is nothing printed. I run git bisect and it found commit which broke this P2020 board: be7dbb60c5bfa38ea444fe7de1dc

Re: Broken P2020 board since commit be7dbb60c5bf ("Convert CONFIG_SYS_IMMR to Kconfig")

2022-03-30 Thread Tom Rini
On Wed, Mar 30, 2022 at 02:20:28PM +0200, Pali Rohár wrote: > Hello! > > In current master branch is U-Boot for P2020 board (powerpc mpc85xx > based) built by P2020RDB-PC_SDCARD_defconfig completely broken. U-Boot > does not work at all and on UART is nothing printed. > > I run git bisect and it

Re: Broken P2020 board since commit be7dbb60c5bf ("Convert CONFIG_SYS_IMMR to Kconfig")

2022-03-30 Thread Pali Rohár
On Wednesday 30 March 2022 08:29:17 Tom Rini wrote: > On Wed, Mar 30, 2022 at 02:20:28PM +0200, Pali Rohár wrote: > > Hello! > > > > In current master branch is U-Boot for P2020 board (powerpc mpc85xx > > based) built by P2020RDB-PC_SDCARD_defconfig completely broken. U-Boot > > does not work at a

Re: Broken P2020 board since commit be7dbb60c5bf ("Convert CONFIG_SYS_IMMR to Kconfig")

2022-03-30 Thread Pali Rohár
On Wednesday 30 March 2022 14:32:24 Pali Rohár wrote: > On Wednesday 30 March 2022 08:29:17 Tom Rini wrote: > > On Wed, Mar 30, 2022 at 02:20:28PM +0200, Pali Rohár wrote: > > > Hello! > > > > > > In current master branch is U-Boot for P2020 board (powerpc mpc85xx > > > based) built by P2020RDB-PC

Re: Broken P2020 board since commit be7dbb60c5bf ("Convert CONFIG_SYS_IMMR to Kconfig")

2022-03-30 Thread Tom Rini
On Wed, Mar 30, 2022 at 02:40:54PM +0200, Pali Rohár wrote: > On Wednesday 30 March 2022 14:32:24 Pali Rohár wrote: > > On Wednesday 30 March 2022 08:29:17 Tom Rini wrote: > > > On Wed, Mar 30, 2022 at 02:20:28PM +0200, Pali Rohár wrote: > > > > Hello! > > > > > > > > In current master branch is U

Re: [PATCH v4 3/4] pwm: Add driver for cadence TTC

2022-03-30 Thread Michal Simek
pá 15. 10. 2021 v 15:17 odesílatel Michal Simek napsal: > > TTC has three modes of operations. Timer, PWM and input counters. > > There is already driver for timer under CADENCE_TTC_TIMER which is used for > ZynqMP R5 configuration. > This driver is targeting PWM which is for example configuration

Re: [PATCH v4 2/4] timer: cadence: Add bind function to driver

2022-03-30 Thread Michal Simek
pá 15. 10. 2021 v 15:17 odesílatel Michal Simek napsal: > > When DT node has pwm-cells property it shouldn't be bind as timer driver > but as PWM driver. That's why make sure that this property is checked. > > Signed-off-by: Michal Simek > Reviewed-by: Sean Anderson > Reviewed-by: Simon Glass >

Re: [PATCH v4 4/4] arm: zynqmp: Enable PWM command and cadence ttc pwm driver

2022-03-30 Thread Michal Simek
pá 15. 10. 2021 v 15:17 odesílatel Michal Simek napsal: > > Enable PWM ttc driver and command in generic image. > > Signed-off-by: Michal Simek > --- > > Changes in v4: > - New patch in the series > > configs/xilinx_zynqmp_virt_defconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

Re: [PATCH v4 1/4] dm: core: Bind another driver with the same compatible string

2022-03-30 Thread Michal Simek
ne 24. 10. 2021 v 22:01 odesílatel Simon Glass napsal: > > Hi Michal, > > On Fri, 15 Oct 2021 at 07:17, Michal Simek wrote: > > > > When one IP can have multiple configurations (like timer and PWM) covered > > by multiple drivers. Because it is the same IP it should also have the same > > compati

[PATCH] powerpc: Fix incorrect SYS_IMMR migration values

2022-03-30 Thread Tom Rini
When migrating SYS_IMMR, I didn't allow for boards to provide non-default values here. This lead to an incorrect migration on the platforms where CONFIG_SYS_IMMR is set to CONFIG_SYS_CCSRBAR and CONFIG_SYS_CSSRBAR is NOT the same as CONFIG_SYS_CCSRBAR_DEFAULT. Add text to the prompt so that non-d

Re: [PATCH 1/2] net: phy: marvell: Support reg config via "marvell, reg-init" DT property

2022-03-30 Thread Stefan Roese
On 3/30/22 14:16, Marek Behún wrote: On Wed, 30 Mar 2022 10:38:25 +0200 Stefan Roese wrote: This patch adds support for the "marvell,reg-init" DT property, which is used to describe board specific Marvell PHY register configurations in the board dts file. This DT property is supported in the L

Re: [PATCH] powerpc: Fix incorrect SYS_IMMR migration values

2022-03-30 Thread Pali Rohár
On Wednesday 30 March 2022 09:30:15 Tom Rini wrote: > When migrating SYS_IMMR, I didn't allow for boards to provide > non-default values here. This lead to an incorrect migration on the > platforms where CONFIG_SYS_IMMR is set to CONFIG_SYS_CCSRBAR and > CONFIG_SYS_CSSRBAR is NOT the same as CONFI

Re: [PATCH 1/2] net: phy: marvell: Support reg config via "marvell, reg-init" DT property

2022-03-30 Thread Marek Behún
On Wed, 30 Mar 2022 15:33:34 +0200 Stefan Roese wrote: > So how to continue? Add this "reg-init" "feature" for now? And perhaps > drop it once this LED configuration is possible via the way you describe > above? Or drop it once it's also dropped in the Kernel? My personal > feeling is, that suppo

[PATCH v3 0/9] efi: capsule: Capsule Update fixes and enhancements

2022-03-30 Thread Sughosh Ganu
This series is cleaning up the usage of the image GUIDs that are used in capsule update and the EFI System Resource Table(ESRT). There are some other enhancements being made to the capsule update code to make it more robust. Firstly, an overview of the fixes being made. Currently, there are two

[PATCH v3 2/9] capsule: FMP: Populate the image descriptor array from platform data

2022-03-30 Thread Sughosh Ganu
Currently, the image descriptor array that has been passed to the GetImageInfo function of the Firmware Management Protocol(FMP) gets populated through the data stored with the dfu framework. The dfu data is not restricted to contain information only of the images updatable through the capsule upda

[PATCH v3 1/9] capsule: Add Image GUIDs and image index for platforms using capsule updates

2022-03-30 Thread Sughosh Ganu
Currently, all platforms that enable capsule updates do so using either EFI_FIRMWARE_IMAGE_TYPE_UBOOT_RAW_GUID or EFI_FIRMWARE_IMAGE_TYPE_UBOOT_FIT_GUID. This is based on the Firmware Management Protocol(FMP) instance used on the platform. However, this means that all platforms that enable a partic

[PATCH v3 3/9] capsule: Put a check for image index before the update

2022-03-30 Thread Sughosh Ganu
The current capsule update code compares the image GUID value in the capsule header with the image GUID value obtained from the GetImageInfo function of the Firmware Management Protocol(FMP). This comparison is done to ascertain if the FMP's SetImage function can be called for the update. Make this

[PATCH v3 5/9] capsule: kconfig: Select SET_DFU_ALT_INFO config symbol for capsule update

2022-03-30 Thread Sughosh Ganu
The capsule update code uses the dfu_alt_info variable for the actual update of the firmware component. The dfu_alt_info variable gives information needed to perform the update, like the device on which the update is to be made, the partition, type of partition etc. Since the dfu_alt_info is a envi

[PATCH v3 4/9] board: Define set_dfu_alt_info() for boards with UEFI capsule update enabled

2022-03-30 Thread Sughosh Ganu
Currently, there are a bunch of boards which enable the UEFI capsule update feature. The actual update of the firmware images is done through the dfu framework which uses the dfu_alt_info environment variable for getting information on the update, like device, partition number/address etc. Currentl

[PATCH v3 7/9] FMP: Remove GUIDs for FIT and raw images

2022-03-30 Thread Sughosh Ganu
The capsule update code has been modified for getting the image GUID values from the platform code. With this, each image now has a unique GUID value. With this change, there is no longer a need for defining GUIDs for FIT and raw images. Remove these GUID values. Signed-off-by: Sughosh Ganu ---

[PATCH v3 6/9] test: capsule: Modify the capsule tests to use GUID values for sandbox

2022-03-30 Thread Sughosh Ganu
The current UEFI capsule updation code uses two GUID values, one for FIT images, and one for raw images across platforms. This logic is being changed to have GUID values per image, per platform. Change the tests for the capsule update code to reflect this change. The GUID values now used are the on

[PATCH v3 8/9] mkeficapsule: Remove raw and FIT GUID types

2022-03-30 Thread Sughosh Ganu
While building a capsule, the GUID value of that specific image is to be passed through the --guid command option to the mkeficapsule tool. This renders the EFI_FIRMWARE_IMAGE_TYPE_UBOOT_FIT_GUID and EFI_FIRMWARE_IMAGE_TYPE_UBOOT_RAW_GUID values superfluous. Remove the --raw and --fit command line

[PATCH v3 9/9] doc: uefi: Update the capsule update related documentation

2022-03-30 Thread Sughosh Ganu
Update the capsule update functionality related documentation to refect the fact that a unique image GUID is to be used per image that forms part of the capsule file. Signed-off-by: Sughosh Ganu --- Changes since V2: * Add a description for adding image index value and definition of set_dfu_al

  1   2   >