[PATCH 5/5] board: rockchip: Add Radxa ZERO 3W/3E

2024-07-30 Thread Jonas Karlman
The Radxa ZERO 3W/3E is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor and rich interfaces. Implement rk_board_late_init() to set correct fdtfile env var and board_fit_config_name_match() to load correct FIT config based on what boar

[PATCH 4/5] dm: adc: Add SPL_ADC Kconfig symbol for use of ADC in SPL

2024-07-30 Thread Jonas Karlman
What model of Radxa ZERO 3W/3E boards can be identified using ADC at runtime, add a Kconfig symbol to allow use of ADC in SPL. This will be used to identify board model in SPL to allow loading correct FIT configuration and FDT for U-Boot proper at SPL phase. Signed-off-by: Jonas Karlman --- dri

[PATCH 2/5] arm64: dts: rockchip: fix mmc aliases for Radxa ZERO 3E/3W

2024-07-30 Thread Jonas Karlman
From: FUKAUMI Naoki align with other Radxa products. - mmc0 is eMMC - mmc1 is microSD for ZERO 3E, there is no eMMC, but aliases should start at 0, so mmc0 is microSD as exception. Fixes: 1a5c8d307c83 ("arm64: dts: rockchip: Add Radxa ZERO 3W/3E") Signed-off-by: FUKAUMI Naoki Changes in v3:

[PATCH 1/5] arm64: dts: rockchip: Add Radxa ZERO 3W/3E

2024-07-30 Thread Jonas Karlman
The Radxa ZERO 3W/3E is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor and rich interfaces. The ZERO 3W and ZERO 3E are basically the same size and model, but differ only in storage and network interfaces. - eMMC (3W) - SD-card (bot

[PATCH 3/5] arm64: dts: rockchip: add gpio-line-names to radxa-zero-3

2024-07-30 Thread Jonas Karlman
From: Trevor Woerner Add names to the pins of the general-purpose expansion header as given in the Radxa documentation[1] following the conventions in the kernel[2] to make it easier for users to correlate pins with functions when using utilities such as 'gpioinfo'. [1] https://docs.radxa.com/en

[PATCH 0/5] board: rockchip: Add Radxa ZERO 3W/3E

2024-07-30 Thread Jonas Karlman
This series add support for the RK3566 based Radxa ZERO 3W/3E boards. rk_board_late_init() and board_fit_config_name_match() has been implemented to set fdtfile env var and load correct FIT config based on what board is detected at runtime. Features tested on a ZERO 3W 8GB v1.11: - SD-card boot -

Re: [PATCH 11/40] lmb: make LMB memory map persistent and global

2024-07-30 Thread Sughosh Ganu
On Wed, 31 Jul 2024 at 01:17, Simon Glass wrote: > > Hi Sughosh, > > On Wed, 24 Jul 2024 at 00:03, Sughosh Ganu wrote: > > > > The current LMB API's for allocating and reserving memory use a > > per-caller based memory view. Memory allocated by a caller can then be > > overwritten by another call

Re: [PATCH 5/5] dm: use list_count_nodes() for counting list nodes

2024-07-30 Thread Heinrich Schuchardt
On 7/30/24 13:11, Sughosh Ganu wrote: The linux kernel has the list_count_nodes() API functions which is used for counting nodes of a list. This has now been imported in U-Boot as part of an earlier commit. Use this function and drop the list_count_items(). Signed-off-by: Sughosh Ganu Reviewe

Re: [PATCH 4/5] efi_memory: get the efi_mem_list node directly

2024-07-30 Thread Heinrich Schuchardt
On 7/30/24 13:11, Sughosh Ganu wrote: Use the list_for_each_entry() API to get the efi_mem_list node directly, instead of making an additional call to list_entry(). Signed-off-by: Sughosh Ganu Reviewed-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 25 -

Re: [PATCH 3/5] efi_memory: avoid possible null pointer dereference

2024-07-30 Thread Heinrich Schuchardt
On 7/30/24 13:11, Sughosh Ganu wrote: Populate the previous memory descriptor node pointer only after it's parent struct has been initialised. The compiler fixes this logic to do the right thing, but it is better to have correct code in place. Signed-off-by: Sughosh Ganu Fixes: 7b05667ce239 (

Re: [PATCH 2/5] efi_memory: use list_count_nodes() to count list entries

2024-07-30 Thread Heinrich Schuchardt
On 7/30/24 13:11, Sughosh Ganu wrote: Use the API function list_count_nodes() to count the number of EFI memory map entries. Signed-off-by: Sughosh Ganu --- lib/efi_loader/efi_memory.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/efi_loader/efi_memory.c b/lib/

Re: [PATCH 1/5] linux: list: add a function to count list nodes

2024-07-30 Thread Heinrich Schuchardt
On 7/30/24 13:11, Sughosh Ganu wrote: Add a function to count the nodes of a list. This could function could be used in lot of different code locations: test/boot/expo.c:707 lib/fwu_updates/fwu_mtd.c:64 lib/efi_loader/efi_memory.c:755 lib/efi_loader/efi_boottime.c:2519 fs/yaffs2/yaffs_guts.c:4

Re: [PATCH 3/3] doc: stm32mp1: fix/improve basic reStructuredText syntax

2024-07-30 Thread Heinrich Schuchardt
On 7/26/24 19:18, Grzegorz Szymaszek wrote: Drop some unnecessary/unintended blockquotes, improve formatting consistency, simplify tables, add some inline literals, fix several other minor issues. Signed-off-by: Grzegorz Szymaszek --- doc/board/st/stm32mp1.rst | 859 +++---

Re: [PATCH 1/3] doc: board: stm32mp1: add missing newline at EOF

2024-07-30 Thread Heinrich Schuchardt
On 7/26/24 19:17, Grzegorz Szymaszek wrote: Please, provide a commit message explaining why you are making this change. Signed-off-by: Grzegorz Szymaszek --- doc/board/st/stm32mp1.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/board/st/stm32mp1.rst b/doc/board/s

Re: [PATCH 2/3] doc: stm32mp1: fix literal block markers (::)

2024-07-30 Thread Heinrich Schuchardt
On 7/26/24 19:18, Grzegorz Szymaszek wrote: Thanks for looking at improving this documentation. Please, provide a commit message. Signed-off-by: Grzegorz Szymaszek --- doc/board/st/stm32mp1.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/board/st/stm32mp1.rs

[PATCH v2 3/3] cmd: mtd: add nandtest command support

2024-07-30 Thread Mikhail Kshevetskiy
This patch implements readonly test of nand flashes. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfig | 6 ++ cmd/mtd.c | 203 2 files changed, 209 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 698e0e697f2..db5113e016b 1006

[PATCH v2 2/3] cmd: mtd: add torture command support

2024-07-30 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch implements 'nand torture' functionality for mtd command. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfi

[PATCH v2 1/3] cmd: mtd: add markbad command support

2024-07-30 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch implements 'nand markbad' functionality for mtd command. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfi

[PATCH v2 0/3] cmd/mtd: add missed featuries

2024-07-30 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch series implements following subcommands: * markbad -- mark block as bad (copy of 'nand markbad') * torture

[RESEND PATCH v3] net/tftp: make tftpput working with servers that do not use OACK

2024-07-30 Thread Mikhail Kshevetskiy
Option Acknowledgment (OACK) is an extension of TFTP protocol (see rfc2347). Not all tftp servers implements it. For example it does not supported by tftpd server from debian-11 (https://packages.debian.org/bullseye/tftpd). Starting the "tftpput $loadaddr $size out_file" command with such server w

[PATCH v2 2/2] spi: soft_spi: Parse cs-gpios only if num-chipselects is not <0>

2024-07-30 Thread Mikhail Kshevetskiy
From: Michael Polyntsov Some boards don't have chipselect lines for leds so cs-gpios is not specified in the dts leading to probing error. Fix it by making behavior similar to the one in Linux, parse num-chipselects and if it is zero, ignore cs-gpios. Signed-off-by: Michael Polyntsov Signed-off

[PATCH v2 1/2] spi: soft_spi: fix miso gpio property name

2024-07-30 Thread Mikhail Kshevetskiy
The patch fix a missprint introduced in commit 2e9fe73a883a ("spi: soft_spi: Support the recommended soft spi properties"). Signed-off-by: Mikhail Kshevetskiy --- drivers/spi/soft_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/soft_spi.c b/drivers/spi/soft_

[PATCH v2 0/2] spi: dtb parsing fixes

2024-07-30 Thread Mikhail Kshevetskiy
Changes from v1: * patches description was updated Michael Polyntsov (1): spi: soft_spi: Parse cs-gpios only if num-chipselects is not <0> Mikhail Kshevetskiy (1): spi: soft_spi: fix miso gpio property name doc/device-tree-bindings/spi/soft-spi.txt | 5 +++-- drivers/spi/soft_spi.c

Re: [PATCH] ubifs: mount fails after power cycle

2024-07-30 Thread Heiko Schocher
Hello Ravi, On 30.07.24 11:14, Ravi Minnikanti wrote: When kernel uses file system encryption, fscrypt on UBIFS v5, after a hard power cycle UBIFS journal replay fails which results in mount failure. Failure logs: UBIFS: recovery needed UBIFS error (pid 0): ubifs_validate_entry: bad directory

Re: [PATCHv2 3/3] i2c: imx_lpi2c: Support read transfers longer than 256 bytes

2024-07-30 Thread Heiko Schocher
Hello Fedor, On 30.07.24 17:25, fedorr...@gmail.com wrote: From: Fedor Ross The TXFIFO register of LPI2C only has one byte length, and if the length of the data that needs to be read exceeds 256 bytes, it needs to be written to TXFIFO multiple times. Signed-off-by: Fedor Ross --- Cc: Heiko S

Re: [PATCHv2 2/3] i2c: imx_lpi2c: Replace hard-coded bus speed value with bus->speed_hz

2024-07-30 Thread Heiko Schocher
Hello Fedor, On 30.07.24 17:25, fedorr...@gmail.com wrote: From: Fedor Ross Instead of using the hard-coded bus speed value I2C_SPEED_STANDARD_RATE, use the actual configured bus speed. This way the bus speed doesn't change suddenly after calling the imx_lpi2c_probe_chip() function for example

Re: [PATCHv2 1/3] i2c: imx_lpi2c: Fix a typo in bus_i2c_receive

2024-07-30 Thread Heiko Schocher
Hello Fedor, On 30.07.24 17:25, fedorr...@gmail.com wrote: From: Fedor Ross Fix a typo in a debug message. It should be 'for' not 'fot' . Signed-off-by: Fedor Ross --- Cc: Heiko Schocher Cc: Tom Rini Cc: Marek Vasut --- Changes in v2: - Add additional '---' below SoB line to separate Cc

Re: [PATCH v6 6/6] spinand: bind UBI block

2024-07-30 Thread Heiko Schocher
Hello Alexey, On 18.07.24 07:45, Alexey Romanov wrote: UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov Reviewed-by: Frieder Schrempf --- drivers/mtd/nand/spi/core.c |

Re: [PATCH v6 0/3] led: implement software blinking

2024-07-30 Thread Tom Rini
On Fri, 19 Jul 2024 13:12:10 +0400, Mikhail Kshevetskiy wrote: > v2 changes: > * Drop sw_blink_state structure, move its necessary fields to >led_uc_plat structure. > * Add cyclic_info pointer to led_uc_plat structure. This >simplify code a lot. > * Remove cyclic function search logic.

Re: [PATCH v3 0/5] video: Improve syncing performance with cyclic

2024-07-30 Thread Anatolij Gustschin
Hi Simon, On Thu, 4 Jul 2024 08:48:54 +0100 Simon Glass s...@chromium.org wrote: > Now that U-Boot has a background-processing feature, it is possible to > reduce the amount of 'foreground' syncing of the display. At present > this happens quite often. This series breaks turris_1x_sdcard SPL bu

Re: [PATCH 5/9] fdt: Correct condition for bloblist existing

2024-07-30 Thread Simon Glass
Hi all, On Fri, 21 Jun 2024 at 12:16, Simon Glass wrote: > > Hi Raymond, > > On Fri, 21 Jun 2024 at 10:40, Raymond Mao wrote: > > > > Hi Simon, > > > > On Fri, 21 Jun 2024 at 10:58, Simon Glass wrote: > >> > >> Hi Ilias, > >> > >> On Wed, 19 Jun 2024 at 06:41, Ilias Apalodimas > >> wrote: > >>

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Tom Rini
On Tue, Jul 30, 2024 at 02:52:21PM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 30 Jul 2024 at 14:11, Tom Rini wrote: > > > > On Tue, Jul 30, 2024 at 02:05:19PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Tue, 30 Jul 2024 at 13:49, Tom Rini wrote: > > > > > > > > On Tue, Jul 30, 20

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Simon Glass
Hi Tom, On Tue, 30 Jul 2024 at 14:11, Tom Rini wrote: > > On Tue, Jul 30, 2024 at 02:05:19PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 30 Jul 2024 at 13:49, Tom Rini wrote: > > > > > > On Tue, Jul 30, 2024 at 01:42:17PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Tom Rini
On Tue, Jul 30, 2024 at 02:05:19PM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 30 Jul 2024 at 13:49, Tom Rini wrote: > > > > On Tue, Jul 30, 2024 at 01:42:17PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Tue, 30 Jul 2024 at 09:24, Tom Rini wrote: > > > > > > > > On Tue, Jul 30, 20

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Simon Glass
Hi Tom, On Tue, 30 Jul 2024 at 13:49, Tom Rini wrote: > > On Tue, Jul 30, 2024 at 01:42:17PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 30 Jul 2024 at 09:24, Tom Rini wrote: > > > > > > On Tue, Jul 30, 2024 at 09:18:02AM -0600, Simon Glass wrote: > > > > Hi Ilias, > > > > > > > > On T

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Tom Rini
On Tue, Jul 30, 2024 at 01:42:17PM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 30 Jul 2024 at 09:24, Tom Rini wrote: > > > > On Tue, Jul 30, 2024 at 09:18:02AM -0600, Simon Glass wrote: > > > Hi Ilias, > > > > > > On Tue, 30 Jul 2024 at 08:54, Ilias Apalodimas > > > wrote: > > > > > > > > On

[PATCH 2/2] board: rockchip: Add Radxa ROCK S0

2024-07-30 Thread Jonas Karlman
Radxa ROCK S0 is a single-board computer based on the Rockchip RK3308B SoC in an ultra-compact form factor. Add a board target for the board. Features tested on a ROCK S0 v1.2 with 512 MiB RAM and 8 GiB eMMC: - SD-card boot - eMMC boot - Ethernet - USB gadget - USB host Signed-off-by: Jonas Karlm

[PATCH 1/2] arm64: dts: rockchip: Add Radxa ROCK S0

2024-07-30 Thread Jonas Karlman
Radxa ROCK S0 is a single-board computer based on the Rockchip RK3308B SoC in an ultra-compact form factor. Add initial support for eMMC, SD-card, Ethernet, WiFi/BT and USB. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20240521212247.1240226-3-jo...@kwiboo.se Signed-off-by: Heiko

[PATCH 0/2] board: rockchip: Add Radxa ROCK S0

2024-07-30 Thread Jonas Karlman
This series add support for the RK3308 based Radxa ROCK S0 board. Features tested on a ROCK S0 v1.2 with 512 MiB RAM and 8 GiB eMMC: - SD-card boot - eMMC boot - Ethernet - USB gadget - USB host This series depends on the following patch: - arm64: dts: rockchip: Add rk3308 IO voltage domains [1]

Re: [PATCH 11/40] lmb: make LMB memory map persistent and global

2024-07-30 Thread Simon Glass
Hi Sughosh, On Wed, 24 Jul 2024 at 00:03, Sughosh Ganu wrote: > > The current LMB API's for allocating and reserving memory use a > per-caller based memory view. Memory allocated by a caller can then be > overwritten by another caller. Make these allocations and reservations > persistent using th

Re: [PATCH 5/5] dm: use list_count_nodes() for counting list nodes

2024-07-30 Thread Simon Glass
On Tue, 30 Jul 2024 at 05:12, Sughosh Ganu wrote: > > The linux kernel has the list_count_nodes() API functions which is > used for counting nodes of a list. This has now been imported in > U-Boot as part of an earlier commit. Use this function and drop the > list_count_items(). > > Signed-off-by:

Re: [PATCH 3/5] efi_memory: avoid possible null pointer dereference

2024-07-30 Thread Simon Glass
On Tue, 30 Jul 2024 at 05:11, Sughosh Ganu wrote: > > Populate the previous memory descriptor node pointer only after it's its > parent struct has been initialised. The compiler fixes this logic to > do the right thing, but it is better to have correct code in place. > > Signed-off-by: Sughosh G

Re: [PATCH 2/5] efi_memory: use list_count_nodes() to count list entries

2024-07-30 Thread Simon Glass
On Tue, 30 Jul 2024 at 05:11, Sughosh Ganu wrote: > > Use the API function list_count_nodes() to count the number of EFI > memory map entries. > > Signed-off-by: Sughosh Ganu > --- > lib/efi_loader/efi_memory.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Simon Glas

Re: [PATCH 1/5] linux: list: add a function to count list nodes

2024-07-30 Thread Simon Glass
On Tue, 30 Jul 2024 at 05:11, Sughosh Ganu wrote: > > Add a function to count the nodes of a list. > > Taken from linux 6.11-rc1 tag commit 8400291e289e. > > Signed-off-by: Sughosh Ganu > --- > include/linux/list.h | 15 +++ > 1 file changed, 15 insertions(+) Reviewed-by: Simon Glas

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Simon Glass
Hi Tom, On Tue, 30 Jul 2024 at 09:24, Tom Rini wrote: > > On Tue, Jul 30, 2024 at 09:18:02AM -0600, Simon Glass wrote: > > Hi Ilias, > > > > On Tue, 30 Jul 2024 at 08:54, Ilias Apalodimas > > wrote: > > > > > > On Tue, 30 Jul 2024 at 17:38, Simon Glass wrote: > > > > > > > > Hi Ilias, > > > > >

Re: M68K Vectors

2024-07-30 Thread Peter LaDow
A bit more digging. When I follow the chain through the PLT call to memset, it does some lookups in the .got.plt section. And even on the MCF5445x, it seems to ultimately result in a lookup of 0x. Here's the chain for the MCF5445x. I did the manually using objdump/nm, but I think the ma

Re: M68K Vectors

2024-07-30 Thread Peter LaDow
Thank you for the feedback. It looks like the mcf5441x executes from RAM. At least looking at the configuration for the stmark2, which defines CONFIG_SERIAL_BOOT and CONFIG_SF_SBF. This appears to copy from an external device using the DSPI into RAM. After loaded, _start finally executes. Inte

[PATCHv2 3/3] i2c: imx_lpi2c: Support read transfers longer than 256 bytes

2024-07-30 Thread fedorross
From: Fedor Ross The TXFIFO register of LPI2C only has one byte length, and if the length of the data that needs to be read exceeds 256 bytes, it needs to be written to TXFIFO multiple times. Signed-off-by: Fedor Ross --- Cc: Heiko Schocher Cc: Tom Rini Cc: Marek Vasut --- Changes in v2: -

[PATCHv2 2/3] i2c: imx_lpi2c: Replace hard-coded bus speed value with bus->speed_hz

2024-07-30 Thread fedorross
From: Fedor Ross Instead of using the hard-coded bus speed value I2C_SPEED_STANDARD_RATE, use the actual configured bus speed. This way the bus speed doesn't change suddenly after calling the imx_lpi2c_probe_chip() function for example. Signed-off-by: Fedor Ross --- Cc: Heiko Schocher Cc: Tom

[PATCHv2 1/3] i2c: imx_lpi2c: Fix a typo in bus_i2c_receive

2024-07-30 Thread fedorross
From: Fedor Ross Fix a typo in a debug message. It should be 'for' not 'fot' . Signed-off-by: Fedor Ross --- Cc: Heiko Schocher Cc: Tom Rini Cc: Marek Vasut --- Changes in v2: - Add additional '---' below SoB line to separate Cc list. This way it does not get included in the commit messag

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Tom Rini
On Tue, Jul 30, 2024 at 09:18:02AM -0600, Simon Glass wrote: > Hi Ilias, > > On Tue, 30 Jul 2024 at 08:54, Ilias Apalodimas > wrote: > > > > On Tue, 30 Jul 2024 at 17:38, Simon Glass wrote: > > > > > > Hi Ilias, > > > > > > On Tue, 30 Jul 2024 at 02:20, Ilias Apalodimas > > > wrote: > > > > > >

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Simon Glass
Hi Mark, On Tue, 30 Jul 2024 at 08:53, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Tue, 30 Jul 2024 08:38:03 -0600 > > > > Hi Ilias, > > > > On Tue, 30 Jul 2024 at 02:20, Ilias Apalodimas > > wrote: > > > > > > On Mon, 29 Jul 2024 at 18:28, Simon Glass wrote: > > > > > > > > Hi Ilia

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Simon Glass
Hi Ilias, On Tue, 30 Jul 2024 at 08:54, Ilias Apalodimas wrote: > > On Tue, 30 Jul 2024 at 17:38, Simon Glass wrote: > > > > Hi Ilias, > > > > On Tue, 30 Jul 2024 at 02:20, Ilias Apalodimas > > wrote: > > > > > > On Mon, 29 Jul 2024 at 18:28, Simon Glass wrote: > > > > > > > > Hi Ilias, > > >

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Ilias Apalodimas
On Tue, 30 Jul 2024 at 17:38, Simon Glass wrote: > > Hi Ilias, > > On Tue, 30 Jul 2024 at 02:20, Ilias Apalodimas > wrote: > > > > On Mon, 29 Jul 2024 at 18:28, Simon Glass wrote: > > > > > > Hi Ilias, > > > > > > On Mon, 29 Jul 2024 at 04:02, Ilias Apalodimas > > > wrote: > > > > > > > > Hi Si

[PATCH] soc: zynqmp: Add support for zu1eg_lr device

2024-07-30 Thread Michal Simek
There is new chip coming which is using new _lr suffix that's why record it in the list to enable bitstream in bit format loading. Signed-off-by: Michal Simek --- drivers/soc/soc_xilinx_zynqmp.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/soc/soc_xilinx_zynqmp.c b/driver

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Mark Kettenis
> From: Simon Glass > Date: Tue, 30 Jul 2024 08:38:03 -0600 > > Hi Ilias, > > On Tue, 30 Jul 2024 at 02:20, Ilias Apalodimas > wrote: > > > > On Mon, 29 Jul 2024 at 18:28, Simon Glass wrote: > > > > > > Hi Ilias, > > > > > > On Mon, 29 Jul 2024 at 04:02, Ilias Apalodimas > > > wrote: > > > >

[PATCH 8/8] rockchip: rk3308-rock-pi-s: Enable LED and IO Domain driver

2024-07-30 Thread Jonas Karlman
Add LED=y and LED_GPIO=y to support the onboard leds. Add ROCKCHIP_IODOMAIN=y to configure correct io voltage domains. Add DM_MDIO=y now that the DT contain a Ethernet phy node. Signed-off-by: Jonas Karlman --- configs/rock-pi-s-rk3308_defconfig | 4 1 file changed, 4 insertions(+) diff

[PATCH 7/8] rockchip: rk3308-rock-pi-s: Remove unnecessary u-boot dtsi overrides

2024-07-30 Thread Jonas Karlman
With the emmc and uart0 DT nodes updated to v6.11-rc1 in dts/upstream there is no longer any need to keep overrides in board u-boot dtsi. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi | 19 --- 1 file changed, 19 deletions(-) diff --git a/arch/arm/dt

[PATCH 5/8] arm64: dts: rockchip: Add io-domains to rk3308-rock-pi-s

2024-07-30 Thread Jonas Karlman
The VCCIO4 io-domain used for WiFi/BT is using 1v8 IO signal voltage. Add io-domains node with the VCCIO supplies connected on the board. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20240521211029.1236094-13-jo...@kwiboo.se Signed-off-by: Heiko Stuebner [ upstream commit: 100b

[PATCH 6/8] arm64: dts: rockchip: Update WIFi/BT related nodes on rk3308-rock-pi-s

2024-07-30 Thread Jonas Karlman
Update WiFi SDIO and BT UART related props to better reflect details about the optional onboard RTL8723DS WiFi/BT module. Also correct the compatible used for bluetooth to match the WiFi/BT module used on the board. Fixes: bc3753aed81f ("arm64: dts: rockchip: rock-pi-s add more peripherals") Sign

[PATCH 4/8] arm64: dts: rockchip: Add mdio and ethernet-phy nodes to rk3308-rock-pi-s

2024-07-30 Thread Jonas Karlman
Be explicit about the Ethernet port and define mdio and ethernet-phy nodes in the device tree for ROCK Pi S. Fixes: bc3753aed81f ("arm64: dts: rockchip: rock-pi-s add more peripherals") Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20240521211029.1236094-8-jo...@kwiboo.se Signed-of

[PATCH 2/8] arm64: dts: rockchip: Add sdmmc related properties on rk3308-rock-pi-s

2024-07-30 Thread Jonas Karlman
Add cap-mmc-highspeed to allow use of high speed MMC mode using an eMMC to uSD board. Use disable-wp to signal that no physical write-protect line is present. Also add vcc_io used for card and IO line power as vmmc-supply. Fixes: 2e04c25b1320 ("arm64: dts: rockchip: add ROCK Pi S DTS support") Sig

[PATCH 3/8] arm64: dts: rockchip: Add pinctrl for UART0 to rk3308-rock-pi-s

2024-07-30 Thread Jonas Karlman
UAR0 CTS/RTS is not wired to any pin and is not used for the default serial console use of UART0 on ROCK Pi S. Override the SoC defined pinctrl props to limit configuration of the two xfer pins wired to one of the GPIO pin headers. Fixes: 2e04c25b1320 ("arm64: dts: rockchip: add ROCK Pi S DTS sup

[PATCH 1/8] arm64: dts: rockchip: Add rk3308 IO voltage domains

2024-07-30 Thread Jonas Karlman
Add a disabled RK3308 IO voltage domains node to SoC DT. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20240521211029.1236094-12-jo...@kwiboo.se Signed-off-by: Heiko Stuebner [ upstream commit: d1829ba469d5743734e37d59fece73e3668ab084 ] (cherry picked from commit cebde305971e33a

[PATCH 0/8] rockchip: rk3308-rock-pi-s: Update DT to v6.11-rc1

2024-07-30 Thread Jonas Karlman
This series cherry picks related rk3308 and rk3308-rock-pi-s commits from devicetree-rebasing v6.11-rc1-dts tag to improve support for the new v1.5 hw revision of Radxa Rock Pi S. This series loosely depends on following patches: - mmc: rockchip_dw_mmc: Allow 4-bit mode when 8-bit mode is supporte

[RFC PATCH 4/4] lmb: Ensure that tests don't change lmb state

2024-07-30 Thread Simon Glass
Tests should not change the lmb state, so provide a way to save and restore the state. Note: The _norun tests can now become normal tests. When tests fail, lmb is broken. This is probably fine. If it causes problems we could save/restore outside the test, using a UT_TESTF_ flag. Signed-off-by: S

[RFC PATCH 3/4] lmb: Split init into two functions

2024-07-30 Thread Simon Glass
The normal case for initing lmb is to set up all the memory regions. Put that in a separate function, called lmb_init(). The other function is now only used for testing. Note that tests never set up the memory regions, so we can drop that code. Signed-off-by: Simon Glass --- common/board_r.c |

[RFC PATCH 2/4] lmb: Tighten up the code in lmb_add_region_flags()

2024-07-30 Thread Simon Glass
This function has more special cases than it needs. Simplify it to reduce code size and complexity. Signed-off-by: Simon Glass --- lib/lmb.c | 57 +++ 1 file changed, 19 insertions(+), 38 deletions(-) diff --git a/lib/lmb.c b/lib/lmb.c index

[RFC PATCH 1/4] lmb: Put internal details in a struct

2024-07-30 Thread Simon Glass
Rather than exporting the internal details of lmb, create a struct which holds the lists. Signed-off-by: Simon Glass --- include/lmb.h | 10 - lib/lmb.c | 56 +-- test/cmd/bdinfo.c | 8 +++ 3 files changed, 43 insertions(+), 3

[RFC PATCH 0/4] lmb: Tweaks as discussed

2024-07-30 Thread Simon Glass
This series adds a few tweaks to Sugosh's lmb series to show: - save/restore of test stage - putting lmb in a struct - small code-size improvement Simon Glass (4): lmb: Put internal details in a struct lmb: Tighten up the code in lmb_add_region_flags() lmb: Split init into two functions l

[PATCH v5 4/4] RFC: lib: Convert str_to_list() to use alist

2024-07-30 Thread Simon Glass
Use this new data structure in the utility function. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Update for alist_add() API change lib/strto.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/lib/strto.c b/lib/

[PATCH v5 3/4] alist: Add support for an allocated pointer list

2024-07-30 Thread Simon Glass
In various places it is useful to have an array of structures, but allow it to grow. In some cases we work around it by setting maximum number of entries, using a Kconfig option. In other places we use a linked list, which does not provide for random access and can complicate the code. Introduce a

[PATCH v5 2/4] lib: Handle a special case with str_to_list()

2024-07-30 Thread Simon Glass
The current implementation can return an extra result at the end when the string ends with a space. Fix this by adding a special case. Signed-off-by: Simon Glass --- (no changes since v1) lib/strto.c | 4 +++- test/str_ut.c | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --g

[PATCH v5 1/4] malloc: Support testing with realloc()

2024-07-30 Thread Simon Glass
At present in tests it is possible to cause an out-of-memory condition with malloc() but not realloc(). Add support to realloc() too, so code which uses that function can be tested. Signed-off-by: Simon Glass --- (no changes since v1) common/dlmalloc.c | 4 1 file changed, 4 insertions(+)

[PATCH v5 0/4] alist: Implement a pointer list / array of structs

2024-07-30 Thread Simon Glass
This data structure provides a list of pointers / array of structures. I was planning to use it for the lmb restructure, to allow it to support any number of entries, but then I gave up on it. There are quite a few places in U-Boot where such a list would be useful, since it supports growing the a

Re: [PATCH 5/6] efi: Use malloc() for the EFI pool

2024-07-30 Thread Simon Glass
Hi Ilias, On Tue, 30 Jul 2024 at 02:20, Ilias Apalodimas wrote: > > On Mon, 29 Jul 2024 at 18:28, Simon Glass wrote: > > > > Hi Ilias, > > > > On Mon, 29 Jul 2024 at 04:02, Ilias Apalodimas > > wrote: > > > > > > Hi Simon > > > > > > On Fri, 26 Jul 2024 at 17:54, Simon Glass wrote: > > > > > >

Re: [PATCH 15/20] binman: Add support for alternative FDTs

2024-07-30 Thread Simon Glass
Hi Neha, On Mon, 29 Jul 2024 at 22:44, Neha Malcom Francis wrote: > > Hi Simon > > On 20/07/24 16:19, Simon Glass wrote: > > FIT provides a way to select between different devicetree blobs > > depending on the model. This works fine for U-Boot proper and allows SPL > > to select the correct blob

Re: [PATCH 04/40] lib: Convert str_to_list() to use alist

2024-07-30 Thread Simon Glass
Hi Sughosh, On Mon, 29 Jul 2024 at 19:49, Sughosh Ganu wrote: > > On Mon, 29 Jul 2024 at 23:46, Tom Rini wrote: > > > > On Mon, Jul 29, 2024 at 09:28:57AM -0600, Simon Glass wrote: > > > Hi Sughosh, > > > > > > On Sun, 28 Jul 2024 at 12:07, Sughosh Ganu > > > wrote: > > > > > > > > On Thu, 25

[PATCH v2 2/2] arm64: dts: rockchip: Add OTP device node for RK3308

2024-07-30 Thread Jonas Karlman
The RK3308 SoC contains a controller for one-time-programmable memory, add a device node for it. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20240521211029.1236094-9-jo...@kwiboo.se Signed-off-by: Heiko Stuebner [ upstream commit: 36d3bbc8cdbef2f83391f770265ac4c37a99 ] (ch

[PATCH v2 1/2] rockchip: rk3308: Remove OTP device node from soc u-boot dtsi

2024-07-30 Thread Jonas Karlman
The merged upstream DT node for OTP differs in nodename and will cause following build errors once rk3308.dtsi in dts/upstream is updated: ERROR (duplicate_label): /nvmem@ff21: Duplicate label 'otp' on /nvmem@ff21 and /efuse@ff21 ERROR (duplicate_label): /nvmem@ff21/id@7: Dupl

[PATCH v2 0/2] rockchip: rk3308: Update otp node in u-boot dtsi to match v6.11-rc1

2024-07-30 Thread Jonas Karlman
The merged upstream DT node for OTP differs in nodename and a future update of dts/upstream to devicetree-rebasing v6.11-rc1-dts tag or newer will cause build issues. This series replace the node in soc u-boot dtsi with the upstream node. Changes in v2: - Drop patch that changed the nodename to m

Re: [PATCH v5 00/20] Introduce the lwIP network stack

2024-07-30 Thread Jerome Forissier
On 7/30/24 16:02, Tom Rini wrote: > On Tue, Jul 30, 2024 at 11:48:06AM +0200, Jerome Forissier wrote: >> >> >> On 7/25/24 19:22, Tom Rini wrote: >>> On Thu, Jul 25, 2024 at 02:57:21PM +0200, Jerome Forissier wrote: >>> This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip

Re: [PATCH v4 24/29] lib/crypto: Adapt mscode_parser to MbedTLS

2024-07-30 Thread Raymond Mao
Hi Ilias, On Tue, 30 Jul 2024 at 04:04, Ilias Apalodimas wrote: > Hi Raymond, > > On Tue, 2 Jul 2024 at 21:33, Raymond Mao wrote: > > > > Previous patch has introduced MbedTLS porting layer for mscode parser, > > here to adjust the header and makefiles accordingly. > > > > Signed-off-by: Raymon

Re: [PATCH v4 25/29] mbedtls: add RSA helper layer on MbedTLS

2024-07-30 Thread Raymond Mao
Hi Ilias, On Tue, 30 Jul 2024 at 04:05, Ilias Apalodimas wrote: > Hi Raymond > > > On Tue, 2 Jul 2024 at 21:33, Raymond Mao wrote: > > > > Add RSA helper layer on top on MbedTLS PK and RSA library. > > Introduce _LEGACY and _MBEDTLS kconfigs for RSA helper legacy and > > MbedTLS implementations

Re: [PATCH v5 00/20] Introduce the lwIP network stack

2024-07-30 Thread Tom Rini
On Tue, Jul 30, 2024 at 11:48:06AM +0200, Jerome Forissier wrote: > > > On 7/25/24 19:22, Tom Rini wrote: > > On Thu, Jul 25, 2024 at 02:57:21PM +0200, Jerome Forissier wrote: > > > >> This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip > >> library for the network stack" [1]

Re: M68K Vectors

2024-07-30 Thread Angelo Dureghello
Hi Peter, unfortunately i don't have any of such 548x boards, so cannot help that much, but if you can manage to have it working, it will be great. Considering 548x is with mmu, mcf5441x startup code may be helpful, even if it's isa_C (your is isa_B). mcf5441x is tested here, and it is actually

[PATCH] ARM: zynq: Add support for 7z010_lr and 7z020_lr

2024-07-30 Thread Michal Simek
Add support for *_lr SOCs. Without this change chips are not going to be properly identified and bitstream programming won't work. Signed-off-by: Michal Simek --- arch/arm/mach-zynq/cpu.c | 2 ++ include/zynqpl.h | 6 ++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/mach-z

RE: [PATCH v1] mmc: fix signed vs unsigned compare in read check in _spl_load()

2024-07-30 Thread Peng Fan
> Subject: [PATCH v1] mmc: fix signed vs unsigned compare in read > check in _spl_load() > > Fix signed vs unsigned compare in read check in _spl_load() > > Issue: when info->read() returns a negative value because of an error, >the comparison of 'read' (signed) with 'sizeof(*header)' >

Re: [PATCH 3/3] i2c: imx_lpi2c: Support read transfers longer than 256 bytes

2024-07-30 Thread Fedor Ross
On Wed, Jul 24, 2024 at 12:57 PM Marek Vasut wrote: Hello Marek, I'll do the changes. Thanks for your input. Best regards, Fedor > On 7/24/24 11:59 AM, fedorr...@gmail.com wrote: > > From: Fedor Ross > > > > The TXFIFO register of LPI2C only has one byte length, and if the length > > of the d

[PATCH] doc: document the pwm command

2024-07-30 Thread Emil Kronborg
Signed-off-by: Emil Kronborg --- doc/usage/cmd/pwm.rst | 80 +++ doc/usage/index.rst | 1 + 2 files changed, 81 insertions(+) create mode 100644 doc/usage/cmd/pwm.rst diff --git a/doc/usage/cmd/pwm.rst b/doc/usage/cmd/pwm.rst new file mode 100644 index

[PATCH v2] mtd: spi-nor: Disable chip erase for S28HS02GT flash

2024-07-30 Thread Prasad Kummari
From: Tejas Bhumkar Since the opcode SPINOR_OP_CHIP_ERASE (0xc7) is not supported for the S28HS02GT flash, the NO_CHIP_ERASE flag has been added to enable sector erase functionality instead. Signed-off-by: Tejas Bhumkar Signed-off-by: Prasad Kummari --- Changes in v2: - corrected commit subjec

[PATCH 2/2] mtd: spi-nor: Disable chip erase for S28HS02GT flash

2024-07-30 Thread Prasad Kummari
From: Tejas Bhumkar Since the opcode SPINOR_OP_CHIP_ERASE (0xc7) is not supported for the S28HS02GT flash, the NO_CHIP_ERASE flag has been added to enable sector erase functionality instead. Signed-off-by: Tejas Bhumkar Signed-off-by: Prasad Kummari --- drivers/mtd/spi/spi-nor-ids.c | 2 +- 1

[PATCH 5/5] dm: use list_count_nodes() for counting list nodes

2024-07-30 Thread Sughosh Ganu
The linux kernel has the list_count_nodes() API functions which is used for counting nodes of a list. This has now been imported in U-Boot as part of an earlier commit. Use this function and drop the list_count_items(). Signed-off-by: Sughosh Ganu --- drivers/core/util.c | 14 ++ inc

[PATCH 4/5] efi_memory: get the efi_mem_list node directly

2024-07-30 Thread Sughosh Ganu
Use the list_for_each_entry() API to get the efi_mem_list node directly, instead of making an additional call to list_entry(). Signed-off-by: Sughosh Ganu --- lib/efi_loader/efi_memory.c | 25 - 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/lib/efi_loader

[PATCH 3/5] efi_memory: avoid possible null pointer dereference

2024-07-30 Thread Sughosh Ganu
Populate the previous memory descriptor node pointer only after it's parent struct has been initialised. The compiler fixes this logic to do the right thing, but it is better to have correct code in place. Signed-off-by: Sughosh Ganu --- lib/efi_loader/efi_memory.c | 3 ++- 1 file changed, 2 ins

[PATCH 2/5] efi_memory: use list_count_nodes() to count list entries

2024-07-30 Thread Sughosh Ganu
Use the API function list_count_nodes() to count the number of EFI memory map entries. Signed-off-by: Sughosh Ganu --- lib/efi_loader/efi_memory.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c index 12cf23fa3f..

[PATCH 1/5] linux: list: add a function to count list nodes

2024-07-30 Thread Sughosh Ganu
Add a function to count the nodes of a list. Taken from linux 6.11-rc1 tag commit 8400291e289e. Signed-off-by: Sughosh Ganu --- include/linux/list.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/include/linux/list.h b/include/linux/list.h index 6910721c00..0f9d939b05 1006

[PATCH] arm64: zynqmp: Remove PM firmware checking

2024-07-30 Thread Michal Simek
Having zynqmp firmware is actually only one valid configuration. In QEMU case for example there is no PMU that's why this checking can't end up in panic that's why code remove this code completely. Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 13 - 1 file changed,

Re: [PATCH v5 18/20] net-lwip: add TFTP_BLOCKSIZE

2024-07-30 Thread Ilias Apalodimas
On Mon, 29 Jul 2024 at 18:18, Jerome Forissier wrote: > > Hi Ilias, > > On 7/29/24 14:29, Ilias Apalodimas wrote: > > Hi Jerome, > > > > On Thu, 25 Jul 2024 at 15:59, Jerome Forissier > > wrote: > >> > >> Add support for setting the TFTP block size. The default value (1468) > >> is fine for Ether

Re: [PATCH v5 00/20] Introduce the lwIP network stack

2024-07-30 Thread Jerome Forissier
On 7/25/24 19:22, Tom Rini wrote: > On Thu, Jul 25, 2024 at 02:57:21PM +0200, Jerome Forissier wrote: > >> This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip >> library for the network stack" [1]. The goal is to introduce the lwIP TCP/IP >> stack [2] [3] as an alternative t

  1   2   >