RE: [RFC PATCH v1 1/1] mmc: zynq_sdhci: Only evaluate card-stable signal if card was detected

2024-05-29 Thread Abbarapu, Venkatesh
Hi Lukas, The polling of card-stable bit alone is enough, as if card-detect bit is not set anyways the card-stable bit won't be set which leads to timeout. I don’t think it is specific to zynqmp platform. Could you please let me know if you observe this issue on any of the zynqmp board? Thanks

Re: [PATCH 09/14] arch: mach-k3: Introduce basic files to support J722S SoC family

2024-05-29 Thread Jayesh Choudhary
Hello Neha, Thanks for the review. On 30/05/24 08:15, Neha Malcom Francis wrote: Hi Jayesh On 29/05/24 18:54, Jayesh Choudhary wrote: Introduce the basic functions and definitions needed to properly initialize TI J722S family of SoCs. Co-developed-by: Vaishnav Achath Signed-off-by: Vaishnav

Re: [PATCH 09/14] arch: mach-k3: Introduce basic files to support J722S SoC family

2024-05-29 Thread Jayesh Choudhary
Hello Andrew, Thanks for the review. On 29/05/24 20:47, Andrew Davis wrote: On 5/29/24 8:24 AM, Jayesh Choudhary wrote: Introduce the basic functions and definitions needed to properly initialize TI J722S family of SoCs. Co-developed-by: Vaishnav Achath Signed-off-by: Vaishnav Achath Signed

Re: [PATCH 01/14] arm: mach-k3: Sort CONFIG_SOC* and K3_SOC_ID entries

2024-05-29 Thread Jayesh Choudhary
Hello Andrew, On 29/05/24 20:35, Andrew Davis wrote: On 5/29/24 8:24 AM, Jayesh Choudhary wrote: Sort CONFIG_SOC* and K3_SOC_ID alphabetically. Why? I kinda like the chronological order we have today, helps me remember what are the newer/older parts. Which then helps in seeing where the line

Re: [PATCH 03/14] soc: add info to identify the J722S SoC family

2024-05-29 Thread Jayesh Choudhary
Hello Andrew, On 29/05/24 20:36, Andrew Davis wrote: On 5/29/24 8:24 AM, Jayesh Choudhary wrote: Include the part number for TI's j722s family of SoC to identify it during boot. Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary ---   arch/arm/mach-k3/include/mach/hardware.h | 2

[PATCH v2] configs: add mvebu_espressobin_ultra-88f3720_defconfig

2024-05-29 Thread Benjamin Schneider
Add support for a Marvell Armada 3720 device variant Signed-off-by: Benjamin Schneider --- Changes in v2: - Update MAINTAINERS board/Marvell/mvebu_armada-37xx/MAINTAINERS | 5 + .../mvebu_espressobin_ultra-88f3720_defconfig | 106 ++ 2 files changed, 111 insertions(+) crea

Re: [PATCH v1 2/2] board: microchip: icicle: make both ethernets optional

2024-05-29 Thread Leo Liang
On Wed, May 15, 2024 at 04:04:31PM +0100, Conor Dooley wrote: > From: Conor Dooley > > A given AMP configuration for a board may make either one, or neither > of, the ethernet ports available to U-Boot. The Icicle's init code will > fail if mac1 is not present, so move it to the optional approach

Re: [PATCH v1 1/2] board: microchip: icicle: correct type for node offset

2024-05-29 Thread Leo Liang
On Wed, May 15, 2024 at 04:04:30PM +0100, Conor Dooley wrote: > From: Conor Dooley > > Node offsets returned by libfdt can contain negative error numbers, so > the variable type should be "int". As things stand, if the ethernet > nodes are not found in the early init callback, the if (node < 0) t

Re: [PATCH 14/14] doc: board: ti: Add J722S-EVM documentation

2024-05-29 Thread Neha Malcom Francis
On 29/05/24 18:54, Jayesh Choudhary wrote: Introduce basic documentation for the J722S-EVM. Signed-off-by: Jayesh Choudhary --- doc/board/ti/j722s_evm.rst | 260 + doc/board/ti/k3.rst| 1 + 2 files changed, 261 insertions(+) create mode 100644

Re: [PATCH 09/14] arch: mach-k3: Introduce basic files to support J722S SoC family

2024-05-29 Thread Neha Malcom Francis
Hi Jayesh On 29/05/24 18:54, Jayesh Choudhary wrote: Introduce the basic functions and definitions needed to properly initialize TI J722S family of SoCs. Co-developed-by: Vaishnav Achath Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- arch/arm/mach-k3/Kconfig

Re: [PATCH 08/14] ram: k3-ddrss: Enable the am62ax's DDR controller for J722S

2024-05-29 Thread Neha Malcom Francis
On 29/05/24 18:54, Jayesh Choudhary wrote: The J722S family of SoCs uses the same DDR controller as found on the AM62A family. Enable this option when building for the J722S family. Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- drivers/ram/Kconfig | 2 +- 1 file changed

Re: [PATCH 06/14] arm: mach-k3: r5: Makefile: Fix the order for entries

2024-05-29 Thread Neha Malcom Francis
On 29/05/24 18:54, Jayesh Choudhary wrote: Add the entries in alphabetical order. Signed-off-by: Jayesh Choudhary --- arch/arm/mach-k3/r5/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-k3/r5/Makefile b/arch/arm/mach-k3/r5/Makefile index 1cfc8

Re: [PATCH 05/14] power: domain: ti: Fix the order for platform data entries

2024-05-29 Thread Neha Malcom Francis
On 29/05/24 18:54, Jayesh Choudhary wrote: Add the power domain platform data entries in alphabetical order. Signed-off-by: Jayesh Choudhary --- drivers/power/domain/ti-power-domain.c | 36 +- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/pow

Re: [PATCH 02/14] soc: ti: k3-socinfo: Fix SOC JTAG entry order

2024-05-29 Thread Neha Malcom Francis
On 29/05/24 18:54, Jayesh Choudhary wrote: Add JTAG_ID_PARTNO_* in alphabetical order. Signed-off-by: Jayesh Choudhary --- drivers/soc/soc_ti_k3.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k

Re: [PATCH 01/14] arm: mach-k3: Sort CONFIG_SOC* and K3_SOC_ID entries

2024-05-29 Thread Neha Malcom Francis
On 29/05/24 18:54, Jayesh Choudhary wrote: Sort CONFIG_SOC* and K3_SOC_ID alphabetically. Signed-off-by: Jayesh Choudhary --- arch/arm/mach-k3/include/mach/hardware.h | 37 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/arch/arm/mach-k3/include/mach/

Re: [PATCH v4] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-29 Thread Marek Vasut
On 5/29/24 7:05 PM, Simon Glass wrote: [...] that is not yet implemented as DM_RNG. We also skip this if MEASURED_BOOT is enabled as in that case any modifications to the dt will cause measured boot to fail (although there are many other places the dt is altered). As this fdt node is added els

Re: [PATCH 06/42] mmc: dw_mmc: Extract clock on/off code into a separate routine

2024-05-29 Thread Sam Protsenko
On Thu, May 23, 2024 at 9:36 AM Quentin Schulz wrote: > > Hi Sam, > Hi Quentin, Thanks for reviewing this series! My answers are below (inline). > On 5/23/24 1:30 AM, Sam Protsenko wrote: > > Extract clock control code into a separate routine to avoid code > > duplication in dwmci_setup_bus().

Re: [PATCH v2 6/7] tools: add genguid tool

2024-05-29 Thread Dom (shymega) Rodriguez
On 29.05.2024 16:48, Caleb Connolly wrote: Add a tool that can generate GUIDs that match those generated internally by U-Boot for capsule update fw_images. Dynamic UUIDs in U-Boot work by taking a namespace UUID and hashing it with the board model, compatible, and fw_image name. This tool accep

Re: [PATCH v2 0/7] efi: CapsuleUpdate: support for dynamic UUIDs

2024-05-29 Thread Caleb Connolly
On 29/05/2024 21:49, Simon Glass wrote: Hi Caleb, On Wed, 29 May 2024 at 13:04, Caleb Connolly wrote: How about using the compatible string, instead of a GUID? Is that possible? Could you elaborate? Well, the compatible string (in the root node) is how we normally decide which DT to

Re: [PATCH v2 0/7] efi: CapsuleUpdate: support for dynamic UUIDs

2024-05-29 Thread Simon Glass
Hi Caleb, On Wed, 29 May 2024 at 13:04, Caleb Connolly wrote: > > > > > > How about using the compatible string, instead of a GUID? Is that possible? > > Could you elaborate? Well, the compatible string (in the root node) is how we normally decide which DT to use and which machine we are targeti

Re: [PATCH v2 1/7] lib: uuid: add UUID v5 support

2024-05-29 Thread Simon Glass
Hi Caleb, On Wed, 29 May 2024 at 12:55, Caleb Connolly wrote: > > Hi Simon, > > On 29/05/2024 18:30, Simon Glass wrote: > > Hi Caleb, > > > > On Wed, 29 May 2024 at 08:49, Caleb Connolly > > wrote: > >> > >> Add support for generate version 5 UUIDs, these are determistic and work > > > > spelli

Re: [PATCH v2 6/7] tools: add genguid tool

2024-05-29 Thread Simon Glass
Hi Caleb, On Wed, 29 May 2024 at 13:02, Caleb Connolly wrote: > > Hi Simon, > > On 29/05/2024 18:30, Simon Glass wrote: > > Hi Caleb, > > > > On Wed, 29 May 2024 at 08:49, Caleb Connolly > > wrote: > >> > >> Add a tool that can generate GUIDs that match those generated internally > >> by U-Boot

Re: [PATCH v3 03/25] mbedtls: add mbedtls into the build system

2024-05-29 Thread Tom Rini
On Wed, May 29, 2024 at 03:42:04PM -0400, Raymond Mao wrote: > Hi Tom, > > On Wed, 29 May 2024 at 14:43, Tom Rini wrote: > > > On Wed, May 29, 2024 at 02:38:10PM -0400, Raymond Mao wrote: > > > Hi Tom, > > > > > > On Wed, 29 May 2024 at 14:01, Tom Rini wrote: > > > > > > > On Wed, May 29, 2024

Re: [PATCH v3 03/25] mbedtls: add mbedtls into the build system

2024-05-29 Thread Raymond Mao
Hi Tom, On Wed, 29 May 2024 at 14:43, Tom Rini wrote: > On Wed, May 29, 2024 at 02:38:10PM -0400, Raymond Mao wrote: > > Hi Tom, > > > > On Wed, 29 May 2024 at 14:01, Tom Rini wrote: > > > > > On Wed, May 29, 2024 at 01:42:16PM -0400, Raymond Mao wrote: > > > > Hi Tom, > > > > > > > > On Wed, 2

Re: [PATCH v2 0/7] efi: CapsuleUpdate: support for dynamic UUIDs

2024-05-29 Thread Caleb Connolly
How about using the compatible string, instead of a GUID? Is that possible? Could you elaborate? Regards, Simon -- // Caleb (they/them)

Re: [PATCH v2 6/7] tools: add genguid tool

2024-05-29 Thread Caleb Connolly
Hi Simon, On 29/05/2024 18:30, Simon Glass wrote: Hi Caleb, On Wed, 29 May 2024 at 08:49, Caleb Connolly wrote: Add a tool that can generate GUIDs that match those generated internally by U-Boot for capsule update fw_images. Dynamic UUIDs in U-Boot work by taking a namespace UUID and hashin

Re: [PATCH v2 1/7] lib: uuid: add UUID v5 support

2024-05-29 Thread Caleb Connolly
Hi Simon, On 29/05/2024 18:30, Simon Glass wrote: Hi Caleb, On Wed, 29 May 2024 at 08:49, Caleb Connolly wrote: Add support for generate version 5 UUIDs, these are determistic and work spelling Thanks by hashing a "namespace" UUID together with some unique data. One intended usecase i

Re: [PATCH v3 03/25] mbedtls: add mbedtls into the build system

2024-05-29 Thread Tom Rini
On Wed, May 29, 2024 at 02:38:10PM -0400, Raymond Mao wrote: > Hi Tom, > > On Wed, 29 May 2024 at 14:01, Tom Rini wrote: > > > On Wed, May 29, 2024 at 01:42:16PM -0400, Raymond Mao wrote: > > > Hi Tom, > > > > > > On Wed, 29 May 2024 at 12:58, Tom Rini wrote: > > > > > > > On Tue, May 28, 2024

Re: [PATCH v3 03/25] mbedtls: add mbedtls into the build system

2024-05-29 Thread Raymond Mao
Hi Tom, On Wed, 29 May 2024 at 14:01, Tom Rini wrote: > On Wed, May 29, 2024 at 01:42:16PM -0400, Raymond Mao wrote: > > Hi Tom, > > > > On Wed, 29 May 2024 at 12:58, Tom Rini wrote: > > > > > On Tue, May 28, 2024 at 07:09:14AM -0700, Raymond Mao wrote: > > > > > > > Port mbedtls with dummy lib

Re: [PATCH v3 03/25] mbedtls: add mbedtls into the build system

2024-05-29 Thread Tom Rini
On Wed, May 29, 2024 at 01:42:16PM -0400, Raymond Mao wrote: > Hi Tom, > > On Wed, 29 May 2024 at 12:58, Tom Rini wrote: > > > On Tue, May 28, 2024 at 07:09:14AM -0700, Raymond Mao wrote: > > > > > Port mbedtls with dummy libc header files. > > > Add mbedtls default config header file. > > > Opt

Re: [PATCH v4] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-29 Thread Simon Glass
Hi Tim, On Wed, 29 May 2024 at 10:51, Tim Harvey wrote: > > On Wed, May 29, 2024 at 9:30 AM Simon Glass wrote: > > > > Hi Tim, > > > > On Sat, 25 May 2024 at 14:02, Tim Harvey wrote: > > > > > > If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to > > > randomize the virtual addre

Re: [PATCH v3 03/25] mbedtls: add mbedtls into the build system

2024-05-29 Thread Raymond Mao
Hi Tom, On Wed, 29 May 2024 at 12:58, Tom Rini wrote: > On Tue, May 28, 2024 at 07:09:14AM -0700, Raymond Mao wrote: > > > Port mbedtls with dummy libc header files. > > Add mbedtls default config header file. > > Optimize mbedtls default config by disabling unused features to > > reduce the tar

Re: [PATCH] doc/sphinx, test/py: Update requests module to 2.32.0

2024-05-29 Thread Tom Rini
On Tue, May 21, 2024 at 04:32:53PM -0600, Tom Rini wrote: > The issue described in https://github.com/psf/requests/pull/6655 has > been assigned as a security issue. While unlikely to be exploited in our > usage, update to the current release to fix it. > > Reported-by: GitHub dependabot > Signed

Re: [PATCH v3 03/25] mbedtls: add mbedtls into the build system

2024-05-29 Thread Tom Rini
On Tue, May 28, 2024 at 07:09:14AM -0700, Raymond Mao wrote: > Port mbedtls with dummy libc header files. > Add mbedtls default config header file. > Optimize mbedtls default config by disabling unused features to > reduce the target size. > Add mbedtls kbuild makefile. > Add Kconfig and mbedtls c

Re: [PATCH v4] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-29 Thread Tim Harvey
On Wed, May 29, 2024 at 9:30 AM Simon Glass wrote: > > Hi Tim, > > On Sat, 25 May 2024 at 14:02, Tim Harvey wrote: > > > > If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to > > randomize the virtual address at which the kernel image is loaded, it > > expects entropy to be provide

[PATCH 12/14] arm: dts: Introduce J722S U-Boot dts files

2024-05-29 Thread Jayesh Choudhary
Include the uboot device tree files needed to boot the board. Co-developed-by: Vaishnav Achath Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- arch/arm/dts/Makefile |2 + arch/arm/dts/k3-j722s-binman.dtsi | 172 ++ arch/arm/dts/k3-j722s-ddr

Re: [PATCH v2 1/7] lib: uuid: add UUID v5 support

2024-05-29 Thread Simon Glass
Hi Caleb, On Wed, 29 May 2024 at 08:49, Caleb Connolly wrote: > > Add support for generate version 5 UUIDs, these are determistic and work spelling > by hashing a "namespace" UUID together with some unique data. One intended > usecase is to allow for dynamically generate payload UUIDs for UEFI

Re: [PATCH v2 6/7] tools: add genguid tool

2024-05-29 Thread Simon Glass
Hi Caleb, On Wed, 29 May 2024 at 08:49, Caleb Connolly wrote: > > Add a tool that can generate GUIDs that match those generated internally > by U-Boot for capsule update fw_images. > > Dynamic UUIDs in U-Boot work by taking a namespace UUID and hashing it > with the board model, compatible, and f

Re: [PATCH v4] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-29 Thread Simon Glass
Hi Tim, On Sat, 25 May 2024 at 14:02, Tim Harvey wrote: > > If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to > randomize the virtual address at which the kernel image is loaded, it > expects entropy to be provided by the bootloader by populating > /chosen/kaslr-seed with a 64-bi

Re: [PATCH v2 0/8] efi_loader: improve device-tree loading

2024-05-29 Thread Simon Glass
Hi, On Tue, 28 May 2024 at 18:38, E Shattow wrote: > > Hi, > > On Tue, May 28, 2024 at 7:43 AM Heinrich Schuchardt > wrote: > > > > In U-Boot EFI boot options can already specify both an EFI binary and > > an initrd. With this series we can additionally define the matching > > device-tree to be

Re: [PATCH v2 0/7] efi: CapsuleUpdate: support for dynamic UUIDs

2024-05-29 Thread Simon Glass
Hi Caleb, On Wed, 29 May 2024 at 08:49, Caleb Connolly wrote: > > As more boards adopt support for the EFI CapsuleUpdate mechanism, there > is a growing issue of being able to target updates to them properly. The > current mechanism of hardcoding UUIDs for each board at compile time is > unsustai

Re: Proposal: U-Boot memory management

2024-05-29 Thread Simon Glass
+Sughosh Ganu for reference On Sun, 31 Dec 2023 at 09:16, Tom Rini wrote: > > On Sun, Dec 31, 2023 at 04:40:06PM +0100, Heinrich Schuchardt wrote: > > > > > > Am 31. Dezember 2023 16:11:44 MEZ schrieb Tom Rini : > > >On Sun, Dec 31, 2023 at 07:22:10AM -0700, Simon Glass wrote: > > >> Hi Tom, > >

Re: [PATCH] sandbox: enable support for the unlz4 command

2024-05-29 Thread Simon Glass
On Sat, 25 May 2024 at 02:11, Jonathan Liu wrote: > > This does not work with sandbox at present. Fix it up to use map_sysmem() > to convert an address to a pointer. > > Signed-off-by: Jonathan Liu > --- > cmd/unlz4.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Reviewed-by: Simo

Re: [PATCH] doc: cmd: bootmeth: Fix extlinunx -> extlinux typo

2024-05-29 Thread Simon Glass
On Fri, 24 May 2024 at 07:28, Mattijs Korpershoek wrote: > > Fix a trivial typo in the bootmeth documentation. > > Signed-off-by: Mattijs Korpershoek > --- > doc/usage/cmd/bootmeth.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH] global_data.h: drop write-only field dm_root_f

2024-05-29 Thread Simon Glass
On Mon, 27 May 2024 at 14:04, Rasmus Villemoes wrote: > > The dm_root_f field seems to be entirely write-only and hence > redundant, unless 'git grep' fails to find some access generated via > preprocessor token concatenation or similar. > > Signed-off-by: Rasmus Villemoes > --- > common/board_r

Re: [PATCH 0/4] arm64: versal2: Add support for new AMD Versal Gen 2 SoC

2024-05-29 Thread Tom Rini
On Wed, May 29, 2024 at 04:47:57PM +0200, Michal Simek wrote: > Hi, > > I am sending patches for adding initial support for new AMD Versal Gen 2 > SoC. If you want to find out more information please take a look at this > page: > https://www.amd.com/en/products/adaptive-socs-and-fpgas/versal.html

[PATCH 1/4] arm64: versal2: Add support for AMD Versal Gen 2

2024-05-29 Thread Michal Simek
Add support for AMD Versal Gen 2. SoC is based on Cortex-a78ae 4 cluster/2 cpu core each. A lot of IPs are shared with previous families. There are couple of new IP blocks where the most interesting from user point of view is UFS. Signed-off-by: Michal Simek --- arch/arm/Kconfig

[PATCH 0/4] arm64: versal2: Add support for new AMD Versal Gen 2 SoC

2024-05-29 Thread Michal Simek
Hi, I am sending patches for adding initial support for new AMD Versal Gen 2 SoC. If you want to find out more information please take a look at this page: https://www.amd.com/en/products/adaptive-socs-and-fpgas/versal.html Thanks, Michal Michal Simek (4): arm64: versal2: Add support for AMD

Re: [PATCH] xilinx: Add option to load environment from outside of boot media

2024-05-29 Thread Vasileios Amoiridis
On Mon, 2024-05-27 at 09:34 +0200, Michal Simek wrote: > > > On 5/22/24 19:47, Vasileios Amoiridis wrote: > > From: Vasileios Amoiridis > > > > Currently, if the environment is not in the current boot media, the > > env_get_location() is returning ENVL_UNKNOWN or ENVL_NOWHERE which > > is not t

Re: [PATCH 09/14] arch: mach-k3: Introduce basic files to support J722S SoC family

2024-05-29 Thread Andrew Davis
On 5/29/24 8:24 AM, Jayesh Choudhary wrote: Introduce the basic functions and definitions needed to properly initialize TI J722S family of SoCs. Co-developed-by: Vaishnav Achath Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- arch/arm/mach-k3/Kconfig

Re: [PATCH 03/14] soc: add info to identify the J722S SoC family

2024-05-29 Thread Andrew Davis
On 5/29/24 8:24 AM, Jayesh Choudhary wrote: Include the part number for TI's j722s family of SoC to identify it during boot. Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- arch/arm/mach-k3/include/mach/hardware.h | 2 ++ drivers/soc/soc_ti_k3.c | 3 +++

Re: [PATCH 01/14] arm: mach-k3: Sort CONFIG_SOC* and K3_SOC_ID entries

2024-05-29 Thread Andrew Davis
On 5/29/24 8:24 AM, Jayesh Choudhary wrote: Sort CONFIG_SOC* and K3_SOC_ID alphabetically. Why? I kinda like the chronological order we have today, helps me remember what are the newer/older parts. Which then helps in seeing where the line is between when features are added, all parts after hav

Re: [RFC PATCH v1 1/1] mmc: zynq_sdhci: Only evaluate card-stable signal if card was detected

2024-05-29 Thread Michal Simek
On 4/24/24 10:23, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke On ZynqMp there seems to be a dependency between the card-stable bit and the card-detect bit. The card-stable bit is set *if and only if* the card-detect bit was set before, indicating that the signal was stable and r

[PATCH v2 7/7] test: lib/uuid: add unit tests for dynamic UUIDs

2024-05-29 Thread Caleb Connolly
Add some basic unit tests to validate that the UUID generation behaves as expected. This matches the implementation in efi_loader for sandbox and a Qualcomm board and should catch any regressions. Signed-off-by: Caleb Connolly --- test/lib/uuid.c | 90

[PATCH v2 6/7] tools: add genguid tool

2024-05-29 Thread Caleb Connolly
Add a tool that can generate GUIDs that match those generated internally by U-Boot for capsule update fw_images. Dynamic UUIDs in U-Boot work by taking a namespace UUID and hashing it with the board model, compatible, and fw_image name. This tool accepts the same inputs and will produce the same

[PATCH v2 5/7] lib: uuid: supporting building as part of host tools

2024-05-29 Thread Caleb Connolly
Adjust the UUID library code so that it can be compiled as part of a host tool. This removes the one redundant log_debug() call, as well as the incorrectly defined LOG_CATEGORY. In general this is a fairly trivial change, just adjusting includes and disabling list_guid. This will be used by a ne

[PATCH v2 4/7] sandbox: switch to dynamic UUIDs

2024-05-29 Thread Caleb Connolly
Migrate sandbox over to generating it's capsule update image GUIDs dynamically from the namespace and board/image info. Update the reference and tests to use the new GUIDs. Signed-off-by: Caleb Connolly --- arch/Kconfig | 1 + board/sandbox/sandbox.c

[PATCH v2 3/7] doc: uefi: document dynamic UUID generation

2024-05-29 Thread Caleb Connolly
Document how platforms can generate GUIDs at runtime rather than maintaining a list of UUIDs per-board. Signed-off-by: Caleb Connolly --- doc/develop/uefi/uefi.rst | 31 +++ 1 file changed, 31 insertions(+) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/ue

[PATCH v2 2/7] efi: add a helper to generate dynamic UUIDs

2024-05-29 Thread Caleb Connolly
Introduce a new helper efi_capsule_update_info_gen_ids() which populates the capsule update fw images image_type_id field. This allows for determinstic UUIDs to be used that can scale to a large number of different boards and board variants without the need to maintain a big list. We call this fro

[PATCH v2 1/7] lib: uuid: add UUID v5 support

2024-05-29 Thread Caleb Connolly
Add support for generate version 5 UUIDs, these are determistic and work by hashing a "namespace" UUID together with some unique data. One intended usecase is to allow for dynamically generate payload UUIDs for UEFI capsule updates, so that supported boards can have their own UUIDs without needing

[PATCH v2 0/7] efi: CapsuleUpdate: support for dynamic UUIDs

2024-05-29 Thread Caleb Connolly
As more boards adopt support for the EFI CapsuleUpdate mechanism, there is a growing issue of being able to target updates to them properly. The current mechanism of hardcoding UUIDs for each board at compile time is unsustainable, and maintaining lists of GUIDs is similarly cumbersome. In this se

[PATCH 4/4] spi: versal2: Enable spi drivers for Versal Gen 2

2024-05-29 Thread Michal Simek
Enable and update OSPI/QSPI/GQSPI drivers to support Versal Gen 2 SoCs. Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 4 +++- drivers/spi/Kconfig| 2 +- drivers/spi/cadence_qspi.c | 3 ++- drivers/spi/zynqmp_gqspi.c | 6 -- 4 files chan

[PATCH 3/4] mmc: versal2: Update zynq_sdhci driver to support AMD Versal Gen 2

2024-05-29 Thread Michal Simek
Enable tap delay programming for new SoC and also enable it via defconfig. Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 2 ++ drivers/mmc/zynq_sdhci.c | 22 ++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/configs/amd_vers

[PATCH 2/4] soc: versal2: Add SoC driver for AMD Versal Gen 2

2024-05-29 Thread Michal Simek
Communication is happening via firmware interface (SMC) or via direct register reading if firmware driver is not available. Also enable it via defconfig. Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 1 + drivers/soc/Kconfig| 8 drivers/soc/Makefil

Re: [PATCH v2 2/2] drivers: misc: Add driver to access ZynqMP efuses

2024-05-29 Thread Michal Simek
On 5/15/24 14:41, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Add driver to access ZynqMP efuses. This is a u-boot port of [1]. [1] https://lore.kernel.org/all/20240224114516.86365-8-srinivas.kandaga...@linaro.org/ Signed-off-by: Lukas Funke --- Changes in v2: - Drop vendor

Re: [PATCH v2 0/2] Add eFuse access for ZynqMP

2024-05-29 Thread Michal Simek
On 5/15/24 14:41, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke This series adds a driver to read and write ZynqMP eFuses [1]. The driver can be accessed by the 'fuse read' and 'fuse write' commands Example: => fuse read 0 0xc 3 Reading bank 0: Word 0x000c: 3cb16685 013af2

Re: [PATCH v2 1/2] firmware: zynqmp: Add support to access efuses

2024-05-29 Thread Michal Simek
On 5/15/24 14:41, lukas.funke-...@weidmueller.com wrote: From: Lukas Funke Add functions to access efuses through PMU firmware interface. Signed-off-by: Lukas Funke --- (no changes since v1) drivers/firmware/firmware-zynqmp.c | 31 ++ include/zynqmp_firmwar

[PATCH] doc: Add UEFI supplement document

2024-05-29 Thread Jiaxun Yang
- All I/O access is performed using the CPU's native endianness. + For big-endian architectures, U-Boot should convert data to/from little-endian + before/after accessing I/O devices. --- base-commit: 46ff00bea5dd2dd247d5e2fdadbf5dcf8653cd9a change-id: 20240529-efi-spec-0ea657985272 Be

[PATCH 14/14] doc: board: ti: Add J722S-EVM documentation

2024-05-29 Thread Jayesh Choudhary
Introduce basic documentation for the J722S-EVM. Signed-off-by: Jayesh Choudhary --- doc/board/ti/j722s_evm.rst | 260 + doc/board/ti/k3.rst| 1 + 2 files changed, 261 insertions(+) create mode 100644 doc/board/ti/j722s_evm.rst diff --git a/doc/boa

[PATCH 13/14] configs: introduce configs needed for the J722S

2024-05-29 Thread Jayesh Choudhary
Introduce the initial configs needed to support the J722S SoC family. Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- configs/j722s_evm_a53_defconfig | 177 configs/j722s_evm_r5_defconfig | 137 include/configs/j722s_

[PATCH 10/14] board: ti: Introduce basic board files for the J722S family

2024-05-29 Thread Jayesh Choudhary
Introduce the basic files needed to support the TI J722S family of SoCs. Co-developed-by: Vaishnav Achath Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- board/ti/j722s/Kconfig | 26 + board/ti/j722s/MAINTAINERS |9 + board/ti/j722s/Makefile |

[PATCH 11/14] firmware: ti_sci_static_data: Add static DMA channel

2024-05-29 Thread Jayesh Choudhary
Include the static DMA channel data for using DMA at SPL stage for J722S SoC family. Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- drivers/firmware/ti_sci_static_data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/ti_sci_static_data.h

[PATCH 09/14] arch: mach-k3: Introduce basic files to support J722S SoC family

2024-05-29 Thread Jayesh Choudhary
Introduce the basic functions and definitions needed to properly initialize TI J722S family of SoCs. Co-developed-by: Vaishnav Achath Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- arch/arm/mach-k3/Kconfig | 7 +- arch/arm/mach-k3/Makefile

[PATCH 07/14] arm: mach-k3: j722s: introduce clock and device files for wkup spl

2024-05-29 Thread Jayesh Choudhary
Include the clock and lpsc tree files needed for the wkup spl to initialize the proper PLLs and power domains to boot the SoC. Reviewed-by: Bryan Brattlof Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- arch/arm/mach-k3/r5/Makefile | 1 + arch/arm/mach-k3/r5/j722

[PATCH 08/14] ram: k3-ddrss: Enable the am62ax's DDR controller for J722S

2024-05-29 Thread Jayesh Choudhary
The J722S family of SoCs uses the same DDR controller as found on the AM62A family. Enable this option when building for the J722S family. Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- drivers/ram/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH 06/14] arm: mach-k3: r5: Makefile: Fix the order for entries

2024-05-29 Thread Jayesh Choudhary
Add the entries in alphabetical order. Signed-off-by: Jayesh Choudhary --- arch/arm/mach-k3/r5/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-k3/r5/Makefile b/arch/arm/mach-k3/r5/Makefile index 1cfc8e3ade..f1e61c8548 100644 --- a/arch/arm/mach-k3

[PATCH 05/14] power: domain: ti: Fix the order for platform data entries

2024-05-29 Thread Jayesh Choudhary
Add the power domain platform data entries in alphabetical order. Signed-off-by: Jayesh Choudhary --- drivers/power/domain/ti-power-domain.c | 36 +- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/power/domain/ti-power-domain.c b/drivers/power/do

[PATCH 04/14] clk: ti: clk-k3: use IS_ENABLED macro and fix the clock-data order

2024-05-29 Thread Jayesh Choudhary
Use IS_ENABLED macro for the platform clock-data list and add them in alphabetical order. Reviewed-by: Bryan Brattlof Signed-off-by: Jayesh Choudhary --- drivers/clk/ti/clk-k3.c | 41 + 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/drive

[PATCH 03/14] soc: add info to identify the J722S SoC family

2024-05-29 Thread Jayesh Choudhary
Include the part number for TI's j722s family of SoC to identify it during boot. Signed-off-by: Vaishnav Achath Signed-off-by: Jayesh Choudhary --- arch/arm/mach-k3/include/mach/hardware.h | 2 ++ drivers/soc/soc_ti_k3.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/a

[PATCH 02/14] soc: ti: k3-socinfo: Fix SOC JTAG entry order

2024-05-29 Thread Jayesh Choudhary
Add JTAG_ID_PARTNO_* in alphabetical order. Signed-off-by: Jayesh Choudhary --- drivers/soc/soc_ti_k3.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c index b585e47d46..0838808515 100644 --- a/d

[PATCH 00/14] Add basic U-Boot Support for J722S-EVM

2024-05-29 Thread Jayesh Choudhary
Hello there, This series add the U-Boot support for our new platform of K3-SOC family - J722S-EVM which is a superset of AM62P. It shares the same memory map and thus the nodes are being reused from AM62P includes instead of duplicating the definitions. Some highlights of J722S SoC (in addition t

[PATCH 01/14] arm: mach-k3: Sort CONFIG_SOC* and K3_SOC_ID entries

2024-05-29 Thread Jayesh Choudhary
Sort CONFIG_SOC* and K3_SOC_ID alphabetically. Signed-off-by: Jayesh Choudhary --- arch/arm/mach-k3/include/mach/hardware.h | 37 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/arch/arm/mach-k3/include/mach/hardware.h b/arch/arm/mach-k3/include/mach/har

Re: [PATCH] xilinx: versal: Do not prioritize boot device if driver is not enabled

2024-05-29 Thread Michal Simek
On 5/10/24 08:22, Michal Simek wrote: From: Venkatesh Yadav Abbarapu SOC can boot out of the device which is not accessible from APU and running this is detected as a warning, as the device is not accessible.For example getting below warning when the boot mode is OSPI and OSPI is not enabled

Re: [PATCH ] mtd: spi-nor: Add SPI_NOR_OCTAL_READ flag for mx66uw2g345gx0 flash part

2024-05-29 Thread Michal Simek
On 5/8/24 07:27, Prasad Kummari wrote: Added SPI_NOR_OCTAL_READ flag for Macronix mx66uw2g345gx0 2Gb(256MB) NOR Flash memory has been added. Initial testing was conducted on the I fixed this commit message. Versal NET board using SDR mode, which included basic erase, write, and read-back o

Re: [PATCH v2] xilinx: zynqmp: Allow multiboot environment write even in saved environment

2024-05-29 Thread Michal Simek
On 5/29/24 12:01, Kory Maincent wrote: Once the environment was saved, the current multiboot image information became unreachable. When dealing with firmware updates, this information is necessary alongside the saved environment to know the booted image. Move the multiboot environment set ope

Re: [PATCH] Makefile: Fix include directory for OF_UPSTREAM

2024-05-29 Thread Sumit Garg
On Wed, 29 May 2024 at 14:45, Patrick Barsanti wrote: > > Hi Sumit, > > On Wed, 29 May 2024 at 08:57, Sumit Garg wrote: >> >> Hi Patrick, >> >> On Tue, 28 May 2024 at 14:16, Patrick Barsanti >> wrote: >> > >> > Always prioritizing u-boot includes causes problems when trying to >> > migrate board

[PATCH v2] xilinx: zynqmp: Allow multiboot environment write even in saved environment

2024-05-29 Thread Kory Maincent
Once the environment was saved, the current multiboot image information became unreachable. When dealing with firmware updates, this information is necessary alongside the saved environment to know the booted image. Move the multiboot environment set operation before the saved environment check to

Re: [PATCH] Makefile: Fix include directory for OF_UPSTREAM

2024-05-29 Thread Patrick Barsanti
Hi Sumit, On Wed, 29 May 2024 at 08:57, Sumit Garg wrote: > Hi Patrick, > > On Tue, 28 May 2024 at 14:16, Patrick Barsanti > wrote: > > > > Always prioritizing u-boot includes causes problems when trying to > > migrate boards to OF_UPSTREAM that have divergent devicetree files with > > respect

Re: [PATCH v2 0/8] Add DFU, emmc and usb boot for TI am62x

2024-05-29 Thread Mattijs Korpershoek
Hi Dhruva, On mer., mai 29, 2024 at 11:39, Dhruva Gole wrote: > Hi Sjoerd, > > On Aug 21, 2023 at 14:20:26 -0400, Tom Rini wrote: >> On Mon, Aug 21, 2023 at 04:13:32PM +, Marcel Ziswiler wrote: >> > Hi Sjoerd >> > >> > On Thu, 2023-06-01 at 08:37 +0200, Sjoerd Simons wrote: >> > > On Wed, 2

Re: [PATCH] arm: dts: k3-*-binman: Make default DM file optional

2024-05-29 Thread Kamlesh Gurudasani
Neha Malcom Francis writes: > The default DM firmware path is non-optional as of now. Make it > optional so that users that choose to provide DM via TI_DM argument > instead of BINMAN_INDIRS can do so without build errors. > > Signed-off-by: Neha Malcom Francis > --- > arch/arm/dts/k3-am625-sk-

[PATCH] arm: dts: k3-*-binman: Make default DM file optional

2024-05-29 Thread Neha Malcom Francis
The default DM firmware path is non-optional as of now. Make it optional so that users that choose to provide DM via TI_DM argument instead of BINMAN_INDIRS can do so without build errors. Signed-off-by: Neha Malcom Francis --- arch/arm/dts/k3-am625-sk-binman.dtsi | 1 + arch/arm/dts/k3-am62a-sk

Acked

2024-05-29 Thread Angelo Dureghello
Hi Rasmus, On 28/05/24 1:13 PM, Rasmus Villemoes wrote: watchdog_reset is no more. That is, it is no longer called from anywhere, so any leftover definitions are just dead weight, and references in comments need to be updated. I don't have access to any m68k, sh or powerpc boards. Only lightly

Re: [PATCH 1/5] pinctrl: qcom: add support for bias-pull-down

2024-05-29 Thread Neil Armstrong
On 29/05/2024 07:33, Sumit Garg wrote: Hi Neil, On Tue, 28 May 2024 at 14:02, Neil Armstrong wrote: Add support for bias-pull-down as an alternate of bias-pull-up. nit: s/alternate/alternative/ Signed-off-by: Neil Armstrong --- drivers/pinctrl/qcom/pinctrl-qcom.c | 1 + 1 file change