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 > > --- > >

[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(+)

[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

[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 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 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

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

[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) ... |-->

[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() ->

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

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

[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

[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:

[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 ---

[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 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:

[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

[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 ---

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

[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 +++

[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

[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

[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 |

[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

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

[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 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

[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

[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

[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 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 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

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

[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 ---

[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 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 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

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

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. > >

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: [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 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

[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 ---

[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|

[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

[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.

[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

[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

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:

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 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

[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 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 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 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 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 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 ---

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

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 > >

[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 |

[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 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 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

[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 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] 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

[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

[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 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 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 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 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 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

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

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

Re: [PATCH] IOMUX: Fix access past end of console_devices

2022-03-30 Thread Andy Shevchenko
On Wed, Mar 30, 2022 at 7:49 PM Sean Anderson wrote: Also I don't like to have workarounds for the broken tools. But if you still want to have something, what about rather this > #define for_each_console_dev(i, file, dev) \ > - for (i = 0, dev = console_devices[file][i];

Re: [PATCH 0/7] clk: Make clk_free return void

2022-03-30 Thread Sean Anderson
On Sat, 15 Jan 2022 17:24:57 -0500, Sean Anderson wrote: > clk_free cleans up resources allocated by clk_request et. al. It returns an > error code, but it really shouldn't. Much like regular free(), there is > typically no way to handle an error, and errors from clk_free shouldn't > prevent >

Re: [PATCH] clk: Consolidate some clock functions

2022-03-30 Thread Sean Anderson
On Sun, 27 Feb 2022 14:01:13 -0500, Sean Anderson wrote: > These functions are exactly the same as their "nodev" varients, except they > accept a device and not an ofnode. Rewrite them to just call the other > function. > > Applied, thanks! [1/1] clk: Consolidate some clock functions

Re: [PATCH 1/2] clk: ccf: Add some helper functions for clock ops

2022-03-30 Thread Sean Anderson
On Sun, 20 Mar 2022 16:34:45 -0400, Sean Anderson wrote: > Most CCF drivers follow a common pattern where their clock ops defer the > actual operation to the backing CCF clock. Add some generic implementations > of these functions to reduce duplication of code. > > Applied, thanks! [1/2] clk:

Re: [PATCH 2/2] clk: Use generic CCF ops where possible

2022-03-30 Thread Sean Anderson
On 3/20/22 4:34 PM, Sean Anderson wrote: This converts most CCF drivers to use generic ops. imx6q is the only outlier, where we retain the existing functionality by moving the check to request(). Signed-off-by: Sean Anderson --- drivers/clk/at91/pmc.c | 56 ++--

Re: [PATCH] IOMUX: Fix access past end of console_devices

2022-03-30 Thread Andy Shevchenko
On Wed, Mar 30, 2022 at 8:01 PM Andy Shevchenko wrote: > On Wed, Mar 30, 2022 at 7:49 PM Sean Anderson wrote: ... > > #define for_each_console_dev(i, file, dev) \ > > - for (i = 0, dev = console_devices[file][i]; \ > > When we enter the loop, the dev is assigned and

Re: [PATCH v3 0/3] malloc: Enable profiling dlmalloc with valgrind

2022-03-30 Thread Sean Anderson
Hi all, On 3/23/22 2:04 PM, Sean Anderson wrote: This series adds support for running valgrind against U-Boot's internal malloc. This allows for much more useful reports to be generated. Some example output of valgrind run against u-boot/master with this branch applied may be found at [1].

Re: [PATCH] IOMUX: Fix access past end of console_devices

2022-03-30 Thread Andy Shevchenko
On Wed, Mar 30, 2022 at 7:49 PM Sean Anderson wrote: > > We should only access console_devices[file][i] once we have checked that > i < cd_count[file]. Otherwise, we will access uninitialized memory at the end > of > the loop. console_devices[file][i] should not be NULL, but putting the >

Re: [PATCH] IOMUX: Fix access past end of console_devices

2022-03-30 Thread Andy Shevchenko
On Wed, Mar 30, 2022 at 8:05 PM Sean Anderson wrote: > On 3/30/22 1:01 PM, Andy Shevchenko wrote: > > On Wed, Mar 30, 2022 at 7:49 PM Sean Anderson wrote: ... > >> #define for_each_console_dev(i, file, dev) \ > >> - for (i = 0, dev = console_devices[file][i]; \ > > > >

Re: [PATCH] IOMUX: Fix access past end of console_devices

2022-03-30 Thread Sean Anderson
On 3/30/22 1:07 PM, Andy Shevchenko wrote: On Wed, Mar 30, 2022 at 8:01 PM Andy Shevchenko wrote: On Wed, Mar 30, 2022 at 7:49 PM Sean Anderson wrote: ... #define for_each_console_dev(i, file, dev) \ - for (i = 0, dev = console_devices[file][i]; \ When we enter

Re: [PATCH v4 06/11] efi_loader: bootmgr: add booting from removable media

2022-03-30 Thread Ilias Apalodimas
Hello Akashi-san, On Thu, Mar 24, 2022 at 10:54:38PM +0900, Masahisa Kojima wrote: > From: AKASHI Takahiro > > Under the current implementation, booting from removable media using > a architecture-specific default image name, say BOOTAA64.EFI, is > supported only in distro_bootcmd script. See

  1   2   >