Re: [PATCH v1 3/4] riscv: starfive: Add SYS_CACHE_SHIFT_6 to enable SYS_CACHE_LINE_SIZE

2023-08-02 Thread Minda Chen
On 2023/8/3 12:49, Bin Meng wrote: > On Thu, Aug 3, 2023 at 11:22 AM Minda Chen > wrote: >> >> Some devices need SYS_CACHE_LINE_SIZE macro. Add StarFive >> SYS_CACHE_SHIFT_6 to enable it. >> >> Signed-off-by: Minda Chen >> --- >> arch/riscv/Kconfig | 1 + >> 1 file changed, 1 insertion(+)

Re: [PATCH v1 3/4] riscv: starfive: Add SYS_CACHE_SHIFT_6 to enable SYS_CACHE_LINE_SIZE

2023-08-02 Thread Bin Meng
On Thu, Aug 3, 2023 at 11:22 AM Minda Chen wrote: > > Some devices need SYS_CACHE_LINE_SIZE macro. Add StarFive > SYS_CACHE_SHIFT_6 to enable it. > > Signed-off-by: Minda Chen > --- > arch/riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/Kconfig

Re: [PATCH v5 00/11] spl: Use common function for loading/parsing images

2023-08-02 Thread Heinrich Schuchardt
On 8/3/23 03:31, Tom Rini wrote: On Wed, Aug 02, 2023 at 09:13:21PM -0400, Sean Anderson wrote: On 8/2/23 16:11, Tom Rini wrote: On Mon, Jul 31, 2023 at 06:42:52PM -0400, Sean Anderson wrote: This series adds support for loading all image types (Legacy, FIT (with and without LOAD_FIT_FULL),

[PATCH v1 0/4] Add VF2 USB host support.

2023-08-02 Thread Minda Chen
StarFive VF2 VTI usb-host controller connect to pcie0 RC. Enable pcie0 first the enable USB function. patch1 is Get the correct ECAM offset in multiple PCIe RC. patch2 is enable pcie0 dts node. patch3 is enable SYS_CACHE_LINE_SIZE patch4 is Add VF2 USB related configuration. Minda Chen (4):

[PATCH v1 4/4] configs: riscv: starfive: Add VF2 PCIe XHCI config support

2023-08-02 Thread Minda Chen
Add PCI_XHCI support to enable usb3-host functions. Also add usb command and keyboard config. Signed-off-by: Minda Chen --- configs/starfive_visionfive2_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig

[PATCH v1 3/4] riscv: starfive: Add SYS_CACHE_SHIFT_6 to enable SYS_CACHE_LINE_SIZE

2023-08-02 Thread Minda Chen
Some devices need SYS_CACHE_LINE_SIZE macro. Add StarFive SYS_CACHE_SHIFT_6 to enable it. Signed-off-by: Minda Chen --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 867cbcbe74..15da2a8559 100644 --- a/arch/riscv/Kconfig +++

[PATCH v1 1/4] pci: plda: Get correct ECAM offset in multiple PCIe RC case

2023-08-02 Thread Minda Chen
Get the correct ECAM offset and record the secondary bus number in Multiple RC case. Signed-off-by: Minda Chen --- drivers/pci/pcie_plda_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pcie_plda_common.c b/drivers/pci/pcie_plda_common.c index

[PATCH v1 2/4] riscv: dts: starfive: Enable pcie0 dts node

2023-08-02 Thread Minda Chen
In StarFive VF2 board. pcie0 connect to VTI usb controller. Enable it to support usb host. Signed-off-by: Minda Chen --- arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi

[PATCH 2/2] treewide: unify the linker symbol reference format

2023-08-02 Thread Shiji Yang
Now all linker symbols are declared as type char[]. Though we can reference the address via both the array name 'var' and its address ''. It's better to unify them to avoid confusing developers. This patch converts all '' linker symbol refrences to the most commonly used format 'var'.

[PATCH 1/2] treewide: rework linker symbol declarations in sections header

2023-08-02 Thread Shiji Yang
1. Convert all linker symbols to char[] type so that we can get the corresponding address by calling array name 'var' or its address ''. In this way, we can avoid some potential issues[1]. 2. Remove unused symbol '_TEXT_BASE'. It has been abandoned and has not been referenced by any

[PATCH 0/2] treewide: rework linker symbol declarations and references

2023-08-02 Thread Shiji Yang
1. Convert all linker symbol declarations to char[] type. 2. Unify the linker symbol reference format. CI check: https://github.com/u-boot/u-boot/pull/401 Shiji Yang (2): treewide: rework linker symbol declarations in sections header treewide: unify the linker symbol reference format

Re: [PATCH v5 00/11] spl: Use common function for loading/parsing images

2023-08-02 Thread Tom Rini
On Wed, Aug 02, 2023 at 09:13:21PM -0400, Sean Anderson wrote: > On 8/2/23 16:11, Tom Rini wrote: > > On Mon, Jul 31, 2023 at 06:42:52PM -0400, Sean Anderson wrote: > > > > > This series adds support for loading all image types (Legacy, FIT (with > > > and without LOAD_FIT_FULL), and i.MX) to the

Re: [PATCH v5 00/11] spl: Use common function for loading/parsing images

2023-08-02 Thread Sean Anderson
On 8/2/23 16:11, Tom Rini wrote: On Mon, Jul 31, 2023 at 06:42:52PM -0400, Sean Anderson wrote: This series adds support for loading all image types (Legacy, FIT (with and without LOAD_FIT_FULL), and i.MX) to the MMC, SPI, NOR, NET, FAT, and EXT load methods. It does this by introducing a

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

2023-08-02 Thread Minda Chen
On 2023/8/2 17:31, Leo Liang wrote: > Hi Bin, > > On Wed, Aug 02, 2023 at 02:27:29PM +0800, Bin Meng wrote: >> Hi Leo, >> >> On Wed, Aug 2, 2023 at 1:49 PM Leo Liang wrote: >> > >> > Hi Tom, >> > >> > The following changes since commit >> > 7755b2200777f72dca87dd169138e95f011bbcb9: >> > >>

Re: Boot failure on Rock-pi-4-a when compiling with clang.

2023-08-02 Thread Tom Rini
On Thu, Aug 03, 2023 at 08:30:20AM +0800, Ying-Chun Liu (PaulLiu) wrote: > Hi all, > > I'd like to have some ideas for debugging this conditions. > When compiling with default gnu toolchain. It works great. > > When compiling with clang (clang-14 or clang-15), > I'll get hang sometimes. > The

Boot failure on Rock-pi-4-a when compiling with clang.

2023-08-02 Thread Ying-Chun Liu (PaulLiu)
Hi all, I'd like to have some ideas for debugging this conditions. When compiling with default gnu toolchain. It works great. When compiling with clang (clang-14 or clang-15), I'll get hang sometimes. The following are two boot logs: 1. U-Boot SPL 2023.10-rc1-00207-g38dedebc54-dirty (Aug 03

Re: [PATCH v4 3/3] board: toradex: add verdin am62 support

2023-08-02 Thread Nishanth Menon
On 22:54-20230728, Marcel Ziswiler wrote: > From: Marcel Ziswiler [...] > diff --git a/doc/board/toradex/verdin-am62.rst > b/doc/board/toradex/verdin-am62.rst > new file mode 100644 > index 000..2ece3757a41 > --- /dev/null > +++ b/doc/board/toradex/verdin-am62.rst > @@ -0,0 +1,169 @@ >

Re: U-Boot video output for rk3588

2023-08-02 Thread Sebastian Reichel
Hi, On Wed, Aug 02, 2023 at 03:19:04PM -0600, Simon Glass wrote: > On Wed, 2 Aug 2023 at 15:03, Simon Glass wrote: > > Does anyone know how to enable HDMI output on this device in U-Boot, > > e.g. on rock5b? Upstream kernel does not yet support RK3588 HDMI output, but Cristian Ciocaltea (added

Re: [PATCH V3] doc: board: ti: k3: Add a guide to debugging with OpenOCD

2023-08-02 Thread Heinrich Schuchardt
On 8/1/23 19:41, Nishanth Menon wrote: From: Jason Kacines Bootloader debug usually tends to be a bit dicey prior to DDR and serial port getting active in the system. JTAG typically remains the only practical debug option during the initial bringup. OpenOCD is one of the most popular

Re: [PATCH v4 3/3] board: toradex: add verdin am62 support

2023-08-02 Thread Nishanth Menon
On 22:54-20230728, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This adds initial support for the Toradex Verdin AM62 Quad 1GB WB IT > V1.0A module and subsequent V1.1 launch configuration SKUs. They are > strapped to boot from their on-module eMMC. U-Boot supports booting > from the

Re: [PATCH v3 2/4] doc: board: ti: am64: Add boot flow diagram

2023-08-02 Thread Nishanth Menon
On 22:06-20230802, Roger Quadros wrote: > > > On 02/08/2023 20:55, Nishanth Menon wrote: > > On 20:18-20230802, Roger Quadros wrote: > >> Add boot flow diagram for AM64 SoC. > >> > >> Suggested-by: Nishanth Menon > >> Signed-off

Re: [PATCH v4 1/4] cmd: bind: Add unbind command with driver filter

2023-08-02 Thread Marek Vasut
On 8/2/23 23:31, Simon Glass wrote: Hi Marek, On Wed, 2 Aug 2023 at 06:47, Marek Vasut wrote: Extend the driver core to perform lookup by both OF node and driver bound to the node. Use this to look up specific device instances to unbind from nodes in the unbind command. One example where

Re: U-Boot video output for rk3588

2023-08-02 Thread Jagan Teki
On Thu, 3 Aug 2023 at 02:33, Simon Glass wrote: > > Hi, > > Does anyone know how to enable HDMI output on this device in U-Boot, > e.g. on rock5b? Nothing yet, basic vop2 is not available - Linux side is under progress. It will be possible to support in U-Boot after. Jagan.

Re: [PATCH v3 4/4] arm: dts: k3-am64: Sync DT with Linux v6.5-rc1

2023-08-02 Thread Nishanth Menon
On 20:18-20230802, Roger Quadros wrote: > Sync all am642-evm/am642-sk related DT files > with Linux v6.5-rc1. > > - drop timer1 in favor of main_timer0 in am64-main.dtsi. > Need to delete clock & power domain properties of > main_timer1 in -r5.dts else won't boot. This i

Re: [PATCH] efi_loader: check uuid_str_to_bin return value

2023-08-02 Thread Heinrich Schuchardt
On 7/31/23 10:53, Masahisa Kojima wrote: Check the uuid_str_to_bin return value, skip the node if the image-type-id property is wrong format. Addresses-Coverity-ID: 463145 ("Error handling issues") Signed-off-by: Masahisa Kojima Reviewed-by: Heinrich Schuchardt ---

Re: [PATCH v2 2/2] tpm: Add error scenarios to get_test_result test

2023-08-02 Thread Simon Glass
Hi Julia, On Wed, 2 Aug 2023 at 02:35, Julia Daxenberger wrote: > > Patch 1/2 of this series provides basic testing of the get_test_result > functionality. This Patch adds further testing of possible error > scenarios, but relies on rebooting sandbox at the beginning of the test. > >

Re: [PATCHv5 03/13] net/lwip: implement dns cmd

2023-08-02 Thread Simon Glass
Hi Maxim, On Wed, 2 Aug 2023 at 08:09, Maxim Uvarov wrote: > > Signed-off-by: Maxim Uvarov > --- > lib/lwip/Makefile| 2 ++ > lib/lwip/apps/dns/lwip-dns.c | 46 > lib/lwip/apps/dns/lwip-dns.h | 3 +++ > 3 files changed, 51 insertions(+) >

Re: [PATCHv5 09/13] net/lwip: implement lwip port to u-boot

2023-08-02 Thread Simon Glass
Hi Maxim, On Wed, 2 Aug 2023 at 08:11, Maxim Uvarov wrote: > subject: U-Boot commit message please (throughout series) > Signed-off-by: Maxim Uvarov > --- > lib/lwip/port/if.c| 256 ++ > lib/lwip/port/include/arch/cc.h | 46 + >

Re: [PATCHv5 12/13] net/lwip: replace original net commands with lwip

2023-08-02 Thread Simon Glass
Hi Maxim, On Wed, 2 Aug 2023 at 08:11, Maxim Uvarov wrote: > > Replace original commands: ping, tftp, dhcp and wget. > > Signed-off-by: Maxim Uvarov > --- > boot/bootmeth_efi.c | 2 +- > boot/bootmeth_pxe.c | 2 +- > cmd/net.c | 86 + >

Re: [PATCH] tpm: Add TPM2_GetTestResult command support

2023-08-02 Thread Simon Glass
Hi Julia, On Wed, 2 Aug 2023 at 02:28, Julia Daxenberger wrote: > > Hi Simon, > > On Thu, 6 Jul 2023 at 09:57, Simon Glass wrote: > > > > Hi Julia, > > > > On Wed, 5 Jul 2023 at 00:55, Julia Daxenberger > > wrote: > > > > > > Hi Simon, > > > > > > On Mon, 3 Jul 2023 at 15:31, Simon Glass

Re: [PATCH 12/14] bloblist: Reduce bloblist header size

2023-08-02 Thread Simon Glass
Hi Jose, On Wed, 2 Aug 2023 at 04:15, Jose Marinho wrote: > > > > > -Original Message- > > From: Simon Glass > > Sent: Tuesday, July 25, 2023 10:36 PM > > To: U-Boot Mailing List > > Cc: Ilias Apalodimas ; Tom Rini > > ; Julius Werner ; Dan Handley > > ; Jose Marinho ; Simon > > Glass

Re: [PATCHv5 11/13] net/lwip: connection between cmd and lwip apps

2023-08-02 Thread Simon Glass
On Wed, 2 Aug 2023 at 08:11, Maxim Uvarov wrote: > > Signed-off-by: Maxim Uvarov > --- > lib/lwip/Makefile | 2 + > lib/lwip/cmd-lwip.c | 308 > 2 files changed, 310 insertions(+) > create mode 100644 lib/lwip/cmd-lwip.c Reviewed-by: Simon

Re: [PATCH] arm: moxa: add nport6600 platform

2023-08-02 Thread Simon Glass
Hi Sergei, On Mon, 31 Jul 2023 at 12:43, Sergei Antonov wrote: > > Support for NPort 6600 Series RS-232/422/485 secure terminal servers. > > Technical specifications: > FA526 ARMv4 CPU, 64 MB of RAM, 16 MB NOR flash, 100 Mbit/s Ethernet, > optional expansion modules, up to 32 RS-232/422/485

Re: [PATCH 1/2] rockchip: spl: Drop useless call to debug_uart_init

2023-08-02 Thread Simon Glass
On Wed, 2 Aug 2023 at 11:05, Massimo Pegorer wrote: > > Since commit 0dba45864b2a ("arm: Init the debug UART") function > debug_uart_init is called in crt files _main before calling > board_init_f. Therefore, there is no need to call it again > inside board_init_f implementation in

Re: [PATCH 2/2] rockchip: spl: Drop out of scope debug message related to uart init

2023-08-02 Thread Simon Glass
On Wed, 2 Aug 2023 at 11:05, Massimo Pegorer wrote: > > Debug uart is no more inited in board_init_f function: remove this > debug message from board_init_f. If an earliest-as-possible message > after debug uart initialization is needed, enable DEBUG_UART_ANNOUNCE > Kconfig option, instead. > >

Re: [PATCHv5 10/13] net/lwip: update .gitignore with lwip

2023-08-02 Thread Simon Glass
Hi Maxim, On Wed, 2 Aug 2023 at 08:11, Maxim Uvarov wrote: > > Signed-off-by: Maxim Uvarov > --- > .gitignore | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/.gitignore b/.gitignore > index 3a4d056edf..9f2935f917 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -108,3

Re: [PATCH v2 1/2] tpm: Add TPM2_GetTestResult command support

2023-08-02 Thread Simon Glass
On Wed, 2 Aug 2023 at 02:35, Julia Daxenberger wrote: > > Add TPM2_GetTestResult command support and change the command file and the > help accordingly. Add Python tests and sandbox driver functionality. > > The TPM2_GetTestResult command is performed after the TPM2_SelfTest command > and returns

Re: [PATCH] Kconfigs: Correct default of "0" on hex type entries

2023-08-02 Thread Simon Glass
Hi Tom, On Wed, 2 Aug 2023 at 09:10, Tom Rini wrote: > > It is not a parse error to have a default value of "0" for a "hex" type > entry, instead of "0x0". However, "0" and "0x0" are not treated the > same even by the tools themselves. Correct this by changing the default > value from "0" to

Re: [PATCHv5 02/13] net/lwip: integrate lwip library

2023-08-02 Thread Simon Glass
Hi Maxim, On Wed, 2 Aug 2023 at 08:09, Maxim Uvarov wrote: > Please can you add a commit message in each case? > --- > lib/Kconfig | 2 ++ > lib/Makefile | 3 +++ > lib/lwip/Kconfig | 67 +++ > lib/lwip/Makefile | 66

Re: [PATCH v4 1/4] cmd: bind: Add unbind command with driver filter

2023-08-02 Thread Simon Glass
Hi Marek, On Wed, 2 Aug 2023 at 06:47, Marek Vasut wrote: > > Extend the driver core to perform lookup by both OF node and driver > bound to the node. Use this to look up specific device instances to > unbind from nodes in the unbind command. One example where this is > needed is USB peripheral

Re: [PATCHv5 01/13] net/lwip: add doc/develop/net_lwip.rst

2023-08-02 Thread Simon Glass
Hi Maxim, On Wed, 2 Aug 2023 at 08:09, Maxim Uvarov wrote: > > Just add inital doc. > > Signed-off-by: Maxim Uvarov > --- > doc/develop/index.rst| 1 + > doc/develop/net_lwip.rst | 55 > 2 files changed, 56 insertions(+) > create mode 100644

Please pull u-boot-dm

2023-08-02 Thread Simon Glass
Hi Tom, https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/17186 https://dev.azure.com/simon0972/u-boot/_build/results?buildId=44=results The following changes since commit 7755b2200777f72dca87dd169138e95f011bbcb9: Merge tag 'x86-pull-20230801' of

Re: U-Boot video output for rk3588

2023-08-02 Thread Simon Glass
+Sebastian Reichel Hi, On Wed, 2 Aug 2023 at 15:03, Simon Glass wrote: > > Hi, > > Does anyone know how to enable HDMI output on this device in U-Boot, > e.g. on rock5b? Also, how do I make serial console, or earlycon work on this board? Regards, Simon

Re: [PATCH v2 0/2] arm: dts: k3-am6: Sync DT with Linux

2023-08-02 Thread Nishanth Menon
On 15:27-20230731, Roger Quadros wrote: > Hi, > > This series syncs AM64 DT files from Linux v6.5-rc1. > > NOTE: I have only boot tested this on AM64-GP-EVM. > I would appreciate a tested-by for AM64-sk EVM. Thanks. quick test: https://gist.github.com/nmenon/996855b92e9f233c63ec44185ab61576

U-Boot video output for rk3588

2023-08-02 Thread Simon Glass
Hi, Does anyone know how to enable HDMI output on this device in U-Boot, e.g. on rock5b? Regards, Simon

[PATCH 1/1] cmd/sbi: display new extensions

2023-08-02 Thread Heinrich Schuchardt
The SBI specification v2.0-rc2 defines new extensions: * Nested Acceleration Extension (NACL) * Steal Time Accounting (STA) Allow the sbi command to display these. Add missing implementation IDs. Signed-off-by: Heinrich Schuchardt --- arch/riscv/include/asm/sbi.h | 2 ++ cmd/riscv/sbi.c

Re: [PATCH v5 00/11] spl: Use common function for loading/parsing images

2023-08-02 Thread Tom Rini
On Mon, Jul 31, 2023 at 06:42:52PM -0400, Sean Anderson wrote: > This series adds support for loading all image types (Legacy, FIT (with > and without LOAD_FIT_FULL), and i.MX) to the MMC, SPI, NOR, NET, FAT, > and EXT load methods. It does this by introducing a helper function > which handles

[PATCH 2/2] rockchip: rk3568-nanopi-r5: Enable PCIe on NanoPi R5C and R5S

2023-08-02 Thread Jonas Karlman
Enable missing PCIe Kconfig options now that PCIe bifurcation is fixed to make use of the two on-board RTL8125B and the M.2 slot on NanoPi R5C and NanoPi R5S. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3568-nanopi-r5c-u-boot.dtsi | 4 arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi | 4

[PATCH 1/2] rockchip: rk3568-nanopi-r5: Update defconfig for NanoPi R5C and R5S

2023-08-02 Thread Jonas Karlman
Update and sync Kconfig options for NanoPi R5C and NanoPi R5S with other RK3568 boards. SPL_FIT_SIGNATURE is enabled to add a checksum validation of the FIT payload, also add LEGACY_IMAGE_FORMAT to keep boot scripts working. OF_SPL_REMOVE_PROPS, SPL_DM_SEQ_ALIAS and SPL_PINCTRL change ensure

[PATCH 0/2] rockchip: rk3568-nanopi-r5: Add missing PCIe options

2023-08-02 Thread Jonas Karlman
With PCIe bifurcation fixed on RK3568 it is now safe to add the missing PCIe Kconfig options to make use of the two on-board RTL8125B and the M.2 slot on NanoPi R5C and NanoPi R5S. First patch clean up and sync some generic Kconfig options with other RK3568 boards. Second patch add the missing

[PATCH v2 6/7] phy: rockchip: naneng-combphy: Use signal from comb PHY on RK3588

2023-08-02 Thread Jonas Karlman
Route signal from comb PHY instead of PCIe3 PHY to PCIe1l0 and PCIe1l1. Fixes use of pcie2x1l0 on ROCK 5B. Code imported from mainline linux driver. Fixes: c5b4a012bca8 ("phy: rockchip: naneng-combphy: Support rk3588") Signed-off-by: Jonas Karlman --- v2: - New patch

[PATCH v2 7/7] rockchip: rk3568-radxa-e25: Enable pcie3x1 node

2023-08-02 Thread Jonas Karlman
Enable mini PCIe slot, pcie3x1 node, now that the PCIe PHY driver support bifurcation. A pinctrl is assigned for reset-gpios or the device may freeze running pci enum and nothing is connected to the mini PCIe slot. Also drop the AHCI_PCI Kconfig option as this option is not required for a

[PATCH v2 4/7] phy: rockchip: snps-pcie3: Add bifurcation support for RK3568

2023-08-02 Thread Jonas Karlman
Configure aggregation or bifurcation mode on RK3568 based on the value of data-lanes property. Code imported almost 1:1 from mainline linux driver. Fixes: 6ec62b6ca698 ("phy: rockchip: Add Rockchip Synopsys PCIe 3.0 PHY") Signed-off-by: Jonas Karlman --- v2: - Add fixes tag

[PATCH v2 1/7] pci: pcie_dw_rockchip: Configure number of lanes and link width speed

2023-08-02 Thread Jonas Karlman
Set number of lanes and link width speed control register based on the num-lanes property. Code imported almost 1:1 from dw_pcie_setup in mainline linux. Signed-off-by: Jonas Karlman --- v2: - No change drivers/pci/pcie_dw_rockchip.c | 58 +- 1 file changed, 50

[PATCH] get_maintainers.conf: Disable git fallback

2023-08-02 Thread Tom Rini
Let us disabling using git to determine fallback possible maintainers for a given file. Hopefully this will encourage more explicit listing of files in MAINTAINERS files. Signed-off-by: Tom Rini --- .get_maintainer.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 0/7] rockchip: rk3568: Fix use of PCIe bifurcation

2023-08-02 Thread Jonas Karlman
This series add support for use of PCIe bifurcation on RK3568, and as a bonus support for the RK3588 PHY is also included. With PCIe bifurcation supported it is possible to enable PCIe on more RK3568 boards, e.g. on NanoPi R5C and NanoPi R5S. This series only include fixing the mini PCIe slot on

Re: [PULL, v2] u-boot-riscv/master

2023-08-02 Thread Tom Rini
On Wed, Aug 02, 2023 at 10:40:05AM +, Leo Liang wrote: > Hi Tom, > > The following changes since commit 7755b2200777f72dca87dd169138e95f011bbcb9: > > Merge tag 'x86-pull-20230801' of > https://source.denx.de/u-boot/custodians/u-boot-x86 (2023-08-01 11:57:55 > -0400) > > are available

Re: [PATCH v5 01/11] spl: Make SHOW_ERRORS depend on LIBCOMMON

2023-08-02 Thread Tom Rini
On Mon, Jul 31, 2023 at 06:42:53PM -0400, Sean Anderson wrote: > The purpose of SHOW_ERRORS is to print extra information. Make it depend > on LIBCOMMON to avoid having to check for two configs. > > Signed-off-by: Sean Anderson Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP

[PATCH v2 5/7] phy: rockchip: snps-pcie3: Add support for RK3588

2023-08-02 Thread Jonas Karlman
Add support for the RK3588 variant to the driver. Code imported almost 1:1 from mainline linux driver. Signed-off-by: Jonas Karlman --- v2: - No change .../phy/rockchip/phy-rockchip-snps-pcie3.c| 85 +++ 1 file changed, 85 insertions(+) diff --git

Re: [PATCH v3 2/4] doc: board: ti: am64: Add boot flow diagram

2023-08-02 Thread Roger Quadros
On 02/08/2023 20:55, Nishanth Menon wrote: > On 20:18-20230802, Roger Quadros wrote: >> Add boot flow diagram for AM64 SoC. >> >> Suggested-by: Nishanth Menon >> Signed-off-by: Roger Quadros >> --- >> doc/board/ti/img/boot_diagram_am64.svg | 496 +

[PATCH v2 3/7] phy: rockchip: snps-pcie3: Refactor to use a phy_init ops

2023-08-02 Thread Jonas Karlman
Add a phy_init ops in preparation for upcoming support of a RK3588 variant in the driver. Signed-off-by: Jonas Karlman --- v2: - No change .../phy/rockchip/phy-rockchip-snps-pcie3.c| 40 +++ 1 file changed, 32 insertions(+), 8 deletions(-) diff --git

[PATCH v2 2/7] phy: rockchip: snps-pcie3: Refactor to use clk_bulk API

2023-08-02 Thread Jonas Karlman
Change to use clk_bulk API and syscon_regmap_lookup_by_phandle to simplify in preparation for upcoming support of a RK3588 variant. Signed-off-by: Jonas Karlman --- v2: - No change .../phy/rockchip/phy-rockchip-snps-pcie3.c| 58 +++ 1 file changed, 9 insertions(+), 49

Re: [PATCH v3 1/4] board: ti: am64x: Recognize AM64-HSEVM

2023-08-02 Thread Roger Quadros
On 02/08/2023 20:56, Nishanth Menon wrote: > On 20:18-20230802, Roger Quadros wrote: >> AM64-HSEVM is AM64-GPEVM with High Security Device. >> >> Gets rid of "Unidentified board claims AM64-HSEVM in eeprom header". >> >> Signed-off-by: Roger Quadros

Re: [PATCH v3 01/11] binman: elf: Check for ELF_TOOLS availability and remove extra semicolon

2023-08-02 Thread Simon Glass
From: Lukas Funke Check if elf tools are available when running DecodeElf(). Also remove superfuous semicolon at line ending. Signed-off-by: Lukas Funke Reviewed-by: Simon Glass --- Changes in v3: - Improved test coverage regarding missing libelf - Align error message tools/binman/elf.py

Re: [PATCH v2 2/7] binman: Update missing optional external blob warning text

2023-08-02 Thread Simon Glass
On Tue, 18 Jul 2023 at 14:34, Jonas Karlman wrote: > > Make it more clear that the missing external blob is optional in the > printed warning message. > > Signed-off-by: Jonas Karlman > --- > v2: > - New patch > > tools/binman/control.py | 2 +- > tools/binman/ftest.py | 2 +- > 2 files

Re: [PATCH v2 1/7] binman: Update tee-os missing blob help text

2023-08-02 Thread Simon Glass
On Tue, 18 Jul 2023 at 14:34, Jonas Karlman wrote: > > Make it a little bit more clear that it is U-Boot that should be built > with TEE=/path/to/tee.bin and not OP-TEE itself. > > Signed-off-by: Jonas Karlman > --- > v2: > - New patch > > tools/binman/missing-blob-help | 2 +- > 1 file

Re: [PATCH v2 3/7] binman: Report missing external blobs using error level

2023-08-02 Thread Simon Glass
On Tue, 18 Jul 2023 at 14:34, Jonas Karlman wrote: > > Print missing external blobs using error level and missing optional > external blobs using warning level. Also change to only print the header > line in color, red for missing and yellow for optional. > > Signed-off-by: Jonas Karlman > --- >

Re: [PATCH v2 4/7] binman: Override CheckOptional in fit entry

2023-08-02 Thread Simon Glass
Missing optional blobs was not reported for generated entries, e.g. tee-os on rockchip targets. Implement a CheckOptional to fix this. After this the following can be shown: Image 'simple-bin' is missing optional external blobs but is still functional: tee-os

Re: [PATCH v2 5/7] binman: Fix blank line usage for invalid images warning text

2023-08-02 Thread Simon Glass
Hi Jonas, On Tue, 18 Jul 2023 at 14:34, Jonas Karlman wrote: > > There is no blank line between last missing blob help message and the > header line for optional blob help messages. > > Image 'simple-bin' is missing external blobs and is non-functional: atf-bl31 > >

Re: [PATCH v2 1/6] binman: Produce a template-file after processing

2023-08-02 Thread Simon Glass
This file aids debugging when binman fails to get far enough to write out the final devicetree file. Write it immediate after template processing. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/binman.rst | 4 tools/binman/control.py | 14 --

Re: [PATCH v2 7/7] Makefile: Show binman missing blob message

2023-08-02 Thread Simon Glass
When binman is invoked during a build of U-Boot and an external blob is missing, the user is usually presented with a generic file not found in input path message. Invoke binman with --allow-missing so that binman can show relevant missing blob help messages. Build continue to fail with missing

Re: [PATCH v2 6/7] binman: Show filename in missing blob help message

2023-08-02 Thread Simon Glass
Show the filename next to the node path in missing blob help messages, also show a generic missing blob message when there was no help message for the help tag. Signed-off-by: Jonas Karlman Reviewed-by: Simon Glass --- v2: - Add test - Collect r-b tag tools/binman/control.py | 13

Re: [PATCH v2 2/6] dtoc: Make properties dirty when purging them

2023-08-02 Thread Simon Glass
Without the 'dirty' flag properties are not written back to the devicetree when synced. This means that new properties copied over to a node are not always written out. Fix this and add a test. Signed-off-by: Simon Glass --- (no changes since v1) tools/dtoc/fdt.py | 1 +

Re: [PATCH] binman: Add a temporary hack for duplicate phandles

2023-08-02 Thread Simon Glass
Three boards use a phandle in a FIT generator and the maintainer is away. For now, add a hack to allow this. Signed-off-by: Simon Glass --- Makefile| 6 ++ tools/binman/cmdline.py | 2 ++ tools/binman/control.py | 5 + tools/dtoc/fdt.py | 12 4

Re: [PATCH v2 3/6] dtoc: Add some debugging when copying nodes

2023-08-02 Thread Simon Glass
Show the operations being performed, when debugging is enabled. Convert a mistaken 'print' in test_copy_subnodes_from_phandles() while we are here. Signed-off-by: Simon Glass --- Changes in v2: - Use a 'done' variable to reduce code duplication tools/dtoc/fdt.py | 5 +

Re: [PATCH 1/1] boot: fix bootdev_list()

2023-08-02 Thread Simon Glass
Hi Heinrich, On Sun, 30 Jul 2023 at 08:29, Heinrich Schuchardt wrote: > > uclass_get_device_by_name() is meant to return 0 or a negative error code. > simple_itoa() cannot handle negative numbers. > > This leads to output like: > > => bootdev list -p > > Seq Probed Status Uclass

Re: [PATCH v2 5/6] binman: Remove templates after use

2023-08-02 Thread Simon Glass
It is not necessary to keep templates around after they have been processed. They can cause confusion and potentially duplicate phandles. Remove them. Use the same means of detecting a template node in _ReadImageDesc so that the two places are consistent. Signed-off-by: Simon Glass --- (no

Re: [PATCH v2 6/6] binman: Support templates containing phandles

2023-08-02 Thread Simon Glass
This provides support for phandles to be copied over from templates. This is not quite safe, since if the template is instantiated twice (i.e. in two different nodes), then duplicate phandles will be found. This will result in an error. Signed-off-by: Simon Glass --- Changes in v2: - Refine

Re: [PATCH 1/1] cmd/bootdev: print readable status code

2023-08-02 Thread Simon Glass
device_probe() called by the 'bootdev info' command returns 0 or a negative error code. itoa() cannot print negative numbers. Convert the error code to a positive number. Signed-off-by: Heinrich Schuchardt --- cmd/bootdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to

Re: [PATCH v3 1/4] board: ti: am64x: Recognize AM64-HSEVM

2023-08-02 Thread Nishanth Menon
On 20:18-20230802, Roger Quadros wrote: > AM64-HSEVM is AM64-GPEVM with High Security Device. > > Gets rid of "Unidentified board claims AM64-HSEVM in eeprom header". > > Signed-off-by: Roger Quadros I think you had Andrew's review here? > --- > board/ti/am64x/

Re: [PATCH v3 2/4] doc: board: ti: am64: Add boot flow diagram

2023-08-02 Thread Nishanth Menon
On 20:18-20230802, Roger Quadros wrote: > Add boot flow diagram for AM64 SoC. > > Suggested-by: Nishanth Menon > Signed-off-by: Roger Quadros > --- > doc/board/ti/img/boot_diagram_am64.svg | 496 + > 1 file changed, 496 insertions(+) > create

Re: [PATCH v3 09/11] binman: btool: Add Xilinx Bootgen btool

2023-08-02 Thread Simon Glass
Hi, On Fri, 21 Jul 2023 at 08:20, Michal Simek wrote: > > > > On 7/18/23 13:53, lukas.funke-...@weidmueller.com wrote: > > From: Lukas Funke > > > > Add the Xilinx Bootgen as bintool. Xilinx Bootgen is used to create > > bootable SPL (FSBL in Xilinx terms) images for Zynq/ZynqMP devices. The >

Re: [PATCH v3 2/4] doc: board: ti: am64: Add boot flow diagram

2023-08-02 Thread Tom Rini
On Wed, Aug 02, 2023 at 08:18:46PM +0300, Roger Quadros wrote: > Add boot flow diagram for AM64 SoC. > > Suggested-by: Nishanth Menon > Signed-off-by: Roger Quadros > --- > doc/board/ti/img/boot_diagram_am64.svg | 496 + > 1 file changed, 496 insertions(+) > create

[PATCH v3 4/4] arm: dts: k3-am64: Sync DT with Linux v6.5-rc1

2023-08-02 Thread Roger Quadros
Sync all am642-evm/am642-sk related DT files with Linux v6.5-rc1. - drop timer1 in favor of main_timer0 in am64-main.dtsi. Need to delete clock & power domain properties of main_timer1 in -r5.dts else won't boot. This is because timer_init is done during rproc_start to start System Firmware, but

[PATCH v3 3/4] Revert "ARM: dts: k3-am642-sk-u-boot: add PMIC node"

2023-08-02 Thread Roger Quadros
This reverts commit 28a4c3113445d4400639f357fae0def007a41093. This node should be in the board DT file and should come from upstream. Moreover, this PMIC is no present on all variants of am642-sk and will need a separate board DT file. Signed-off-by: Roger Quadros ---

[PATCH v3 2/4] doc: board: ti: am64: Add boot flow diagram

2023-08-02 Thread Roger Quadros
Add boot flow diagram for AM64 SoC. Suggested-by: Nishanth Menon Signed-off-by: Roger Quadros --- doc/board/ti/img/boot_diagram_am64.svg | 496 + 1 file changed, 496 insertions(+) create mode 100644 doc/board/ti/img/boot_diagram_am64.svg diff --git

[PATCH v3 1/4] board: ti: am64x: Recognize AM64-HSEVM

2023-08-02 Thread Roger Quadros
AM64-HSEVM is AM64-GPEVM with High Security Device. Gets rid of "Unidentified board claims AM64-HSEVM in eeprom header". Signed-off-by: Roger Quadros --- board/ti/am64x/evm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/ti/am64x/evm.c b/board/ti/am64x/evm.c index

[PATCH v3 0/4] arm: dts: k3-am64: Sync DT with Linux

2023-08-02 Thread Roger Quadros
Hi, This series syncs AM64 DT files from Linux v6.5-rc1. Tested on AM642-EVM GP SR1.0 and AM642-SK-EVM HS-FS SR2.0. Couldn't verify Linux boot on AM642-SK-EVM so would appreciate if someone can give a Tested-by for that. Thanks! cheers, -roger Changelog: v3: - include board DT file in -r5 DT

[PATCH 2/2] rockchip: spl: Drop out of scope debug message related to uart init

2023-08-02 Thread Massimo Pegorer
Debug uart is no more inited in board_init_f function: remove this debug message from board_init_f. If an earliest-as-possible message after debug uart initialization is needed, enable DEBUG_UART_ANNOUNCE Kconfig option, instead. Signed-off-by: Massimo Pegorer --- arch/arm/mach-rockchip/spl.c |

[PATCH 1/2] rockchip: spl: Drop useless call to debug_uart_init

2023-08-02 Thread Massimo Pegorer
Since commit 0dba45864b2a ("arm: Init the debug UART") function debug_uart_init is called in crt files _main before calling board_init_f. Therefore, there is no need to call it again inside board_init_f implementation in arm/mach-rockchip/spl.c. Signed-off-by: Massimo Pegorer ---

[PATCH 0/2] Drop useless call to debug_uart_init

2023-08-02 Thread Massimo Pegorer
Since commit 0dba45864b2a ("arm: Init the debug UART") function debug_uart_init is called in crt files _main before calling board_init_f. Therefore, there is no need to call it again inside board_init_f implementation as was done in arch/arm/mach-rockchip/spl.c. Remove also debug message related

[PATCH 1/1] [u-boot][master][PATCH v2] pico-imx7d: add baseboard SD card boot detect

2023-08-02 Thread egyszeregy
From: Benjamin Szőke Take over codes from Techenxion to support mmc autodetect boot for pico-imx7d. Signed-off-by: Benjamin Szőke --- board/technexion/pico-imx7d/pico-imx7d.c | 60 board/technexion/pico-imx7d/spl.c| 91 ++--

Re: [PATCH 3/3] malloc: Enable SYS_MALLOC_RUNTIME_INIT by default in SPL

2023-08-02 Thread Tom Rini
On Tue, Aug 01, 2023 at 07:51:20PM -0400, Sean Anderson wrote: > On 8/1/23 11:25, Tom Rini wrote: > > On Mon, Jul 31, 2023 at 06:33:27PM -0400, Sean Anderson wrote: > > > >> On boards with size restrictions, 1-2k can be a significant fraction of > >> the binary size. Add a new SPL version of

Re: [PATCH 1/2] Revert "lib: string: Fix strlcpy return value", fix callers

2023-08-02 Thread Simon Glass
Hi Matthias, On Fri, 14 Jul 2023 at 05:25, Matthias Schiffer wrote: > > Both the Linux kernel and libbsd agree that strlcpy() should always > return strlen(src) and not include the NUL termination. The incorrect > U-Boot implementation makes it impossible to check the return value for >

Re: [PATCH 1/2] Revert "lib: string: Fix strlcpy return value", fix callers

2023-08-02 Thread Tom Rini
On Wed, Aug 02, 2023 at 12:06:26PM +0200, Matthias Schiffer wrote: > On Fri, 2023-07-14 at 13:24 +0200, Matthias Schiffer wrote: > > Both the Linux kernel and libbsd agree that strlcpy() should always > > return strlen(src) and not include the NUL termination. The incorrect > > U-Boot

Re: [PATCH v2 0/6] Add SGMII support for MAIN CPSW on TI's J7200 SoC

2023-08-02 Thread Tom Rini
On Wed, Aug 02, 2023 at 01:47:23PM +0530, Siddharth Vadapalli wrote: > Hello, > > This series adds support for SGMII mode to the CPSW driver to enable the > functionality on TI's J7200 SoC. > > Supporting SGMII mode also requires changes to the WIZ driver which acts > as a wrapper for the

Re: [PATCHv4 1/5] net/lwip: add lwip-external submodule

2023-08-02 Thread Tom Rini
On Wed, Aug 02, 2023 at 02:03:04PM +0600, Maxim Uvarov wrote: > On Mon, 31 Jul 2023 at 04:06, Peter Robinson wrote: > > > On Fri, Jul 28, 2023 at 7:09 PM Tom Rini wrote: > > > > > > On Thu, Jul 27, 2023 at 03:34:48PM +0300, Ilias Apalodimas wrote: > > > > > > > Tom, Simon > > > > are you ok

Re: [PATCH v17 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-08-02 Thread Simon Glass
Hi Ilias, On Wed, 2 Aug 2023 at 08:00, Ilias Apalodimas wrote: > > Hi Simon, > > On Wed, 2 Aug 2023 at 16:55, Simon Glass wrote: > > > > Hi Ilias, > > > > On Wed, 2 Aug 2023 at 07:48, Ilias Apalodimas > > wrote: > > > > > > Hi Simon, > > > > > > On Wed, 2 Aug 2023 at 16:44, Simon Glass wrote:

Re: [PATCH v17 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-08-02 Thread Tom Rini
On Wed, Aug 02, 2023 at 07:55:18AM -0600, Simon Glass wrote: > Hi Ilias, > > On Wed, 2 Aug 2023 at 07:48, Ilias Apalodimas > wrote: > > > > Hi Simon, > > > > On Wed, 2 Aug 2023 at 16:44, Simon Glass wrote: > > > > > > Hi Ilias, > > > > > > On Wed, 2 Aug 2023 at 07:43, Ilias Apalodimas > > >

[PATCH] binman: Add a temporary hack for duplicate phandles

2023-08-02 Thread Simon Glass
Three boards use a phandle in a FIT generator and the maintainer is away. For now, add a hack to allow this. Signed-off-by: Simon Glass --- Makefile| 6 ++ tools/binman/cmdline.py | 2 ++ tools/binman/control.py | 5 + tools/dtoc/fdt.py | 12 4

  1   2   >