Re: [PATCH v1 2/2] imx: spl_imx_romapi: fix emmc fast boot mode case

2023-11-02 Thread Marcel Ziswiler
Hi Stefano On Thu, 2023-10-26 at 10:36 +0200, Stefano Babic wrote: > On 26.10.23 10:29, Rasmus Villemoes wrote: > > On 26/10/2023 09.32, Marcel Ziswiler wrote: > > > From: Marcel Ziswiler > > > > > > This fixes a regression in the eMMC fast boot mode case where the buffer > > > was missing 464 b

RE: [PATCH 11/20] pg-wcom-ls102xa: Include in the board file

2023-11-02 Thread Aleksandar Gerasimovski
Reviewed-by: Aleksandar Gerasimovski Regards, Aleksandar -Original Message- From: Tom Rini Sent: Wednesday, 1 November 2023 17:28 To: u-boot@lists.denx.de Cc: Aleksandar Gerasimovski ; Rainer Boschung Subject: [PATCH 11/20] pg-wcom-ls102xa: Include in the board file Warning This e

Re: [PATCH 1/2] rockchip: rk3588: Add SPINAND as boot device

2023-11-02 Thread Kever Yang
Hi Jonas, On 2023/11/1 00:45, Jonas Karlman wrote: On 2023-10-31 17:13, Slawomir Stepien wrote: Mark the flash@0 as BROM_BOOTSOURCE_SPINAND. Fixes use of same-as-spl in u-boot,spl-boot-order prop on Orange Pi 5 Plus. Signed-off-by: Slawomir Stepien --- arch/arm/mach-rockchip/rk3588/rk3588.c

Re: [PATCH 1/2] riscv: cpu: jh7110: Add gpio helper macros

2023-11-02 Thread Leo Liang
On Tue, Oct 31, 2023 at 05:55:59PM +0900, Chanho Park wrote: > Add gpio.h header file that includes JH7110 helper macros. The file is > imported from StarFive github[1] with small changes such as alignment. > > [1]: https://github.com/starfive-tech/u-boot > > Signed-off-by: Chanho Park > --- >

Re: [PATCH 2/2] board: starfive: spl: Support jtag for VisionFive2 board

2023-11-02 Thread Leo Liang
On Tue, Oct 31, 2023 at 05:56:00PM +0900, Chanho Park wrote: > JTAG pins are mapped as below. To access the JTAG pins, we need to > control the GPIO pins from SPL which seems to be the earliest stage for > JTAG. > > - JTAG nTRST: GPIO36 / Input > - JTAG TDI: GPIO61 / Input > - JTAG TMS: GPIO63

Re: [PATCH v2 1/7] clk/qcom: move from mach-snapdragon

2023-11-02 Thread Sumit Garg
On Tue, 31 Oct 2023 at 03:54, Caleb Connolly wrote: > > Clock drivers don't belong here, move them to the right place and > declutter mach-snapdragon a bit. > > To de-couple these drivers from specific "target" platforms, add > additional config options to enable each clock driver gated behind a >

Re: [PATCH v2 2/7] clk/qcom: move ipq4019 driver from mach-ipq40xx

2023-11-02 Thread Sumit Garg
On Tue, 31 Oct 2023 at 03:53, Caleb Connolly wrote: > > This driver is just a stub, but it's necessary to support the upcoming > reset driver changes. > > Signed-off-by: Caleb Connolly > --- > arch/arm/Kconfig | 1 + > arch/arm/mach-ipq40xx/Makefile

RE: [PATCH 2/8] arm: mach-rmobile: Drop

2023-11-02 Thread Biju Das
Hi Paul, Thanks for the patch. > Subject: [PATCH 2/8] arm: mach-rmobile: Drop > > For most source files we can just drop . We need to add an > include for in a couple of places. Also sort the include > list in memmap-gen3.c while we're here. Why only sorting memmap-gen3.c? why not sorting all

Re: [PATCH v2 3/7] clk/qcom: handle resets and clocks in one device

2023-11-02 Thread Sumit Garg
On Tue, 31 Oct 2023 at 03:54, Caleb Connolly wrote: > > From: Konrad Dybcio > > Qualcomm's clock controller blocks actually do much more than it > says on the tin.. They provide clocks, resets and power domains. > Currently, U-Boot requires one to spawn 2 separate devices for > controlling clocks

Re: [PATCH 2/8] arm: mach-rmobile: Drop

2023-11-02 Thread Paul Barker
On Thu, Nov 02, 2023 at 07:54:37AM +, Biju Das wrote: > Hi Paul, > > Thanks for the patch. > > > Subject: [PATCH 2/8] arm: mach-rmobile: Drop > > > > For most source files we can just drop . We need to add an > > include for in a couple of places. Also sort the include > > list in memmap-g

Re: [PATCH 1/2] board: phytec: am62x: Add PHYTEC phyCORE-AM62x SoM

2023-11-02 Thread Wadim Egorov
Am 02.11.23 um 00:21 schrieb Tom Rini: On Wed, Nov 01, 2023 at 07:23:24PM +0100, Wadim Egorov wrote: Hi Dhruva, Am 01.11.23 um 16:57 schrieb Dhruva Gole: Hi, On Oct 31, 2023 at 14:37:31 +0100, Wadim Egorov wrote: Add basic support for PHYTEC phyCORE-AM62x SoM. Supported features: - 2G

Re: [PATCH v2 4/7] clk/qcom: sdm845: add register map for simple gate clocks

2023-11-02 Thread Sumit Garg
On Tue, 31 Oct 2023 at 03:54, Caleb Connolly wrote: > > Many gate clocks can be enabled with a single register write, add support > for defining these simple gate clocks and add the ones found on SDM845. > > While we're here, inline clk_init_uart() into msm_set_rate(). > > Signed-off-by: Caleb Con

Re: [PATCH v2 5/7] clk/qcom: use function pointers for enable and set_rate

2023-11-02 Thread Sumit Garg
On Tue, 31 Oct 2023 at 03:54, Caleb Connolly wrote: > > Currently, it isn't possible to build clock drivers for more than one > platform due to how the msm_enable() and msm_set_rate() callbacks are > implemented. > > Extend qcom_clk_data to include function pointers for these and convert > all pla

[PATCH] drivers: pcie_xilinx: Fix "reg" not found error

2023-11-02 Thread Mayuresh Chitale
Fix the driver to use the dev_read_addr_size API to fetch the reg property from the DT. Signed-off-by: Mayuresh Chitale --- drivers/pci/pcie_xilinx.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci/pcie_xilinx.c

[PATCH] drivers: xilinx_spi: Fixes for MMC_SPI

2023-11-02 Thread Mayuresh Chitale
Add the xfer callback which is used by the MMC_SPI driver and generally by the dm_spi_xfer callback. Also probe the fifo_depth during init as is done in the linux spi-xilinx driver and fix a compiler warning while at it. Signed-off-by: Mayuresh Chitale --- drivers/spi/xilinx_spi.c | 70 +

[PATCH] net: axi_emac: Use reg property for DMA registers

2023-11-02 Thread Mayuresh Chitale
As per the xlnx,axi-ethernet-1.00.a DT documentation in linux, the AXI DMA registers can be obtained via the reg property or via a separate node for the axistream DMA controller. Currently only the latter is supported, so add support to fetch the DMA controller registers from the "reg" property. S

[PATCH] pci: xilinx: Enable MMIO region

2023-11-02 Thread Mayuresh Chitale
The host bridge MMIO region is disabled by default due to which MMIO accesses cause an exception. Fix it by setting the bridge enable bit. This change is ported from the linux pcie-xilinx driver. Signed-off-by: Mayuresh Chitale --- drivers/pci/pcie_xilinx.c | 8 1 file changed, 8 inse

Re: [PATCH v2 7/7] clk/qcom: fix rcg divider value

2023-11-02 Thread Sumit Garg
On Tue, 31 Oct 2023 at 03:54, Caleb Connolly wrote: > > The RCG divider field takes a value of (2*h - 1) where h is the divisor. > This allows fractional dividers to be supported by calculating them at > compile time using a macro. > > However, the clk_rcg_set_rate_mnd() function was also performi

Re: [PATCH] drivers: xilinx_spi: Fixes for MMC_SPI

2023-11-02 Thread Michal Simek
On 11/2/23 09:23, Mayuresh Chitale wrote: Add the xfer callback which is used by the MMC_SPI driver and generally by the dm_spi_xfer callback. Also probe the fifo_depth during init as is done in the linux spi-xilinx driver and fix a compiler warning while at it. They are independent things that

Re: [PATCH v9 5/9] efi_loader: add missing const classifier for event service

2023-11-02 Thread Ilias Apalodimas
On Thu, 2 Nov 2023 at 08:46, Masahisa Kojima wrote: > > const classifier is missing in EventGroup parameter of > CreateEventEx(). Fix it to remove the compiler warning. > > NotifyContext parameter of CreateEventEx() is also defined > with const in UEFI specification, but NotifyContext parameter >

Re: [PATCH v9 0/9] Add EFI HTTP boot support

2023-11-02 Thread Ilias Apalodimas
On Thu, 2 Nov 2023 at 08:46, Masahisa Kojima wrote: > > This series adds the EFI HTTP boot support. > User can add the URI device path with "efidebug boot add" command. > efibootmgr handles the URI device path, download the > specified file using wget, mount the downloaded image with > blkmap, the

Re: [PATCH] scripts/Makefile.lib: print error when no public key is specified

2023-11-02 Thread Weizhao Ouyang
On Fri, Oct 27, 2023 at 3:45 PM Masahisa Kojima wrote: > > The current build system embeds the EFI Signature List(ESL) > into the dtb to be used in the EFI capsule authentication. > This ESL file is specified through the CONFIG_EFI_CAPSULE_ESL_FILE > Kconfig option. If CONFIG_EFI_CAPSULE_ESL_FILE

Re: [PATCH 5/7] arm: mach-k3: am62x: Move board selection to mach-k3

2023-11-02 Thread Francesco Dolcini
Hello Andrew, On Wed, Nov 01, 2023 at 03:35:28PM -0500, Andrew Davis wrote: > Currently each set of board targets from a vendor is selected inside > the board directory for that vendor. This has the problem of multiple > targets, one from each vendor, being selectable at the same time. > For insta

Re: [PATCH] drivers: pcie_xilinx: Fix "reg" not found error

2023-11-02 Thread Michal Simek
On 11/2/23 09:23, Mayuresh Chitale wrote: Fix the driver to use the dev_read_addr_size API to fetch the reg property from the DT. Signed-off-by: Mayuresh Chitale --- drivers/pci/pcie_xilinx.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/drive

Re: [PATCH] pci: xilinx: Enable MMIO region

2023-11-02 Thread Michal Simek
On 11/2/23 09:23, Mayuresh Chitale wrote: The host bridge MMIO region is disabled by default due to which MMIO accesses cause an exception. Fix it by setting the bridge enable bit. This change is ported from the linux pcie-xilinx driver. Signed-off-by: Mayuresh Chitale --- drivers/pci/pci

Re: [PATCH] dfu: add CONFIG_DFU_NAME_MAX_SIZE configuration

2023-11-02 Thread Mattijs Korpershoek
Hi Jaehoon, On mar., oct. 31, 2023 at 15:50, Mattijs Korpershoek wrote: > Hi, > > On Mon, 20 Jun 2022 20:13:54 +0900, Jaehoon Chung wrote: >> Add CONFIG_DFU_NAME_MAX_SIZE to change the proper size. >> If name is longer than default size, it can do wrong behavior during updating >> image. So it

Re: [PATCH] net: axi_emac: Use reg property for DMA registers

2023-11-02 Thread Michal Simek
On 11/2/23 09:23, Mayuresh Chitale wrote: As per the xlnx,axi-ethernet-1.00.a DT documentation in linux, the AXI DMA registers can be obtained via the reg property or via a separate node for the axistream DMA controller. Currently only the latter is supported, so add support to fetch the DMA c

Re: [PATCH v9 6/9] efi_loader: add return to efibootmgr event group

2023-11-02 Thread Ilias Apalodimas
On Thu, 2 Nov 2023 at 08:46, Masahisa Kojima wrote: > > When the image loaded by efibootmgr returns, efibootmgr > needs to clean the resources. Adding the event of returning > to efibootmgr is useful to simplify the implementation. > > Signed-off-by: Masahisa Kojima > --- > cmd/bootefi.c

Re: [PATCH v4 1/5] riscv: import read/write_relaxed functions

2023-11-02 Thread Leo Liang
On Wed, Nov 01, 2023 at 09:16:48PM +0900, Chanho Park wrote: > This imports mmio functions from Linux's arch/riscv/include/asm/mmio.h > to use read/write[b|w|l|q]_relaxed functions. > > Signed-off-by: Chanho Park > --- > arch/riscv/include/asm/io.h | 45 + > 1

Re: [PATCH v4 2/5] clk: starfive: jh7110: Add security clocks

2023-11-02 Thread Leo Liang
On Wed, Nov 01, 2023 at 09:16:49PM +0900, Chanho Park wrote: > Add STGCLK_SEC_HCLK and STGCLK_SEC_MISCAHB clocks for JH7110 TRNG > device. > > Signed-off-by: Chanho Park > --- > drivers/clk/starfive/clk-jh7110.c | 10 ++ > 1 file changed, 10 insertions(+) Reviewed-by: Leo Yu-Chi Liang

Re: [PATCH v4 3/5] rng: Add StarFive JH7110 RNG driver

2023-11-02 Thread Leo Liang
On Wed, Nov 01, 2023 at 09:16:50PM +0900, Chanho Park wrote: > Adds to support JH7110 TRNG driver which is based on linux kernel's > jh7110-trng.c. This can support to generate 256-bit random numbers and > 128-bit but this makes 256-bit default for convenience. > > Signed-off-by: Chanho Park > --

Re: [PATCH v4 4/5] riscv: dts: jh7110: Add rng device tree node

2023-11-02 Thread Leo Liang
On Wed, Nov 01, 2023 at 09:16:51PM +0900, Chanho Park wrote: > Adds jh7110 trng device tree node. > > Signed-off-by: Chanho Park > --- > arch/riscv/dts/jh7110.dtsi | 10 ++ > 1 file changed, 10 insertions(+) Reviewed-by: Leo Yu-Chi Liang

[PATCH] doc: falcon: riscv: Falcon Mode boot on RISC-V

2023-11-02 Thread Randolph
Add documentation to introduce the Falcon Mode on RISC-V In this mode, boot sequence is SPL -> OpenSBI -> Linux kernel. Signed-off-by: Randolph --- doc/develop/falcon.rst | 159 + 1 file changed, 159 insertions(+) diff --git a/doc/develop/falcon.rst b/doc

Re: [PATCH 03/15] nand: Calculate SYS_NAND_PAGE_COUNT automatically

2023-11-02 Thread Dario Binacchi
Sean, All On Sun, Oct 29, 2023 at 4:48 AM Sean Anderson wrote: > > Contrary to what the help message says, this is the number of pages per > block. Calculate it automatically based on SYS_NAND_BLOCK_SIZE and > SYS_NAND_PAGE_SIZE. > > Signed-off-by: Sean Anderson > --- > > README

Re: [PATCH 1/1] board: sifive: unmatched: move kernel load address to 0x80200000

2023-11-02 Thread Yong-Xuan Wang
Hi Tom, On Tue, Oct 31, 2023 at 7:54 PM Tom Rini wrote: > > On Tue, Oct 31, 2023 at 03:56:45PM +0800, Yong-Xuan Wang wrote: > > > Hi Tom, > > > > 0x8020 comes from the result of the relocated_addr in booti_setup() > > on HiFive Unmatched board. If we load the Kernel Image to this address, > >

Re: [PATCH 10/15] mtd: Add some fallbacks for add/del_mtd_device

2023-11-02 Thread Dario Binacchi
Sean, All On Sun, Oct 29, 2023 at 4:49 AM Sean Anderson wrote: > > This allows using these functions without ifdefs. OneNAND depends on MTD, > so this ifdef was redundant in the first place. > > Signed-off-by: Sean Anderson > --- > > drivers/mtd/nand/raw/nand.c | 2 -- > drivers/mtd/on

[GIT PULL] u-boot-riscv/master

2023-11-02 Thread Leo Liang
Hi Tom, The following changes since commit a803f87202aa48974bdff4d8100464a8288931e4: Merge https://source.denx.de/u-boot/custodians/u-boot-mmc (2023-11-01 09:44:33 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-riscv.git for you to fetch ch

Re: [PATCH 11/15] nand: Add function to unregister NAND devices

2023-11-02 Thread Dario Binacchi
Sean, All, On Sun, Oct 29, 2023 at 4:49 AM Sean Anderson wrote: > > This performs the opposite of nand_register, allowing drivers to unregister > nand devices. This is probably unnecessary for most regular drivers, but we > expect sandbox drivers to get repeatedly bound/unbound, so this will help

Re: [PATCH v9 7/9] efi_loader: support boot from URI device path

2023-11-02 Thread Ilias Apalodimas
Hi Kojima-san > + > +/** > + * try_load_default_file() - try to load the default file > + * > + * Search the device having EFI_SIMPLE_FILE_SYSTEM_PROTOCOL, > + * then try to load with the default boot file(e.g. EFI/BOOT/BOOTAA64.EFI). > + * > + * @devpointer to the UCLASS_

Re: [PATCH 12/15] nand: Allow reinitialization

2023-11-02 Thread Dario Binacchi
Sean, All On Sun, Oct 29, 2023 at 4:49 AM Sean Anderson wrote: > > NAND devices are destroyed in between unit tests. Provide a function to > reinitialize the subsystem at the beginning of each test. > > Signed-off-by: Sean Anderson > --- > > drivers/mtd/nand/raw/nand.c | 40

[PATCH V2] doc: falcon: riscv: Falcon Mode boot on RISC-V

2023-11-02 Thread Randolph
Add documentation to introduce the Falcon Mode on RISC-V. In this mode, the boot sequence is SPL -> OpenSBI -> Linux kernel. Signed-off-by: Randolph --- doc/develop/falcon.rst | 159 + 1 file changed, 159 insertions(+) diff --git a/doc/develop/falcon.rst

Re: [PATCH 14/15] nand: Add sandbox driver

2023-11-02 Thread Dario Binacchi
Sean, All On Sun, Oct 29, 2023 at 4:49 AM Sean Anderson wrote: > > Add a sandbox NAND flash driver to facilitate testing. This driver supports > any number of devices, each using a single chip-select. The OOB data is > stored in-band, with the separation enforced through the API. > > For now, cre

[PATCH] mtd: nand: complete nand_register() arguments check

2023-11-02 Thread Dario Binacchi
The patch checks that the "mtd" parameter is accessible before proceeding. Signed-off-by: Dario Binacchi --- drivers/mtd/nand/raw/nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/nand.c b/drivers/mtd/nand/raw/nand.c index eacd99c4e275..d31bb580c46

[PATCH] mtd: nand: check nand_mtd_to_devnum() argument

2023-11-02 Thread Dario Binacchi
If the "mtd" parameter is NULL, the search will definitely yield a negative result. In that case, it's better to exit immediately. Signed-off-by: Dario Binacchi --- drivers/mtd/nand/raw/nand.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/nand.c b

Re: [PATCH] MAINTAINERS: update Qualcomm maintainer

2023-11-02 Thread Sumit Garg
On Tue, 31 Oct 2023 at 20:49, Caleb Connolly wrote: > > As Ramon has been inactive for some time now, add myself and Neil > Armstrong to maintain Qualcomm efforts going forwards. > > Signed-off-by: Caleb Connolly > --- > I greatly appreciate the work done by Ramon Fried in keeping Qualcomm > supp

[PATCH v5 0/8] clk: Switch from soc_clk_dump to clk_ops function

2023-11-02 Thread Igor Prusov
Currently clock providers may override default implementation of soc_clk_dump function to replace clk dump command output. This causes confusing behaviour when u-boot is built with one of such drivers enabled but still has clocks defined using CCF. For example, enabling CMD_CLK and using clk dump o

[PATCH v5 2/8] clk: ast2600: Move soc_clk_dump function

2023-11-02 Thread Igor Prusov
Move clock dump function to avoid forward declaration after switching to dump in clk_ops. Signed-off-by: Igor Prusov --- drivers/clk/aspeed/clk_ast2600.c | 70 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/clk/aspeed/clk_ast2600.c b/driv

[PATCH v5 3/8] clk: k210: Move soc_clk_dump function

2023-11-02 Thread Igor Prusov
Move clock dump function to avoid forward declaration after switching to dump in clk_ops. Signed-off-by: Igor Prusov Reviewed-by: Sean Anderson --- drivers/clk/clk_k210.c | 92 +- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/drivers/clk

[PATCH v5 4/8] clk: amlogic: Move driver and ops structs

2023-11-02 Thread Igor Prusov
Move driver and ops structs to avoid forward declaration after switching to dump in clk_ops. Signed-off-by: Igor Prusov Reviewed-by: Neil Armstrong --- drivers/clk/meson/a1.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/clk/mes

[PATCH v5 1/8] clk: zynq: Move soc_clk_dump to Zynq clock driver

2023-11-02 Thread Igor Prusov
Move clock dump function in preparation for switching to dump function in clk_ops. Signed-off-by: Igor Prusov Acked-by: Michal Simek --- arch/arm/mach-zynq/clk.c | 57 --- drivers/clk/clk_zynq.c | 58 2 files changed

[PATCH v5 5/8] clk: Add dump operation to clk_ops

2023-11-02 Thread Igor Prusov
This adds dump function to struct clk_ops which should replace soc_clk_dump. It allows clock drivers to provide custom dump implementation without overriding generic CCF dump function. Signed-off-by: Igor Prusov Reviewed-by: Patrice Chotard Tested-by: Patrice Chotard --- include/clk-uclass.h |

[PATCH v5 6/8] cmd: clk: Use dump function from clk_ops

2023-11-02 Thread Igor Prusov
Add another loop to dump additional info from clock providers that implement dump operation. Signed-off-by: Igor Prusov Reviewed-by: Patrice Chotard Tested-by: Patrice Chotard --- cmd/clk.c | 9 + 1 file changed, 9 insertions(+) diff --git a/cmd/clk.c b/cmd/clk.c index c7c379d7a6..4b9

[PATCH v5 8/8] cmd: clk: Make soc_clk_dump static

2023-11-02 Thread Igor Prusov
After introducing dump to clk_ops there is no need to override or expose this symbol anymore. Signed-off-by: Igor Prusov Reviewed-by: Patrice Chotard Tested-by: Patrice Chotard Reviewed-by: Sean Anderson --- cmd/clk.c | 4 ++-- include/clk.h | 2 -- 2 files changed, 2 insertions(+), 4 del

[PATCH v5 7/8] clk: treewide: switch to clock dump from clk_ops

2023-11-02 Thread Igor Prusov
Switch to using new dump operation in clock provider drivers instead of overriding soc_clk_dump. Signed-off-by: Igor Prusov Tested-by: Patrice Chotard Reviewed-by: Sean Anderson --- arch/mips/mach-pic32/cpu.c | 23 --- drivers/clk/aspeed/clk_ast2600.c | 13 ---

Re: [PATCH v2 0/7] arm: mach-snapdragon: Qualcomm clock driver cleanup

2023-11-02 Thread Sumit Garg
Hi Caleb, On Tue, 31 Oct 2023 at 03:53, Caleb Connolly wrote: > > This series begins making some headway towards cleaning up Qualcomm > platform support in u-boot. The following is a rough overview of the > changes: > > * Move the Qualcomm clock drivers out of mach-snapdragon and into clk/qcom >

[PATCH v2 0/2] Add dm_rng_read_default() helper

2023-11-02 Thread Alexey Romanov
Hello! This patchset adds dm_rng_read_default() helper function, that selects the first rng device and uses it to obtain random bytes. V2: - Move platform_get_rng_device() to rng-uclass.c. - Re-implement it to get first successfully probed device. - Use it in dm_rng_read_default(). Alexey Rom

[PATCH v2 2/2] rng: add dm_rng_read_default() helper

2023-11-02 Thread Alexey Romanov
Add dm_rng_read_default() function, which obtain a series of random bytes. In some cases, such function would be useful because it allows the caller to abstract away from RNG device. Signed-off-by: Alexey Romanov --- drivers/rng/rng-uclass.c | 18 ++ include/rng.h| 10

[PATCH v2 1/2] rng: move platform_get_rng_device() to rng-uclass.c

2023-11-02 Thread Alexey Romanov
The correct declaration place for platform_get_rng_device() function is here. Also, this function is re-implemented to provide the first successfully probed RNG device. Signed-off-by: Alexey Romanov --- drivers/rng/rng-uclass.c | 16 include/efi_rng.h| 2 -- include/rng

Re: [PATCH 1/1] board: sifive: unmatched: move kernel load address to 0x80200000

2023-11-02 Thread Tom Rini
On Thu, Nov 02, 2023 at 06:27:37PM +0800, Yong-Xuan Wang wrote: > Hi Tom, > > On Tue, Oct 31, 2023 at 7:54 PM Tom Rini wrote: > > > > On Tue, Oct 31, 2023 at 03:56:45PM +0800, Yong-Xuan Wang wrote: > > > > > Hi Tom, > > > > > > 0x8020 comes from the result of the relocated_addr in booti_setup

Re: [PATCH v1 1/2] clk: a1: add new clocks for USB stack

2023-11-02 Thread neil . armstrong
On 01/11/2023 15:04, Alexey Romanov wrote: Since we sync device tree with Linux, we have to add this clock definition for USB stack. Signed-off-by: Alexey Romanov --- drivers/clk/meson/a1.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/meson/a1.c b/drivers/clk/meson/a

Re: [PATCH v1 2/2] drivers: sm: bind child sm devices in the device tree

2023-11-02 Thread neil . armstrong
On 01/11/2023 15:04, Alexey Romanov wrote: From: Dmitry Rokosov One well-known sm child device that provides secure power control is the Secure Power Controller. This device utilizes SMC calls to communicate with power domains on the secure monitor side. Signed-off-by: Dmitry Rokosov Signed-o

[PATCH] ARM: configs: libretech-ac: enable USB_DFU like in meson64.h

2023-11-02 Thread Neil Armstrong
nc(USB_DFU, usbdfu, na) \ func(MMC, mmc, 0) \ BOOT_TARGET_DEVICES_USB(func) \ func(PXE, pxe, na) \ --- base-commit: a803f87202aa48974bdff4d8100464a8288931e4 change-id: 20231102-libretech-ac-fix-dfu-dbd8109d552d Best regards, -- Neil Armstrong

Re: [PATCH 14/15] nand: Add sandbox driver

2023-11-02 Thread Sean Anderson
On 11/2/23 07:15, Dario Binacchi wrote: Sean, All On Sun, Oct 29, 2023 at 4:49 AM Sean Anderson wrote: Add a sandbox NAND flash driver to facilitate testing. This driver supports any number of devices, each using a single chip-select. The OOB data is stored in-band, with the separation enforc

TF-A Hang on NXP i.MX 8M Plus QuadLite

2023-11-02 Thread Marcel Ziswiler
Hi there We recently got our first batch of i.MX 8M Plus QuadLite based SoMs. While NXP downstream works just fine on them they just hang booting with latest upstream U-Boot (and TF-A). Replacing TF-A with the downstream NXP one made upstream U-Boot work as well. Further debugging TF-A showed i

Re: [PATCH 00/15] nand: Add sandbox tests

2023-11-02 Thread Dario Binacchi
Sean, All, On Sun, Oct 29, 2023 at 4:48 AM Sean Anderson wrote: > > This series tests raw nand flash in sandbox and fixes various bugs discovered > in > the process. I've tried to do things in a contemporary manner, avoiding the > (numerous) variations present on only a few boards. The test is p

Re: [PATCH 00/15] nand: Add sandbox tests

2023-11-02 Thread Sean Anderson
On 11/2/23 10:01, Dario Binacchi wrote: Sean, All, On Sun, Oct 29, 2023 at 4:48 AM Sean Anderson wrote: This series tests raw nand flash in sandbox and fixes various bugs discovered in the process. I've tried to do things in a contemporary manner, avoiding the (numerous) variations present on

Re: [PATCH v2] i2c: nuvoton: remove standard mode only

2023-11-02 Thread Heiko Schocher
Hello Jim Liu, On 04.10.23 03:35, Jim Liu wrote: > first version is only support standard mode. > remove this judgment to support standard/fast/fast plus mode. > > Signed-off-by: Jim Liu > > Changes for v2: >- add commit message > --- > drivers/i2c/npcm_i2c.c | 5 - > 1 file changed,

Re: [PATCH v3 3/3] bootcount: Add driver model I2C driver

2023-11-02 Thread Heiko Schocher
Hello Philip, On 31.10.23 08:38, Philip Richard Oberfichtner wrote: > This adds a generic I2C bootcounter adhering to driver model to replace > the previously removed legacy implementation. > > There is no change in functionality, it can be used on any I2C device. > The device tree configuration

Re: [PATCH v3 2/3] i2c: Implement i2c_get_chip_by_phandle()

2023-11-02 Thread Heiko Schocher
Hello Philip, On 31.10.23 08:38, Philip Richard Oberfichtner wrote: > This new function enhances the i2c_get_chip*() toolbox by implementing a > variant that does not require a chip_addr. Instead, the desired device > is pointed to by a phandle. > > Signed-off-by: Philip Richard Oberfichtner > -

Please pull u-boot-i2c

2023-11-02 Thread Heiko Schocher
Hello Tom, please pull from u-boot-i2c: The following changes since commit d9650a48234058c645d1a07951c3d2cf129427e6: Merge branch '2023-10-28-assorted-platform-updates' (2023-10-28 09:23:27 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-i2c.

Re: [PATCH 00/15] nand: Add sandbox tests

2023-11-02 Thread Sean Anderson
On 11/2/23 10:08, Dario Binacchi wrote: On Thu, Nov 2, 2023 at 3:06 PM Sean Anderson wrote: On 11/2/23 10:01, Dario Binacchi wrote: Sean, All, On Sun, Oct 29, 2023 at 4:48 AM Sean Anderson wrote: This series tests raw nand flash in sandbox and fixes various bugs discovered in the process.

Re: [PATCH v3 1/3] bootcount: Remove legacy I2C driver

2023-11-02 Thread Heiko Schocher
Hello Philip, On 31.10.23 08:38, Philip Richard Oberfichtner wrote: > The legacy I2C bootcounter will hereby be removed and eventually > be replaced by a driver model implementation in the follow-up commit. > > The legacy driver has the following drawbacks: > - It's not adhering to the driv

Re: [PATCH 00/15] nand: Add sandbox tests

2023-11-02 Thread Dario Binacchi
On Thu, Nov 2, 2023 at 3:06 PM Sean Anderson wrote: > > On 11/2/23 10:01, Dario Binacchi wrote: > > Sean, All, > > > > On Sun, Oct 29, 2023 at 4:48 AM Sean Anderson wrote: > >> > >> This series tests raw nand flash in sandbox and fixes various bugs > >> discovered in > >> the process. I've tried

Re: [PATCH v2] i2c: designware_i2c: adjust timing calculation

2023-11-02 Thread Heiko Schocher
Hello Heinrich, On 13.10.23 15:09, Heinrich Schuchardt wrote: > In SPL probing of the designware_i2c device on the StarFive VisionFive 2 > board fails with > > dw_i2c: mode 0, ic_clk 100, speed 10, > period 10 rise 1 fall 1 tlow 5 thigh 4 spk 0 > dw_i2c: bad counts. hcnt = -4

Re: [PATCH 03/15] nand: Calculate SYS_NAND_PAGE_COUNT automatically

2023-11-02 Thread Sean Anderson
On 11/2/23 05:53, Dario Binacchi wrote: Sean, All On Sun, Oct 29, 2023 at 4:48 AM Sean Anderson wrote: Contrary to what the help message says, this is the number of pages per block. Calculate it automatically based on SYS_NAND_BLOCK_SIZE and SYS_NAND_PAGE_SIZE. Signed-off-by: Sean Anderson

Re: [PATCH 03/15] nand: Calculate SYS_NAND_PAGE_COUNT automatically

2023-11-02 Thread Dario Binacchi
Sean, All On Thu, Nov 2, 2023 at 3:17 PM Sean Anderson wrote: > > On 11/2/23 05:53, Dario Binacchi wrote: > > Sean, All > > > > On Sun, Oct 29, 2023 at 4:48 AM Sean Anderson wrote: > >> > >> Contrary to what the help message says, this is the number of pages per > >> block. Calculate it automati

Re: [PATCH 00/15] nand: Add sandbox tests

2023-11-02 Thread Dario Binacchi
On Thu, Nov 2, 2023 at 3:13 PM Sean Anderson wrote: > > On 11/2/23 10:08, Dario Binacchi wrote: > > On Thu, Nov 2, 2023 at 3:06 PM Sean Anderson wrote: > >> > >> On 11/2/23 10:01, Dario Binacchi wrote: > >>> Sean, All, > >>> > >>> On Sun, Oct 29, 2023 at 4:48 AM Sean Anderson wrote: > > >>>

Re: [GIT PULL] CLock changes for 2024.01-rc2

2023-11-02 Thread Tom Rini
On Wed, Nov 01, 2023 at 05:03:29PM -0400, Sean Anderson wrote: > The following changes since commit fb428b61819444b9337075f49c72f326f5d12085: > > Merge branch '2023-10-24-assorted-general-fixes-and-updates' (2023-10-24 > 19:12:21 -0400) > > are available in the Git repository at: > > https

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

2023-11-02 Thread Tom Rini
On Thu, Nov 02, 2023 at 06:49:56PM +0800, Leo Liang wrote: > Hi Tom, > > The following changes since commit a803f87202aa48974bdff4d8100464a8288931e4: > > Merge https://source.denx.de/u-boot/custodians/u-boot-mmc (2023-11-01 > 09:44:33 -0400) > > are available in the Git repository at: > >

Re: [PATCH 1/2] bootstd: Handle a few special cases in cmdline_set_arg()

2023-11-02 Thread Tom Rini
On Wed, Oct 25, 2023 at 07:17:36AM +1300, Simon Glass wrote: > Two bugs have appeared: > > - arguments can have an equals sign embedded in them, which must be > considered part of the value > - arguments must fully match the name; partial matches should be > ignored > > Fix these and add a t

Re: Please pull u-boot-i2c

2023-11-02 Thread Tom Rini
On Thu, Nov 02, 2023 at 03:10:44PM +0100, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-i2c: > > The following changes since commit d9650a48234058c645d1a07951c3d2cf129427e6: > > Merge branch '2023-10-28-assorted-platform-updates' (2023-10-28 09:23:27 > -0400) > > are availa

Re: [PATCH v2] bootstd: Make efi_mgr bootmeth work for non-sandbox setups

2023-11-02 Thread Tom Rini
On Sun, Sep 03, 2023 at 10:40:00PM +0200, Mark Kettenis wrote: > Enable the bootflow based on this bootmeth if the BootOrder EFI > variable is set. > > Signed-off-by: Mark Kettenis > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] bootstd: BOOTDEV_SPI_FLASH requires BOOTSTD

2023-11-02 Thread Tom Rini
On Mon, Aug 28, 2023 at 08:49:59PM +0200, Heinrich Schuchardt wrote: > Compiling sandbox_defconfig with CONFIG_BOOTSTD=n fails: > > /usr/bin/ld: drivers/mtd/spi/sf_bootdev.o: > in function `sf_get_bootflow': > /drivers/mtd/spi/sf_bootdev.c:43:(.text+0x96): > undefined reference to

Re: [PATCH] arm: mach-k3: Move K3 common schema.yaml out of board directory

2023-11-02 Thread Francesco Dolcini
Hello Andrew, thanks for the patch. On Wed, Nov 01, 2023 at 01:33:29PM -0500, Andrew Davis wrote: > This file is common for all K3, move it out of board/ directory and > into mach-k3. As we need to change the path in k3-binman.dtsi let's > take this opportunity to switch to absolute paths which ma

Re: [PATCH 2/2] bootstd: cros: Correct condition for read method

2023-11-02 Thread Tom Rini
On Wed, Oct 25, 2023 at 07:17:37AM +1300, Simon Glass wrote: > This has a typo which makes the method inoperable. Correct it so that > 'bootflow read' works correctly for ChromeOS. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signatu

Re: [PATCH 5/7] arm: mach-k3: am62x: Move board selection to mach-k3

2023-11-02 Thread Andrew Davis
On 11/2/23 3:55 AM, Francesco Dolcini wrote: Hello Andrew, On Wed, Nov 01, 2023 at 03:35:28PM -0500, Andrew Davis wrote: Currently each set of board targets from a vendor is selected inside the board directory for that vendor. This has the problem of multiple targets, one from each vendor, bein

Re: [PATCH 1/2] Makefile: Run defconfig files through the C preprocessor

2023-11-02 Thread Nishanth Menon
On 12:05-20231101, Andrew Davis wrote: > This allows us to use some of the normal preprocessor directives inside > defconfig files. Such as #define and #include. > > Signed-off-by: Andrew Davis > Reviewed-by: Simon Glass Reviewed-by: Nishanth Menon -- Regards, Nishanth Menon Key (0xDDB5849D

Re: [PATCH 2/2] configs: Add am62x_beagleplay_* defconfigs

2023-11-02 Thread Nishanth Menon
On 12:05-20231101, Andrew Davis wrote: > Add am62x_beagleplay_r5_defconfig for R5 SPL and > am62x_beagleplay_a53_defconfig for A53 SPL and U-Boot support. > > These defconfigs are composite defconfigs built from the config fragment > board/ti/am62x/beagleplay_*.config applied onto the base > am62x

[PATCH v2] bootstd: Skip over bad device during bootflows scanning

2023-11-02 Thread Tony Dinh
During bootstd scanning for bootdevs, if bootdev_hunt_drv() encounters a device not found error (e.g. ENOENT), let it return a successful status so that bootstd will continue scanning the next devices, not stopping prematurely. Background: During scanning for bootflows, it's possible for bootstd

Re: [PATCH v2 1/2] rng: move platform_get_rng_device() to rng-uclass.c

2023-11-02 Thread Heinrich Schuchardt
On 11/2/23 11:16, Alexey Romanov wrote: The correct declaration place for platform_get_rng_device() function is here. Also, this function is re-implemented to provide the first successfully probed RNG device. Signed-off-by: Alexey Romanov --- drivers/rng/rng-uclass.c | 16 i

[PULL] u-boot-sh/master_common_h_cleanup

2023-11-02 Thread Marek Vasut
The following changes since commit a803f87202aa48974bdff4d8100464a8288931e4: Merge https://source.denx.de/u-boot/custodians/u-boot-mmc (2023-11-01 09:44:33 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-sh.git master_common_h_cleanup for you

Re: [PATCH v3 4/5] dm: core: Modify default for OFNODE_MULTI_TREE

2023-11-02 Thread Tom Rini
On Tue, Sep 12, 2023 at 02:35:03PM -0700, seanedm...@linux.microsoft.com wrote: > From: Sean Edmond > > There is a preference to use the "ofnode" API for FDT fixups > moving forward. The FDT fixup will usually be for the kernel FDT. To > fixup the kernel FDT with the ofnode API, it's required

Re: [PATCH v2 1/2] rng: move platform_get_rng_device() to rng-uclass.c

2023-11-02 Thread Simon Glass
Hi Alexey, On Thu, 2 Nov 2023 at 12:58, Alexey Romanov wrote: > > The correct declaration place for platform_get_rng_device() > function is here. Also, this function is re-implemented to provide > the first successfully probed RNG device. > > Signed-off-by: Alexey Romanov > --- > drivers/rng/rn

Re: [PATCH v2 1/5] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-11-02 Thread Simon Glass
Hi Devarsh, On Tue, 31 Oct 2023 at 13:12, Devarsh Thakkar wrote: > > Add function spl_reserve_video which is a wrapper > around video_reserve to setup video memory and update > the relocation address pointer. > > Setup video memory before page table reservation so that > framebuffer memory gets r

Re: [PATCH v3 3/4] sunxi: binman: Support FIT generation for 32-bit SoCs

2023-11-02 Thread Simon Glass
On Tue, 31 Oct 2023 at 05:18, Samuel Holland wrote: > > Some 32-bit SoCs can use SCP firmware to implement additional PSCI > functionality, such as system suspend. In order to load this firmware > from SPL, we need to generate and use a FIT instead of a legacy image. > > Adjust the binman FIT defi

Re: [PATCH v3 4/4] sunxi: Enable SPL FIT loading for 32-bit SoCs

2023-11-02 Thread Simon Glass
On Tue, 31 Oct 2023 at 05:18, Samuel Holland wrote: > > Now that 32-bit SoCs can load U-Boot proper (and possibly other > firmware) from a FIT, use this method by default. SPL_FIT_IMAGE_TINY is > required to stay within the 24 or 32 KiB SPL size limit on early SoCs; > for consistency, enable it ev

Re: [PATCH v2 2/2] rng: add dm_rng_read_default() helper

2023-11-02 Thread Simon Glass
Hi Alexey, On Thu, 2 Nov 2023 at 12:57, Alexey Romanov wrote: > > Add dm_rng_read_default() function, which obtain a series > of random bytes. In some cases, such function would be > useful because it allows the caller to abstract away from > RNG device. It should not do that. It should create a

Re: [PATCH v2 4/5] video: Skip framebuffer reservation if already reserved

2023-11-02 Thread Simon Glass
On Tue, 31 Oct 2023 at 13:12, Devarsh Thakkar wrote: > > Skip framebufer reservation if it was already reserved > from previous stage and whose information was passed > using a bloblist. > > Signed-off-by: Devarsh Thakkar > Reviewed-by: Simon Glass > --- > V2: > - Add debug prints > - Fix commen

Re: [PATCH v2 5/5] video: Fill video handoff in video post probe

2023-11-02 Thread Simon Glass
Hi Devarsh, On Tue, 31 Oct 2023 at 13:12, Devarsh Thakkar wrote: > > Fill video handoff fields in video_post_probe > as at this point we have full framebuffer related framebuffer-related > information. > > Also fill all the fields available in video hand-off > struct as those were missing earli

Re: [PATCH v2 3/5] common/board_f: Catch bloblist before starting resevations

2023-11-02 Thread Simon Glass
Hi Devarsh, On Tue, 31 Oct 2023 at 13:12, Devarsh Thakkar wrote: > > Start reservations needed for init sequence only after catching > bloblists from previous stage. > > This is to avoid catching bloblists in the middle causing > gaps while u-boot is reserving. > > Adjust the relocaddr as per vid

  1   2   >