Re: [PATCH] tpm: measure DTB in PCR1 instead of PCR0

2024-06-14 Thread Ilias Apalodimas
Thanks Eddie, On Sat, 15 Jun 2024 at 00:31, Eddie James wrote: > > > On 6/14/24 07:09, Ilias Apalodimas wrote: > > The PC client spec [0], doesn't describe measurements for DTBs. It does > > describe what do to for ACPI tables though. > > > > There is a description for ACPI in 3.3.4.1 PCR[0] – SR

Re: [PATCH v7 19/24] board: beagleboneai64: Define capsule update firmware info

2024-06-14 Thread Ilias Apalodimas
On Fri, 14 Jun 2024 at 19:36, Jonathan Humphreys wrote: > > Define the firmware components updatable via EFI capsule update, including > defining capsule GUIDs for the various firmware components for the > BeagleBoneAI64. > > Note this involved creating BeagleBoneAI64's own beagleboneai64.h board

Re: [PATCH] tpm: measure DTB in PCR1 instead of PCR0

2024-06-14 Thread Eddie James
On 6/14/24 07:09, Ilias Apalodimas wrote: The PC client spec [0], doesn't describe measurements for DTBs. It does describe what do to for ACPI tables though. There is a description for ACPI in 3.3.4.1 PCR[0] – SRTM, POST BIOS, and Embedded Drivers and they explicitly mention ACPI in there. The

Re: [PATCH 1/2] net: phy: Turn default auto-negotiation timeout into Kconfig symbol

2024-06-14 Thread Tom Rini
On Fri, Jun 14, 2024 at 10:26:20PM +0200, Marek Vasut wrote: > On 6/14/24 4:54 PM, Tom Rini wrote: > > On Fri, 31 May 2024 18:47:16 +0200, Marek Vasut wrote: > > > > > Let users configure default auto-negotiation timeout via Kconfig > > > instead of specifying it in board configuration headers. Th

Re: [PATCH 1/2] net: phy: Turn default auto-negotiation timeout into Kconfig symbol

2024-06-14 Thread Marek Vasut
On 6/14/24 4:54 PM, Tom Rini wrote: On Fri, 31 May 2024 18:47:16 +0200, Marek Vasut wrote: Let users configure default auto-negotiation timeout via Kconfig instead of specifying it in board configuration headers. This is the first step toward converting this to Kconfig fully, so far the legacy

Re: [PATCH v2 0/2] scripts/Makefile.lib: EFI: Use capsule CRT instead of ESL

2024-06-14 Thread Jon Humphreys
Ilias Apalodimas writes: > Hi Jonathan > > On Thu, 13 Jun 2024 at 23:28, Jonathan Humphreys wrote: >> >> Use the capsule's public key certificate rather than a prebuilt ESL >> generated from the certificate. The ESL is now generated as part of the >> build. > > Is there a reason to do this? I un

[PATCH next 2/3] rockchip: io-domain: add support for PX30

2024-06-14 Thread Quentin Schulz
From: Quentin Schulz Port the PX30 part of the Rockchip IO Domain driver from Linux. This differs from linux version in that the io iodomain bit is enabled in the write ops instead of in an init ops as in linux, this way we can avoid keeping a full state of all supplies that have been configured

[PATCH next 3/3] rockchip: ringneck-px30: enable IO domain

2024-06-14 Thread Quentin Schulz
From: Quentin Schulz Enable the IO domain on Ringneck. Based on the current HW design, this should do nothing else than making sure vccio6 iodomain is controlled by the GRF and not GPIO0B6. Signed-off-by: Quentin Schulz --- configs/ringneck-px30_defconfig | 1 + 1 file changed, 1 insertion(+)

[PATCH next 1/3] rockchip: px30: bind sub-nodes for GRF (syscon)

2024-06-14 Thread Quentin Schulz
From: Quentin Schulz There are some sub-nodes under the grf DT nodes, so add bind callback function in syscon_px30 driver to scan them recursively. Fixes: e9ccb2f526ed ("rockchip: add px30 architecture core") Signed-off-by: Quentin Schulz --- arch/arm/mach-rockchip/px30/syscon_px30.c | 3 +++

[PATCH next 0/3] rockchip: px30: add IO domain driver

2024-06-14 Thread Quentin Schulz
| 3 ++ configs/ringneck-px30_defconfig | 1 + drivers/misc/rockchip-io-domain.c | 66 +++ 3 files changed, 70 insertions(+) --- base-commit: 0f4e1025ad2ff19095b754229ffec4527380dae1 change-id: 20240614-px30-io-domain-0963eb8d4031 Best regards, -- Qu

[PATCH v7 09/24] doc: board: ti: j721e: document OSPI layout

2024-06-14 Thread Jonathan Humphreys
Updated OSPI flash layout diagram. Signed-off-by: Jonathan Humphreys Reviewed-by: Tom Rini --- doc/board/ti/img/ospi_sysfw.svg | 1464 +-- doc/board/ti/j721e_evm.rst | 58 +- 2 files changed, 847 insertions(+), 675 deletions(-) diff --git a/doc/board/ti/img/o

[PATCH v7 06/24] doc: board: ti: am64x: document OSPI layout

2024-06-14 Thread Jonathan Humphreys
Added OSPI flash layout diagram, as well as example commands to flash firmware to it. Signed-off-by: Jonathan Humphreys --- doc/board/ti/am64x_evm.rst | 24 + doc/board/ti/img/ospi_sysfw-am64.svg | 802 +++ 2 files changed, 826 insertions(+) create mode 100644

[PATCH v7 24/24] doc: board: ti: j784s4: document OSPI NOR layout

2024-06-14 Thread Jonathan Humphreys
Added OSPI NOR flash layout diagram, as well as example commands to flash firmware to it. Added OSPI boot mode pin setting. Signed-off-by: Jonathan Humphreys --- doc/board/ti/img/ospi_sysfw3.svg | 802 +++ doc/board/ti/j784s4_evm.rst | 28 ++ 2 files changed, 8

[PATCH v7 15/24] doc: board: ti: am62x: document OSPI layout

2024-06-14 Thread Jonathan Humphreys
Added OSPI flash layout diagram, as well as example commands to flash firmware to it. Signed-off-by: Jonathan Humphreys Reviewed-by: Tom Rini --- doc/board/ti/am62x_sk.rst| 24 + doc/board/ti/img/ospi_sysfw2.svg | 802 +++ 2 files changed, 826 insertions(+)

[PATCH v7 08/24] configs: j721e: Enable EFI capsule update

2024-06-14 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/j721e_evm_a72_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index 451a6a91c4f..f99315789c7 100644 --- a/configs/j721e_evm_a72_defc

[PATCH v7 12/24] configs: beagleplay: Enable EFI capsule update

2024-06-14 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/am62x_beagleplay_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am62x_beagleplay_a53_defconfig b/configs/am62x_beagleplay_a53_defconfig index dbdbaf98348..18f6f8865b5 100644 --- a/config

[PATCH v7 20/24] configs: beagleboneai64: Enable EFI capsule update

2024-06-14 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/j721e_beagleboneai64_a72_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j721e_beagleboneai64_a72_defconfig b/configs/j721e_beagleboneai64_a72_defconfig index a354876f8c2..86c565a9211 10064

[PATCH v7 10/24] board: beagleplay: Define capsule update firmware info

2024-06-14 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the BeaglePlay. Note this involved creating BeaglePlay's own beagleplay.h board header file instead of reusing am62_evm's. Signed-off-by: Jonathan Humphreys A

[PATCH v7 19/24] board: beagleboneai64: Define capsule update firmware info

2024-06-14 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the BeagleBoneAI64. Note this involved creating BeagleBoneAI64's own beagleboneai64.h board header file instead of reusing j721e_evm's. Signed-off-by: Jonathan

[PATCH v7 17/24] configs: am62px: Enable EFI capsule update

2024-06-14 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/am62px_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am62px_evm_a53_defconfig b/configs/am62px_evm_a53_defconfig index 9f40c9a0b3c..e1c9c8535e4 100644 --- a/configs/am62px_evm_a53_

[PATCH v7 00/24] EFI: ti: Enable EFI capsule updates

2024-06-14 Thread Jonathan Humphreys
Enable on disk capsule updates, which includes defining the firmware components (tiboot3, spl, u-boot) and enabling processing of raw capsule updates. This is enabled for several TI SoC based platforms: AM64, AM62, AM62p, AM69, BeaglePlay, J7, and BeagleboneAI. The configs to enable this are in a

[PATCH v7 07/24] board: j721e: Define capsule update firmware info

2024-06-14 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the SK-TDA4VM. Signed-off-by: Jonathan Humphreys Acked-by: Ilias Apalodimas --- board/ti/j721e/evm.c| 40 + inclu

[PATCH v7 02/24] doc: ti: k3: Correct spelling mistakes and improve clarity

2024-06-14 Thread Jonathan Humphreys
Few cosmetic fixes for clarity and spelling mistakes. Signed-off-by: Jonathan Humphreys Reviewed-by: Mattijs Korpershoek --- doc/board/ti/k3.rst | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/board/ti/k3.rst b/doc/board/ti/k3.rst index a1c01d1cf02..927f3976d3

[PATCH v7 22/24] board: sk-am69: Define capsule update firmware info

2024-06-14 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the AM69 SK. TODO: possibly make the struct's sk specific. TODO: add doc commit (and make sure doc is sk/NOR specific, and add OSIP boot mode) TODO: update doc

[PATCH v7 16/24] board: am62px: Define capsule update firmware info

2024-06-14 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the AM62px SK. Signed-off-by: Jonathan Humphreys Acked-by: Ilias Apalodimas --- board/ti/am62px/evm.c| 34 ++ include

[PATCH v7 14/24] configs: am62x: Enable EFI capsule update

2024-06-14 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/am62x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am62x_evm_a53_defconfig b/configs/am62x_evm_a53_defconfig index 16294a6a794..aea9aa205c9 100644 --- a/configs/am62x_evm_a53_defcon

[PATCH v7 21/24] configs: j784s4_evm: Enable serial flash DFU support

2024-06-14 Thread Jonathan Humphreys
Enable serial flash DFU support for capsule update of firmware. Signed-off-by: Jonathan Humphreys --- configs/j784s4_evm_a72_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/j784s4_evm_a72_defconfig b/configs/j784s4_evm_a72_defconfig index 2aa16eb7270..141f2e0e156 100644

[PATCH v7 13/24] board: am62x: Define capsule update firmware info

2024-06-14 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the AM62x SK. Signed-off-by: Jonathan Humphreys Acked-by: Ilias Apalodimas --- board/ti/am62x/evm.c| 34 ++ include/c

[PATCH v7 01/24] doc: uefi: capsules: Add Capsule Update porting section

2024-06-14 Thread Jonathan Humphreys
Created a capsule update porting section in the documentation that outlines the steps a board developer must do when porting from an existing reference board implementation. In particular, added a big warning that new capsule GUID's need to be defined. Signed-off-by: Jonathan Humphreys Acked-by:

[PATCH v7 18/24] doc: board: ti: am62px: document OSPI layout

2024-06-14 Thread Jonathan Humphreys
Added OSPI flash layout diagram, as well as example commands to flash firmware to it. Signed-off-by: Jonathan Humphreys Reviewed-by: Tom Rini --- doc/board/ti/am62px_sk.rst | 24 1 file changed, 24 insertions(+) diff --git a/doc/board/ti/am62px_sk.rst b/doc/board/ti/am

[PATCH v7 11/24] configs: beagleplay: Enable DFU for MMC

2024-06-14 Thread Jonathan Humphreys
MMC DFU is required for capsule updates. Signed-off-by: Jonathan Humphreys --- configs/am62x_beagleplay_a53_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am62x_beagleplay_a53_defconfig b/configs/am62x_beagleplay_a53_defconfig index ec62670d55d..dbdbaf98348 100644 ---

[PATCH v7 03/24] configs: ti: Create base EFI capsule configs for TI K3 devices

2024-06-14 Thread Jonathan Humphreys
To better scale with the number of boards, separate TI K3 EFI capsule configs into its own file that can be shared across TI K3 boards. This will allow any platform level config changes to be done once. Signed-off-by: Jonathan Humphreys --- configs/k3_efi_capsule.config | 2 ++ 1 file changed,

[PATCH v7 23/24] configs: j784s4: Enable EFI capsule update

2024-06-14 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/j784s4_evm_a72_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j784s4_evm_a72_defconfig b/configs/j784s4_evm_a72_defconfig index 141f2e0e156..3cfa006f86b 100644 --- a/configs/j784s4_evm_a72_

[PATCH v7 05/24] configs: am64x: Enable EFI capsule update

2024-06-14 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/am64x_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am64x_evm_a53_defconfig b/configs/am64x_evm_a53_defconfig index e000549d6d0..44c22458ab2 100644 --- a/configs/am64x_evm_a53_defc

[PATCH v7 04/24] board: am64x: Define capsule update firmware info

2024-06-14 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the AM64x SK. Signed-off-by: Jonathan Humphreys Acked-by: Ilias Apalodimas Reviewed-by: Tom Rini --- board/ti/am64x/evm.c| 34 ++

[GIT PULL] Please pull u-boot-imx-master-20240614

2024-06-14 Thread Fabio Estevam
-imx.git tags/u-boot-imx-master-20240614 for you to fetch changes up to 09d63e647a0eee024b493ad1d0e0d4a7a65ae500: board: imx8mn_s2: Update timing with production one (2024-06-14 11:42:19 -0300) u-boot-imx-master-20240614 -- CI: https://source.denx.de/u-boot/custodians/u

Re: [PATCH] board: imx8mn_s2: Update timing with production one

2024-06-14 Thread Fabio Estevam
On Mon, Jun 10, 2024 at 3:38 AM Michael Trimarchi wrote: > > The timing upstream was wrong corresponding to the production. > This come evident after commit b614ddb5d33 > (ddr: imx: Save the FW loading if it hasn't changed). This > change fix booting from usb > > Signed-off-by: Michael Trimarchi

[PATCH v2] configs: j784s4: Enable basic EFI CMD support

2024-06-14 Thread Jonathan Humphreys
Enable basic configs for EFI CMD support. Signed-off-by: Jonathan Humphreys --- Changes from v1: - Rebased on latest -next Link to v1: https://lore.kernel.org/r/20240531223057.2619261-1-j-humphr...@ti.com configs/j784s4_evm_a72_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v2] configs: j784s4: Enable RTC emulation

2024-06-14 Thread Jonathan Humphreys
Enable RTC emulation for System Ready IR tests. Signed-off-by: Jonathan Humphreys --- Changes from v1: - Rebased on latest -next Link to v1: https://lore.kernel.org/r/20240531223057.2619261-1-j-humphr...@ti.com configs/j784s4_evm_a72_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [PATCH v6 00/24] EFI: ti: Enable EFI capsule updates

2024-06-14 Thread Tom Rini
On Fri, Jun 07, 2024 at 05:38:34PM -0500, Jonathan Humphreys wrote: > Enable on disk capsule updates, which includes defining the firmware > components (tiboot3, spl, u-boot) and enabling processing of raw capsule > updates. > > This is enabled for several TI SoC based platforms: AM64, AM62, AM62

Re: v2024.07-rc4 issues on VisionFive v2

2024-06-14 Thread Heinrich Schuchardt
On 14.06.24 13:14, Conor Dooley wrote: Hey, After going from Vendor SPL/OpenSBI/U-Boot to OpenSBI v1.4++ plus v2024.07-rc4 SPL/U-Boot I ran into a boot loop problem relating to PCI: U-Boot 2024.07-rc4 (Jun 13 2024 - 15:09:34 +0100) CPU: sifive,u74-mc Model: StarFive Vi

Re: [PATCH] configs: j784s4: Enable basic EFI CMD support

2024-06-14 Thread Tom Rini
On Fri, May 31, 2024 at 05:30:57PM -0500, Jonathan Humphreys wrote: > Enable basic configs for EFI CMD support. > > Signed-off-by: Jonathan Humphreys > --- > configs/j784s4_evm_a72_defconfig | 3 +++ > 1 file changed, 3 insertions(+) Please rebase on top of current -next, thanks. -- Tom si

Re: [PATCH 1/6] arm: dts: k3-j7200-r5: Add the pmic node in R5 dt

2024-06-14 Thread Tom Rini
On Fri, May 31, 2024 at 10:24:30PM +0530, Limaye, Aniket wrote: > > > On 5/31/2024 7:25 PM, Kumar, Udit wrote: > > > > On 5/31/2024 6:38 PM, Aniket Limaye wrote: > > > Add bootph-pre-ram property to the buck node in the pmic needed for > > > ESM error event handling. > > > > > > Signed-off-by:

Re: [PATCH] arm: dts: k3-j721s2-r5: Change GTC clock parent

2024-06-14 Thread Tom Rini
On Tue, 28 May 2024 15:19:54 +0530, Neha Malcom Francis wrote: > MAIN_PLL0 has a flag set in DM (Device Manager) that removes its > capability to re-initialise clock frequencies. A72 CPU clock (GTC) and > RGMII has MAIN_PLL3 as their parent which does not have this flag. While > RGMII needs re-ini

Re: [PATCH v7] test/py: net_boot: Add test cases for net boot

2024-06-14 Thread Tom Rini
On Wed, 05 Jun 2024 15:19:35 +0530, Love Kumar wrote: > Add tests for booting image using tftpboot/pxe boot commands, tftpboot > boot case loads the FIT image into DDR and boots using bootm command > whereas pxe boot cases downloads the pxe configuration file from the > TFTP server and interprets

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

2024-06-14 Thread Tom Rini
On Wed, 29 May 2024 13:18:49 +0530, Neha Malcom Francis wrote: > 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. > > Applied to u-boot/master, thanks!

Re: [PATCH] spl: Kconfig: ARCH_K3: Set default SPL_STACK_R_MALLOC_SIMPLE_LEN for R5 build

2024-06-14 Thread Tom Rini
On Fri, 31 May 2024 20:16:36 +0530, Vignesh Raghavendra wrote: > All ARCH_K3 platforms need about of 2MB of malloc space post > reallocation. Since, this space is allocated from SDRAM, provide a > generous 2MB space by default. > > Platforms requiring more than 2MB can override in defconfig as ne

Re: [PATCH] env: ti: k3_dfu: Drup mmcpart for rootfs

2024-06-14 Thread Tom Rini
On Wed, 29 May 2024 11:35:59 +0530, Neha Malcom Francis wrote: > According to [0], raw access to mmc should not have mmcpart in the > entry. This was fixed in k3_dfu_combined.env but k3_dfu.env had been > overlooked. > > [0] doc/usage/dfu.rst > > > [...] Applied to u-boot/master, thanks! --

Re: [PATCH] test/py: Add support to enable check for bad pattern

2024-06-14 Thread Tom Rini
On Wed, 22 May 2024 18:45:13 +0530, Love Kumar wrote: > Executing a u-boot command may raise an error or extra bad pattern, > beyond the default bad patterns. Providing a way to enable the console > output error check in test. > > For example, description for OS boot test: > import re > check_typ

Re: [PATCH v1] imxtract: add support for zstd-compressed images

2024-06-14 Thread Tom Rini
On Sun, 02 Jun 2024 17:25:52 +0200, Dmitry Gerasimov wrote: > Allow extraction of zstd-compressed images from FIT using imxtract > command. This is especially useful when one has to load an image via > some interface (e.g. SPI) rather that just to the memory. > > Applied to u-boot/master, thank

Re: [PATCH 1/2] net: phy: Turn default auto-negotiation timeout into Kconfig symbol

2024-06-14 Thread Tom Rini
On Fri, 31 May 2024 18:47:16 +0200, Marek Vasut wrote: > Let users configure default auto-negotiation timeout via Kconfig > instead of specifying it in board configuration headers. This is > the first step toward converting this to Kconfig fully, so far the > legacy PHY_ANEG_TIMEOUT in configurati

Re: [PATCH v2 3/8] arm: mach-k3: j721e: Enable QoS for DSS

2024-06-14 Thread Andrew Davis
On 6/14/24 7:44 AM, Jayesh Choudhary wrote: Enable Quality of Service (QoS) blocks for Display SubSystem (DSS), by servicing the DSS - DDR traffic from the Real-Time (RT) queue. This is done by setting the DSS DMA orderID to greater than 7. Before setting up the QoS, the ORDERID needs to be mapp

Re: [PATCH] configs: j784s4: Enable RTC emulation

2024-06-14 Thread Tom Rini
On Fri, May 31, 2024 at 05:32:12PM -0500, Jonathan Humphreys wrote: > Enable RTC emulation for System Ready IR tests. > > Signed-off-by: Jonathan Humphreys > --- > configs/j784s4_evm_a72_defconfig | 3 +++ > 1 file changed, 3 insertions(+) Please rebase on top of current -next, thanks. -- To

Re: [PATCH v2 2/8] arm: mach-k3: am62a: Simplify the logic for QOS reg and val propagation

2024-06-14 Thread Andrew Davis
On 6/14/24 7:44 AM, Jayesh Choudhary wrote: For the QOS registers, instead of using the raw values for calculation for each reg field, use a defined macro which takes in argument for all the reg fields to get the desired value. Do the similar simplification for QOS register and group registers an

Re: [PULL] Pull request for u-boot master / v2024.07 = u-boot-stm32-20240614

2024-06-14 Thread Tom Rini
On Fri, Jun 14, 2024 at 02:55:50PM +0200, Patrice CHOTARD wrote: > Hi Tom > > Please pull the STM32 related fixes for u-boot/master, v2024.07: > u-boot-stm32-20240614 > > CI status: > https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/21116 > > The fol

Re: [PATCH] bcmgenet: fix Rx buffer corruption caused by lack of cache flush

2024-06-14 Thread Tom Rini
On Sun, 02 Jun 2024 17:24:03 +0900, Yasuharu Shibata wrote: > When bcmgenet complete to write Rx buffer with the DMA, > some U-Boot commands write data to the buffer directly. > Those write data will become dirty in CPU cache. > After this driver calls free_pkt to the buffer, > the buffer is assig

Re: [PATCH] cmd: bcb: Fix bcb compilation when CONFIG_CMD_BCB=n

2024-06-14 Thread Tom Rini
On Mon, 03 Jun 2024 11:04:58 +0200, Mattijs Korpershoek wrote: > commit dfeb4f0d7935 ("cmd: bcb: extend BCB C API to allow read/write the > fields") > introduced the bcb_get() function. > > When CONFIG_CMD_BCB=n, that function is stubbed. > The stubbed function has a wrong prototype: value_size

Re: [PATCH] configs: j784s4: Enable OSPI NOR boot

2024-06-14 Thread Tom Rini
On Fri, 31 May 2024 17:32:41 -0500, Jonathan Humphreys wrote: > Set necessary configs to enable the j784s4 device to boot from OSPI NOR > flash. > > Applied to u-boot/master, thanks! -- Tom

Re: v2024.07-rc4 PCI issues on VisionFive v2

2024-06-14 Thread Conor Dooley
On Fri, Jun 14, 2024 at 12:14:37PM +0100, Conor Dooley wrote: > Hey, I forgot a word in $subject, should have said PCI issues. I added it. > > After going from Vendor SPL/OpenSBI/U-Boot to OpenSBI v1.4++ plus > v2024.07-rc4 SPL/U-Boot I ran into a boot loop problem relating to > PCI: > U-B

[PATCH 1/1] mmc: consider cd-gpios in Synopsys DesignWare driver

2024-06-14 Thread Heinrich Schuchardt
The JH7110 SoC uses a GPIO for card detect. * In the of_to_plat function check if a cd-gpios definition exists and request the GPIO. * In the getcd function return the GPIO value in this case. Reported-by: Conor Dooley Signed-off-by: Heinrich Schuchardt --- drivers/mmc/snps_dw_mmc.c | 7

Re: [PATCH 12/20] cyclic: Rise default CYCLIC_MAX_CPU_TIME_US to 5000

2024-06-14 Thread Stefan Roese
On 6/12/24 18:50, Tom Rini wrote: On Wed, Jun 12, 2024 at 05:13:37PM +0100, Jiaxun Yang wrote: 在2024年6月12日六月 下午5:00,Tom Rini写道: [...] configs/octeon_nic23_defconfig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) This seems similar to: https://patchwork.ozlabs.org/project/uboot/pa

Re: [PATCH] ARM: stm32: Ping IWDG on exit from PSCI suspend code

2024-06-14 Thread Patrice CHOTARD
On 6/14/24 15:06, Marek Vasut wrote: > On 6/14/24 2:00 PM, Patrice CHOTARD wrote: >> >> >> On 4/20/24 00:03, Marek Vasut wrote: >>> Make sure the OS would not get any spurious IWDG pretimeout IRQ >>> right after the system wakes up. This may happen in case the SoC >>> got woken up by another sou

Re: [PATCH 00/11] usb: gadget: Introduce handle_interrupts ops to USB_GADGET_GENERIC uclass

2024-06-14 Thread Marek Vasut
On 6/14/24 12:24 PM, Sverdlin, Alexander wrote: Hi Marek! Hi, On Fri, 2024-06-14 at 02:51 +0200, Marek Vasut wrote: Introduce .ops for USB_GADGET_GENERIC uclass. The first new ops is .handle_interrupts which must be implemented by DM capable USB gadget controller drivers and must implement i

Re: [PATCH] ARM: stm32: Ping IWDG on exit from PSCI suspend code

2024-06-14 Thread Marek Vasut
On 6/14/24 2:00 PM, Patrice CHOTARD wrote: On 4/20/24 00:03, Marek Vasut wrote: Make sure the OS would not get any spurious IWDG pretimeout IRQ right after the system wakes up. This may happen in case the SoC got woken up by another source than the IWDG pretimeout and the pretimeout IRQ arrive

[PULL] Pull request for u-boot master / v2024.07 = u-boot-stm32-20240614

2024-06-14 Thread Patrice CHOTARD
Hi Tom Please pull the STM32 related fixes for u-boot/master, v2024.07: u-boot-stm32-20240614 CI status: https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/21116 The following changes since commit ca6a992e09441d6cca73439c63c3735f86b36ea4: cmd: sound: fix help text (2024-06-13

[PATCH] xilinx: versal-net: Add env redund offset

2024-06-14 Thread Venkatesh Yadav Abbarapu
ENV_OFFSET_REDUND config is by default set to 0 for flashes. Saving the env variables is overwriting data at 0 offset, which is wrong. So add default redund env offset ENV_OFFSET_REDUND at 0x7F0 for Versal NET platform. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/xilinx_versal_net_vi

Re: [PATCH v2] doc: describe UEFI measured boot

2024-06-14 Thread Ilias Apalodimas
On Fri, 14 Jun 2024 at 15:40, Heinrich Schuchardt wrote: > > On 14.06.24 14:14, Ilias Apalodimas wrote: > > We currently only describe the process to enable measured boot using > > bootm. Describe the UEFI requirements as well which predate bootm. > > > > Signed-off-by: Ilias Apalodimas > > --- >

[PATCH 2/2] xilinx: versal-net: Handle spi seq number based on boot device

2024-06-14 Thread Venkatesh Yadav Abbarapu
Versal NET boards has QSPI and OSPI and default bus set to 0 is not working when system is booting out of OSPI which is controller 1, as fixed aliases are set for all the boards i.e., QSPI to 0 and OSPI to 1. Add controller autodetection via spi_get_env_dev(). Signed-off-by: Venkatesh Yadav Abbara

[PATCH 1/2] env_spi: support overriding spi dev from board code

2024-06-14 Thread Venkatesh Yadav Abbarapu
This enables boards to choose where to/from the environment should be saved/loaded. They can then for example support using the same device (dynamically) from which the bootloader was launched to load and save env data and do not have to define CONFIG_ENV_SPI_BUS statically. In my use case, the en

[PATCH 0/2] env_spi: support overriding spi dev from board code

2024-06-14 Thread Venkatesh Yadav Abbarapu
This enables boards to choose where to/from the environment should be saved/loaded either QSPI or OSPI based on the bootmode. Venkatesh Yadav Abbarapu (2): env_spi: support overriding spi dev from board code xilinx: versal-net: Handle spi seq number based on boot device board/xilinx/versal-n

[PATCH v2 8/8] configs: j784s4_evm_r5_defconfig: Enable CONFIG_K3_QOS

2024-06-14 Thread Jayesh Choudhary
Enable CONFIG_K3_QOS to set QoS registers in R5 boot stage. Signed-off-by: Jayesh Choudhary --- configs/j784s4_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/j784s4_evm_r5_defconfig b/configs/j784s4_evm_r5_defconfig index f5fe743220..d1bcf792d7 100644 --- a/configs/

[PATCH v2 7/8] configs: j721s2_evm_r5_defconfig: Enable CONFIG_K3_QOS

2024-06-14 Thread Jayesh Choudhary
Enable CONFIG_K3_QOS to set QoS registers in R5 boot stage. Signed-off-by: Jayesh Choudhary --- configs/j721s2_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/j721s2_evm_r5_defconfig b/configs/j721s2_evm_r5_defconfig index 7413ddd081..df5910a48f 100644 --- a/configs/

[PATCH v2 6/8] configs: j721e_evm_r5_defconfig: Enable CONFIG_K3_QOS

2024-06-14 Thread Jayesh Choudhary
Enable CONFIG_K3_QOS to set QoS registers in R5 boot stage. Signed-off-by: Jayesh Choudhary --- configs/j721e_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/j721e_evm_r5_defconfig b/configs/j721e_evm_r5_defconfig index 37d582b775..ffaf21d499 100644 --- a/configs/j72

[PATCH v2 5/8] arm: mach-k3: j784s4: Enable QoS for DSS

2024-06-14 Thread Jayesh Choudhary
Enable Quality of Service (QoS) blocks for Display SubSystem (DSS), by servicing the DSS - DDR traffic from the Real-Time (RT) queue. This is done by setting the DSS DMA orderID to greater than 9. Before setting up the QoS, the ORDERID needs to be mapped to VBUSM sources using setup_navss_nb() fun

[PATCH v2 4/8] arm: mach-k3: j721s2: Enable QoS for DSS

2024-06-14 Thread Jayesh Choudhary
Enable Quality of Service (QoS) blocks for Display SubSystem (DSS), by servicing the DSS - DDR traffic from the Real-Time (RT) queue. This is done by setting the DSS DMA orderID to greater than 9. Before setting up the QoS, the ORDERID needs to be mapped to VBUSM sources using setup_navss_nb() fun

[PATCH v2 3/8] arm: mach-k3: j721e: Enable QoS for DSS

2024-06-14 Thread Jayesh Choudhary
Enable Quality of Service (QoS) blocks for Display SubSystem (DSS), by servicing the DSS - DDR traffic from the Real-Time (RT) queue. This is done by setting the DSS DMA orderID to greater than 7. Before setting up the QoS, the ORDERID needs to be mapped to VBUSM sources using setup_navss_nb() fun

[PATCH v2 2/8] arm: mach-k3: am62a: Simplify the logic for QOS reg and val propagation

2024-06-14 Thread Jayesh Choudhary
For the QOS registers, instead of using the raw values for calculation for each reg field, use a defined macro which takes in argument for all the reg fields to get the desired value. Do the similar simplification for QOS register and group registers and make the corresponding changes for am62a_qos

[PATCH v2 1/8] arm: mach-k3: am62a_qos: Move common bit MACROS to k3_qos header file

2024-06-14 Thread Jayesh Choudhary
QoS bit mapping are common across all K3 SoCs so move those defines to common header file (k3_qos.h). This ensures that we do not define these for each SoC. Signed-off-by: Jayesh Choudhary --- arch/arm/mach-k3/include/mach/k3-qos.h | 74 ++ arch/arm/mach-k3/r5/am62ax/am62

[PATCH v2 0/8] Enable QoS for DSS on J7 family of TI SoCs

2024-06-14 Thread Jayesh Choudhary
Hello All, This series adds the QoS for DSS on J721E, J721S2 and J784S4 family of SoCs. Before adding the support, cleanup is done for AM62A QoS support[0] and common bit mask defines are moved to the common file so that they are not defined every time we add QoS support for a new K3 platform. Fu

Re: [PATCH v2] doc: describe UEFI measured boot

2024-06-14 Thread Heinrich Schuchardt
On 14.06.24 14:14, Ilias Apalodimas wrote: We currently only describe the process to enable measured boot using bootm. Describe the UEFI requirements as well which predate bootm. Signed-off-by: Ilias Apalodimas --- Changes since v1: - fixed remarks from Heinrich on titling and DTB measured PCR

[PATCH] video: Add support for NewVision NV3052C SPI panels

2024-06-14 Thread John Watts
This driver is mostly copied from the Linux kernel and includes support for two physical panels that use this driver. Signed-off-by: John Watts --- This patch is a straightforward port of the kernel NV3052C SPI driver to U-Boot, keeping full compatibility with mainline device tree bindings. ---

[PATCH 2/2] sunxi: video: Support DE_LOW and PIXDATA_NEGEDGE display flags

2024-06-14 Thread John Watts
Implement these by inverting the DE and PCLK polarities. Signed-off-by: John Watts --- arch/arm/include/asm/arch-sunxi/lcdc.h | 2 ++ drivers/video/sunxi/lcdc.c | 4 2 files changed, 6 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/lcdc.h b/arch/arm/include/asm/arc

[PATCH 1/2] sunxi: video: Properly invert hsync and vsync polarity

2024-06-14 Thread John Watts
The current code assumes hsync and vsync are active high by default, but they are actually active low by default. This results in panels being driven with the wrong sync polarities. Invert the check to fix it. Signed-off-by: John Watts --- drivers/video/sunxi/lcdc.c | 4 ++-- 1 file changed, 2 i

[PATCH 0/2] sunxi: video: Fix lcdc polarity display flags

2024-06-14 Thread John Watts
arity sunxi: video: Support DE_LOW and PIXDATA_NEGEDGE display flags arch/arm/include/asm/arch-sunxi/lcdc.h | 2 ++ drivers/video/sunxi/lcdc.c | 8 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) --- base-commit: c0ea27bccfb7d2d37fd36806ac2a2f7389099420 change-id: 202

[PATCH] sunxi: video: Support driver model LCDs

2024-06-14 Thread John Watts
Currently the LCD code only supports reading panel timings from the device tree. Change that so it can use a real panel. Signed-off-by: John Watts --- I've been working on a panel driver port from Linux for the T113 and found I need this code to have the panel boot correctly. --- drivers/video/s

[PATCH 5/5] video: add support for MIPI DBI interface

2024-06-14 Thread John Watts
This interface supports sending MIPI commands over an SPI bus. This driver only implements the Type C1 protocol for now. Signed-off-by: John Watts --- drivers/video/Kconfig| 6 drivers/video/Makefile | 1 + drivers/video/mipi_dbi.c | 70 ++

[PATCH 4/5] spi: softspi: Support setting wordlen

2024-06-14 Thread John Watts
The bit-banging soft SPI driver supports any word length, so just blindly return support for all of them. Signed-off-by: John Watts --- drivers/spi/soft_spi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/spi/soft_spi.c b/drivers/spi/soft_spi.c index 0fa14339bd..4f2161f0bf 1

[PATCH 3/5] spi: Implement spi_set_wordlen for driver model

2024-06-14 Thread John Watts
Implement spi_set_wordlen for driver model devices. Not all drivers support this interface, so we will assume the default wordlen is safe and allow setting that unconditionally. Signed-off-by: John Watts --- drivers/spi/spi-uclass.c | 29 + 1 file changed, 29 inserti

[PATCH 2/5] spi: Limit spi_set_wordlen to SPI_DEFAULT_WORDLEN

2024-06-14 Thread John Watts
We have no way to tell if we can actually set the wordlen in non-DM code, so limit it to the default wordlen already in use. Signed-off-by: John Watts --- drivers/spi/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 3649c9c25b.

[PATCH 1/5] spi: Return old wordlen in spit_set_wordlen

2024-06-14 Thread John Watts
Return the current wordlen to the caller so they can restore it back when done. This is required to avoid clobbering the bus state. Signed-off-by: John Watts --- drivers/spi/spi.c | 4 +++- include/spi.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi.c

[PATCH 0/5] video: add support for MIPI DBI interface

2024-06-14 Thread John Watts
Many simple RGB panels use a MIPI DBI interface over SPI, so this patch adds support for this interface using an API compatible with Linux. The MIPI DBI interface works similar to SPI using 8-bit words in the format of: COMMAND DATA1 DATA2 ... However the interface has two variations on this. The

Re: [PATCH] doc: describe UEFI measured boot

2024-06-14 Thread Heinrich Schuchardt
On 14.06.24 12:47, Ilias Apalodimas wrote: [...] + +UEFI requirements +~ +* A hardware TPM 2.0 supported by the U-Boot drivers by an enabled U-Boot driver. +* CONFIG_EFI_TCG2_PROTOCOL=y +* CONFIG_EFI_TCG2_PROTOCOL_EVENTLOG_SIZE=y +* optional CONFIG_EFI_TCG2_PROTOCOL_MEASUR

[PATCH v2] doc: describe UEFI measured boot

2024-06-14 Thread Ilias Apalodimas
We currently only describe the process to enable measured boot using bootm. Describe the UEFI requirements as well which predate bootm. Signed-off-by: Ilias Apalodimas --- Changes since v1: - fixed remarks from Heinrich on titling and DTB measured PCR doc/usage/measured_boot.rst | 28 +++

Re: [PATCH] ARM: dts: stm32: Auto-detect second MAC on STM32MP15xx DH electronics DHCOM

2024-06-14 Thread Patrice CHOTARD
On 6/6/24 15:01, Marek Vasut wrote: > Test whether this system is compatible with STM32MP15xx DHCOM SoM, > if so, test whether R292 pull up is populated on pin PC3, which is > an indication that the second MAC chip, KS8851-16MLL, is populated. > Use this information to patch 'status' DT property

Re: [PATCH] ARM: dts: stm32: Add generic SoM compatible to STM32MP15xx DH electronics DHSOM

2024-06-14 Thread Patrice CHOTARD
On 5/17/24 01:47, Marek Vasut wrote: > Add generic SoM compatible string into machine compatible string > for all STM32MP15xx based DH electronics DHSOM. This way, common > board code can match on this compatible. No functional change. > > Signed-off-by: Marek Vasut > --- > Cc: Patrice Chotard

Re: [PATCH 3/5] dts: stm32mp157c-odyssey: fix incorrect PHY address

2024-06-14 Thread Patrice CHOTARD
On 4/28/24 16:24, Heesub Shin wrote: > In Odyssey board, KSZ9031 is at the PHY address 0x7, not 0x0. This > commit fixes it. > > Signed-off-by: Heesub Shin > --- > arch/arm/dts/stm32mp157c-odyssey.dts | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/dts/s

Re: [PATCH 3/5] dts: stm32mp157c-odyssey: fix incorrect PHY address

2024-06-14 Thread Patrice CHOTARD
On 4/28/24 16:24, Heesub Shin wrote: > In Odyssey board, KSZ9031 is at the PHY address 0x7, not 0x0. This > commit fixes it. > > Signed-off-by: Heesub Shin > --- > arch/arm/dts/stm32mp157c-odyssey.dts | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/dts/s

[PATCH] tpm: measure DTB in PCR1 instead of PCR0

2024-06-14 Thread Ilias Apalodimas
The PC client spec [0], doesn't describe measurements for DTBs. It does describe what do to for ACPI tables though. There is a description for ACPI in 3.3.4.1 PCR[0] – SRTM, POST BIOS, and Embedded Drivers and they explicitly mention ACPI in there. There's no mention of ACPI in 3.3.4.2 PCR[1] – Ho

Re: [PATCH 1/5] dts: stm32mp157c-odyssey: set PLL4_P to 125Mhz for ETH_CLK

2024-06-14 Thread Patrice CHOTARD
On 4/28/24 16:24, Heesub Shin wrote: > Odyssey board requires ETH_CLK of 125Mhz. This commit sets PLL4_P/Q/R to > 125, 62.5 and 62.5Mhz in respectively. > > Signed-off-by: Heesub Shin > --- > arch/arm/dts/stm32mp157c-odyssey-som-u-boot.dtsi | 4 ++-- > 1 file changed, 2 insertions(+), 2 delet

Re: [PATCH 5/5] dts: stm32mp157c-odyssey: add phy-reset-gpios property to ethernet node

2024-06-14 Thread Patrice CHOTARD
On 4/28/24 16:24, Heesub Shin wrote: > In Odyssey board, we should reset the PHY chipset, toggling G0 pin. > > Signed-off-by: Heesub Shin > --- > arch/arm/dts/stm32mp157c-odyssey.dts | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/dts/stm32mp157c-odyssey.dts > b/arch/arm/d

  1   2   >