Re: [RFC PATCH v3] doc: arch: Add document for RISC-V architecture

2023-02-18 Thread Yu-Chien Peter Lin
On Fri, Feb 17, 2023 at 02:26:17PM +0100, Heinrich Schuchardt wrote: > On 2/14/23 11:18, Yu Chien Peter Lin wrote: > > This patch adds a brief introduction to the RISC-V architecture and > > the typical boot process used on a variety of RISC-V platforms. > > > > Signed-off-by: Yu Chien Peter Lin

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

2023-02-18 Thread Leo Liang
On Fri, Feb 17, 2023 at 10:01:54AM -0500, Tom Rini wrote: > On Fri, Feb 17, 2023 at 12:12:18PM +, Leo Liang wrote: > > > Hi Tom, > > > > The following changes since commit faac9dee8e0629326dc122f4624fc4897e3f38b0: > > > > Prepare v2023.04-rc2 (2023-02-13 18:39:15 -0500) > > > > are

rk3399 boards broken, only partially converted to standard boot? (was Re: [PATCH 71/71] rockchip: Convert rockpro64-rk3399 to use standard boot)

2023-02-18 Thread Vagrant Cascadian
On 2022-12-07, Simon Glass wrote: > Drop the use of scripts and rely on standard boot for all operation. This patch, applied as 3891c68ef50eda38d78c95ecd03aed030aa6bb53 broke booting on pinebook-pro-rk3399, which still tries to "run distro_bootcmd" but distro_bootcmd is no longer defined...

Re: [Patch] net: dwc_eth_qos - works with fixed-phy

2023-02-18 Thread Ramon Fried
On Fri, Feb 17, 2023 at 5:03 AM Marek Vasut wrote: > > On 2/16/23 17:45, Nicole Battenfeld wrote: > > > > Am 16.02.23 um 02:39 schrieb Marek Vasut: > >> On 2/15/23 17:16, Elmar Psilog wrote: > >>> Let the EQoS in imx8mp handle fixed-phy too. > >>> Without that patch it lost track to the node to

Re: [PATCH] net: ipv6: IPv6 environment variable cleanup

2023-02-18 Thread Ramon Fried
On Thu, Feb 16, 2023 at 6:39 AM wrote: > > From: Sean Edmond > > Fix "setenv gatewayip6". > > Synchronize IPv6 local variables with environment variables > in netboot_update_env() > > Signed-off-by: Sean Edmond > --- > cmd/net.c | 23 ++- > include/env_flags.h |

Re: [PATCH v3 72/95] net: Add an SPL config for atheros

2023-02-18 Thread Ramon Fried
On Mon, Feb 13, 2023 at 1:33 AM Simon Glass wrote: > > Add a new SPL_PHY_ATHEROS to avoid a build error on am335x_evm with split > config. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > drivers/net/phy/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

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

2023-02-18 Thread Ramon Fried
On Thu, Feb 9, 2023 at 6:07 PM Ioana Ciornei wrote: > > In the process of adopting CONFIG_DM_ETH on the DPAA2 based platforms, > interfaces which were previously defined as "xgmii" were transitioned to > be defined as "xfi" in the DTS. > See the commit below for reference: > commit 87274918f2f4

Re: [PATCH 3/3] net: ksz9477: add port_probe function to config phy

2023-02-18 Thread Ramon Fried
On Wed, Feb 8, 2023 at 1:37 AM Tim Harvey wrote: > > Add a port_probe function to configure the phy. This leads to > earlier link negotiation so the port is more likely to be ready > when used. > > Signed-off-by: Tim Harvey > --- > drivers/net/ksz9477.c | 26 +- > 1 file

Re: [PATCH 2/3] net: ksz9477: remove unnecessary variable

2023-02-18 Thread Ramon Fried
On Wed, Feb 8, 2023 at 1:37 AM Tim Harvey wrote: > > We don't do anything useful with the master dev, so remove the variable. > > Signed-off-by: Tim Harvey > --- > drivers/net/ksz9477.c | 5 - > 1 file changed, 5 deletions(-) > > diff --git a/drivers/net/ksz9477.c b/drivers/net/ksz9477.c >

Re: [PATCH 1/3] net: ksz9477: remove unnecessary dsa_set_tagging call

2023-02-18 Thread Ramon Fried
On Wed, Feb 8, 2023 at 1:37 AM Tim Harvey wrote: > > packet tagging is not used for this driver so we do not need to > call dsa_set_tagging. > > Signed-off-by: Tim Harvey > --- > drivers/net/ksz9477.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/net/ksz9477.c

Re: [PATCH v3 59/81] net: Add an SPL config for atheros

2023-02-18 Thread Ramon Fried
On Mon, Feb 6, 2023 at 9:21 PM Simon Glass wrote: > > Add a new SPL_PHY_ATHEROS to avoid a build error on am335x_evm with split > config. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > drivers/net/phy/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

Re: [RFC PATCH v2 37/56] net: Add an SPL config for atheros

2023-02-18 Thread Ramon Fried
On Sat, Feb 4, 2023 at 2:36 AM Simon Glass wrote: > > Add a new SPL_PHY_ATHEROS to avoid a build error on am335x_evm with split > config. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > drivers/net/phy/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

[PATCH v4 11/11] mtd: nand: raw: rockchip_nfc: fix oobfree offset and description

2023-02-18 Thread Johan Jonker
The MTD framework reserves 1 or 2 bytes for the bad block marker depending on the bus size. The rockchip_nfc driver currently only supports a 8 bit bus, but reserves standard 2 bytes for the BBM. The first free OOB byte is therefore OOB2 at offset 2. Page address(PA) bytes are moved to the last 4

[PATCH v4 10/11] mtd: nand: add support for the Sandisk SDTNQGAMA chip

2023-02-18 Thread Johan Jonker
Sandisk SDTNQGAMA is a 8GB size, 3.3V 8 bit chip with 16KB page size, 1KB write size and 40 bit ecc support Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/mtd/nand/raw/nand_ids.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v4 09/11] mtd: nand: raw: rockchip_nfc: add flash_node to chip structure

2023-02-18 Thread Johan Jonker
Add flash_node to the rockchip_nfc driver chip structure in order to find the partitions in the add_mtd_partitions_of() function. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Reviewed-by: Michael Trimarchi --- drivers/mtd/nand/raw/rockchip_nfc.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v4 08/11] mtd: nand: raw: rockchip_nfc: add layout structure

2023-02-18 Thread Johan Jonker
The MTD framework in U-boot is not identical for drivers ported from Linux. The rockchip_nfc driver was ported with OOB ops functions while the framework expects a layout structure per chip. Fix by adding a structure with OOB data and remove unused functions. Signed-off-by: Johan Jonker

[PATCH v4 07/11] mtd: nand: raw: rockchip_nfc: remove the compatible string "rockchip,rk3308-nfc"

2023-02-18 Thread Johan Jonker
The compatible string for rk3308 has as fallback string "rockchip,rv1108-nfc". As there is no logic in probe priority between the SoC orientated string and the fall back, so remove the compatible string "rockchip,rk3308-nfc" from the driver. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang

[PATCH 4/4 v4] test: add a test for the new tpm_auto_start() function

2023-02-18 Thread Ilias Apalodimas
A prior patch adds a new API function for TPM2.0, which performs the full startup sequence of the TPM. Add a selftest for that. Signed-off-by: Ilias Apalodimas --- Changes since v4: - New patch test/dm/tpm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/test/dm/tpm.c

[PATCH v4 06/11] mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr

2023-02-18 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so use dev_read_addr_ptr in the rockchip_nfc.c file. Signed-off-by: Johan Jonker Reviewed-By: Michael Trimarchi --- drivers/mtd/nand/raw/rockchip_nfc.c | 6 +++--- 1 file

[PATCH 3/4 v4] tpm: sandbox: Change the return code when device is already open

2023-02-18 Thread Ilias Apalodimas
All the TPM drivers as well as out TCG TIS API for a TPM2.0 device return -EBUSY if the device has already been opened. Adjust the sandbox TPM do return the same error code. Signed-off-by: Ilias Apalodimas --- Changes since v3: - New patch. Required for [4/4] drivers/tpm/tpm2_tis_sandbox.c |

[PATCH 2/4 v4] efi_loader: use tpm_auto_start for the tpm device

2023-02-18 Thread Ilias Apalodimas
A previous commit is adding a new tpm startup functions which initializes the TPMv2 and performs all the needed selftests. Since the TPM selftests might be needed depending on the requested algorithm or functional module use that instead. Reviewed-by: Simon Glass Signed-off-by: Ilias Apalodimas

[PATCH 1/4 v4] tpm: add a function that performs selftest + startup

2023-02-18 Thread Ilias Apalodimas
As described in [0] if a command requires use of an untested algorithm or functional module, the TPM performs the test and then completes the command actions. Since we don't check for TPM_RC_NEEDS_TEST (which is the return code of the TPM in that case) and even if we would, it would complicate

[PATCH v4 05/11] rockchip: timer: dw-apb-timer: convert dev_read_addr output to phys_addr_t

2023-02-18 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so convert dev_read_addr output to phys_addr_t in the dw-apb-timer.c file. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- drivers/timer/dw-apb-timer.c | 4 ++-- 1

[PATCH v4 04/11] rockchip: adc: rockchip-saradc: use dev_read_addr_ptr

2023-02-18 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so use dev_read_addr_ptr in the rockchip-saradc.c file. Signed-off-by: Johan Jonker --- drivers/adc/rockchip-saradc.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v4 03/11] core: remap: convert regmap_init_mem_plat() input to phys_addr_t

2023-02-18 Thread Johan Jonker
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so convert regmap_init_mem_plat() input to phys_addr_t in files that use this function. Also correct struct syscon_base_plat depending on CONFIG_PHYS_64BIT setting and fix

[PATCH v4 02/11] include: dm: ofnode: fix headers

2023-02-18 Thread Johan Jonker
When fdt_addr_t and phys_addr_t are split it turns out that the header don't match the functions, so fix the headers. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- include/dm/ofnode.h | 16 1 file changed, 8 insertions(+), 8 deletions(-)

[PATCH v4 01/11] include: fdtdec: decouple fdt_addr_t and phys_addr_t size

2023-02-18 Thread Johan Jonker
The DT specification supports CPUs with both 32-bit and 64-bit addressing capabilities. In U-boot the fdt_addr_t and phys_addr_t size are coupled by a typedef. The MTD NAND drivers for 32-bit CPU's can describe partitions with a 64-bit reg property. These partitions synced from Linux end up with

[PATCH v4 00/11] Fixes for Rockchip NFC driver part 1

2023-02-18 Thread Johan Jonker
This serie contains fixes for the Rockchip NFC driver, which was ported to U-boot and merged with little review and testing it seems. Part 1 aims at passing the probe function without errors. Fixed are: 64bit FDT parsing compatible string removal add missing layout structure add missing

Re: [PATCH v3 4/5] rockchip: mkimage: Update init size limit

2023-02-18 Thread Jonas Karlman
Hi Johan, On 2023-02-18 12:48, Johan Jonker wrote: > > > On 2/18/23 05:43, Johan Jonker wrote: >> Hi Jonas, >> >> On 2/17/23 21:52, Jonas Karlman wrote: >>> Sync init size limit from vendor u-boot: >> >> This sync might not be correct. >> Please recheck with each SoC or limit your change to the

[PATCH] pci: ecm generic: use dev_read_() interface

2023-02-18 Thread Mayuresh Chitale
Use dev_read_() api instead of the fdtdec API to fetch the host controller's reg property value. This is similar to the other host controller drivers such as Sifive, Rockchip etc. Without this change, enabling CONFIG_OF_LIVE breaks the PCIe enumeration on Qemu Risc-V virt machine. The issue is

Re: [PATCH v3 4/5] rockchip: mkimage: Update init size limit

2023-02-18 Thread Johan Jonker
On 2/18/23 05:43, Johan Jonker wrote: > Hi Jonas, > > On 2/17/23 21:52, Jonas Karlman wrote: >> Sync init size limit from vendor u-boot: > > This sync might not be correct. > Please recheck with each SoC or limit your change to the rk3328 SoC if prove > fails. > Could Kever disclose SoC

[PATCH] MAINTAINERS: assign sandbox drivers to SANDBOX

2023-02-18 Thread Heinrich Schuchardt
Drivers should have a maintainer. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6f53f9c2f6..a69a226ddf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1335,6 +1335,7 @@ M:Simon Glass S:

[PATCH 1/1] sandbox: fix building with CONFIG_SPL_TIMER=y

2023-02-18 Thread Heinrich Schuchardt
Building sandbox_defconfig with CONFIG_SPL_TIMER=y results in an error include/dm/platdata.h:63:33: error: static assertion failed: "Cannot use U_BOOT_DRVINFO with of-platdata. Please use devicetree instead" Add a missing condition in the sandbox driver. Signed-off-by: Heinrich

[PATCH 1/1] dm: core: revert "Don't inline dev_read...() calls with of-platdata"

2023-02-18 Thread Heinrich Schuchardt
Compiling sandbox_defconfig with CONFIG_SPL_MMC=y results in drivers/mmc/mmc-uclass.c:211: undefined reference to `dev_read_u32_default' Revert the fraudulent patch. Fixes: ef79ef21a852 ("dm: core: Don't inline dev_read...() calls with of-platdata") Signed-off-by: Heinrich Schuchardt

[PATCH 1/1] sandbox: allow building sandbox_spl with CONFIG_DEBUG

2023-02-18 Thread Heinrich Schuchardt
Building sandbox_spl with CONFIG_DEBUG leads to errors due to missing symbols: /usr/bin/ld: common/spl/spl_fit.o: in function `spl_fit_upload_fpga': common/spl/spl_fit.c:595: undefined reference to `fpga_load' /usr/bin/ld: test/test-main.o: in function `dm_test_post_run':