[PATCH] board: rzg2l: Update MAINTAINERS file to match dts/upstream paths

2024-10-30 Thread Paul Barker
We are now using the dts/upstream subtree for the RZ/G2L SoC family, so update the board MAINTAINERS file to match rz-smarc dtsi files in this subtree. Signed-off-by: Paul Barker --- board/renesas/rzg2l/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/renesas

Re: [PATCH v2 2/2] rockchip: add support for Radxa ROCK 5A with SPI NOR flash module

2024-10-30 Thread Quentin Schulz
Hi Naoki, On 10/30/24 4:09 AM, FUKAUMI Naoki wrote: Hi, could you review this patch, anyone? Best regards, -- FUKAUMI Naoki Radxa Computer (Shenzhen) Co., Ltd. On 8/25/24 07:33, FUKAUMI Naoki wrote: on Radxa ROCK 5A, sdhci(eMMC) and fspim0(SPI NOR flash) share pins (i.e. eMMC and SPI NOR fl

[PATCH 1/2] ARM: dts: Drop unused RZ/G2L devicetrees

2024-10-30 Thread Paul Barker
We are now using the dts/upstream subtree for the RZ/G2L SoC family. Signed-off-by: Paul Barker --- arch/arm/dts/Makefile |3 - arch/arm/dts/r9a07g044.dtsi | 1273 - arch/arm/dts/r9a07g044l2-smarc.dts| 39 - arch/arm/dts/r9a07g0

[PATCH 2/2] dt-bindings: Drop unused RZ/G2L devicetree bindings

2024-10-30 Thread Paul Barker
We are now using the dts/upstream subtree for the RZ/G2L SoC family. Signed-off-by: Paul Barker --- include/dt-bindings/clock/r9a07g044-cpg.h | 220 -- .../interrupt-controller/irqc-rzg2l.h | 25 -- include/dt-bindings/pinctrl/rzg2l-pinctrl.h | 23 -- 3 files chan

Re: [PATCH v1] acpi_table: Fix coverity defect in acpi_write_spcr

2024-10-30 Thread Patrick Rudolph
Hi Tom, On Tue, Oct 29, 2024 at 3:53 AM Tom Rini wrote: > > On Mon, Oct 28, 2024 at 05:27:14PM -0600, Tom Rini wrote: > > On Mon, 28 Oct 2024 09:08:35 +0100, Patrick Rudolph wrote: > > > > > Fix "Integer handling issues (SIGN_EXTENSION)" in newly added code: > > > Cast serial_info.reg_offset to u

Re: [PATCH v2 4/5] arm: mach-k3: j721e-init.c: J7200: Add support for CONFIG_K3_OPP_LOW

2024-10-30 Thread Manorit Chawdhry
Hi Neha, Aniket, On 13:31-20241030, Manorit Chawdhry wrote: > Hi Aniket, > > On 15:40-20241029, Manorit Chawdhry wrote: > > Hi Aniket, > > > > On 18:27-20241023, Aniket Limaye wrote: > > > From: Reid Tonking > > > > > > The default j720

Re: [PATCH v9 02/11] efi_loader: Add a test app

2024-10-30 Thread Simon Glass
Hi Tom, On Tue, 29 Oct 2024 at 21:13, Tom Rini wrote: > > On Tue, Oct 29, 2024 at 08:22:10PM +0100, Simon Glass wrote: > > > Add a simple app to use for testing. This is intended to do whatever it > > needs to for testing purposes. For now it just prints a message and > > exits boot services. > >

Re: [PATCH 1/2] rockchip: rk356x: Implement checkboard() to print SoC variant

2024-10-30 Thread Simon Glass
Hi Jonas, On Sun, 20 Oct 2024 at 00:24, Jonas Karlman wrote: > > Hi Simon, > > On 2024-10-19 04:00, Simon Glass wrote: > > Hi Jonas, > > > > On Fri, 18 Oct 2024 at 10:34, Jonas Karlman wrote: > >> > >> Implement checkboard() to print current SoC model, e.g. one of: > >> > >> SoC: RK3566 v1 >

[PATCH v4 1/2] arm64: dts: rockchip: Add support for rk3588 based Cool Pi CM5 GenBook

2024-10-30 Thread Andy Yan
Cool Pi CM5 GenBook works as a carrier board connect with CM5 [0]. Specification: - Rockchip RK3588 - LPDDR5X 8/32 GB - eMMC 64 GB - HDMI Type A out x 1 - USB 3.0 Host x 1 - USB-C 3.0 with DisplayPort AltMode - PCIE M.2 E Key for RTL8852BE Wireless connection - PCIE M.2 M Key for NVME connection -

[PATCH v4 2/2] board: rockchip: Add support for rk3588 GenBook

2024-10-30 Thread Andy Yan
Add support for Cool Pi GenBook, it works as a carrier board connect with CM5 SOM. Specification: - Rockchip RK3588 - LPDDR5X 8/32 GB - eMMC 64 GB - HDMI Type A out x 1 - USB 3.0 Host x 1 - USB-C 3.0 with DisplayPort AltMode - PCIE M.2 E Key for RTL8852BE Wireless connection - PCIE M.2 M Key for N

Re: [PATCH v2 4/5] arm: mach-k3: j721e-init.c: J7200: Add support for CONFIG_K3_OPP_LOW

2024-10-30 Thread Aniket Limaye
On 30/10/24 13:58, Manorit Chawdhry wrote: Hi Neha, Aniket, On 13:31-20241030, Manorit Chawdhry wrote: Hi Aniket, On 15:40-20241029, Manorit Chawdhry wrote: Hi Aniket, On 18:27-20241023, Aniket Limaye wrote: From: Reid Tonking The default j7200 devicetree and k3_avs driver set 2GHz

[PATCH v2] acpi_table: Fix coverity defect in acpi_write_spcr

2024-10-30 Thread Patrick Rudolph
Fix "Integer handling issues (SIGN_EXTENSION)" in newly added code: Cast serial_info.reg_offset to u64 to prevent an integer overflow when shifted too many bits to the left. Currently this never happens as the shift is supposed to be less than 4. Signed-off-by: Patrick Rudolph --- lib/acpi/acpi

Re: [PATCH v1 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-10-30 Thread Michal Simek
On 10/29/24 19:58, Vasileios Amoiridis wrote: From: Vasileios Amoiridis Add native support of the bootcount mechanism in the ZynqMP by utilising internal PMU registers. The Persistent Global Storage Registers of the Platform Management Unit can keep their value during reboot cycles unless

[PATCH] drivers/video/vesa: use MTRRs only on x86

2024-10-30 Thread Yuri Zaporozhets
MTRR functionality is available only on x86, so this driver cannot be compiled on other architectures. Fix this with preprocessor directives. Signed-off-by: Yuri Zaporozhets --- drivers/video/vesa.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/video/vesa.c

Re: [PATCH 1/9] mtd: spi-nor: Remove recently added nor->addr_width == 3 test

2024-10-30 Thread Tudor Ambarus
On 10/30/24 10:33 AM, Jagan Teki wrote: > Hi Marek, > > On Sun, Oct 27, 2024 at 1:48 AM Marek Vasut > wrote: >> >> Remove undocumented nor->addr_width == 3 test. This was added in commit >> 5d40b3d384dc ("mtd: spi-nor: Add parallel and stacked memories support") >> without any explanation in t

[PATCH] MAINTAINERS: add tambarus as reviewer for SPI NOR

2024-10-30 Thread Tudor Ambarus
I'd like to get Cc'ed to u-boot's SPI NOR patches to help review them. The ultimate goal is to have an aligned approach in u-boot and linux. Signed-off-by: Tudor Ambarus --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 38c714cf46..df046192ea 100

Re: [PATCH] MAINTAINERS: add tambarus as reviewer for SPI NOR

2024-10-30 Thread Fabio Estevam
Hi Tudor, On Wed, Oct 30, 2024 at 10:18 AM Tudor Ambarus wrote: > > I'd like to get Cc'ed to u-boot's SPI NOR patches to help review them. > The ultimate goal is to have an aligned approach in u-boot and linux. > > Signed-off-by: Tudor Ambarus > --- > MAINTAINERS | 1 + > 1 file changed, 1 inse

Re: [PATCH 1/9] mtd: spi-nor: Remove recently added nor->addr_width == 3 test

2024-10-30 Thread Marek Vasut
On 10/30/24 11:33 AM, Jagan Teki wrote: Hi Marek, Hi, On Sun, Oct 27, 2024 at 1:48 AM Marek Vasut wrote: Remove undocumented nor->addr_width == 3 test. This was added in commit 5d40b3d384dc ("mtd: spi-nor: Add parallel and stacked memories support") without any explanation in the commit me

Re: [PATCH] MAINTAINERS: add tambarus as reviewer for SPI NOR

2024-10-30 Thread Marek Vasut
On 10/30/24 12:02 PM, Tudor Ambarus wrote: I'd like to get Cc'ed to u-boot's SPI NOR patches to help review them. The ultimate goal is to have an aligned approach in u-boot and linux. Signed-off-by: Tudor Ambarus Acked-by: Marek Vasut Thanks !

Re: [PATCH v9 02/11] efi_loader: Add a test app

2024-10-30 Thread Tom Rini
On Wed, Oct 30, 2024 at 08:44:04AM +0100, Simon Glass wrote: > Hi Tom, > > On Tue, 29 Oct 2024 at 21:13, Tom Rini wrote: > > > > On Tue, Oct 29, 2024 at 08:22:10PM +0100, Simon Glass wrote: > > > > > Add a simple app to use for testing. This is intended to do whatever it > > > needs to for testin

Re: [PATCH] lib: efi_loader: Fix efi_dp_from_mem() call

2024-10-30 Thread Ilias Apalodimas
Hi Moritz Thanks for the patch On Wed, 30 Oct 2024 at 22:16, Moritz Fischer wrote: > > The function expects an end address but is being called with > an size instead. > > Fixes: 6422820ac3 ("efi_loader: split unrelated code from efi_bootmgr.c") > Signed-off-by: Moritz Fischer > --- > lib/efi_l

Re: [PATCH] lib: efi_loader: Fix efi_dp_from_mem() call

2024-10-30 Thread Heinrich Schuchardt
On 10/30/24 21:16, Moritz Fischer wrote: The function expects an end address but is being called with an size instead. Fixes: 6422820ac3 ("efi_loader: split unrelated code from efi_bootmgr.c") Signed-off-by: Moritz Fischer --- lib/efi_loader/efi_bootbin.c | 3 ++- 1 file changed, 2 insertion

Re: [PATCH v9 02/11] efi_loader: Add a test app

2024-10-30 Thread Heinrich Schuchardt
On 10/29/24 20:22, Simon Glass wrote: Add a simple app to use for testing. This is intended to do whatever it needs to for testing purposes. For now it just prints a message and exits boot services. There was a considerable amount of discussion about whether it is OK to call exit-boot-services a

Re: [PATCH v1 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-10-30 Thread Vasileios Amoiridis
On Wed, Oct 30, 2024 at 02:13:43PM +0100, Michal Simek wrote: > > > On 10/29/24 19:58, Vasileios Amoiridis wrote: > > From: Vasileios Amoiridis > > > > Add native support of the bootcount mechanism in the ZynqMP by utilising > > internal > > PMU registers. The Persistent Global Storage Registe

Re: [PATCH] scripts/dtc/pylibfdt/libfdt.i_shipped: Use SWIG_AppendOutput

2024-10-30 Thread Tom Rini
On Wed, Oct 30, 2024 at 06:07:16AM +0100, Markus Volk wrote: > Swig has changed language specific AppendOutput functions. The helper > macro SWIG_AppendOutput remains unchanged. Use that instead > of SWIG_Python_AppendOutput, which would require an extra parameter > since swig 4.3.0. > > /home/fl

Re: [PATCH v8 5/8] sandbox: Report host default-filename in native mode

2024-10-30 Thread Tom Rini
On Wed, Oct 30, 2024 at 08:44:30AM +0100, Simon Glass wrote: > Hi Tom, > > On Tue, 29 Oct 2024 at 17:40, Tom Rini wrote: > > > > On Tue, Oct 29, 2024 at 04:45:54PM +0100, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Mon, 28 Oct 2024 at 20:16, Heinrich Schuchardt > > > wrote: > > > > > >

Re: [PATCH 1/9] mtd: spi-nor: Remove recently added nor->addr_width == 3 test

2024-10-30 Thread Jagan Teki
Hi Marek, On Sun, Oct 27, 2024 at 1:48 AM Marek Vasut wrote: > > Remove undocumented nor->addr_width == 3 test. This was added in commit > 5d40b3d384dc ("mtd: spi-nor: Add parallel and stacked memories support") > without any explanation in the commit message. Remove it. > > This also has a bad s

Re: [PATCH 1/9] mtd: spi-nor: Remove recently added nor->addr_width == 3 test

2024-10-30 Thread Tom Rini
On Wed, Oct 30, 2024 at 04:20:32PM +0100, Michal Simek wrote: > > > On 10/30/24 15:49, Tudor Ambarus wrote: > > > > > > On 10/30/24 2:17 PM, Jagan Teki wrote: > > > On Wed, Oct 30, 2024 at 4:15 PM Tudor Ambarus > > > wrote: > > > > > > > > > > > > > > > > On 10/30/24 10:33 AM, Jagan Teki w

Re: [PATCH v2 2/2] dt-bindings: Drop unused RZ/G2L devicetree bindings

2024-10-30 Thread Marek Vasut
On 10/30/24 3:51 PM, Paul Barker wrote: We are now using the dts/upstream subtree for the RZ/G2L SoC family so we can drop unused dt-bindings headers. Signed-off-by: Paul Barker Reviewed-by: Marek Vasut

Re: [PATCH v2 1/2] ARM: dts: Drop unused RZ/G2L devicetrees

2024-10-30 Thread Marek Vasut
On 10/30/24 3:51 PM, Paul Barker wrote: We are now using the dts/upstream subtree for the RZ/G2L SoC family so we can drop unused devicetree files from arch/arm/dts. Signed-off-by: Paul Barker Reviewed-by: Marek Vasut

Re: [PATCH 1/2] rockchip: rk356x: Implement checkboard() to print SoC variant

2024-10-30 Thread Jonas Karlman
Hi Kever, On 2024-10-30 07:40, Kever Yang wrote: > Hi Jonas, > > > On 2024/10/19 00:34, Jonas Karlman wrote: >> Implement checkboard() to print current SoC model, e.g. one of: >> >>SoC: RK3566 v1 >>SoC: RK3566 v2 >>SoC: RK3566T v2 >>SoC: RK3568 v2 >>SoC: RK3568B2 v2

Re: [PATCH] MAINTAINERS: add tambarus as reviewer for SPI NOR

2024-10-30 Thread Tom Rini
On Wed, Oct 30, 2024 at 11:02:21AM +, Tudor Ambarus wrote: > I'd like to get Cc'ed to u-boot's SPI NOR patches to help review them. > The ultimate goal is to have an aligned approach in u-boot and linux. > > Signed-off-by: Tudor Ambarus Many thanks for volunteering here! Reviewed-by: Tom R

[PATCH 4/6] arm: dts: k3-am625-phycore-som-binman: Add SoM overlays

2024-10-30 Thread Wadim Egorov
Include SoM dt-overlays that handle variants of our SoMs into u-boot's FIT image. Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 54 ++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am625-phycore-som-binman.dtsi b

[PATCH 2/6] configs: phycore_am64x_a53_defconfig: Add SoM overlays to OF_OVERLAY_LIST

2024-10-30 Thread Wadim Egorov
Include SoM dt-overlays for DT control so we can include them into our u-boot FIT image. While at it also resync after savedefconfig. Signed-off-by: Wadim Egorov --- configs/phycore_am64x_a53_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/phycore_am64x_a5

Re: [PATCH] gpio: qcom_pmic: add again the quirk to skip GPIO configuration on PM8550

2024-10-30 Thread Neil Armstrong
Hi Caleb, On 16/10/2024 11:16, Neil Armstrong wrote: The qcom_pmic code is broken for new PMICs and should be fixed, without the QUIRK the code is broken and the GPIOs don't work anymore on SM8550 and SM8650 platforms. Partially revert the revert and only add the quirk on the PM8550 PMIC, makin

[PATCH 3/6] configs: phycore_am64x_a53_defconfig: Enable PHYTEC_SOM_DETECTION

2024-10-30 Thread Wadim Egorov
Enable CONFIG_PHYTEC_SOM_DETECTION to apply SoM overlays based on EEPROM configuration. Signed-off-by: Wadim Egorov --- configs/phycore_am64x_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/phycore_am64x_a53_defconfig b/configs/phycore_am64x_a53_defconfig index 3db18d8

Re: [PATCH v1 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-10-30 Thread Michal Simek
On 10/30/24 15:38, Vasileios Amoiridis wrote: On Wed, Oct 30, 2024 at 02:13:43PM +0100, Michal Simek wrote: On 10/29/24 19:58, Vasileios Amoiridis wrote: From: Vasileios Amoiridis Add native support of the bootcount mechanism in the ZynqMP by utilising internal PMU registers. The Persis

[PATCH] bios_emulator: define the comment symbol for RISC-V assembler too

2024-10-30 Thread Yuri Zaporozhets
The bios_emulator driver cannot be compiled for RISC-V because the x86emu.h header file doesn't define the comment symbol ("#") for the assembler. With this patch, use the same symbol as for e.g. x86. Signed-off-by: Yuri Zaporozhets --- drivers/bios_emulator/include/x86emu.h | 2 +- 1 file chang

Re: [PATCH 1/9] mtd: spi-nor: Remove recently added nor->addr_width == 3 test

2024-10-30 Thread Michal Simek
On 10/30/24 15:49, Tudor Ambarus wrote: On 10/30/24 2:17 PM, Jagan Teki wrote: On Wed, Oct 30, 2024 at 4:15 PM Tudor Ambarus wrote: On 10/30/24 10:33 AM, Jagan Teki wrote: Hi Marek, On Sun, Oct 27, 2024 at 1:48 AM Marek Vasut wrote: Remove undocumented nor->addr_width == 3 test. T

[PATCH 6/6] board: phytec: common: k3: Apply SoM-specific overlays to OS device tree

2024-10-30 Thread Wadim Egorov
Our SoMs are available in multiple configurations, managed via device tree overlays. To determine the specific variant in use, we read the EEPROM and apply the appropriate overlays during boot to the device tree used by the OS. Signed-off-by: Wadim Egorov --- board/phytec/common/k3/board.c | 73

[PATCH 5/6] arm: dts: k3-am642-phycore-som-binman: Add SoM overlays

2024-10-30 Thread Wadim Egorov
Include SoM dt-overlays that handle variants of our SoMs into u-boot's FIT image. Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am642-phycore-som-binman.dtsi | 54 ++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am642-phycore-som-binman.dtsi b

[PATCH 0/6] Apply SoM overlays on phyCORE-AM6xx SoMs

2024-10-30 Thread Wadim Egorov
Our SoMs are available in multiple configurations, managed via device tree overlays. To determine the specific variant in use, we read the EEPROM and apply the appropriate overlays during boot to the device tree used by the OS. Apply overlays for phyCORE-AM62x and phyCORE-AM64x SoMs. Future K3 SoM

Re: [PATCH 1/9] mtd: spi-nor: Remove recently added nor->addr_width == 3 test

2024-10-30 Thread Tudor Ambarus
On 10/30/24 2:17 PM, Jagan Teki wrote: > On Wed, Oct 30, 2024 at 4:15 PM Tudor Ambarus > wrote: >> >> >> >> On 10/30/24 10:33 AM, Jagan Teki wrote: >>> Hi Marek, >>> >>> On Sun, Oct 27, 2024 at 1:48 AM Marek Vasut >>> wrote: Remove undocumented nor->addr_width == 3 test. This was ad

Re: [PATCH v1 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-10-30 Thread Vasileios Amoiridis
On Wed, Oct 30, 2024 at 06:26:08AM +0100, Heiko Schocher wrote: > Hello Vasileios, > > On 29.10.24 19:58, Vasileios Amoiridis wrote: > > From: Vasileios Amoiridis > > > > Add native support of the bootcount mechanism in the ZynqMP by utilising > > internal > > PMU registers. The Persistent Glob

env: ENV_WRITEABLE_LIST with ".flags" variable

2024-10-30 Thread Zixun LI
Hello, I read the code about environment variable protection and an old discussion: https://lists.denx.de/pipermail/u-boot/2021-April/446247.html but I still have a question. In env_flags_init() we have: if (first_call) { #ifdef CONFIG_ENV_WRITEABLE_LIST flags_list = ENV_FLAGS_LIST_ST

Re: [PATCH 1/9] mtd: spi-nor: Remove recently added nor->addr_width == 3 test

2024-10-30 Thread Jagan Teki
On Wed, Oct 30, 2024 at 4:15 PM Tudor Ambarus wrote: > > > > On 10/30/24 10:33 AM, Jagan Teki wrote: > > Hi Marek, > > > > On Sun, Oct 27, 2024 at 1:48 AM Marek Vasut > > wrote: > >> > >> Remove undocumented nor->addr_width == 3 test. This was added in commit > >> 5d40b3d384dc ("mtd: spi-nor: Add

Re: [PATCH v1 0/1] bootcount: zynqmp: Add bootcount API

2024-10-30 Thread Vasileios Amoiridis
On Tue, Oct 29, 2024 at 01:12:30PM -0600, Tom Rini wrote: > On Tue, Oct 29, 2024 at 07:58:13PM +0100, Vasileios Amoiridis wrote: > > From: Vasileios Amoiridis > > > > Add support for the bootcount API by utilizing the internal Persistent > > Global General Registers of the PMU. These registers ge

[PATCH 1/6] configs: phycore_am62x_a53_defconfig: Add SoM overlays to OF_OVERLAY_LIST

2024-10-30 Thread Wadim Egorov
Include SoM dt-overlays for DT control so we can include them into our u-boot FIT image. Signed-off-by: Wadim Egorov --- configs/phycore_am62x_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/phycore_am62x_a53_defconfig b/configs/phycore_am62x_a53_defconfig index dfff58

Re: [PATCH v9 02/11] efi_loader: Add a test app

2024-10-30 Thread Ilias Apalodimas
Hi Heinrich On Wed, 30 Oct 2024 at 18:55, Heinrich Schuchardt wrote: > > On 10/29/24 20:22, Simon Glass wrote: > > Add a simple app to use for testing. This is intended to do whatever it > > needs to for testing purposes. For now it just prints a message and > > exits boot services. > > > > The

Re: [PATCH v1 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-10-30 Thread Vasileios Amoiridis
On Wed, Oct 30, 2024 at 04:49:10PM +0100, Michal Simek wrote: > > > On 10/30/24 15:38, Vasileios Amoiridis wrote: > > On Wed, Oct 30, 2024 at 02:13:43PM +0100, Michal Simek wrote: > > > > > > > > > On 10/29/24 19:58, Vasileios Amoiridis wrote: > > > > From: Vasileios Amoiridis > > > > > > > >

[PATCH] efi_loader: Make tcg2_uninit() static

2024-10-30 Thread Ilias Apalodimas
This function is only used locally, so make it static and quiesce the W=1 warning Signed-off-by: Ilias Apalodimas --- lib/efi_loader/efi_tcg2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_tcg2.c b/lib/efi_loader/efi_tcg2.c index 45f451ef6b6d..866a529857

[PATCH] lib: efi_loader: Fix efi_dp_from_mem() call

2024-10-30 Thread Moritz Fischer
The function expects an end address but is being called with an size instead. Fixes: 6422820ac3 ("efi_loader: split unrelated code from efi_bootmgr.c") Signed-off-by: Moritz Fischer --- lib/efi_loader/efi_bootbin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/efi_loa

Re: [PATCH] lmb: Correctly unmap memory after notifications

2024-10-30 Thread Heinrich Schuchardt
On 10/29/24 09:48, Ilias Apalodimas wrote: Hi Heinrich On Tue, 29 Oct 2024 at 10:00, Ilias Apalodimas wrote: Hi Heinrich On Mon, 28 Oct 2024 at 08:37, Heinrich Schuchardt wrote: On 10/24/24 12:46, Ilias Apalodimas wrote: We never unmap the memory used to update the EFI memory map after n

[PATCH] arm: dts: e850-96: Remove TRNG node from appended dts

2024-10-30 Thread Sam Protsenko
Commit 136b7b6d2e98 ("Subtree merge tag 'v6.11-dts' of dts repo [1] into dts/upstream") updates the upstream dts for E850-96 board, bringing upstream TRNG node. There is no need to keep TRNG node in appended dts anymore, so remove it. Tested on E850-96 board by running 'rng' command in U-Boot shel

Re: [PATCH v4 2/2] binman: expand test coverage to nxp_imx8mcst

2024-10-30 Thread Fabio Estevam
Hi Brian, On Wed, Oct 30, 2024 at 5:08 AM Brian Ruley wrote: > > Add coverage for IMX8M code siging. Create PKI tree and other assets > required by `cst' using `hab4_pki_tree.sh' script and `srktool' in > `cst_3.4.1' [1]. > > [1] https://www.nxp.com/webapp/Download?colCode=IMX_CST_TOOL_NEW > > Si

[PATCH v4 0/2] Add support for Cool Pi GenBook

2024-10-30 Thread Andy Yan
Support for Cool Pi GenBook is landing Linux 6.12-rc1, so also add the support for u-boot here. Changes in v4: - Fix a underline too short error in rst doc Changes in v3: - Remove upstreamed dt in genbook-u-boot.dtsi - Remove MMC releated config as there is no SD-card on this machine - Enable LED

Re: [PATCH v4 1/2] binman: nxp_imx8mcst: read certificates from input path

2024-10-30 Thread Rasmus Villemoes
On Wed, Oct 30 2024, Brian Ruley wrote: > Right now, it is unclear where the certificates (and private keys) are > read from if environment variables are unset, and providing complete > paths in the device tree is not ideal. Naturally, it makes sense > to be able to decide where binman should loo

Re: [PATCH v2 4/5] arm: mach-k3: j721e-init.c: J7200: Add support for CONFIG_K3_OPP_LOW

2024-10-30 Thread Aniket Limaye
Hi Manorit, On 30/10/24 13:31, Manorit Chawdhry wrote: Hi Aniket, On 15:40-20241029, Manorit Chawdhry wrote: Hi Aniket, On 18:27-20241023, Aniket Limaye wrote: From: Reid Tonking The default j7200 devicetree and k3_avs driver set 2GHz/1GHz frequency for A72/MSMC clks and the OPP_NOM voltag

[PATCH v9 3/7] usb: onboard-hub: add support for Microchip USB5744

2024-10-30 Thread Venkatesh Yadav Abbarapu
Add support for the Microchip USB5744 USB3.0 and USB2.0 Hub. The usb5744 driver trigger hub reset signal after soft reset. The usb5744 hub need to reset after the phy initialization, which toggles the gpio. Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onboard_

[PATCH] configs: visionfive2: re-enable SPL_SYS_MMCSD_RAW_MODE

2024-10-30 Thread Andreas Schwab
To restore MMC boot, enable SPL_SYS_MMCSD_RAW_MODE and recover SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION and SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION. Fixes: 2a00d73d081 ("spl: mmc: Try to clean up raw-mode options") --- configs/starfive_visionfive2_defconfig | 3 +++ 1 file changed, 3 insertions(+) di

Re: [PATCH 2/2] dt-bindings: Drop unused RZ/G2L devicetree bindings

2024-10-30 Thread Marek Vasut
On 10/30/24 11:32 AM, Paul Barker wrote: We are now using the dts/upstream subtree for the RZ/G2L SoC family. That's great news, but ... what does this commit do ? It would be good to at least include "Drop unused headers" in the commit message.

Re: [PATCH] board: rzg2l: Update MAINTAINERS file to match dts/upstream paths

2024-10-30 Thread Marek Vasut
On 10/30/24 11:35 AM, Paul Barker wrote: We are now using the dts/upstream subtree for the RZ/G2L SoC family, so update the board MAINTAINERS file to match rz-smarc dtsi files in this subtree. Signed-off-by: Paul Barker Reviewed-by: Marek Vasut

Re: [PATCH v3] rockchip: add support for Radxa ROCK 5A with SPI NOR flash module

2024-10-30 Thread Eugen Hristev
On 10/30/24 08:30, Kever Yang wrote: Hi Naoki, On 2024/10/30 14:07, FUKAUMI Naoki wrote: on Radxa ROCK 5A, sdhci(eMMC) and fspim0(SPI NOR flash) share pins (i.e. eMMC and SPI NOR flash are exclusive), new defconfig and dts specifically for SPI NOR flash is required. Signed-off-by: FUKAUMI N

[PATCH v2 1/2] ARM: dts: Drop unused RZ/G2L devicetrees

2024-10-30 Thread Paul Barker
We are now using the dts/upstream subtree for the RZ/G2L SoC family so we can drop unused devicetree files from arch/arm/dts. Signed-off-by: Paul Barker --- Changes v1->v2: - Improve commit message arch/arm/dts/Makefile |3 - arch/arm/dts/r9a07g044.dtsi |

[PATCH v2 2/2] dt-bindings: Drop unused RZ/G2L devicetree bindings

2024-10-30 Thread Paul Barker
We are now using the dts/upstream subtree for the RZ/G2L SoC family so we can drop unused dt-bindings headers. Signed-off-by: Paul Barker --- Changes v1->v2: - Improve commit message include/dt-bindings/clock/r9a07g044-cpg.h | 220 -- .../interrupt-controller/irqc-rzg2l.h

Re: [PATCH v8 2/8] efi_loader: Add a test app

2024-10-30 Thread Tom Rini
On Wed, Oct 30, 2024 at 08:41:27AM +0100, Simon Glass wrote: > Hi Tom, > > On Tue, 29 Oct 2024 at 17:46, Tom Rini wrote: > > > > On Tue, Oct 29, 2024 at 04:46:16PM +0100, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Mon, 28 Oct 2024 at 19:43, Heinrich Schuchardt > > > wrote: > > > > > >

[PATCH 1/3] cmd/nvedit.c: teach 'env default' to optionally keep runtime variables

2024-10-30 Thread Rasmus Villemoes
It can be useful to set all variables defined in the default environment to the value they have there, but without removing variables that are only defined at runtime. This can sort-of be done today, by using the "env default var1 var2 ..." variant, but that requires listing all variables defined i

[PATCH] arm: mach-k3: am62a7: Provide a way to obtain boot device for non SPLs

2024-10-30 Thread Garrett Giordano
Introduce get_boot_device() to obtain the booting device. Make it also available for non SPL builds so u-boot can also know the device it is booting from. Signed-off-by: Garrett Giordano --- arch/arm/mach-k3/Makefile | 1 + arch/arm/mach-k3/am62ax/Makefile | 1 + arch/arm/ma

Re: [PATCH v3] rockchip: add support for Radxa ROCK 5A with SPI NOR flash module

2024-10-30 Thread FUKAUMI Naoki
Hi, On 10/30/24 23:24, Eugen Hristev wrote: On 10/30/24 08:30, Kever Yang wrote: Hi Naoki, On 2024/10/30 14:07, FUKAUMI Naoki wrote: on Radxa ROCK 5A, sdhci(eMMC) and fspim0(SPI NOR flash) share pins (i.e. eMMC and SPI NOR flash are exclusive), new defconfig and dts specifically for SPI NOR

Re: [PATCH 1/1] efi_loader: pass end address to efi_dp_from_mem in efi_dp_from_name

2024-10-30 Thread Moritz Fischer
On Wed, Oct 30, 2024 at 2:02 PM Heinrich Schuchardt wrote: > > efi_dp_from_mem() expects the last parameter to be the end address and not > the size. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Moritz Fischer > --- > lib/efi_loader/efi_device_path.c | 3 ++- > 1 file changed, 2 inserti

[PATCH 2/3] test: env: check that non-mentioned variables to "env default" are preserved

2024-10-30 Thread Rasmus Villemoes
Instead of testing the same expected behaviour for both non_default_varX, test that when var1 is not in the default env but is mentioned in the "env default" cmdline, it is removed, while var2 is untouched. Signed-off-by: Rasmus Villemoes --- test/env/cmd_ut_env.c | 7 +++ 1 file changed, 3

Re: [PATCH] arm: mach-k3: am62a7: Provide a way to obtain boot device for non SPLs

2024-10-30 Thread Bryan Brattlof
Hi Garrett! On October 30, 2024 thus sayeth Garrett Giordano: > Introduce get_boot_device() to obtain the booting device. Make it also > available for non SPL builds so u-boot can also know the device it > is booting from. > All looks good but I'm trying to understand the scenario. Are we using

Re: [PATCH v2] lib: efi_loader: Fix efi_dp_from_mem() calls

2024-10-30 Thread Patrick Wildt
On Wed, Oct 30, 2024 at 10:18 PM Moritz Fischer wrote: > The function expects an end address but is being called with > an size instead. > > Fixes: 6422820ac3 ("efi_loader: split unrelated code from efi_bootmgr.c") > Reviewed-by: Heinrich Schuchardt > Reviewed-by: Ilias Apalodimas > Signed-off-

[PATCH 1/1] efi_loader: pass end address to efi_dp_from_mem in efi_dp_from_name

2024-10-30 Thread Heinrich Schuchardt
efi_dp_from_mem() expects the last parameter to be the end address and not the size. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_device_path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c i

[PATCH 3/3] test: env: add some test cases for new "env default -k" flag

2024-10-30 Thread Rasmus Villemoes
Check that the new -k flag works as expected. This also adds a test of the -a flag, which was previously missing, and as the comment says, perhaps for a good reason. At least now we have a test for it in combination with -k (and -f, because the ethaddr variables otherwise cause complaining). Sign

[PATCH 0/3] teach 'env default' to optionally keep runtime variables

2024-10-30 Thread Rasmus Villemoes
Doing bringup of a board, part of my bootstrap logic is in U-Boot. So when tweaking that logic, I was bitten by a previous completed bootstrap having left a copy of the environment on the device, which was imported and thus overrided the new logic. So I thought, "ok, I'll just make sure to put 'en

Re: [PATCH v2 2/2] rockchip: add support for Radxa ROCK 5A with SPI NOR flash module

2024-10-30 Thread FUKAUMI Naoki
Hi, On 10/30/24 19:39, Quentin Schulz wrote: Hi Naoki, On 10/30/24 4:09 AM, FUKAUMI Naoki wrote: Hi, could you review this patch, anyone? Best regards, -- FUKAUMI Naoki Radxa Computer (Shenzhen) Co., Ltd. On 8/25/24 07:33, FUKAUMI Naoki wrote: on Radxa ROCK 5A, sdhci(eMMC) and fspim0(SPI

[PATCH v2] lib: efi_loader: Fix efi_dp_from_mem() calls

2024-10-30 Thread Moritz Fischer
The function expects an end address but is being called with an size instead. Fixes: 6422820ac3 ("efi_loader: split unrelated code from efi_bootmgr.c") Reviewed-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas Signed-off-by: Moritz Fischer --- Changes from v1: - Fixed second callsite - Re

[PATCH 1/3] configs: rockchip: enable RK806 SPI PMIC for Radxa ROCK 5A

2024-10-30 Thread FUKAUMI Naoki
enable RK806 SPI PMIC driver and related cmd/configs for Radxa ROCK 5A. Signed-off-by: FUKAUMI Naoki --- configs/rock5a-rk3588s_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/rock5a-rk3588s_defconfig b/configs/rock5a-rk3588s_defconfig index 9618d590009..d2770198ef2 1

[PATCH 3/3] configs: rockchip: enable RK806 SPI PMIC for Radxa ROCK 5B

2024-10-30 Thread FUKAUMI Naoki
enable RK806 SPI PMIC driver and related cmd/configs for Radxa ROCK 5B. Signed-off-by: FUKAUMI Naoki --- configs/rock5b-rk3588_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig index 47ee2109f8e..cf10965cf0f 1006

[PATCH 2/3] configs: rockchip: run savedefconfig for TCPM related configs for Radxa ROCK 5B

2024-10-30 Thread FUKAUMI Naoki
run savedefconfig for next patch for Radxa ROCK 5B. Signed-off-by: FUKAUMI Naoki --- configs/rock5b-rk3588_defconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig index c54e13e8732..47ee2109f8e 100644 -

Re: [PATCH] lib: efi_loader: Fix efi_dp_from_mem() call

2024-10-30 Thread Moritz Fischer
On Wed, Oct 30, 2024 at 10:28:40PM GMT, Ilias Apalodimas wrote: Hi Moritz Thanks for the patch On Wed, 30 Oct 2024 at 22:16, Moritz Fischer wrote: > > The function expects an end address but is being called with > an size instead. > > Fixes: 6422820ac3 ("efi_loader: split unrelated code fr

[PATCH] bios_emulator: fix first argument of pci_{read,write}_config_* function calls

2024-10-30 Thread Yuri Zaporozhets
When compiling for riscv64, a bunch of warning is produced for the file drivers/bios_emulator/besys.c. This patch fixes a portion of those warnings, caused by incorrect first argument to pci_{read,write}_config_* functions. Signed-off-by: Yuri Zaporozhets --- drivers/bios_emulator/besys.c | 20 +

Re: [PATCH] lmb: Correctly unmap memory after notifications

2024-10-30 Thread Tom Rini
On Thu, 24 Oct 2024 13:46:25 +0300, Ilias Apalodimas wrote: > We never unmap the memory used to update the EFI memory map after > notifications > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] MAINTAINERS: add tambarus as reviewer for SPI NOR

2024-10-30 Thread Tom Rini
On Wed, 30 Oct 2024 11:02:21 +, Tudor Ambarus wrote: > I'd like to get Cc'ed to u-boot's SPI NOR patches to help review them. > The ultimate goal is to have an aligned approach in u-boot and linux. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] boot/Kconfig: correct fdt_fixup_memory_banks name typo

2024-10-30 Thread Tom Rini
On Mon, 28 Oct 2024 18:44:35 +0200, Baruch Siach wrote: > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] arch: arm: dts: k3-j784s4-r5: Introduce k3-j784s4-r5.dtsi

2024-10-30 Thread Tom Rini
On Thu, 24 Oct 2024 15:30:04 +0530, Manorit Chawdhry wrote: > Create an SoC R5 dtsi file that could be used at board level R5 files. This > would help in keeping the SoC level changes in sync across board files. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] scripts/dtc/pylibfdt/libfdt.i_shipped: Use SWIG_AppendOutput

2024-10-30 Thread Tom Rini
On Wed, 30 Oct 2024 06:07:16 +0100, Markus Volk wrote: > Swig has changed language specific AppendOutput functions. The helper > macro SWIG_AppendOutput remains unchanged. Use that instead > of SWIG_Python_AppendOutput, which would require an extra parameter > since swig 4.3.0. > > /home/flk/poky

Re: [PATCH v8 2/8] efi_loader: Add a test app

2024-10-30 Thread Simon Glass
Hi Tom, On Tue, 29 Oct 2024 at 17:46, Tom Rini wrote: > > On Tue, Oct 29, 2024 at 04:46:16PM +0100, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 28 Oct 2024 at 19:43, Heinrich Schuchardt > > wrote: > > > > > > On 10/28/24 18:00, Simon Glass wrote: > > > > Hi Heinrich, > > > > > > > > On

Re: [PATCH v8 5/8] sandbox: Report host default-filename in native mode

2024-10-30 Thread Simon Glass
Hi Tom, On Tue, 29 Oct 2024 at 17:40, Tom Rini wrote: > > On Tue, Oct 29, 2024 at 04:45:54PM +0100, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 28 Oct 2024 at 20:16, Heinrich Schuchardt > > wrote: > > > > > > On 10/25/24 11:56, Ilias Apalodimas wrote: > > > > Hi Simon, > > > > > > > > >

Re: [PATCH v2 4/5] arm: mach-k3: j721e-init.c: J7200: Add support for CONFIG_K3_OPP_LOW

2024-10-30 Thread Manorit Chawdhry
Hi Aniket, On 15:40-20241029, Manorit Chawdhry wrote: > Hi Aniket, > > On 18:27-20241023, Aniket Limaye wrote: > > From: Reid Tonking > > > > The default j7200 devicetree and k3_avs driver set 2GHz/1GHz frequency > > for A72/MSMC clks and the OPP_NOM voltage. > > > > J7200 SOCs may support OPP

[PATCH] driver: sifive ccache: enable TRUNKCLOCKGATE and REGIONCLOCKGATE

2024-10-30 Thread Nick Hu
Enable the clock gating bit of ccache when the platform has the ccache0. Signed-off-by: Nick Hu --- drivers/cache/cache-sifive-ccache.c | 33 ++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/drivers/cache/cache-sifive-ccache.c b/drivers/cache/cache-si

[PATCH] scripts/dtc/pylibfdt/libfdt.i_shipped: Use SWIG_AppendOutput

2024-10-30 Thread Markus Volk
Swig has changed language specific AppendOutput functions. The helper macro SWIG_AppendOutput remains unchanged. Use that instead of SWIG_Python_AppendOutput, which would require an extra parameter since swig 4.3.0. /home/flk/poky/build-test/tmp/work/qemux86_64-poky-linux/u-boot/2024.10/git/arch/x

Re: [RFC PATCH 2/2] apple: dart: use driver specific instance of LMB

2024-10-30 Thread Janne Grunau
On Tue, Oct 29, 2024 at 02:22:53PM +0530, Sughosh Ganu wrote: > On Tue, 29 Oct 2024 at 14:02, Janne Grunau wrote: > > > > On Tue, Oct 29, 2024 at 12:48:46PM +0530, Sughosh Ganu wrote: > > > The LMB module is typically used for managing the platform's RAM > > > memory. RAM memory gets added to the

[PATCH v4 2/2] binman: expand test coverage to nxp_imx8mcst

2024-10-30 Thread Brian Ruley
Add coverage for IMX8M code siging. Create PKI tree and other assets required by `cst' using `hab4_pki_tree.sh' script and `srktool' in `cst_3.4.1' [1]. [1] https://www.nxp.com/webapp/Download?colCode=IMX_CST_TOOL_NEW Signed-off-by: Brian Ruley --- Changes for v4: - Rebased on master: 340_nx

[PATCH v4 1/2] binman: nxp_imx8mcst: read certificates from input path

2024-10-30 Thread Brian Ruley
Right now, it is unclear where the certificates (and private keys) are read from if environment variables are unset, and providing complete paths in the device tree is not ideal. Naturally, it makes sense to be able to decide where binman should look for the files, regardless whether the keys are s

Re: [PATCH v3 2/2] board: rockchip: Add support for rk3588 GenBook

2024-10-30 Thread Kever Yang
Hi Andy, On 2024/10/26 17:34, Andy Yan wrote: Add support for Cool Pi GenBook, it works as a carrier board connect with CM5 SOM. Specification: - Rockchip RK3588 - LPDDR5X 8/32 GB - eMMC 64 GB - HDMI Type A out x 1 - USB 3.0 Host x 1 - USB-C 3.0 with DisplayPort AltMode - PCIE M.2 E Key for RTL