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

2023-11-04 Thread Heinrich Schuchardt
On 11/2/23 13:10, Randolph wrote: 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

Re: [PATCH 1/1] rng: detect RISC-V Zkr RNG device in bind method

2023-11-04 Thread Heinrich Schuchardt
On 11/4/23 21:42, Simon Glass wrote: Hi Heinrich, On Sat, 4 Nov 2023 at 06:51, Heinrich Schuchardt wrote: The existence of devices should be checked in the bind method and not in the probe method. Adjust the RISC-V Zkr RNG driver accordingly. Use ENOENT (and not ENODEV) to signal that the

[PATCH] arm: Enable SYS_THUMB_BUILD on AT91

2023-11-04 Thread Sean Anderson
Several AT91 boards are quite close to their SPL size limit. For example, sama5d27_wlsom1_ek_mmc is just 173 bytes short of its limit and doesn't even fit with older GCCs. All AT91 processors should have thumb support. Enable SYS_THUMB_BUILD. This shrinks SPL by around 30%. Signed-off-by: Sean

Re: [PATCH] arm64: imx8mp: Inhibit DTC warning on DH i.MX8MP DHCOM rev.100 DTO

2023-11-04 Thread Sean Anderson
On 11/4/23 20:04, Marek Vasut wrote: Inhibit DTC warning in imx8mp-dhcom-pdk3-overlay-rev100.dts: " arch/arm/dts/imx8mp-dhcom-pdk3-overlay-rev100.dtbo: Warning (reg_format): /fragment@0/__overlay__:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

[PATCH] arm64: imx8mp: Inhibit DTC warning on DH i.MX8MP DHCOM rev.100 DTO

2023-11-04 Thread Marek Vasut
Inhibit DTC warning in imx8mp-dhcom-pdk3-overlay-rev100.dts: " arch/arm/dts/imx8mp-dhcom-pdk3-overlay-rev100.dtbo: Warning (reg_format): /fragment@0/__overlay__:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) arch/arm/dts/imx8mp-dhcom-pdk3-overlay-rev100.dtbo:

Re: [PATCH 01/20] m68k: Remove CONFIG_FSLDMAFEC

2023-11-04 Thread Angelo Dureghello
Hi Tom, Reviewed by: Angelo Dureghello Thanks for the cleanup, m68k boards build fine. fsl_mcdmafec driver is still referenced in arch/m68k/dts/mcf54xx.dtsi, (from compatible field) but no board is including it. You can remove the dtsi too if you want. Regards, angelo On 01/11/23 5:28 PM,

Re: [PATCH v3 0/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-11-04 Thread Simon Glass
Hi Heinrich, On Sat, 4 Nov 2023 at 20:36, Heinrich Schuchardt wrote: > > On 11/4/23 21:45, Simon Glass wrote: > > Hi Andre, > > > > On Sat, 4 Nov 2023 at 17:13, Andre Przywara wrote: > >> > >> On Fri, 3 Nov 2023 13:38:58 -0600 > >> Simon Glass wrote: > >> > >> Hi Simon, > >> > >>> Hi Heinrich,

Re: [PATCH 1/1] dm: fix misleading messages

2023-11-04 Thread Simon Glass
Hi Heinrich, On Sat, 4 Nov 2023 at 20:00, Heinrich Schuchardt wrote: > > On 11/4/23 21:45, Simon Glass wrote: > > Hi Heinrich, > > > > On Sat, 4 Nov 2023 at 18:47, Heinrich Schuchardt > > wrote: > >> > >> When no RNG device exists for a driver referenced via U_BOOT_DRVINFO() we > >> get

Re: [PATCH] sandbox: Close file after mmaping it

2023-11-04 Thread Simon Glass
On Sat, 4 Nov 2023 at 19:57, Sean Anderson wrote: > > After opening pathname, we must close ifd once we are done with it. > > Fixes: b9274095c2c ("sandbox: Add a way to map a file into memory") > Signed-off-by: Sean Anderson > --- > > arch/sandbox/cpu/os.c | 15 ++- > 1 file

[PATCH v2 2/2] pico-pi-imx6ul: Convert to watchdog driver model

2023-11-04 Thread Fabio Estevam
From: Fabio Estevam Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused the 'reset' command in U-Boot to not cause a board reset. Fix it by switching to the watchdog driver model via sysreset, which is the preferred method for implementing the watchdog reset.

[PATCH v2 1/2] pico-pi-imx6ul: Connvert to DM_SERIAL

2023-11-04 Thread Fabio Estevam
From: Fabio Estevam The conversion to DM_SERIAL is mandatory, so select this option. Signed-off-by: Fabio Estevam --- Changes since v1: - None configs/pico-pi-imx6ul_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/pico-pi-imx6ul_defconfig

[PATCH 2/2] pico-pi-imx6ul: Convert to watchdog driver model

2023-11-04 Thread Fabio Estevam
From: Fabio Estevam Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused the 'reset' command in U-Boot to not cause a board reset. Fix it by switching to the watchdog driver model via sysreset, which is the preferred method for implementing the watchdog reset.

[PATCH 1/2] pico-pi-imx6ul: Connvert to DM_SERIAL

2023-11-04 Thread Fabio Estevam
From: Fabio Estevam The conversion to DM_SERIAL is mandatory, so select this option. Signed-off-by: Fabio Estevam --- configs/pico-pi-imx6ul_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/pico-pi-imx6ul_defconfig b/configs/pico-pi-imx6ul_defconfig index

[PATCH] m68k: remove common.h references

2023-11-04 Thread Angelo Dureghello
In one case (mcffec.c), had to replace common.h include with config.h, to avoid CFG_SYS_CACHE_ACR0 redefine-order conflict. Signed-off-by: Angelo Dureghello --- drivers/net/mcffec.c| 2 +- drivers/net/mcfmii.c| 1 - drivers/rtc/mcfrtc.c| 2 -- drivers/serial/serial_mcf.c

Re: uboot reports adding disk failed(EFI_NOT_FOUND) and first disk is gone in next scsi scan

2023-11-04 Thread Heinrich Schuchardt
Am 4. November 2023 21:43:52 OEZ schrieb Simon Glass : >Hi Richard, > >+Heinrich as I think this is an EFI bug. > >On Thu, 2 Nov 2023 at 19:37, Hongxing Zhu wrote: >> >> Hi Simon: >> I found that the EFI complained that the disk install path is not updated >> for the second disk. >> The

Adding support for Orange Pi Zero 3

2023-11-04 Thread electricworry
I would like to contribute improvements u-boot to enable support for the Orange Pi Zero 3 board. I have already gained a good understanding of the project and the standards for changes, and so I have made modifications and tested them on my board. Before submitting patches for review I've got a

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

2023-11-04 Thread Sean Anderson
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 avoid dangling pointers. Signed-off-by: Sean Anderson Reviewed-by:

[PATCH v2 15/15] test: spl: Add a test for NAND

2023-11-04 Thread Sean Anderson
Add a SPL test for the NAND load method. We use some different functions to do the writing from the main test since things like nand_write_skip_bad aren't available in SPL. We disable BBT scanning, since scan_bbt is only populated when not in SPL. We use nand_spl_loaders.c as it seems to be

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

2023-11-04 Thread Sean Anderson
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, create two devices to test with. The first is a very small device with basic

[PATCH v2 13/15] arch: sandbox: Add function to create temporary files

2023-11-04 Thread Sean Anderson
When working with sparse data buffers that may be larger than the address space, it is convenient to work with files instead. Add a function to create temporary files of a certain size. Signed-off-by: Sean Anderson --- (no changes since v1) arch/sandbox/cpu/os.c | 17 +

[PATCH v2 09/15] mtd: Rename SPL_MTD_SUPPORT to SPL_MTD

2023-11-04 Thread Sean Anderson
Rename SPL_MTD_SUPPORT to SPL_MTD in order to match MTD. This allows using CONFIG_IS_ENABLED to test for MTD support. Signed-off-by: Sean Anderson --- (no changes since v1) common/spl/Kconfig| 2 +- configs/am335x_baltos_defconfig | 2 +-

[PATCH v2 12/15] nand: Allow reinitialization

2023-11-04 Thread Sean Anderson
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 Reviewed-by: Dario Binacchi --- (no changes since v1) drivers/mtd/nand/raw/nand.c | 40 ++---

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

2023-11-04 Thread Sean Anderson
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 Reviewed-by: Dario Binacchi --- (no changes since v1) drivers/mtd/nand/raw/nand.c | 2 -- drivers/mtd/onenand/onenand_uboot.c | 2

[PATCH v2 06/15] spl: nand: Set bl_len to page size

2023-11-04 Thread Sean Anderson
Since commit 34793598c83 ("mtd: nand: mxs_nand_spl: Remove the page aligned access") there are no longer any users of nand_get_mtd. However, it is still important to know what the page size is so we can allocate a large-enough buffer. If the image size is not page-aligned, we will go off the end

[PATCH v2 05/15] spl: legacy: Honor bl_len when decompressing

2023-11-04 Thread Sean Anderson
When allocating a buffer to load compressed data into, we need to ensure we have enough space for over- and under-flow due to alignment. Otherwise we will clobber the malloc bookkeeping data. Calculate the correct amount of overhead and use it when determining the size. Signed-off-by: Sean

[PATCH v2 07/15] cmd: nand: Map memory before accessing it

2023-11-04 Thread Sean Anderson
In sandbox, all memory must be mapped before accessing it. Do so for the nand command. Signed-off-by: Sean Anderson --- (no changes since v1) cmd/nand.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/cmd/nand.c b/cmd/nand.c index

[PATCH v2 08/15] spl: nand: Map memory before accessing it

2023-11-04 Thread Sean Anderson
In sandbox we must map memory before accessing it. Do so for the NAND load method. Signed-off-by: Sean Anderson --- (no changes since v1) common/spl/spl_nand.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c index

[PATCH v2 03/15] nand: Calculate SYS_NAND_BLOCK_PAGES (neé SYS_NAND_PAGE_COUNT) automatically

2023-11-04 Thread Sean Anderson
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. To better reflect its semantics, rename it to SYS_NAND_BLOCK_PAGES. Signed-off-by: Sean Anderson --- Changes in v2: - Rename

[PATCH v2 02/15] nand: Don't dereference NULL manufacturer_desc

2023-11-04 Thread Sean Anderson
When no manufacturer is matched, manufacturer_desc is NULL. Avoid dereferencing it in that case. Fixes: 4e67c571252 ("mtd,ubi,ubifs: sync with linux v3.15") Signed-off-by: Sean Anderson Reviewed-by: Michael Trimarchi --- (no changes since v1) drivers/mtd/nand/raw/nand_base.c | 7 ++- 1

[PATCH v2 01/15] spl: nand: Fix NULL-pointer dereference

2023-11-04 Thread Sean Anderson
spl_nand_fit_read unconditionally accesses load->priv. Ensure it is set. Fixes: 00e180cc513 ("spl: nand: support loading i.MX container format file") Signed-off-by: Sean Anderson --- Changes in v2: - Don't set load->priv for spl_nand_legacy_read since it doesn't use it. common/spl/spl_nand.c

[PATCH v2 04/15] nand: spl_loaders: Only read enough pages to load the image

2023-11-04 Thread Sean Anderson
All other implementations of nand_spl_load_image only read as many pages as are necessary to load the image. However, nand_spl_loaders.c loads the full block. Align it with other load functions so that it is easier to determine how large of a load buffer we need. Signed-off-by: Sean Anderson

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

2023-11-04 Thread Sean Anderson
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 pretty minimal. Future work could test the rest of the nand API as well as

Re: [PATCH v3 0/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-11-04 Thread Heinrich Schuchardt
On 11/4/23 21:45, Simon Glass wrote: Hi Andre, On Sat, 4 Nov 2023 at 17:13, Andre Przywara wrote: On Fri, 3 Nov 2023 13:38:58 -0600 Simon Glass wrote: Hi Simon, Hi Heinrich, On Wed, 1 Nov 2023 at 14:20, Heinrich Schuchardt wrote: On 11/1/23 19:05, Andre Przywara wrote: On Tue, 31

Re: [PATCH 1/1] dm: fix misleading messages

2023-11-04 Thread Heinrich Schuchardt
On 11/4/23 21:45, Simon Glass wrote: Hi Heinrich, On Sat, 4 Nov 2023 at 18:47, Heinrich Schuchardt wrote: When no RNG device exists for a driver referenced via U_BOOT_DRVINFO() we get messages like: No match for driver 'arm-rndr' Some drivers were not found This is misleading as

[PATCH] sandbox: Close file after mmaping it

2023-11-04 Thread Sean Anderson
After opening pathname, we must close ifd once we are done with it. Fixes: b9274095c2c ("sandbox: Add a way to map a file into memory") Signed-off-by: Sean Anderson --- arch/sandbox/cpu/os.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git

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

2023-11-04 Thread Sean Anderson
On 11/2/23 10:18, Dario Binacchi wrote: 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

Re: [PATCH 1/1] dm: fix misleading messages

2023-11-04 Thread Simon Glass
Hi Heinrich, On Sat, 4 Nov 2023 at 18:47, Heinrich Schuchardt wrote: > > When no RNG device exists for a driver referenced via U_BOOT_DRVINFO() we > get messages like: > > No match for driver 'arm-rndr' > Some drivers were not found > > This is misleading as it is not the driver that was

Re: [PATCH 1/1] dm: Do not enable debug messages by default

2023-11-04 Thread Simon Glass
On Sat, 4 Nov 2023 at 18:40, Heinrich Schuchardt wrote: > > CONFIG_DM_WARN has a text indicating that these messages should only > provided when debugging. This implies that the setting must be default no. > > We should still create debug messages. > > Reported-by: Andre Przywara >

Re: [PATCH] doc: build: fix wrongly written targests instead of targets

2023-11-04 Thread Simon Glass
On Sat, 4 Nov 2023 at 14:39, Milan P. Stanić wrote: > > Signed-off-by: Milan P. Stanić > --- > doc/build/gcc.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass

Re: [PATCH v3 0/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-11-04 Thread Simon Glass
Hi Andre, On Sat, 4 Nov 2023 at 17:13, Andre Przywara wrote: > > On Fri, 3 Nov 2023 13:38:58 -0600 > Simon Glass wrote: > > Hi Simon, > > > Hi Heinrich, > > > > On Wed, 1 Nov 2023 at 14:20, Heinrich Schuchardt > > wrote: > > > > > > On 11/1/23 19:05, Andre Przywara wrote: > > > > On Tue, 31

Re: U-boot env in binary format

2023-11-04 Thread Simon Glass
On Wed, 1 Nov 2023 at 18:58, SIMON BABY wrote: > > Thanks Simon. > I will try this command. By any chance how do I find the environment > partition size in my target? (please do try to avoid top-posting on the ML, and keep the ML copied) I think this depends on your platform, but you might

Re: uboot reports adding disk failed(EFI_NOT_FOUND) and first disk is gone in next scsi scan

2023-11-04 Thread Simon Glass
Hi Richard, +Heinrich as I think this is an EFI bug. On Thu, 2 Nov 2023 at 19:37, Hongxing Zhu wrote: > > Hi Simon: > I found that the EFI complained that the disk install path is not updated for > the second disk. > The install path is “EFI: installed device path >

Re: [PATCH 1/4] mkimage: also honour -B even without external data

2023-11-04 Thread Simon Glass
Hi Rasmus, On Fri, 29 Sept 2023 at 07:16, Sean Anderson wrote: > > On 9/28/23 03:10, Rasmus Villemoes wrote: > > On 27/09/2023 21.02, Sean Anderson wrote: > >> On 9/19/23 07:37, Rasmus Villemoes wrote: > >>> In some cases, using the "external data" feature is impossible or > >>> undesirable, but

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

2023-11-04 Thread Simon Glass
Hi Devarsh, On Fri, 3 Nov 2023 at 11:48, Devarsh Thakkar wrote: > > Hi Simon, > > Thanks for the review. > > On 03/11/23 04:16, Simon Glass wrote: > > Hi Devarsh, > > > > On Tue, 31 Oct 2023 at 13:12, Devarsh Thakkar wrote: > >> > >> Add function spl_reserve_video which is a wrapper > >> around

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-11-04 Thread Simon Glass
Hi Mark, On Wed, 25 Oct 2023 at 08:05, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Tue, 24 Oct 2023 12:34:39 -0700 > > > > > This mechanism of retrieving the DTB is also used on the apple M1 I > > > think, and any other board where we're booting U-Boot as a drop-in for > > > the

Re: Need advise with u-boot on SH-7785LCR

2023-11-04 Thread Simon Glass
Hi John, On Sat, 4 Nov 2023 at 13:59, John Paul Adrian Glaubitz wrote: > > Hello! > > I am Debian's maintainer for the SuperH (sh4) port as well as one of the > upstream > maintainers of SuperH support in the kernel. I own various SuperH boards with > one > of them being the Renesas SH-7785LCR

Re: [PATCH 1/1] rng: detect RISC-V Zkr RNG device in bind method

2023-11-04 Thread Simon Glass
Hi Heinrich, On Sat, 4 Nov 2023 at 06:51, Heinrich Schuchardt wrote: > > The existence of devices should be checked in the bind method and not in > the probe method. Adjust the RISC-V Zkr RNG driver accordingly. > > Use ENOENT (and not ENODEV) to signal that the device is not available. > >

[PATCH v2 3/3] arm64: boot: Support Flat Image Tree

2023-11-04 Thread Simon Glass
Add a script which produces a Flat Image Tree (FIT), a single file containing the built kernel and associated devicetree files. Compression defaults to gzip which gives a good balance of size and performance. The files compress from about 86MB to 24MB using this approach. The FIT can be used by

[PATCH v2 2/3] arm: boot: Use double quotes for image name

2023-11-04 Thread Simon Glass
The use of single quotes in the image name causes them to appear in the image description when the uImage is created. Use double quotes, to avoid this. Signed-off-by: Simon Glass --- Changes in v2: - Split double-quote change out into its own patch scripts/Makefile.lib | 2 +- 1 file changed,

[PATCH v2 1/3] kbuild: arm64: Add BOOT_TARGETS variable

2023-11-04 Thread Simon Glass
Add a new variable containing a list of possible targets. Mark them as phony. This matches the approach taken for arch/arm Signed-off-by: Simon Glass --- (no changes since v1) arch/arm64/Makefile | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Makefile

[PATCH v2 0/3] arm64: Add a build target for Flat Image Tree

2023-11-04 Thread Simon Glass
Flat Image Tree (FIT) is a widely used file format for packaging a kernel and associated devicetree files[1]. It is not specific to any one bootloader, as it is supported by U-Boot, coreboot, Linuxboot, Tianocore and Barebox. This series adds support for building a FIT as part of the kernel

Re: [PATCH V2 2/2] arm: mach-k3: Move TI dummy keys out of board folder

2023-11-04 Thread Francesco Dolcini
On Fri, Nov 03, 2023 at 09:45:11PM -0500, Nishanth Menon wrote: > This file is used to emulate customer keys on TI development board > ecosystems, move it out of board/ directory and into mach-k3. And > change the relative paths to absolute paths in the binman paths. > > While at it, drop the

Re: [PATCH V2 1/2] arm: mach-k3: Move K3 degenerate keys out of board folder

2023-11-04 Thread Francesco Dolcini
On Fri, Nov 03, 2023 at 09:45:10PM -0500, Nishanth Menon wrote: > This file is common for all of K3, move it out of board/ directory and > into mach-k3. And change the relative paths to absolute paths in the > binman paths. > > While at it, drop the reference in verdin-binman file which is >

[PATCH 1/1] dm: fix misleading messages

2023-11-04 Thread Heinrich Schuchardt
When no RNG device exists for a driver referenced via U_BOOT_DRVINFO() we get messages like: No match for driver 'arm-rndr' Some drivers were not found This is misleading as it is not the driver that was not found, it is the device that is not found. Correct the messages. Reported-by:

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

2023-11-04 Thread Igor Prusov
On Sat, Nov 04, 2023 at 02:40:34PM -0400, Sean Anderson wrote: > On 11/4/23 14:09, Igor Prusov wrote: > > On Sat, Nov 04, 2023 at 11:24:32AM -0400, Sean Anderson wrote: > > > On 11/2/23 08:20, Igor Prusov wrote: > > > > This adds dump function to struct clk_ops which should replace > > > >

[PATCH 1/1] dm: Do not enable debug messages by default

2023-11-04 Thread Heinrich Schuchardt
CONFIG_DM_WARN has a text indicating that these messages should only provided when debugging. This implies that the setting must be default no. We should still create debug messages. Reported-by: Andre Przywara Signed-off-by: Heinrich Schuchardt --- drivers/core/Kconfig | 1 -

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

2023-11-04 Thread Sean Anderson
On 11/4/23 14:09, Igor Prusov wrote: On Sat, Nov 04, 2023 at 11:24:32AM -0400, Sean Anderson wrote: On 11/2/23 08:20, Igor Prusov wrote: 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

Re: [PATCH 1/1] rng: fix ARMv8.5 RNDR driver

2023-11-04 Thread Heinrich Schuchardt
On 11/4/23 19:13, Andre Przywara wrote: On Sat, 4 Nov 2023 09:00:07 +0200 Heinrich Schuchardt wrote: Hi Heinrich, many thanks for finding and fixing this! In different parts of our code we assume that the first RNG device is the one to be used. Therefore it is preferable to detect the

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

2023-11-04 Thread Igor Prusov
On Sat, Nov 04, 2023 at 11:24:32AM -0400, Sean Anderson wrote: > On 11/2/23 08:20, Igor Prusov wrote: > > 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.

Re: [PATCH v3 0/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-11-04 Thread Andre Przywara
On Fri, 3 Nov 2023 13:38:58 -0600 Simon Glass wrote: Hi Simon, > Hi Heinrich, > > On Wed, 1 Nov 2023 at 14:20, Heinrich Schuchardt > wrote: > > > > On 11/1/23 19:05, Andre Przywara wrote: > > > On Tue, 31 Oct 2023 14:55:50 +0200 > > > Heinrich Schuchardt wrote: > > > > > > Hi Heinrich, > >

Re: [PATCH 1/1] rng: fix ARMv8.5 RNDR driver

2023-11-04 Thread Andre Przywara
On Sat, 4 Nov 2023 09:00:07 +0200 Heinrich Schuchardt wrote: Hi Heinrich, many thanks for finding and fixing this! > In different parts of our code we assume that the first RNG device is the > one to be used. Therefore it is preferable to detect the availability of > the RNDR register already

[PATCH 2/2] arm64: imx8mp: Enable TCP, IPv6, wget on DH i.MX8MP DHCOM

2023-11-04 Thread Marek Vasut
Enable support for TCP protocol, wget, and IPv6 on this platform. The former two allow users download payload into the U-Boot from a web server, which may be more convenient or easier to set up than TFTP server. The later is enabled to future proof the IP stack on this platform. Signed-off-by:

[PATCH 1/2] arm: imx6: Enable TCP, IPv6, wget on DH i.MX6 DHCOM

2023-11-04 Thread Marek Vasut
Enable support for TCP protocol, wget, and IPv6 on this platform. The former two allow users download payload into the U-Boot from a web server, which may be more convenient or easier to set up than TFTP server. The later is enabled to future proof the IP stack on this platform. Signed-off-by:

[PATCH 2/2] arm: stm32: Limit u-boot.itb size to 0x160000 bytes on DH STM32MP15 DHSOM

2023-11-04 Thread Marek Vasut
The maximum size of u-boot.itb in SPI NOR on DH STM32MP15 DHSOM is 0x16 . Define this size in U-Boot config to prevent misconfigured builds from emitting larger u-boot.itb than the one which fits the SPI NOR area reserved for the blob. The SPI NOR layout is as follows: 0x00_..0x03_

[PATCH 1/2] arm: stm32: Enable TCP, IPv6, wget on DH STM32MP15 DHSOM

2023-11-04 Thread Marek Vasut
Enable support for TCP protocol, wget, and IPv6 on this platform. The former two allow users download payload into the U-Boot from a web server, which may be more convenient or easier to set up than TFTP server. The later is enabled to future proof the IP stack on this platform. Signed-off-by:

[PATCH 4/5] patman: Avoid using func_test at top level

2023-11-04 Thread Simon Glass
Import this only when it is needed, since it is not present when installed via 'pip install'. Signed-off-by: Simon Glass Fixes: https://source.denx.de/u-boot/u-boot/-/issues/26 --- tools/patman/__main__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/patman/__main__.py

[PATCH 1/5] patman: Split out arg parsing into its own file

2023-11-04 Thread Simon Glass
Move this code into a separate cmdline module, as is done with the other tools. Use the same HAS_TESTS check as buildman Signed-off-by: Simon Glass --- tools/patman/__main__.py | 116 +- tools/patman/cmdline.py | 147 +++ 2

[PATCH 5/5] patman: Correct Python 3.6 behaviour

2023-11-04 Thread Simon Glass
The importlib_resources import is not actually used. Fix this so that patman can run on Python 3.6 to some extent, once 'pip3 install importlib-resources' has been run. Signed-off-by: Simon Glass --- tools/patman/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 3/5] patman: Correct easy pylint warnings in __main__

2023-11-04 Thread Simon Glass
Tidy up the code a little to reduce the number of pylint warnings. Signed-off-by: Simon Glass --- tools/patman/__main__.py | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tools/patman/__main__.py b/tools/patman/__main__.py index

[PATCH 2/5] patman: Move the main program into a function

2023-11-04 Thread Simon Glass
Add a new run_patman() function to hold the main logic. Signed-off-by: Simon Glass --- tools/patman/__main__.py | 127 +-- 1 file changed, 67 insertions(+), 60 deletions(-) diff --git a/tools/patman/__main__.py b/tools/patman/__main__.py index

Re: [PATCH RESEND 5/5] clk: ccf: call clock provided ops directly for endisable()

2023-11-04 Thread Sean Anderson
On 11/1/23 16:33, Yang Xiwen wrote: On 11/2/2023 2:50 AM, Yang Xiwen wrote: On 11/2/2023 2:19 AM, Sean Anderson wrote: On 8/17/23 13:04, Yang Xiwen via B4 Relay wrote: From: Yang Xiwen Calling into CCF framework will cause a clock being enabled twice instead of once (clk->enable_count

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

2023-11-04 Thread Sean Anderson
On 11/2/23 08:20, Igor Prusov wrote: 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:

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

2023-11-04 Thread Sean Anderson
On 11/2/23 08:20, Igor Prusov wrote: 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

Re: [PATCH 2/3] spl: fit: Add support for LZO compressed images

2023-11-04 Thread Sean Anderson
On 11/3/23 10:34, Loic Poulain wrote: Signed-off-by: Loic Poulain Please add an appropriate commit message. --- common/spl/spl_fit.c | 10 ++ include/spl.h| 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_fit.c

Re: [PATCH 3/3] spl: fit: Load compressed blob to heap buffer

2023-11-04 Thread Sean Anderson
On 11/3/23 10:34, Loic Poulain wrote: CONFIG_SYS_LOAD_ADDR is usually configured as the address where the kernel should be loaded at. It can be problematic to use it as a generic temporary buffer for FIT compressed blobs. An example is when the image is a compressed kernel with load address

Re: [PATCH 1/3] spl: fit: Discard decompression if not supported

2023-11-04 Thread Sean Anderson
On 11/3/23 10:34, Loic Poulain wrote: And simplify further decompression testing. Signed-off-by: Loic Poulain --- common/spl/spl_fit.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index

[PATCH] net: wget: Support non-default HTTP port

2023-11-04 Thread Marek Vasut
Currently the wget command is hard wired to HTTP port 80. This is inconvenient, as it is extremely easy to start trivial HTTP server as an unprivileged user using e.g. python http module to serve the files, but such a server has to run on one of the higher ports: " $ python3 -m http.server -d

[PATCH] doc: build: fix wrongly written targests instead of targets

2023-11-04 Thread Milan P . Stanić
Signed-off-by: Milan P. Stanić --- doc/build/gcc.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst index 23501dea37..3c64657727 100644 --- a/doc/build/gcc.rst +++ b/doc/build/gcc.rst @@ -66,7 +66,7 @@ For building U-Boot on Alpine Linux

Re: [PATCH 06/15] board: ti: j721e: evm: Drop board based serdes initialization

2023-11-04 Thread Kumar, Udit
On 11/4/2023 4:05 PM, Kumar, Udit wrote: On 11/3/2023 6:07 AM, Nishanth Menon wrote: Serdes initialization should be compile flag based instead of being eeprom based. Signed-off-by: Nishanth Menon ---   board/ti/j721e/evm.c | 10 ++   1 file changed, 2 insertions(+), 8 deletions(-)

[PATCH] rockchip: rk3588-rock-5b: Enable CONFIG_PCI_INIT_R to support EFI networking

2023-11-04 Thread né Peres
When u-boot chainloads an EFI bootloader such as iPXE, we want to have already initialized the PCI subsystem so that network driver is loaded and ready to use by the bootloader. Fixes: 191ece249a96 ("rockchip: rk3588-rock-5b: Enable support for PCIe SATA cards") Signed-off-by: Martin Roukala (né

Need advise with u-boot on SH-7785LCR

2023-11-04 Thread John Paul Adrian Glaubitz
Hello! I am Debian's maintainer for the SuperH (sh4) port as well as one of the upstream maintainers of SuperH support in the kernel. I own various SuperH boards with one of them being the Renesas SH-7785LCR board which used to be supported by u-boot up to including v2019.01. My board is

Re: [PATCH v9 1/8] power: pmic: palmas: support TI TPS65913 PMIC

2023-11-04 Thread Tom Rini
On Fri, Oct 27, 2023 at 11:26:08AM +0300, Svyatoslav Ryhel wrote: > Existing PALMAS PMIC driver is fully compatible with TI TPS65913 > PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS > TF701T. TPS65913 shares same structure of regulators like TPS659038 > so data can be reused. > >

Re: [PATCH v3 01/16] ARM: dts: p1801-t: separate from common transformers tree

2023-11-04 Thread Tom Rini
On Tue, Oct 03, 2023 at 09:36:32AM +0300, Svyatoslav Ryhel wrote: > P1801-T has significant differences (hdmi panel and backlight, > own power supply system) which makes use of common transformer > device tree complicated. > > Signed-off-by: Svyatoslav Ryhel For the series, applied to

Re: [PATCH v4 1/6] sysreset: tegra: create arch specific sysreset driver

2023-11-04 Thread Tom Rini
On Tue, Oct 24, 2023 at 10:49:03AM +0300, Svyatoslav Ryhel wrote: > Tegra uses built in Power Management Controller (PMC) to perform > CPU reset. Code to perform this was located in mach-tegra, so lest > create DM driver to handle this. > > Signed-off-by: Svyatoslav Ryhel For the series,

Re: [PATCH v3 2/2] mmc: tegra: get default-tap and default-trim from device tree

2023-11-04 Thread Tom Rini
On Tue, Oct 03, 2023 at 09:33:52AM +0300, Svyatoslav Ryhel wrote: > Default-tap and default-trim values are used for eMMC setup > mostly on T114+ devices. As for now, those values are hardcoded > for T210 and ignored for all other Tegra generations. Fix this > by passing tap and trim values from

Re: [PATCH v3 1/2] ARM: tegra210: set default-tap and default-trim values in sdhci nodes

2023-11-04 Thread Tom Rini
On Tue, Oct 03, 2023 at 09:33:51AM +0300, Svyatoslav Ryhel wrote: > Tegra MMC driver has hardcoded tap and trim values as for now. > Set default-tap and default-trim values in sdhci nodes to avoid > regressions in case Tegra MMC driver is upated to use dts values. > > Signed-off-by: Svyatoslav

Re: Please pull qcom-next-20231103

2023-11-04 Thread Tom Rini
On Fri, Nov 03, 2023 at 01:49:46PM +, Caleb Connolly wrote: > Hi Tom, > > As discussed, here is the maintainers update for Snapdragon. Sumit Garg who > maintains a few of the Qualcomm platforms in U-boot has also been added as > a reviewer. > > The following changes since commit

Re: [GIT PULL] Please pull u-boot-dfu-20231103

2023-11-04 Thread Tom Rini
On Fri, Nov 03, 2023 at 02:34:35PM +0100, Mattijs Korpershoek wrote: > Hi Tom, > > Here is my first pull request of u-boot-dfu which includes: > > - Fix CRC chunk size in fastboot > - Make size optional for dfu on mmc > > The CI job is at >

[PATCH V2 2/4] board: beagle: Add BeagleBone AI-64 support

2023-11-04 Thread Nishanth Menon
Add base support for BeagleBone AI-64 board support. Further information at https://beagleboard.org/ai-64 Signed-off-by: Nishanth Menon --- arch/arm/mach-k3/Kconfig |1 + board/beagle/beagleboneai64/Kconfig | 59 + board/beagle/beagleboneai64/Makefile

Re: [PATCH] pico-imx7d: Remove board_phy_config()

2023-11-04 Thread Szőke Kálmán Benjamin
Other pico SoMs still has board_phy_config() also, you should remove it from them, too.pico-imx8mq:  https://github.com/u-boot/u-boot/blob/master/board/technexion/pico-imx8mq/pico-imx8mq.c#L111pico-imx6ul:  

[PATCH V2 1/4] arm: dts: Add k3-j721e-beagleboneai64

2023-11-04 Thread Nishanth Menon
From: Robert Nelson BeagleBoard.org BeagleBone AI-64 is an open source hardware single board computer based on the Texas Instruments TDA4VM SoC featuring dual-core 2.0GHz Arm Cortex-A72 processor, C7x+MMA and 2 C66x floating-point VLIW DSPs, 3x dual ARM Cortex-R5 co-processors, 2x 6-core

[PATCH v3 1/1] sunxi: H616: add LPDDR4 DRAM support

2023-11-04 Thread Mikhail Kalashnikov
From: iuncuim The H616 SoC family has support for several types of DRAM: DDR3, LPDDR3, DDR4 and LPDDR4. At the moment, the driver only supports DDR3 and LPDDR3 memory. Let's extend the driver to support the LPDDR4 memory. This type of memory widely used in device with T507(-H) SoC and new

[PATCH v3 0/1] sunxi: H616: add LPDDR4 support

2023-11-04 Thread Mikhail Kalashnikov
From: iuncuim At the moment, the driver only supports DDR3 and LPDDR3 memory. Add support for a new type DRAM. These changes have been successfully tested by me with orangepi zero3 4GB (DRAM: Rayson RS1G32LO4D2BDS-53BT). This patch should be applied after this:

Re: [PATCH] pico-imx7d: Remove board_phy_config()

2023-11-04 Thread Fabio Estevam
On Sat, Nov 4, 2023 at 7:45 AM Szőke Kálmán Benjamin wrote: > > Other pico SoMs still has board_phy_config() also, you should remove it from > them, too. board_phy_config() could probably be removed from these boards too. To be sure, someone has to test it. If there is a problem with the

Re: [PATCH 06/15] board: ti: j721e: evm: Drop board based serdes initialization

2023-11-04 Thread Kumar, Udit
On 11/3/2023 6:07 AM, Nishanth Menon wrote: Serdes initialization should be compile flag based instead of being eeprom based. Signed-off-by: Nishanth Menon --- board/ti/j721e/evm.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/board/ti/j721e/evm.c

Re: [PATCH 03/15] board: ti: j721e: evm: Drop board check for ESM

2023-11-04 Thread Kumar, Udit
On 11/3/2023 6:07 AM, Nishanth Menon wrote: When config is enabled, the esm dt probe makes sense. Simplify by dropping board specific checks. Signed-off-by: Nishanth Menon --- board/ti/j721e/evm.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git

Re: [PATCH 01/15] arm: mach-k3: j721e: Improve support for UDA FS

2023-11-04 Thread Kumar, Udit
On 11/3/2023 6:07 AM, Nishanth Menon wrote: Commit 5019170970ad ("arch: arm: mach-k3: j721e: add support for UDA FS") introduced basic UDA FS support, however, we can Take approach similar to commit 0f1c1e8b368b ("arm: mach-k3: am625: Add support for UDA FS"). While boot partition support with

Re: [PATCH v3 1/1] sunxi: H616: add LPDDR4 DRAM support

2023-11-04 Thread Jernej Škrabec
Hi Mikhail, I have some notes on LPDDR4 from a long time ago. It mostly matches to your code, but please take a look at comments below. Note that I have extra code, not included in this patch, for mctl_phy_read_training(). At the very beginning, before any other register access is done, this

[PATCH V2 0/4] board: ti: Add support for BeagleBone AI-64

2023-11-04 Thread Nishanth Menon
Hi, Refactored series purely focussed on introducing BeagleBone AI-64 Cleanups are isolated off into their own series. What works: * emmc, sd, dhcp, basic i2c gpio etc.. * DDR looks stable as well. TODO: * PMIC support will need to be added for AVS to be active - something to do once

[PATCH V2 4/4] doc: board: beagle: Add BeagleBone AI-64 documentation

2023-11-04 Thread Nishanth Menon
Add base documentation for BeagleBone AI-64. Signed-off-by: Nishanth Menon --- doc/board/beagle/index.rst| 1 + doc/board/beagle/j721e_beagleboneai64.rst | 327 ++ doc/board/ti/k3.rst | 1 + 3 files changed, 329 insertions(+) create

  1   2   >