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

2023-03-15 Thread Michael Nazzareno Trimarchi
Hi On Wed, Mar 15, 2023 at 3:13 PM Frieder Schrempf wrote: > > 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: > >

Re: [PATCH v1 7/7] arm: dts: rockchip: rk3288: partial sync pwm nodes

2023-03-15 Thread Johan Jonker
On 3/15/23 15:05, Simon Glass wrote: > Hi Johan, > > On Tue, 14 Mar 2023 at 12:16, Johan Jonker wrote: >> >> In order to better compare the Linux rk3288.dtsi >> version 6.3 -rc2 with the u-boot version partial >> sync the pwm nodes. >> >> Signed-off-by: Johan Jonker >> --- >>

[PATCH v2 6/7] clk: rockchip: clk_rk3288: add PCLK_RKPWM

2023-03-15 Thread Johan Jonker
The rk3288 pwm nodes synced from Linux make use of PCLK_RKPWM instead of PCLK_PWM. They have the same pclk_cpu parent, so add PCLK_RKPWM to rk3288_clk_get_rate(). Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Tested-by: Simon Glass # chromebook-jerry ---

[PATCH v2 4/7] arm: dts: rockchip: rk3288: partial sync edp node

2023-03-15 Thread Johan Jonker
The rk3288 edp node has a phy node in Linux with a clock property while current U-Boot driver expects this clock on position index 1. Move U-Boot-specific DT clock properties to rk3288-u-boot.dtsi and partially sync the edp node. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Tested-by:

[PATCH v2 5/7] arm: dts: rockchip: rk3288: partial sync vop/lvds/mipi/hdmi nodes

2023-03-15 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the U-Boot version partial sync the vop/lvds/mipi/hdmi nodes. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Tested-by: Simon Glass # chromebook-jerry --- arch/arm/dts/rk3288.dtsi | 48

[PATCH v2 7/7] arm: dts: rockchip: rk3288: partial sync pwm nodes

2023-03-15 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the U-Boot version partial sync the pwm nodes. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3288.dtsi | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/arch/arm/dts/rk3288.dtsi

Re: [PATCH v3] binman: bintool: Add support for tool directories

2023-03-15 Thread Simon Glass
Hi Neha, On Mon, 13 Mar 2023 at 21:41, Neha Malcom Francis wrote: > > Hi Simon > > On 11/03/23 07:17, Simon Glass wrote: > > Hi Neha, > > > > On Fri, 24 Feb 2023 at 03:51, Neha Malcom Francis wrote: > >> > >> Currently, bintool supports external compilable tools as single > >> executable files.

[PATCH] Revert 9f62a472dfb2 ("video: Remove duplicate cursor-positioning function")

2023-03-15 Thread Tom Rini
This reverts commit 9f62a472dfb26ec14408a27938ddd2a2579d. The changes here aren't quite right, and on platforms such as Raspberry Pi where we can have both serial and video output, the change above causes output to change. This can be seen as the hush tests we have now fail. Signed-off-by:

[PATCH v2 1/7] arm: dts: rockchip: rk3288: move io-domains nodes

2023-03-15 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version with the U-Boot version move the io-domains nodes. Signed-off-by: Johan Jonker Reviewed-by: John Keeping Reviewed-by: Simon Glass Tested-by: Simon Glass # chromebook-jerry --- arch/arm/dts/rk3288-miqi.dtsi| 27

Re: Please pull u-boot-dm/next

2023-03-15 Thread Tom Rini
On Tue, Mar 14, 2023 at 04:07:57PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 13 Mar 2023 at 13:36, Tom Rini wrote: > > > > On Sun, Mar 12, 2023 at 09:10:19PM -0600, Simon Glass wrote: > > > > > Hi Tom, > > > > > > This is for the -next branch > > > > > > > > >

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

2023-03-15 Thread Frieder Schrempf
On 15.03.23 15:42, Frieder Schrempf wrote: > On 15.03.23 15:17, Michael Nazzareno Trimarchi wrote: >> Hi >> >> On Wed, Mar 15, 2023 at 3:13 PM Frieder Schrempf >> wrote: >>> >>> 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

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

2023-03-15 Thread Frieder Schrempf
On 15.03.23 15:17, Michael Nazzareno Trimarchi wrote: > Hi > > On Wed, Mar 15, 2023 at 3:13 PM Frieder Schrempf > wrote: >> >> 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

[PATCH v4] pinctrl: rockchip: support rk3588 pinctrl

2023-03-15 Thread Eugen Hristev
From: Jianqun Xu Add support for Rockchip rk3588 variant of pinctrl. The driver is adapted from the Linux driver. Signed-off-by: Jianqun Xu [eugen.hris...@collabora.com: port to latest U-boot, bring more changes from Linux use translated pull values table] Signed-off-by: Eugen Hristev ---

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

2023-03-15 Thread Rasmus Villemoes
On 15/03/2023 16.24, Frieder Schrempf wrote: > On 15.03.23 15:42, Frieder Schrempf wrote: >> On 15.03.23 15:17, Michael Nazzareno Trimarchi wrote: >>> Hi >>> >>> On Wed, Mar 15, 2023 at 3:13 PM Frieder Schrempf >>> wrote: Hi, I'm trying to bring up a new board based on the

Re: [PATCH] Revert 9f62a472dfb2 ("video: Remove duplicate cursor-positioning function")

2023-03-15 Thread Simon Glass
On Wed, 15 Mar 2023 at 10:01, Tom Rini wrote: > > This reverts commit 9f62a472dfb26ec14408a27938ddd2a2579d. > > The changes here aren't quite right, and on platforms such as Raspberry > Pi where we can have both serial and video output, the change above > causes output to change. This can be

[PATCH v2 3/7] video: rockchip: rk_vop: add rk3288-dp compare string

2023-03-15 Thread Johan Jonker
In the current rk3288.dtsi file the compatible string for the DisplayPort(DP) node ends with "edp". The string in the binding ends with "dp" which conflicts with "cdn-dp" as a search term. Add "rk3288-dp" as compare string to select vop_id. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass

[PATCH v2 2/7] arm: dts: rockchip: rk3288: partial sync grf and pmu nodes

2023-03-15 Thread Johan Jonker
In order to better compare the Linux rk3288.dtsi version 6.3 -rc2 with the U-Boot version partial sync the grf and pmu nodes. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Tested-by: Simon Glass # chromebook-jerry --- arch/arm/dts/rk3288.dtsi | 269

Re: [PATCH] board_r: Relocate OF_EMBED if NEEDS_MANUAL_RELOC only

2023-03-15 Thread Simon Glass
Hi Ajay, On Wed, 15 Mar 2023 at 13:24, Ajay Kaher wrote: > > > On Fri, Sep 09, 2022 at 09:16:18PM +0100, Pierre-Clément Tosi wrote: > > > >> When the embedded device tree is pointed to by the __dtb_dt_*begin > >> symbols, it seems to be covered by the early relocation code and doesn't > >>

Re: [PATCH] console: Use flush() before panic and reset

2023-03-15 Thread Simon Glass
On Tue, 14 Mar 2023 at 18:24, Tony Dinh wrote: > > To make sure the panic and the reset messages will go out, console flush() > should be used. > Sleep periods do not work in early u-boot phase when timer driver is not > initialized yet. > > Reference:

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

2023-03-15 Thread Simon Glass
On Sat, 11 Mar 2023 at 09:29, Marek Vasut wrote: > > 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

Re: [PATCH 12/12] rockchip: Convert rk35xx to use standard boot

2023-03-15 Thread Simon Glass
On Mon, 13 Mar 2023 at 18:38, Jonas Karlman wrote: > > Imply use of BOOTSTD and OF_LIBFDT_OVERLAY on RK3568 and RK3588. > Drop the use of scripts and rely on standard boot for all operation. > > Signed-off-by: Jonas Karlman > --- > arch/arm/mach-rockchip/Kconfig | 6 ++ >

imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-03-15 Thread Tim Harvey
Greetings, I'm seeing a hang on imx8mm-venice and imx8mn-venice boards which have a USB host controller in host mode when ehci_shutdown() is called (which is called for 'usb stop' as well as when booting a kernel once 'usb start' has been issued). This appears to be caused by the ehci_shutdown()

Re: [PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path

2023-03-15 Thread Tony Dinh
Hi Pali, On Wed, Mar 15, 2023 at 2:58 PM Pali Rohár wrote: > > On Wednesday 15 March 2023 14:56:52 Tony Dinh wrote: > > The mainline Pogo V4 DTS uses a stdout-path format that is not > > recognizable by u-boot. Change it to a commonly used format. > > Cannot we teach u-boot to understand also

Re: Pull request: u-boot-sunxi/master DT update for v2023.04

2023-03-15 Thread Tom Rini
On Tue, Mar 14, 2023 at 03:41:57PM +, Andre Przywara wrote: > Hi Tom, > > please pull these two patches containing just devicetree updates for > Allwinner boards. > I was still hoping for a review, since we cannot import the files > from the Linux tree verbatim, but managed to write some

Re: [PULL] Please pull u-boot-coldfire/master

2023-03-15 Thread Tom Rini
On Wed, Mar 15, 2023 at 02:03:50AM +0100, Angelo Dureghello wrote: > The following changes since commit 88e08fc5f6e508eac46cd1dfb0379b11ae032c0a: > > Prepare v2023.04-rc4 (2023-03-13 20:52:48 -0400) > > are available in the Git repository at: > > git://git.denx.de/u-boot-coldfire.git

Re: [PATCH] console: Use flush() before panic and reset

2023-03-15 Thread Tony Dinh
Hi Simon, On Wed, Mar 15, 2023 at 12:43 PM Simon Glass wrote: > > On Tue, 14 Mar 2023 at 18:24, Tony Dinh wrote: > > > > To make sure the panic and the reset messages will go out, console flush() > > should be used. > > Sleep periods do not work in early u-boot phase when timer driver is not

Re: [PATCH v2 5/5] test_vboot.py: include test of fdt_add_pubkey tool

2023-03-15 Thread Ivan Mikhaylov
On Fri, 2023-03-10 at 17:46 -0800, Simon Glass wrote: > Hi Ivan, > > On Tue, 7 Mar 2023 at 14:13, Ivan Mikhaylov > wrote: > > > > From: Roman Kopytin > > > > Signed-off-by: Roman Kopytin > > Cc: Rasmus Villemoes > > --- > >  test/py/tests/test_vboot.py | 8 > >  1 file changed, 8

Re: [PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path

2023-03-15 Thread Pali Rohár
On Wednesday 15 March 2023 14:56:52 Tony Dinh wrote: > The mainline Pogo V4 DTS uses a stdout-path format that is not > recognizable by u-boot. Change it to a commonly used format. Cannot we teach u-boot to understand also currently used format? > Note that this patch removes the previous

mkimage for Windows?

2023-03-15 Thread Simon Glass
Hi, Does anyone know how to build mkimage (or other tools) on a Windows host, or at least with a Windows target? Regards, SImon

[PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path

2023-03-15 Thread Tony Dinh
The mainline Pogo V4 DTS uses a stdout-path format that is not recognizable by u-boot. Change it to a commonly used format. Note that this patch removes the previous workaround for this board as discussed here: https://lists.denx.de/pipermail/u-boot/2023-February/508936.html Signed-off-by: Tony

[PATCH v4 12/17] board: starfive: Add Kconfig for StarFive VisionFive v2 Board

2023-03-15 Thread Yanhong Wang
Add Kconfig to select the basic functions for StarFive VisionFive v2 Board. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- board/starfive/visionfive2/Kconfig | 53 ++ 1 file changed, 53 insertions(+) create mode 100644 board/starfive/visionfive2/Kconfig

[PATCH v4 04/17] reset: starfive: jh7110: Add reset driver for StarFive JH7110 SoC

2023-03-15 Thread Yanhong Wang
Add a DM reset driver for StarFive JH7110 SoC. Note that the register base address of reset controller is the same with the clock controller. Therefore, there is no device tree node alone for reset driver.It binds device node in the clock driver Signed-off-by: Yanhong Wang Tested-by: Conor

[PATCH v4 01/17] riscv: cpu: jh7110: Add support for jh7110 SoC

2023-03-15 Thread Yanhong Wang
Add StarFive JH7110 SoC to support RISC-V arch. Signed-off-by: Yanhong Wang Reviewed-by: Rick Chen Tested-by: Conor Dooley --- arch/riscv/cpu/jh7110/Makefile| 10 arch/riscv/cpu/jh7110/cpu.c | 23 arch/riscv/cpu/jh7110/dram.c | 38

[PATCH v4 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-03-15 Thread Yanhong Wang
This series of patches base on the latest branch/master, and add support for the StarFive JH7110 RISC-V SoC and VisionFive V2 board. In order for this to be achieved, the respective DT nodes have been added, and the required defconfigs have been added to the boards' defconfig. What is more, the

[PATCH v4 02/17] cache: starfive: Add StarFive JH7110 support

2023-03-15 Thread Yanhong Wang
This adds support for the StarFive JH7110 SoC which also feature this SiFive cache controller. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- drivers/cache/cache-sifive-ccache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cache/cache-sifive-ccache.c

[PATCH v4 14/17] riscv: dts: jh7110: Add initial StarFive JH7110 device tree

2023-03-15 Thread Yanhong Wang
Add initial device tree for the JH7110 RISC-V SoC. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- arch/riscv/dts/jh7110.dtsi | 582 + 1 file changed, 582 insertions(+) create mode 100644 arch/riscv/dts/jh7110.dtsi diff --git

[PATCH v4 17/17] configs: starfive: add starfive_visionfive2_defconfig

2023-03-15 Thread Yanhong Wang
This is the initial basic config for StarFive VisionFive v2 board. It includes consol, Norflash, sdio, ddr etc. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- configs/starfive_visionfive2_defconfig | 79 ++ 1 file changed, 79 insertions(+) create mode 100644

[PATCH v4 06/17] clk: starfive: Add StarFive JH7110 clock driver

2023-03-15 Thread Yanhong Wang
Add a DM clock driver for StarFive JH7110 SoC. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/starfive/Kconfig | 17 + drivers/clk/starfive/Makefile | 4 +

[PATCH v4 08/17] pinctrl: starfive: Add StarFive JH7110 driver

2023-03-15 Thread Yanhong Wang
From: Kuan Lim Lee Add pinctrl driver for StarFive JH7110 SoC. Signed-off-by: Kuan Lim Lee Signed-off-by: Emil Renner Berthing Signed-off-by: Jianlong Huang Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- drivers/pinctrl/Kconfig | 1 +

[PATCH v4 07/17] dt-bindings: pinctrl: Add StarFive JH7110 pinctrl definitions

2023-03-15 Thread Yanhong Wang
From: Jianlong Huang Add pinctrl definitions for StarFive JH7110 SoC. Signed-off-by: Kuan Lim Lee Signed-off-by: Emil Renner Berthing Signed-off-by: Jianlong Huang Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- .../pinctrl/pinctrl-starfive-jh7110.h | 427

[PATCH v4 05/17] dt-bindings: clock: Add StarFive JH7110 clock definitions

2023-03-15 Thread Yanhong Wang
Add all clock outputs for the StarFive JH7110 clock generator. Signed-off-by: Yanhong Wang Acked-by: Sean Anderson Tested-by: Conor Dooley --- .../dt-bindings/clock/starfive,jh7110-crg.h | 257 ++ 1 file changed, 257 insertions(+) create mode 100644

[PATCH v4 03/17] dt-bindings: reset: Add StarFive JH7110 reset definitions

2023-03-15 Thread Yanhong Wang
Add resets for the StarFive JH7110 system(SYS),system-top-group(STG) and always-on(AON) reset controller. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- .../dt-bindings/reset/starfive,jh7110-crg.h | 183 ++ 1 file changed, 183 insertions(+) create mode 100644

[PATCH v4 09/17] ram: starfive: add ddr driver

2023-03-15 Thread Yanhong Wang
Add driver for StarFive JH7110 to support ddr initialization in SPL. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- drivers/ram/Kconfig |1 + drivers/ram/Makefile|4 +- drivers/ram/starfive/Kconfig|5 + drivers/ram/starfive/Makefile

[PATCH v4 10/17] board: starfive: add StarFive VisionFive v2 board support

2023-03-15 Thread Yanhong Wang
Add board support for StarFive VisionFive v2. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- board/starfive/visionfive2/MAINTAINERS| 7 + board/starfive/visionfive2/Makefile | 7 + board/starfive/visionfive2/spl.c | 87

[PATCH v4 15/17] riscv: dts: jh7110: Add initial u-boot device tree

2023-03-15 Thread Yanhong Wang
Add initial u-boot device tree for the JH7110 RISC-V SoC. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- arch/riscv/dts/jh7110-u-boot.dtsi | 99 +++ 1 file changed, 99 insertions(+) create mode 100644 arch/riscv/dts/jh7110-u-boot.dtsi diff --git

[PATCH v4 16/17] riscv: dts: jh7110: Add initial StarFive VisionFive v2 board device tree

2023-03-15 Thread Yanhong Wang
Add initial device tree for StarFive VisionFive v2 board. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- arch/riscv/dts/Makefile | 3 +- ...10-starfive-visionfive-2-v1.2a-u-boot.dtsi | 69 .../jh7110-starfive-visionfive-2-v1.2a.dts| 12 +

[PATCH v4 13/17] board: starfive: Add TARGET_STARFIVE_VISIONFIVE2 to Kconfig

2023-03-15 Thread Yanhong Wang
Add board support for StarFive VisionFive v2. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- arch/riscv/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 48ca4ff4c4..f6ed05906a 100644 --- a/arch/riscv/Kconfig +++

[PATCH v4 11/17] riscv: cpu: jh7110: Add Kconfig for StarFive JH7110 SoC

2023-03-15 Thread Yanhong Wang
Add Kconfig to select the basic functions for StarFive JH7110 SoC. Signed-off-by: Yanhong Wang Tested-by: Conor Dooley --- arch/riscv/cpu/jh7110/Kconfig | 28 1 file changed, 28 insertions(+) create mode 100644 arch/riscv/cpu/jh7110/Kconfig diff --git

Re: [PATCH 0/9] Enable splash screen

2023-03-15 Thread Nikhil M Jain
Hi Simon, On 15/03/23 19:38, Simon Glass wrote: Hi Nikhil, On Wed, 15 Mar 2023 at 00:07, Nikhil M Jain wrote: Hi Simon, On 15/03/23 03:38, Simon Glass wrote: Hi Nikhil, On Mon, 13 Mar 2023 at 04:15, Nikhil M Jain wrote: To enable splash screen at SPL stage move video driver and splash

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

2023-03-15 Thread Emanuele Ghidoli
On 15/03/2023 16:24, Frieder Schrempf wrote: On 15.03.23 15:42, Frieder Schrempf wrote: On 15.03.23 15:17, Michael Nazzareno Trimarchi wrote: Hi On Wed, Mar 15, 2023 at 3:13 PM Frieder Schrempf wrote: Hi, I'm trying to bring up a new board based on the i.MX8MP and I have an issue I'm

Default value for bootcmd not defined

2023-03-15 Thread Stefan Nagy
Hello, I followed the official documentation [1] to build U-Boot for my Rock Pi 4, instead of evb-rk3399_defconfig I used the config file for my board (rock-pi-4-rk3399_defconfig). After I flashed the single boot image to an SD card and put it in I got stuck with the error message:

Re: [PATCH] board_r: Relocate OF_EMBED if NEEDS_MANUAL_RELOC only

2023-03-15 Thread Ajay Kaher
> On Fri, Sep 09, 2022 at 09:16:18PM +0100, Pierre-Clément Tosi wrote: > >> When the embedded device tree is pointed to by the __dtb_dt_*begin >> symbols, it seems to be covered by the early relocation code and doesn't >> need to be manually patched. >> >> Cc: Simon Glass >> Signed-off-by:

[PATCH v5 0/4] J721E HS Fixes

2023-03-15 Thread Manorit Chawdhry
This series fixes the support for J721E board along with some maintainance for it. v5: - change the memory map to list-table v4: - Fix docs - applied reviewed-by v3: - drop fixes related to other boards ( make series j721e specific ) - memory map added in docs - applied reviewed-by v2: - Merge

[PATCH v5 1/4] arm: k3: config.mk: Add missing dependencies on tispl.bin HS

2023-03-15 Thread Manorit Chawdhry
From: Andrew Davis When building for secure devices using non-buildman based image generation the signed tispl.bin file is called tispl.bin_HS. Also build the unsigned tispl.bin file as expected. Signed-off-by: Andrew Davis Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/config.mk | 2

Re: [PATCH 0/9] Enable splash screen

2023-03-15 Thread Nikhil M Jain
Hi Simon, On 15/03/23 03:38, Simon Glass wrote: Hi Nikhil, On Mon, 13 Mar 2023 at 04:15, Nikhil M Jain wrote: To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support in

[PATCH v5 2/4] configs: j721e: Merge the HS and non-HS defconfigs

2023-03-15 Thread Manorit Chawdhry
K3 devices have runtime type board detection. Make the default defconfig include the secure configuration. Then remove the HS specific config. Non-HS devices will continue to boot due to runtime device type detection. If TI_SECURE_DEV_PKG is not set the build will emit warnings, for non-HS

[PATCH v5 3/4] Kconfig: j721e: Change K3_MCU_SCRATCHPAD_BASE to non firewalled region

2023-03-15 Thread Manorit Chawdhry
In non-combined boot flow for K3, all the firewalls are locked by default until sysfw comes up. Rom configures some of the firewall for its usage along with the SRAM for R5 but the PSRAM region is still locked. The K3 MCU Scratchpad for j721e was set to a PSRAM region triggering the firewall

Re: [PATCH v4 3/4] Kconfig: j721e: Change K3_MCU_SCRATCHPAD_BASE to non firewalled region

2023-03-15 Thread Manorit Chawdhry
On 14:01-20230306, Tom Rini wrote: > On Mon, Mar 06, 2023 at 11:12:53AM +0530, Manorit Chawdhry wrote: > > In non-combined boot flow for K3, all the firewalls are locked by default > > until sysfw comes up. Rom configures some of the firewall for its usage > > along with the SRAM for R5 but the

[PATCH v5 4/4] arm: mach-k3: Increase SYSFW max image size

2023-03-15 Thread Manorit Chawdhry
From: Dave Gerlach When booting with HS silicon, the system firmware image is 278270, which is slightly larger than currently allocated amount. This can cause unexpected behavior if this overlap interferes with other things in memory, so increase this with a slightly margin added as well to

Re: [PATCH v6 7/7] test: dm: fwu: fix for the updated api

2023-03-15 Thread Ilias Apalodimas
On Mon, Mar 06, 2023 at 05:18:58PM -0600, jassisinghb...@gmail.com wrote: > From: Jassi Brar > > fwu_get_mdata() no more requires 'dev' argument and > fwu_check_mdata_validity() has been rendered useless and dropped. > Fix the test cases to work with aforementioned changes. > > Signed-off-by:

Re: [PATCH v1 1/7] arm: dts: rockchip: rk3288: move io-domains nodes

2023-03-15 Thread John Keeping
On Tue, Mar 14, 2023 at 07:13:30PM +0100, Johan Jonker wrote: > In order to better compare the Linux rk3288.dtsi version > with the u-boot version move the io-domains nodes. > > Signed-off-by: Johan Jonker A few minor nits below, but with or without those fixed this is a step in the right

Re: [PATCH v2 2/5] tools: relocate-rela: introduce elf16_to_cpu() and elf32_to_cpu()

2023-03-15 Thread Michal Simek
On 3/11/23 18:38, Ovidiu Panait wrote: Add elf16_to_cpu() and elf32_to_cpu() functions that allow to read data in both big-endian and little-endian formats. Reviewed-by: Michal Simek I didn't give you this line in v1. But patch looks fine now. Applied the whole series. Thanks, Michal

[GIT PULL] xilinx patches for v2023.07-rc1

2023-03-15 Thread Michal Simek
Hi Tom, please pull these patches to your next branch. CI loop doesn't report any issue. Thanks, Michal The following changes since commit 70ed05ce6c051e55e126e67e72ab20409134c953: Merge tag 'next-20230307' of https://source.denx.de/u-boot/custodians/u-boot-video into next (2023-03-07

Re: [PATCH 0/2] drivers: net: fsl-mc: fix MAC address fixup procedure

2023-03-15 Thread Ioana Ciornei
On Thu, Feb 09, 2023 at 06:07:02PM +0200, Ioana Ciornei wrote: > This patch set fixes the MAC address fixup procedure which was impacted > by several changes in the phy_interface_t used to describe some > interfaces. The transitions from "xgmii" to "xfi" and then finally > to "10gbase-r" were

[PATCH] configs: convert NXP LS1028A RDB and QDS to DM_SERIAL

2023-03-15 Thread Vladimir Oltean
Since the device trees are more or less synchronized with Linux, the only necessary changes are to enable CONFIG_DM_SERIAL and the DM_SERIAL driver for ns16550 (ns16550.c rather than serial_ns16550.c). ls1028aqds_tfa_lpuart_defconfig already uses DM_SERIAL for the LPUART driver, so I didn't touch

[PATCH 03/10] arch: arm: dts: fsl-ls1088a.dtsi: sync serial nodes with Linux

2023-03-15 Thread Ioana Ciornei
Sync the serial nodes of the LS1088A based boards with their representation in Linux. We also imported the clockgen and sysclk nodes which are dependencies. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls1088a-qds.dtsi | 8 +++ arch/arm/dts/fsl-ls1088a-rdb.dts | 8 +++

[PATCH 01/10] arch: arm: dts: fsl-ls1088a.dtsi: add an 'soc' node

2023-03-15 Thread Ioana Ciornei
The u-boot dts for these boards do not have an soc node, unlike its Linux counterpart. This patch just adds the soc node as seen in Linux, the next patches will move some nodes under it. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls1088a.dtsi | 9 + 1 file changed, 9

[PATCH 02/10] arch: arm: dts: fsl-ls1088a.dtsi: move the serial nodes under soc

2023-03-15 Thread Ioana Ciornei
Move the serial nodes under the soc node. No changes are made to the nodes, just their location is changed. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls1088a.dtsi | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git

[PATCH 00/10] Convert LS1088A and LX2160 to DM_SERIAL

2023-03-15 Thread Ioana Ciornei
This patch set converts the LS1088A and LX216X based boards to DM_SERIAL. Since we don't want to introduce even more differences between the U-Boot's and Linux's device trees, the DT patches make the necessary updates so that the serial nodes are synced with their counterpart. We also update the

[PATCH 07/10] arch: arm: dts: fsl-lx2160a.dtsi: move the serial nodes under soc

2023-03-15 Thread Ioana Ciornei
Move the serial nodes under the soc node. No changes are made to the nodes, just their location is changed. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-lx2160a.dtsi | 56 +-- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git

[PATCH 05/10] configs: ls1088a: enable DM_SERIAL

2023-03-15 Thread Ioana Ciornei
Now that the DT nodes for the serial devices are in place for these boards, enable DM_SERIAL in the associated configs. Signed-off-by: Ioana Ciornei --- configs/ls1088aqds_tfa_defconfig | 4 +++- configs/ls1088ardb_tfa_SECURE_BOOT_defconfig | 4 +++- configs/ls1088ardb_tfa_defconfig

[PATCH 06/10] arch: arm: dts: fsl-lx2160a.dtsi: add an 'soc' node

2023-03-15 Thread Ioana Ciornei
The u-boot dts for these boards do not have an soc node, unlike its Linux counterpart. This patch just adds the soc node as seen in Linux, the next patches will move some nodes under it. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-lx2160a.dtsi | 8 1 file changed, 8 insertions(+)

[PATCH 09/10] arch: arm: dts: fsl-lx2160a.dtsi: tag serial nodes with bootph-all

2023-03-15 Thread Ioana Ciornei
Tag the serial nodes with bootph-all in order to have these nodes and the drivers available before relocation. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-lx2160a.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/fsl-lx2160a.dtsi b/arch/arm/dts/fsl-lx2160a.dtsi

[PATCH 04/10] arch: arm: dts: fsl-ls1088a.dtsi: tag serial nodes with bootph-all

2023-03-15 Thread Ioana Ciornei
Tag the serial nodes with bootph-all in order to have these nodes and the drivers available before relocation. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-ls1088a.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/fsl-ls1088a.dtsi b/arch/arm/dts/fsl-ls1088a.dtsi index

[PATCH 10/10] board: freescale: lx2160a: remove the PL01X device instantiation

2023-03-15 Thread Ioana Ciornei
There is no need for the board file to instantiate a PL01X platform device anymore. This is all taken care of by the DM code which now will probe the device based on the DT node. Signed-off-by: Ioana Ciornei --- board/freescale/lx2160a/lx2160a.c | 34 --- 1 file

[PATCH 08/10] arch: arm: dts: fsl-lx2160a.dtsi: sync serial nodes with Linux

2023-03-15 Thread Ioana Ciornei
Sync the serial nodes of the LX2160A based boards with their representation in Linux. We also imported the clockgen and sysclk nodes which are dependencies. Signed-off-by: Ioana Ciornei --- arch/arm/dts/fsl-lx2160a-qds.dtsi | 11 ++- arch/arm/dts/fsl-lx2160a-rdb.dts | 11 ++-

Re: [PATCH] configs: convert NXP LS1028A RDB and QDS to DM_SERIAL

2023-03-15 Thread Ioana Ciornei
On Wed, Mar 15, 2023 at 01:01:16PM +0200, Vladimir Oltean wrote: > Since the device trees are more or less synchronized with Linux, the > only necessary changes are to enable CONFIG_DM_SERIAL and the DM_SERIAL > driver for ns16550 (ns16550.c rather than serial_ns16550.c). > >

RE: [PATCH 1/2] Revert "mmc: s5p_sdhci: unset the SDHCI_QUIRK_BROKEN_R1B"

2023-03-15 Thread andy...@sony.com
Hi Jaehoon > commit 4a3ea75de4c5b3053eac326bf1c753ed65df8cb9 > Author: yuezhang...@sony.com > Date: Wed Mar 17 06:44:37 2021 + > > Revert "mmc: sdhci: set to INT_DATA_END when there are data" > > This reverts commit 17ea3c862865c0d704646f67dbf8412f9ff54f59. > > Revert the above

Re: [EXTERNAL] [PATCH 0/2] phy: ti: j721e-wiz: Add support to manage type-C swap on Lane2 and lane3

2023-03-15 Thread Ravi Gunasekaran
On 13/03/23 6:12 pm, Sinthu Raja wrote: > From: Sinthu Raja > > Hi All, > This series of patch add support to enable lane2 and lane3 swap by > configuring the LN23 bit. Also, it's possible that the Type-C plug orientation > on the DIR line will be implemented through hardware design. In that

[PATCH 1/3] dm: adc: add iMX93 ADC support

2023-03-15 Thread Luca Ellero
This commit adds driver for iMX93 ADC. The driver is implemented using driver model and provides ADC uclass's methods for ADC single channel operations: - adc_start_channel() - adc_channel_data() - adc_stop() ADC features: - channels: 4 - resolution: 12-bit Signed-off-by:

[PATCH v4 0/3] imx93: add ADC support

2023-03-15 Thread Luca Ellero
Add ADC support for NXP iMX93 Changes for v2: - add "static" to functions - enable ADC in iMX93 EVK Changes for v3: - split in 3 commits - keep dts file in sync with Linux devicetree - add comments to commits Changes for v4: - add imx93_adc_power_down() in imx93_adc_stop() Luca Ellero (3):

[PATCH 2/3] imx93_evk: add adc node to dts file

2023-03-15 Thread Luca Ellero
This node uses imx93_adc driver under drivers/adc. The node is added keeping dts file in sync with iMX9 evk Linux devicetree. Signed-off-by: Luca Ellero --- arch/arm/dts/imx93-11x11-evk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx93-11x11-evk.dts

[PATCH 3/3] imx93_evk: defconfig: add adc support

2023-03-15 Thread Luca Ellero
iMX93 ADC features: - 4 channels - 12 bit resolution Signed-off-by: Luca Ellero --- configs/imx93_11x11_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx93_11x11_evk_defconfig b/configs/imx93_11x11_evk_defconfig index 477fb25807..fa929dd4ec 100644 ---

Re: [PATCH v9 06/10] arm_ffa: introduce the FF-A Sandbox driver

2023-03-15 Thread Simon Glass
Hi Abdellatif, On Tue, 14 Mar 2023 at 11:59, Abdellatif El Khlifi wrote: > > Hi Simon, > > > Hi Abdellatif, > > > > On Fri, 10 Mar 2023 at 06:10, Abdellatif El Khlifi > > wrote: > > > > > > Provide a Sandbox driver to emulate the FF-A ABIs > > > > > > The emulated ABIs are those supported by

Re: [PATCH v5 21/44] x86: Use string functions for all 32-bit builds

2023-03-15 Thread Simon Glass
Hi Tom. On Thu, 2 Mar 2023 at 13:37, Tom Rini wrote: > > On Wed, Feb 22, 2023 at 09:34:02AM -0700, Simon Glass wrote: > > > At present these are not included in SPL. They do add to code size but > > are a bit faster, so adjust the setting to add them. > > > > Signed-off-by: Simon Glass > > ---

Re: [PATCH v1 4/7] arm: dts: rockchip: rk3288: partial sync edp node

2023-03-15 Thread Simon Glass
On Tue, 14 Mar 2023 at 12:16, Johan Jonker wrote: > > The rk3288 edp node has a phy node in Linux with a clock > property while current U-boot driver expects this clock U-Boot > on position index 1. Move U-boot specific DT clock properties U-Boot-specific > to rk3288-u-boot.dtsi and partially

Re: [PATCH v1 3/7] video: rockchip: rk_vop: add rk3288-dp compare string

2023-03-15 Thread Simon Glass
On Tue, 14 Mar 2023 at 12:16, Johan Jonker wrote: > > In the current rk3288.dtsi file the compatible string for > the DisplayPort(DP) node ends with "edp". The string in the > binding ends with "dp" which conflicts with "cdn-dp" as a > search term. Add "rk3288-dp" as compare string to select >

Re: [PATCH v1 6/7] clk: rockchip: clk_rk3288: add PCLK_RKPWM

2023-03-15 Thread Simon Glass
On Tue, 14 Mar 2023 at 12:16, Johan Jonker wrote: > > The rk3288 pwm node synced from Linux make use of PCLK_RKPWM > instead of PCLK_PWM. They have the same pclk_cpu parent, > so add PCLK_RKPWM to rk3288_clk_get_rate(). > > Signed-off-by: Johan Jonker > --- > drivers/clk/rockchip/clk_rk3288.c |

Re: [PATCH v1 1/7] arm: dts: rockchip: rk3288: move io-domains nodes

2023-03-15 Thread Simon Glass
On Tue, 14 Mar 2023 at 12:13, Johan Jonker wrote: > > In order to better compare the Linux rk3288.dtsi version > with the u-boot version move the io-domains nodes. > > Signed-off-by: Johan Jonker > --- > arch/arm/dts/rk3288-miqi.dtsi| 27 +++-- >

Re: [PATCH v1 2/7] arm: dts: rockchip: rk3288: partial sync grf and pmu nodes

2023-03-15 Thread Simon Glass
On Tue, 14 Mar 2023 at 12:15, Johan Jonker wrote: > > In order to better compare the Linux rk3288.dtsi > version 6.3 -rc2 with the u-boot version partial > sync the grf and pmu nodes. > > Signed-off-by: Johan Jonker > --- > arch/arm/dts/rk3288.dtsi | 269 +--

Re: [PATCH v1 5/7] arm: dts: rockchip: rk3288: partial sync vop/lvds/mipi/hdmi nodes

2023-03-15 Thread Simon Glass
On Tue, 14 Mar 2023 at 12:16, Johan Jonker wrote: > > In order to better compare the Linux rk3288.dtsi > version 6.3 -rc2 with the u-boot version partial > sync the vop/lvds/mipi/hdmi nodes. > > Signed-off-by: Johan Jonker > --- > arch/arm/dts/rk3288.dtsi | 48

Re: [PATCH 0/9] Enable splash screen

2023-03-15 Thread Simon Glass
Hi Nikhil, On Wed, 15 Mar 2023 at 00:07, Nikhil M Jain wrote: > > Hi Simon, > > On 15/03/23 03:38, Simon Glass wrote: > > Hi Nikhil, > > > > On Mon, 13 Mar 2023 at 04:15, Nikhil M Jain wrote: > >> > >> To enable splash screen at SPL stage move video driver and splash screen > >> framework at

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

2023-03-15 Thread Frieder Schrempf
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 (Mar 07 2023 - 14:32:34 +) Training FAILED

Re: [PATCH v1 7/7] arm: dts: rockchip: rk3288: partial sync pwm nodes

2023-03-15 Thread Simon Glass
Hi Johan, On Tue, 14 Mar 2023 at 12:16, Johan Jonker wrote: > > In order to better compare the Linux rk3288.dtsi > version 6.3 -rc2 with the u-boot version partial > sync the pwm nodes. > > Signed-off-by: Johan Jonker > --- > arch/arm/dts/rk3288.dtsi | 18 +- > 1 file changed,