[PATCH 1/1] efi_loader: avoid using HandleProtocol in initrddump.efi

2023-04-03 Thread Heinrich Schuchardt
HandleProtocol() is deprecated and leaves an OpenedProtocolInformation behind. Use OpenProtocol(GET_PROTOCOL) instead. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/initrddump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/initrddump.c

[PATCH 1/1] efi_loader: avoid using HandleProtocol in helloworld.efi

2023-04-03 Thread Heinrich Schuchardt
HandleProtocol() is deprecated and leaves an OpenedProtocolInformation behind. Use OpenProtocol(GET_PROTOCOL) instead. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/helloworld.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/efi_loader/helloworld.c

Re: [PATCH] boot: vbe_simple: Fix vbe_simple_read_bootflow() dependency

2023-04-03 Thread Heinrich Schuchardt
On 4/3/23 05:40, Bin Meng wrote: vbe_simple_read_bootflow() calls vbe_simple_read_bootflow_fw() which is only available when BOOTMETH_VBE_SIMPLE_FW is on. Signed-off-by: Bin Meng --- boot/vbe_simple.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git

Re: [PULL] u-boot-usb/master

2023-04-03 Thread Tom Rini
On Tue, Apr 04, 2023 at 02:11:40AM +0200, Marek Vasut wrote: > The following changes since commit fd4ed6b7e83ec3aea9a2ce21baea8ca9676f40dd: > > Prepare v2023.04 (2023-04-03 16:38:50 -0400) > > are available in the Git repository at: > > git://source.denx.de/u-boot-usb.git master > > for

[PULL] u-boot-usb/master

2023-04-03 Thread Marek Vasut
The following changes since commit fd4ed6b7e83ec3aea9a2ce21baea8ca9676f40dd: Prepare v2023.04 (2023-04-03 16:38:50 -0400) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to fetch changes up to 7f2347088529693ee13b4ab7e7a27f5a1f617c1f: usb:

Re: Binman for RK35xx

2023-04-03 Thread Игорь Зафиевский
Hello! First of all: I have no idea who wrote the original rockchip-u-boot.dtsi, but all the time I've worked with Rockchips SoCs, it;s always been like this : BL31 is provided by Rockchips in form of .elf file, that binman successfully process, and BL32 (AKA OP-TEE) is provided as a pre-compiled

Re: [PATCH 13/17] mmc: rockchip_sdhci: Add support for RK3588

2023-04-03 Thread Philipp Tomsich
On Mon, 3 Apr 2023 at 22:48, Jonas Karlman wrote: > > Add support for RK3588 to the sdhci driver. RK3588 has the inverter flag > in TXCLK reg instead of RXCLK and also make use of a new CMDOUT reg. > Add and use a quirks field to support such quirks. > > Signed-off-by: Jonas Karlman > --- >

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

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

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

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

[RESEND PATCH v2] netconsole: various improvements

2023-04-03 Thread Tony Dinh
Use CONFIG_CONSOLE_MUX for netconsole. When netconsole is running, stdin/stdout/stder must be set to some primary console, in addtion to nc. For example, stdin=serial,nc. Some recent Linux kernels will not boot with only nc on the stdout list, ie. stdout=nc. When netconsole exits, remove nc from

Re: [PATCH v2] netconsole: various improvements

2023-04-03 Thread Tony Dinh
Hi all, I've missed one line of code in bootm.c. +#include So I will resend this patch. Thanks, Tony On Sun, Apr 2, 2023 at 1:31 PM Tony Dinh wrote: > > Use CONFIG_CONSOLE_MUX for netconsole. When netconsole is running, > stdin/stdout/stder must be set to some primary console, in addtion to

[PATCH 16/17] mmc: sdhci: Allow disabling of SDMA in SPL

2023-04-03 Thread Jonas Karlman
From: Peter Geis Rockchip emmc devices have a similar issue to Rockchip dwmmc devices, where performing DMA to SRAM later causes issues with suspend/resume. Allow us to toggle SDMA in SPL for sdhci similar to ADMA support, so we can ensure DMA is not used when loading the SRAM code.

[PATCH 17/17] mmc: rockchip_sdhci: Limit number of blocks read in a single command

2023-04-03 Thread Jonas Karlman
Using DMA to load TF-A into SRAM fails when booting from eMMC on RK3588. ## Checking hash(es) for Image atf-3 ... sha256 error! Bad hash value for 'hash' hash node in 'atf-3' image node spl_load_simple_fit: can't load image loadables index 2 (ret = -1) mmc_load_image_raw_sector: mmc block

[PATCH 14/17] rockchip: rk3588-rock-5b: Include eMMC node in SPL dtb

2023-04-03 Thread Jonas Karlman
Add sdhci node to SPL and u-boot,spl-boot-order. Also add more supported mmc modes and pinctrl. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 12 ++-- arch/arm/dts/rk3588s-u-boot.dtsi| 4 2 files changed, 14 insertions(+), 2 deletions(-) diff

[PATCH 10/17] mmc: rockchip_sdhci: Rearrange and simplify used regs and flags

2023-04-03 Thread Jonas Karlman
This rearrange and remove duplicate defines to make the code cleaner. There is no need to read vendor area1 and use an offset each time, it is easier and clearer to just use the reg offset defined in TRM, same as the other vendor regs. This also removes use of the misspelled const for the RK3588

[PATCH 15/17] clk: rockchip: rk3588: Add limited TMCLK_EMMC clock support

2023-04-03 Thread Jonas Karlman
The device tree sdhci node reference the TMCLK_EMMC clock, add limited support this clock to rk3588 cru driver. Fixes probe of sdhci driver. Signed-off-by: Jonas Karlman --- drivers/clk/rockchip/clk_rk3588.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3588.c

[PATCH 09/17] mmc: rockchip_sdhci: Remove empty get_phy and set_enhanced_strobe ops

2023-04-03 Thread Jonas Karlman
Remove empty implementations of get_phy and set_enhanced_strobe ops. Change driver set_enhanced_strobe to return 0 in order to allow missing implementation of the ops. Signed-off-by: Jonas Karlman --- drivers/mmc/rockchip_sdhci.c | 14 +- 1 file changed, 1 insertion(+), 13

[PATCH 11/17] mmc: rockchip_sdhci: Fix HS400 and HS400ES mode on RK3568

2023-04-03 Thread Jonas Karlman
Adjust tap number for transmit clock, tap number and delay number for strobe input to fix HS400 modes on RK3568. New values have been picked from vendor kernel and u-boot and have successfully been tested with rock-3a-rk3568_defconfig and CONFIG_MMC_HS200_SUPPORT=y CONFIG_MMC_HS400_SUPPORT=y

[PATCH 13/17] mmc: rockchip_sdhci: Add support for RK3588

2023-04-03 Thread Jonas Karlman
Add support for RK3588 to the sdhci driver. RK3588 has the inverter flag in TXCLK reg instead of RXCLK and also make use of a new CMDOUT reg. Add and use a quirks field to support such quirks. Signed-off-by: Jonas Karlman --- drivers/mmc/rockchip_sdhci.c | 62

[PATCH 12/17] rockchip: rk3568-rock-3a: Enable support for more eMMC modes

2023-04-03 Thread Jonas Karlman
Add supported mmc modes to rk3568-rock-3a device tree. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi index

[PATCH 06/17] mmc: rockchip_sdhci: Use set_clock and config_dll sdhci_ops

2023-04-03 Thread Jonas Karlman
Change to configure clock and DLL in set_clock and config_dll ops instead of in the set_ios_post ops. With this change the output clock is turned off while configuring DLL parameters, according to the design recommendations. Signed-off-by: Jonas Karlman --- drivers/mmc/rockchip_sdhci.c | 28

[PATCH 07/17] mmc: rockchip_sdhci: Refactor execute tuning error handling

2023-04-03 Thread Jonas Karlman
Check return value from mmc_send_cmd and clear HOST_CONTROL2 when there is an error. Also skip enable of interrupt signaling and remove a delay, a delay is already happening in sdhci_send_command. Signed-off-by: Jonas Karlman --- drivers/mmc/rockchip_sdhci.c | 35

[PATCH 05/17] mmc: rockchip_sdhci: Add set_clock and config_dll sdhci_ops

2023-04-03 Thread Jonas Karlman
Add support for the set_clock and config_dll sdhci_ops. Use of these ops will allow configuration of DLL while the output clock is disabled. Signed-off-by: Jonas Karlman --- drivers/mmc/rockchip_sdhci.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff

[PATCH 08/17] mmc: rockchip_sdhci: Update speed mode controls in set_ios_post

2023-04-03 Thread Jonas Karlman
Refactor set_ios_post ops to correctly set UHS Speed Select field values according to TRM. Also set or unset Enhanced Strobe Enable bit and eMMC Card present bit in set_ios_post, the Enhanced Strobe Enable bit was never unset after switching to HS400ES mode. Signed-off-by: Jonas Karlman ---

[PATCH 04/17] mmc: rockchip_sdhci: Remove unneeded emmc_phy_init ops

2023-04-03 Thread Jonas Karlman
Remove the unneeded emmc_phy_init now that the no-inverter flag is handled correctly after commit 2321a991bbb5 ("rockchip: sdhci: rk3568: bypass DLL when clk <= 52 MHz"). Signed-off-by: Jonas Karlman --- drivers/mmc/rockchip_sdhci.c | 26 -- 1 file changed, 26

[PATCH 03/17] mmc: rockchip_sdhci: Fix use of device private data

2023-04-03 Thread Jonas Karlman
The device private data is misused in rockchip_sdhci_of_to_plat and rockchip_sdhci_execute_tuning. In these functions dev_get_priv is assigned to struct sdhci_host: struct sdhci_host *host = dev_get_priv(dev); Instead, the sdhci host should refer to host in struct rockchip_sdhc: struct

[PATCH 02/17] mmc: sdhci: Set UHS Mode Select field for UHS SDR25 mode

2023-04-03 Thread Jonas Karlman
Set correct UHS Mode Select field value for UHS SDR25 (50MHz) mode. Fixes: d1c0a2200afb ("mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings") Signed-off-by: Jonas Karlman --- drivers/mmc/sdhci.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/sdhci.c

[PATCH 00/17] rockchip: eMMC fixes for RK3568 and support for RK3588

2023-04-03 Thread Jonas Karlman
This series fixes eMMC HS400 modes on RK3568 and add support for RK3588. It has been tested with rock-3a-rk3568/rock5b-rk3588 defconfig and CONFIG_MMC_HS200_SUPPORT=y CONFIG_MMC_HS400_SUPPORT=y CONFIG_MMC_HS400_ES_SUPPORT=y CONFIG_MMC_SPEED_MODE_SET=y using the following command to

[PATCH 01/17] mmc: sdhci: Fix HISPD bit handling for MMC HS 52MHz mode

2023-04-03 Thread Jonas Karlman
Set High Speed Enable bit for MMC High Speed (52MHz) mode. Fixes: f12341a95295 ("mmc: sdhci: Fix HISPD bit handling") Signed-off-by: Jonas Karlman --- drivers/mmc/sdhci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index

[ANN] U-Boot v2023.04 released

2023-04-03 Thread Tom Rini
Hey all, It's release day and so here's v2023.04. Aside from some very last minute regression fixes (of which the regressions were not last minute), things have been fairly quiet. I do want to ask that moving forward people please base new changes on top of -next once -next is open. While we

Re: [PATCH] arm: dts: k3-j721e-sk-u-boot: fix boot on j721e SK

2023-04-03 Thread Tom Rini
On Mon, Apr 03, 2023 at 12:03:12PM -0500, Anand Gadiyar wrote: > From: Sinthu Raja > > J721e SK has been broken since at least March 2022. > > The main-navss and mcu-navss nodes were renamed and this caused the > A72 SPL to fail early in the boot even before the serial port was > enabled. Fix

Re: Please pull u-boot-dm/next

2023-04-03 Thread Tom Rini
On Mon, Apr 03, 2023 at 09:35:59AM +1200, Simon Glass wrote: > Hi Tom, > > This is for the -next branch. > > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/15866 > > > The following changes since commit 942ac73afc37fb98695af4489ea1549c21615a5e: > > Merge tag

[PATCH 2/2] phy: Add Qualcomm QUSB2 USB PHY driver

2023-04-03 Thread Bhupesh Sharma
Several Qualcomm SoCs support QUSB2 USB PHY (for e.g. SM6115 and SDM845 - the corresponding boards being QRB4210-RB2 and Dragonboard845c-RB3). Add PHY driver for the same. Using this driver, the USB Hub connected on board on RB2, can be successfully enumerated via '> usb start'. Signed-off-by:

[PATCH 1/2] dt-bindings: phy: Import phy-qcom-qusb2.h

2023-04-03 Thread Bhupesh Sharma
Import phy-qcom-qusb2.h from Linux to allow standard macros to be used for Qualcomm QUSB2 PHY ids. Signed-off-by: Bhupesh Sharma --- include/dt-bindings/phy/phy-qcom-qusb2.h | 37 1 file changed, 37 insertions(+) create mode 100644

[PATCH 0/2] Add support for Qualcomm QUSB2 USB PHY driver

2023-04-03 Thread Bhupesh Sharma
Enable support for HighSpeed QUSB2 PHY transceiver for USB controllers on Qualcomm chips. This patchset adds driver support for the high-speed PHY which is usually paired with either the ChipIdea or Synopsys DWC3 USB IPs on Qualcomm Snapdragon SOCs like SM6115 and SDM845. Bhupesh Sharma (2):

[PATCH 1/1] common: static fdt_simplefb_enable_existing_node()

2023-04-03 Thread Heinrich Schuchardt
Function fdt_simplefb_enable_existing_node() should be static as it is not used outside common/fdt_simplefb.c. Signed-off-by: Heinrich Schuchardt --- common/fdt_simplefb.c | 8 +++- include/fdt_simplefb.h | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git

[PATCH 1/1] test: move unit tests into a sub-menu

2023-04-03 Thread Heinrich Schuchardt
The main configuration menu should not contain detail settings. Signed-off-by: Heinrich Schuchardt --- test/Kconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/Kconfig b/test/Kconfig index 465028265b..6e859fb7d0 100644 --- a/test/Kconfig +++ b/test/Kconfig @@

[PATCH] arm: dts: k3-j721e-sk-u-boot: fix boot on j721e SK

2023-04-03 Thread Anand Gadiyar
From: Sinthu Raja J721e SK has been broken since at least March 2022. The main-navss and mcu-navss nodes were renamed and this caused the A72 SPL to fail early in the boot even before the serial port was enabled. Fix this. A later patch series between v2022.07 and v2022.10 additionally broke

Re: [PATCH v2 1/3] cmd: pci: Add command to set MPS of all PCIe devices

2023-04-03 Thread Stephen Carlson
Thank you Tom! Stephen Carlson -Original Message- From: Tom Rini Sent: Friday, March 31, 2023 7:17 AM To: stcar...@linux.microsoft.com Cc: u-boot@lists.denx.de Subject: [EXTERNAL] Re: [PATCH v2 1/3] cmd: pci: Add command to set MPS of all PCIe devices On Fri, Mar 10, 2023 at

Re: [PATCH v5 3/8] bootstd: Support booting EFI where multiple options exist

2023-04-03 Thread Heinrich Schuchardt
Am 3. April 2023 16:17:42 MESZ schrieb Tom Rini : >On Mon, Apr 03, 2023 at 12:56:49PM +0300, Ilias Apalodimas wrote: >> On Sat, Apr 01, 2023 at 07:31:49PM +1300, Simon Glass wrote: >> > Hi Tom, >> > >> > On Sat, 1 Apr 2023 at 07:02, Tom Rini wrote: >> > > >> > > On Fri, Mar 31, 2023 at

Re: [PATCH v2] disk: Use a helper function to reduce duplication

2023-04-03 Thread Tom Rini
On Mon, Apr 03, 2023 at 09:06:13AM +0900, AKASHI Takahiro wrote: > Hi Tom, > > On Fri, Mar 31, 2023 at 10:17:03AM -0400, Tom Rini wrote: > > On Mon, Mar 20, 2023 at 08:29:57AM +1300, Simon Glass wrote: > > > > > Reduce the duplicated code slightly by using a helper function to handle > > > the

Re: [PATCH v3 1/3] ARM: dts: rockchip: rk3588-rock-5b-u-boot: add USB 2.0 host

2023-04-03 Thread Jonas Karlman
On 2023-04-03 13:28, Eugen Hristev wrote: > On 4/2/23 14:00, Jonas Karlman wrote: >> Hi Eugen, >> >> On 2023-03-31 11:40, Eugen Hristev wrote: >>> Add USB 2.0 host nodes and PHYs. >>> >>> Co-developed-by: William Wu >>> Signed-off-by: William Wu >>> Signed-off-by: Eugen Hristev >>> --- >>>

Re: [PATCH v5 8/8] bootstd: Enable BOOTSTD_DEFAULTS by default

2023-04-03 Thread Tom Rini
On Sat, Apr 01, 2023 at 07:31:56PM +1300, Simon Glass wrote: > Hi Tom, > > On Sat, 1 Apr 2023 at 07:00, Tom Rini wrote: > > > > On Fri, Mar 31, 2023 at 10:26:01AM +1300, Simon Glass wrote: > > > > > This is needed to enable the boot command used to start standard boot. > > > Enable it by

Re: [PATCH 2/2] pico-imx6: Pass the mmc alias to fix boot regression

2023-04-03 Thread Tom Rini
On Mon, Apr 03, 2023 at 09:25:11AM -0300, Fabio Estevam wrote: > Hi Tom and Stefano, > > On Wed, Mar 29, 2023 at 7:25 PM wrote: > > > > > Originally, the mmc aliases node was present in imx6qdl-pico.dtsi. > > > > > > After the sync with Linux in commit d0399a46e7cd ("imx6dl/imx6qdl: > > >

Re: Pull request: please pull u-boot-imx/

2023-04-03 Thread Tom Rini
u-boot.dtsi (2023-03-28 10:58:16 > -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20230403 > > for you to fetch changes up to d8aba36d741c01b1e1ea60f3bbbc33ae05fa2505: > > configs:

Re: [PATCH v5 3/8] bootstd: Support booting EFI where multiple options exist

2023-04-03 Thread Tom Rini
On Mon, Apr 03, 2023 at 12:56:49PM +0300, Ilias Apalodimas wrote: > On Sat, Apr 01, 2023 at 07:31:49PM +1300, Simon Glass wrote: > > Hi Tom, > > > > On Sat, 1 Apr 2023 at 07:02, Tom Rini wrote: > > > > > > On Fri, Mar 31, 2023 at 10:25:56AM +1300, Simon Glass wrote: > > > > > > > The current EFI

Re: [PATCH v2 0/5] board: verdin-imx8mp: ddr updates

2023-04-03 Thread Fabio Estevam
Hi Marcel, On Mon, Apr 3, 2023 at 9:02 AM Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > This series contains the following DDR updates: > > - update ddrc config for different lpddr4 memories > - fix lpddr4 refresh timing > - update lpddr4 configuration and training > - compact slight

Re: Binman for RK35xx

2023-04-03 Thread Jonas Karlman
On 2023-04-03 15:33, Peter Robinson wrote: > On Mon, Apr 3, 2023 at 2:30 PM Mark Kettenis wrote: >> >>> From: >>> Date: Mon, 3 Apr 2023 12:27:36 +0300 >>> >>> Hi! >>> >>>Trying to build mainline U-Boot for Rockchip RK3568-based board (Forlinx >>> RK3568), but I think it;s can be reproduced

Re: rk3399 issue: no DMA in Linux with mainline TF-A and U-Boot SPL

2023-04-03 Thread Christoph Fritz
On Mon, 2023-04-03 at 14:17 +0100, Russell King (Oracle) wrote: > On Mon, Apr 03, 2023 at 12:11:40PM +0200, Christoph Fritz wrote: > > > > > > The ARM PL330 DMA driver in kernel only relate to: > > > > > > - DTS kernel used, can be check in /proc/device-tree/ > > > > > > - kernel driver

[PATCH v2 2/2] test: hush_if_test: Add hush variable test

2023-04-03 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add a test for the hush shell variable assignment and clear. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v1) test/py/tests/test_hush_if_test.py | 13 + 1 file changed, 13 insertions(+) diff --git a/test/py/tests/test_hush_if_test.py

[PATCH v2 1/2] common: cli_hush: Restore clear local variable support

2023-04-03 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier The u-boot hush shell doesn’t support the unset command to clear a variable and therefore an empty value ("c=") should be a valid value for the set_local_var function to clear the variable. This partial reverts commit aa722529635c ("common: cli_hush: avoid dead

[PATCH 2/2] firmware: zynqmp: Remove extraordinary return value

2023-04-03 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Return a common -EACCES error value instead of a positive private error value XST_PM_NO_ACCESS (2002) in zynqmp_pmufw_load_config_object function if the config object is not loadable to simplify the error checking. Signed-off-by: Stefan Herbrechtsmeier ---

[PATCH 1/2] firmware: zynqmp: Mask expected and show unexpected warning

2023-04-03 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Mask the expected and show the unexpected warning "No permission to change config object" for NODE_OCM_BANK_0 because this node is used to detect if further zynqmp_pmufw_node function calls should be skipped. Signed-off-by: Stefan Herbrechtsmeier ---

Re: Binman for RK35xx

2023-04-03 Thread Peter Robinson
On Mon, Apr 3, 2023 at 2:30 PM Mark Kettenis wrote: > > > From: > > Date: Mon, 3 Apr 2023 12:27:36 +0300 > > > > Hi! > > > >Trying to build mainline U-Boot for Rockchip RK3568-based board (Forlinx > > RK3568), but I think it;s can be reproduced on all RK35 chips. The main > > problem is that

Re: Binman for RK35xx

2023-04-03 Thread Mark Kettenis
> From: > Date: Mon, 3 Apr 2023 12:27:36 +0300 > > Hi! > >Trying to build mainline U-Boot for Rockchip RK3568-based board (Forlinx > RK3568), but I think it;s can be reproduced on all RK35 chips. The main > problem is that BL32 (AKA OP-TEE) is provided by Roch-Chips as a > pre-compiled blob

Re: rk3399 issue: no DMA in Linux with mainline TF-A and U-Boot SPL

2023-04-03 Thread Russell King (Oracle)
On Mon, Apr 03, 2023 at 12:11:40PM +0200, Christoph Fritz wrote: > > > > The ARM PL330 DMA driver in kernel only relate to: > > > > - DTS kernel used, can be check in /proc/device-tree/ > > > > - kernel driver which should mach the compatible name. > > drivers/dma/pl330.c needs also a

Binman for RK35xx

2023-04-03 Thread Игорь Зафиевский
Hi! Trying to build mainline U-Boot for Rockchip RK3568-based board (Forlinx RK3568), but I think it;s can be reproduced on all RK35 chips. The main problem is that BL32 (AKA OP-TEE) is provided by Roch-Chips as a pre-compiled blob and binman fails to implement that scenario. Used .dtsi file

Re: [PATCH v2 0/5] enable DMA and CPSW nodes for am62ax SoC family

2023-04-03 Thread Ravi Gunasekaran
Bryan, On 03/04/23 3:06 am, Bryan Brattlof wrote: > Hello again everyone! > > This patch series syncs TI's am62ax device tree files with what has been > merged in the v6.3-rc4 of the Linux Kernel. This series will also enable > YMODEM support to make automated testing (which uses the UART boot >

[PATCH] boot: vbe_simple: Fix vbe_simple_read_bootflow() dependency

2023-04-03 Thread Bin Meng
vbe_simple_read_bootflow() calls vbe_simple_read_bootflow_fw() which is only available when BOOTMETH_VBE_SIMPLE_FW is on. Signed-off-by: Bin Meng --- boot/vbe_simple.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/boot/vbe_simple.c b/boot/vbe_simple.c index

[PATCH] riscv: Correct a comment in io.h

2023-04-03 Thread Bin Meng
Replace NDS32 with RISC-V in the comments. Signed-off-by: Bin Meng --- arch/riscv/include/asm/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/include/asm/io.h b/arch/riscv/include/asm/io.h index 220266e76f..b16e6dfa37 100644 --- a/arch/riscv/include/asm/io.h

rk3399 issue: no DMA in Linux with mainline TF-A and U-Boot SPL

2023-04-03 Thread Christoph Fritz
Hello Kever, on a rk3399, booting current U-Boot SPL with mainline TF-A leads to missing DMA (and no sound) on Linux. However, when using rockchip its so called mini-loader (rk3399_miniloader_v1.26.bin) and their BL31 (rk3399_bl31_v1.35.elf) to boot, DMA works perfectly fine. Tested on a

[PATCH] arm64: interrupts: print FAR_ELx on sync exceptions

2023-04-03 Thread Pavel Skripkin
Default synchronous exceptions handler prints only esr and register dump. Sometimes it requiers to see an address which caused exceptions to understand what's going on ARM ARM in section D13.2.41 states that FAR_EL2 will contain meanfull value in case of ESR.EC holds 0x20, 0x21, 0x24, 0x25, 0x22,

Re: [PATCH 2/2] pico-imx6: Pass the mmc alias to fix boot regression

2023-04-03 Thread Fabio Estevam
Hi Tom and Stefano, On Wed, Mar 29, 2023 at 7:25 PM wrote: > > > Originally, the mmc aliases node was present in imx6qdl-pico.dtsi. > > > > After the sync with Linux in commit d0399a46e7cd ("imx6dl/imx6qdl: > > synchronise device trees with linux"), the aliases node is gone as > > the upstream

Pull request: please pull u-boot-imx/

2023-04-03 Thread Stefano Babic
://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-20230403 for you to fetch changes up to d8aba36d741c01b1e1ea60f3bbbc33ae05fa2505: configs: imx8mn_bsh_smm_s2: remove console from bootargs (2023-03-31 10:51:14 +0200) Fixes

[PATCH v2 3/5] board: verdin-imx8mp: update lpddr4 configuration and training

2023-04-03 Thread Marcel Ziswiler
From: Emanuele Ghidoli Update LPDDR4 configuration and training using updated spreadsheet and tools from NXP using data from previous spreadsheet and verified toward datasheet: - MX8M_Plus_LPDDR4_RPA_v9.xlsx - mscale_ddr_tool_v3.30.exe From:

[PATCH v2 5/5] board: verdin-imx8mp: change prints in spl_dram_init function

2023-04-03 Thread Marcel Ziswiler
From: Emanuele Ghidoli change prints to show which DDR configuration (single/dual rank) is used Signed-off-by: Emanuele Ghidoli Signed-off-by: Marcel Ziswiler --- Changes in v2: - Use puts rather than printf in the SPL as suggested by Fabio. Thanks! board/toradex/verdin-imx8mp/spl.c | 14

[PATCH v2 4/5] board: verdin-imx8mp: compact slight different lpddr4 configuration

2023-04-03 Thread Marcel Ziswiler
From: Emanuele Ghidoli Deduplicate similar DDRC configurations and LPDDR4 training patterns by patching a single configuration. The aim is to reduce the SPL memory footprint and simplify maintenance of lpddr4_timing.c Signed-off-by: Emanuele Ghidoli Signed-off-by: Marcel Ziswiler --- (no

[PATCH v2 2/5] board: verdin-imx8mp: fix lpddr4 refresh timing

2023-04-03 Thread Marcel Ziswiler
From: Emanuele Ghidoli Change tRFCmin (tRFCab) from 280 ns to 380 ns to be compliant with current and futures memories. Fixes: 2bc2f817cea7 ("board: toradex: add verdin imx8m plus support") Signed-off-by: Emanuele Ghidoli Signed-off-by: Marcel Ziswiler --- (no changes since v1)

[PATCH v2 1/5] board: verdin-imx8mp: update ddrc config for different lpddr4 memories

2023-04-03 Thread Marcel Ziswiler
From: Emanuele Ghidoli Add support to Verdin IMX8MP V1.1B SKU which uses MT53E1G32D2FW-046 WT:B memory. Compared to the 8 GB memory (MT53E2G32D4NQ-046 WT:A) used on Verdin IMX8MP V1.0A it has 16 row addresses instead of 17. In fact, the new memory, is a 2 GB/rank memory. The 8 GB memory is a 4

[PATCH v2 0/5] board: verdin-imx8mp: ddr updates

2023-04-03 Thread Marcel Ziswiler
From: Marcel Ziswiler This series contains the following DDR updates: - update ddrc config for different lpddr4 memories - fix lpddr4 refresh timing - update lpddr4 configuration and training - compact slight different lpddr4 configuration - change prints in spl_dram_init function Changes in

Re: [PATCH V5 12/13] include: Enable video related global data variable and splash at SPL

2023-04-03 Thread Devarsh Thakkar
Hi, On 03/04/23 13:44, Nikhil M Jain wrote: > To include video related global data variables and splash functions at > SPL, use CONFIG_IS_ENABLED. s/at SPL/at both SPL and u-boot proper > > Replace CONFIG_CMD_BMP with CONFIG_BMP to enable splash_display function > at u-boot proper and SPL. > >

Re: [PATCH V5 11/13] common: Enable splash functions at SPL

2023-04-03 Thread Devarsh Thakkar
Hi, On 03/04/23 13:44, Nikhil M Jain wrote: > To support splash screen at SPL use CONFIG_IS_ENABLED and CONFIG_VAL. To support splash screen at both u-boot proper and SPL use xyz macros to check for video related Kconfigs. > check for stage specific configs at u-boot proper and SPL. > >

Re: [PATCH V5 09/13] common: Makefile: Rule to compile bmp.c

2023-04-03 Thread Devarsh Thakkar
On 03/04/23 13:44, Nikhil M Jain wrote: > Add rule to compile bmp.c at SPL and u-boot proper when CONFIG_SPL_BMP > and CONFIG_BMP are defined. > > Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar > --- > V5: > - Remove obj-y+= read.o. > > V4: > - No change. > > V3 (patch

Re: [PATCH v3 2/3] phy: rockchip-inno-usb2: add initial support for rk3588 PHY

2023-04-03 Thread Eugen Hristev
On 4/2/23 14:04, Jonas Karlman wrote: Hi Eugen, On 2023-03-31 11:40, Eugen Hristev wrote: Add initial support for the rk3588 PHY variant. The driver now looks for phy-supply and enables/disables the vbus accordingly. Maybe this should be added to core phy uclass to closer match linux? Look

Re: [PATCH V5 08/13] cmd: bmp: Split bmp commands and functions

2023-04-03 Thread Devarsh Thakkar
On 03/04/23 13:44, Nikhil M Jain wrote: > To enable splash screen at spl, need to compile cmd/bmp.c which also s/spl/SPL > includes bmp commands, since SPL can't have commands split bmp.c into since SPL doesn't use bmp commands, split cmd/bmp.c into ... > common/bmp.c which includes all bmp

Re: [PATCH v3 1/3] ARM: dts: rockchip: rk3588-rock-5b-u-boot: add USB 2.0 host

2023-04-03 Thread Eugen Hristev
On 4/2/23 14:00, Jonas Karlman wrote: Hi Eugen, On 2023-03-31 11:40, Eugen Hristev wrote: Add USB 2.0 host nodes and PHYs. Co-developed-by: William Wu Signed-off-by: William Wu Signed-off-by: Eugen Hristev --- Changes in v2,v3: - none arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 169

[PATCH v1 2/2] board: colibri-imx8x: initialize snvs

2023-04-03 Thread Andrejs Cainikovs
Initialize Secure Non-Volatile Storage, aka SNVS. Signed-off-by: Andrejs Cainikovs --- board/toradex/colibri-imx8x/colibri-imx8x.c | 8 1 file changed, 8 insertions(+) diff --git a/board/toradex/colibri-imx8x/colibri-imx8x.c b/board/toradex/colibri-imx8x/colibri-imx8x.c index

[PATCH v1 1/2] colibri-imx8x: print firmware versions

2023-04-03 Thread Andrejs Cainikovs
Print firmware versions during U-Boot start: BuildInfo: - SCFW f5623878, SECO-FW c9de51c0, IMX-MKIMAGE 0, ATF c6a19b1 - U-Boot 2022.04-00335-g65192567f81-dirty Signed-off-by: Andrejs Cainikovs --- board/toradex/colibri-imx8x/colibri-imx8x.c | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH v1 0/2] colibri-imx8x: snvs and firmware info

2023-04-03 Thread Andrejs Cainikovs
This series updates recent Colibri iMX8X support refresh with following: * initialize secure non-volatile storage, aka snvs * print firmware versions during boot Andrejs Cainikovs (2): colibri-imx8x: print firmware versions board: colibri-imx8x: initialize snvs

Re: [PATCH V5 07/13] common: Kconfig: Add BMP configs

2023-04-03 Thread Devarsh Thakkar
Hi Nikhil, On 03/04/23 13:44, Nikhil M Jain wrote: > Add CONFIG_BMP and CONFIG_SPL_BMP which enable displaying bmp images at > u-boot proper and SPL. > > Signed-off-by: Nikhil M Jain > Reviewed-by: Simon Glass Reviewed-by: Devarsh Thakkar Regards Devarsh > --- > V5: > - Added Reviewed-by

Re: [PATCH V5 06/13] common: Makefile: Add rule to compile splash and splash_source at SPL

2023-04-03 Thread Devarsh Thakkar
Hi Nikhil, On 03/04/23 13:44, Nikhil M Jain wrote: > To enable splash screen and loading bmp from boot media, add rules to > compile splash.c and splash_source.c at SPL stage only when > CONFIG_SPL_SPLASH_SCREEN and CONFIG_SPL_SPLASH_SOURCE are defined. > > Signed-off-by: Nikhil M Jain

Re: [PATCH V5 04/13] drivers: video: Makefile: Rule to compile necessary video driver files

2023-04-03 Thread Devarsh Thakkar
Hi Nikhil, On 03/04/23 13:44, Nikhil M Jain wrote: > To enable video driver at SPL, need to compile video-uclass, > vidconsole-uclass, backlight-uclass, panel-uclass, simple-panel, add > rules to compile them at SPL only. To support splash_display at SPL, > need to compile video-bmp, add rule to

Re: [PATCH V5 03/13] drivers: Makefile: Add rule to compile video driver

2023-04-03 Thread Devarsh Thakkar
Hi Nikhil, On 03/04/23 13:44, Nikhil M Jain wrote: > CONFIG_$(SPL_)VIDEO checks for CONFIG_SPL_VIDEO at SPL and CONFIG_VIDEO > at u-boot proper and compiles video driver at respective stage. > Please update above commit message per the new patch change as CONFIG_$(SPL_)VIDEO is not used now.

Re: [PATCH V5 02/13] drivers: video: tidss: Kconfig: Configs to enable TIDSS at SPL

2023-04-03 Thread Devarsh Thakkar
Hi Nikhil, On 03/04/23 13:44, Nikhil M Jain wrote: > To enable tidss video driver only at SPL stage, add necessary config, > CONFIG_SPL_VIDEO_TIDSS. > > Signed-off-by: Nikhil M Jain > Reviewed-by: Simon Glass > --- > V5: > - No change > > V4: > - Add Reviewed-By tag > > V3: > - No change >

[PATCH v2] mmc: dw_mmc: reset controller after data error

2023-04-03 Thread Eugen Hristev
From: Ziyuan Xu Per dw_mmc databook, it's recommended to reset the host controller if some data-related error occurred. Implement a reset mechanism. Signed-off-by: Ziyuan Xu Co-developed-by: Jason Zhu Signed-off-by: Jason Zhu [eugen.hris...@collabora.com: modified a bit the variables

Re: [PATCH 1/2] Boot var automatic management for removable medias

2023-04-03 Thread Ilias Apalodimas
Hi Raymond, [...] > + } > + } > + } > + > +out: > + if (opt) { > + for (i = 0; i < count; i++) { > + if (opt[i].lo) > + free(opt[i].lo); > + } > + free(opt); > + } > +

Re: [PATCH v10 10/10] arm_ffa: efi: corstone1000: enable MM communication

2023-04-03 Thread Abdellatif El Khlifi
On Mon, Apr 03, 2023 at 12:59:06PM +0300, Ilias Apalodimas wrote: > On Sun, Apr 02, 2023 at 02:41:17PM +1200, Simon Glass wrote: > > Hi Abdellatif, > > > > On Wed, 29 Mar 2023 at 05:12, Abdellatif El Khlifi < > > abdellatif.elkhl...@arm.com> wrote: > > > > > > turn on EFI MM communication > > > >

Re: rk3399 issue: no DMA in Linux with mainline TF-A and U-Boot SPL

2023-04-03 Thread Christoph Fritz
> > The ARM PL330 DMA driver in kernel only relate to: > > - DTS kernel used, can be check in /proc/device-tree/ > > - kernel driver which should mach the compatible name. drivers/dma/pl330.c needs also a successfully matched amba, but this fails when using mainline TF-A and U-Boot SPL.

[PATCH 1/1] test: improve configuration for Kconfig test options

2023-04-03 Thread Heinrich Schuchardt
* Fix dependencies * Provide labels that are easier to grasp. * Fix typo %s/whgch/which/ * Fix type %s/Is/is/ Fixes: 29784d62eded ("test: Add some tests for kconfig.h") Signed-off-by: Heinrich Schuchardt --- test/lib/Kconfig | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-)

Re: [PATCH v4 1/2] regulator: implement basic reference counter

2023-04-03 Thread Eugen Hristev
On 4/2/23 13:45, Jonas Karlman wrote: Hi Eugen, On 2023-03-31 11:15, Eugen Hristev wrote: Some devices share a regulator supply, when the first one will request regulator disable, the second device will have it's supply cut off before graciously shutting down. Hence there will be timeouts and

Re: [PATCH v10 10/10] arm_ffa: efi: corstone1000: enable MM communication

2023-04-03 Thread Ilias Apalodimas
On Sun, Apr 02, 2023 at 02:41:17PM +1200, Simon Glass wrote: > Hi Abdellatif, > > On Wed, 29 Mar 2023 at 05:12, Abdellatif El Khlifi < > abdellatif.elkhl...@arm.com> wrote: > > > > turn on EFI MM communication > > > > On corstone1000 platform MM communication between u-boot > > and the secure

Re: [PATCH v5 3/8] bootstd: Support booting EFI where multiple options exist

2023-04-03 Thread Ilias Apalodimas
On Sat, Apr 01, 2023 at 07:31:49PM +1300, Simon Glass wrote: > Hi Tom, > > On Sat, 1 Apr 2023 at 07:02, Tom Rini wrote: > > > > On Fri, Mar 31, 2023 at 10:25:56AM +1300, Simon Glass wrote: > > > > > The current EFI implementation has a strange quirk where it watches > > > loaded files and uses

Re: [PATCH] common: cli_hush: Restore clear local variable support

2023-04-03 Thread Stefan Herbrechtsmeier
Hi Simon, Am 01.04.2023 um 08:31 schrieb Simon Glass: Hi Stefan, On Sat, 1 Apr 2023 at 03:43, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier The u-boot hush shell doesn’t support the unset command to clear a variable and therefore an empty value ("c=") should be a valid value

Re: [PATCH] watchdog: arm_smc_wdt: add watchdog support

2023-04-03 Thread Patrick DELAUNAY
Hi, On 3/31/23 09:59, Stefan Roese wrote: Hi Lionel, On 3/31/23 09:14, Lionel Debieve wrote: Implement a ARM SMCCC based driver that allow to use a secure watchdog on the platform. Signed-off-by: Lionel Debieve ---   drivers/watchdog/Kconfig   |   8 +++   drivers/watchdog/Makefile 

Re: rk3399 issue: no DMA in Linux with mainline TF-A and U-Boot SPL

2023-04-03 Thread Kever Yang
Hi Christoph,     The ARM PL330 DMA driver in kernel only relate to: - DTS kernel used, can be check in /proc/device-tree/ - kernel driver which should mach the compatible name. This driver should has nothing to do with U-Boot SPL or TF-A, because we don't have any special setting for PL330

Re: WIP: Signing TI x509 certificates using binman

2023-04-03 Thread Neha Malcom Francis
Hi Simon On 03/04/23 00:16, Simon Glass wrote: Hi Neha, On Mon, 3 Apr 2023 at 02:19, Neha Malcom Francis wrote: Hi Simon On 02/04/23 18:00, Neha Malcom Francis wrote: Hi Simon On 01/04/23 12:02, Simon Glass wrote: Hi Neha, On Sat, 1 Apr 2023 at 00:14, Neha Malcom Francis wrote: Hi

[PATCH V5 10/13] drivers: video: Enable necessary video functions at SPL

2023-04-03 Thread Nikhil M Jain
To support video driver at SPL use CONFIG_IS_ENABLED and CONFIG_VAL, which checks for stage specific configs and thus enables video support at respective stage. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- V5: - Add Reviewed-By tag. - Use COFIG_IS_ENABLED in console_core in

[PATCH V5 13/13] board: ti: am62x: evm: OSPI support for splash screen

2023-04-03 Thread Nikhil M Jain
Add ospi boot media support to load splash image from OSPI memory, add offset to read image from ospi and necessary flags defininig type of storage and storage device. Use CONFIG_IS_ENBALED to use the splash locations at SPL and u-boot proper. Signed-off-by: Nikhil M Jain Reviewed-by: Simon

[PATCH V5 12/13] include: Enable video related global data variable and splash at SPL

2023-04-03 Thread Nikhil M Jain
To include video related global data variables and splash functions at SPL, use CONFIG_IS_ENABLED. Replace CONFIG_CMD_BMP with CONFIG_BMP to enable splash_display function at u-boot proper and SPL. Signed-off-by: Nikhil M Jain --- V5: - Replace CONFIG_CMD_BMP with CONFIG_BMP. V4: - No change.

[PATCH V5 08/13] cmd: bmp: Split bmp commands and functions

2023-04-03 Thread Nikhil M Jain
To enable splash screen at spl, need to compile cmd/bmp.c which also includes bmp commands, since SPL can't have commands split bmp.c into common/bmp.c which includes all bmp functions and cmd/bmp.c contains bmp commands. Add delclaration for bmp_info in video.h. Signed-off-by: Nikhil M Jain

  1   2   >