Re: [PATCH] Fix neighbor discovery ethernet address saving

2024-05-07 Thread Sean Edmond
Hi Vyachesla, Let's start by saying neighbour discovery protocol is definitely working properly.  I'm only suggesting that it isn't properly caching the MAC address.  During IPv6 TFTP I observe that neighbour discovery is performed before every packet sent from client(u-boot)->server.

Re: [PATCH] board: rockchip: add ArmSoM Sige7 Rk3588 board

2024-05-07 Thread Kever Yang
Hi Jianfeng, On 2024/5/5 01:05, Jianfeng Liu wrote: ArmSoM Sige7 is a Rockchip RK3588 based SBC (Single Board Computer) by ArmSoM. There are two variants depending on the DRAM size : 8G and 16G. Specification: Rockchip Rk3588 SoC 4x ARM Cortex-A76, 4x ARM Cortex-A55 8/16GB

Re: [PATCH V3] board: rockchip: add Powkiddy X55

2024-05-07 Thread Kever Yang
On 2024/5/3 05:40, Chris Morgan wrote: From: Chris Morgan The Powkiddy X55 is a Rockchip RK3566 based handheld gaming device. UART, ADC, eMMC, and SDMMC are tested to work in U-Boot and this successfully boots mainline Linux. Kernel commit: e99adc97e21a ("arm64: dts: rockchip: Add Powkiddy

Re: [PATCH V2] board: rockchip: Add Indiedroid Nova

2024-05-07 Thread Kever Yang
On 2024/5/3 02:57, Chris Morgan wrote: From: Chris Morgan The Indiedroid Nova is a Rockchip RK3588S based SBC from Indiedroid. Specifications: Rockchip RK3588S SoC 4x ARM Cortex-A76, 4x ARM Cortex-A55 4/8/16GB memory LPDDR4x Mali G610MC4 GPU Optional eMMC 2x

Re: [PATCH v2] rockchip: add support for Theobroma Systems SOM-RK3588-Q7 Tiger module

2024-05-07 Thread Kever Yang
Hi Quentin,     Could you please update this patch with OF_UPSTREAM support? Thanks, - Kever On 2024/4/23 18:18, Quentin Schulz wrote: From: Quentin Schulz The RK3588-Q7 SoM is a Qseven-compatible (70mm x 70mm, MXM-230 connector) system-on-module from Theobroma Systems, featuring the

Re: [PATCH v1 7/7] MAINTAINERS: Update Starfive visionfive2 maintain files.

2024-05-07 Thread Marek Vasut
On 5/4/24 5:03 PM, Minda Chen wrote: Add USB related files to Starfive visionfive2 MAINTAINERS. Signed-off-by: Minda Chen --- board/starfive/visionfive2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/starfive/visionfive2/MAINTAINERS

Re: [PATCH v1 4/7] usb: cdns: starfive: Add cdns USB driver

2024-05-07 Thread Marek Vasut
On 5/4/24 5:03 PM, Minda Chen wrote: [...] +static void cdns_mode_init(struct cdns_starfive *data, enum usb_dr_mode mode) +{ + regmap_update_bits(data->stg_syscon, data->stg_usb_mode, + USB_MISC_CFG_MASK, + USB_SUSPENDM_BYPS | USB_PLL_EN

Re: [PATCH v1 3/7] phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver

2024-05-07 Thread Marek Vasut
On 5/4/24 5:03 PM, Minda Chen wrote: Fix up the copyrights to year 2024 globally please. [...] +static int phy_usb3_mode_set(struct jh7110_pcie_phy *data) +{ Can this phy_usb3_mode_set and phy_pcie_mode_set be unified into single function with parameter to select usb3/pcie mode instead ?

Re: [PATCH v1 2/7] phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver

2024-05-07 Thread Marek Vasut
On 5/4/24 5:03 PM, Minda Chen wrote: [...] diff --git a/drivers/phy/starfive/Makefile b/drivers/phy/starfive/Makefile new file mode 100644 index 00..a405a75e34 --- /dev/null +++ b/drivers/phy/starfive/Makefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C)

Re: [PATCH v1 1/7] usb: cdns3: Set USB PHY mode in cdns3_probe()

2024-05-07 Thread Marek Vasut
On 5/4/24 5:03 PM, Minda Chen wrote: USB PHY maybe need to set PHY mode in different USB dr mode. So translate to generic PHY mode and call generic_phy_set_mode(). Signed-off-by: Minda Chen --- drivers/usb/cdns3/core.c | 17 + 1 file changed, 17 insertions(+) diff --git

Re: [PATCH v2 05/28] image: remove redundant hash includes

2024-05-07 Thread Igor Opaniuk
On Tue, May 7, 2024 at 7:54 PM Raymond Mao wrote: > > Remove the redundant includes of u-boot/md5.h, u-boot/sha1.h, > u-boot/sha256.h and u-boot/sha512.h > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - None. > > boot/image-fit.c | 4 > boot/image.c | 2 -- > 2 files changed, 6

Re: [PATCH v2 08/28] md5: Adapt to the changes of md5 header

2024-05-07 Thread Tom Rini
On Tue, May 07, 2024 at 10:50:50AM -0700, Raymond Mao wrote: > The md5 header is updated to adapt to both original lib and MbedTLS. > Now we need to change the API callers accordingly. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Initial patch. > > drivers/crypto/hash/hash_sw.c |

Re: [PATCH v2 06/28] efi_loader: remove redundant hash includes

2024-05-07 Thread Tom Rini
On Tue, May 07, 2024 at 10:50:48AM -0700, Raymond Mao wrote: > Remove the redundant includes of u-boot/sha1.h, u-boot/sha256.h > and u-boot/sha512.h > > Signed-off-by: Raymond Mao Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 05/28] image: remove redundant hash includes

2024-05-07 Thread Tom Rini
On Tue, May 07, 2024 at 10:50:47AM -0700, Raymond Mao wrote: > Remove the redundant includes of u-boot/md5.h, u-boot/sha1.h, > u-boot/sha256.h and u-boot/sha512.h > > Signed-off-by: Raymond Mao Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 01/28] CI: Exclude MbedTLS subtree for CONFIG checks

2024-05-07 Thread Tom Rini
On Tue, May 07, 2024 at 10:50:43AM -0700, Raymond Mao wrote: > Since MbedTLS is an external repo with its own coding style, > exclude it from Azure and gitlab CI CONFIG checks. > > Signed-off-by: Raymond Mao Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 03/28] mbedtls: add mbedtls into the build system

2024-05-07 Thread Tom Rini
On Tue, May 07, 2024 at 10:50:45AM -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

Re: [PATCH V2 1/4] arm: davinci: Migrate da850-evm to OF_UPSTREAM

2024-05-07 Thread Tom Rini
On Wed, 01 May 2024 04:57:50 -0500, Adam Ford wrote: > The da850-evm can remove the U-Boot device trees if migrated > to OF_UPSTREAM. This means pointing the device trees to the > ti/davinci directory. > > Signed-off-by: Adam Ford > > > [...] Applied to u-boot/master, thanks! -- Tom

[PATCH] qcom_defconfig: enable msm8916 and msm8996

2024-05-07 Thread Sam Day
ase-commit: 1c40dda60f5f7e83a6d6f541cf5a57eb7e8ec43c change-id: 20240507-qcom-defconfig-msm8916-61c8437a0b2e Best regards, -- Sam Day

[PATCH] mach-snapdragon: do carveouts for qcs404 only

2024-05-07 Thread Sam Day
dcache_enable(); } --- base-commit: 1c40dda60f5f7e83a6d6f541cf5a57eb7e8ec43c change-id: 20240507-qcs404-carveout-only-7a15bbf3fd89 Best regards, -- Sam Day

[PATCH v2 28/28] configs: enable MbedTLS as default setting

2024-05-07 Thread Raymond Mao
Enable MbedTLS as default setting for qemu arm64 Signed-off-by: Raymond Mao --- Changes in v2 - None. configs/qemu_arm64_defconfig | 5 + configs/sandbox_defconfig| 4 2 files changed, 9 insertions(+) diff --git a/configs/qemu_arm64_defconfig b/configs/qemu_arm64_defconfig index

[PATCH v2 27/28] test: Remove ASN1 library test

2024-05-07 Thread Raymond Mao
With MBEDTLS_LIB_X509 enabled, we don't build the original ASN1 lib, So remove it from test. Signed-off-by: Raymond Mao --- Changes in v2 - Initial patch. test/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Kconfig b/test/Kconfig index e2ec0994a2e..558a9cd49b4

[PATCH v2 26/28] asn1_decoder: remove ASN1 decoder when using MbedTLS

2024-05-07 Thread Raymond Mao
When building with MbedTLS, we are using MbedTLS to decode ASN1 data for x509, pkcs7 and mscode. So we can remove asn1_decoder when MBEDTLS_LIB_X509 is enabled. Signed-off-by: Raymond Mao --- Changes in v2 - Initial patch. lib/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 25/28] lib/rypto: Adapt rsa_helper to MbedTLS

2024-05-07 Thread Raymond Mao
Adapt rsa_helper to build with MbedTLS Signed-off-by: Raymond Mao --- Changes in v2 - Initial patch. lib/crypto/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/crypto/Makefile b/lib/crypto/Makefile index e3232019df2..866a9a3f059 100644 --- a/lib/crypto/Makefile +++

[PATCH v2 24/28] mbedtls: add RSA helper layer on MbedTLS

2024-05-07 Thread Raymond Mao
Add RSA helper layer on top on MbedTLS PK and RSA library. Signed-off-by: Raymond Mao --- Changes in v2 - Initial patch. lib/mbedtls/Makefile | 1 + lib/mbedtls/rsa_helper.c | 99 2 files changed, 100 insertions(+) create mode 100644

[PATCH v2 23/28] lib/crypto: Adapt mscode_parser to MbedTLS

2024-05-07 Thread Raymond Mao
Adapt mscode_parser to build with MbedTLS Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. include/crypto/mscode.h | 4 lib/crypto/Makefile | 2 ++ 2 files changed, 6 insertions(+) diff --git a/include/crypto/mscode.h b/include/crypto/mscode.h

[PATCH v2 22/28] mbedtls: add MSCode parser porting layer

2024-05-07 Thread Raymond Mao
Add porting layer for MSCode on top of MbedTLS ASN1 library. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. lib/mbedtls/Makefile| 1 + lib/mbedtls/mscode_parser.c | 111 2 files changed, 112 insertions(+)

[PATCH v2 21/28] lib/crypto: Adapt PKCS7 parser to MbedTLS

2024-05-07 Thread Raymond Mao
Adapt PKCS7 parser to build with MbedTLS Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. include/crypto/pkcs7_parser.h | 56 +++ lib/crypto/Makefile | 4 ++- 2 files changed, 59 insertions(+), 1 deletion(-) diff

[PATCH v2 20/28] mbedtls: add PKCS7 parser porting layer

2024-05-07 Thread Raymond Mao
Add porting layer for PKCS7 parser on top of MbedTLS PKCS7 library. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. - Fix EFI Capsule CI test failures. lib/mbedtls/Makefile | 1 + lib/mbedtls/pkcs7_parser.c | 533

[PATCH v2 19/28] lib/crypto: Adapt x509_cert_parser to MbedTLS

2024-05-07 Thread Raymond Mao
Adapt x509_cert_parser and x509_public_key for building with MbedTLS Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. include/crypto/x509_parser.h | 36 lib/crypto/Makefile | 2 ++ lib/crypto/x509_public_key.c

[PATCH v2 18/28] mbedtls: add X509 cert parser porting layer

2024-05-07 Thread Raymond Mao
Add porting layer for X509 cert parser on top of MbedTLS X509 library. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. lib/mbedtls/Makefile | 1 + lib/mbedtls/x509_cert_parser.c | 497 + 2 files changed, 498

[PATCH v2 17/28] lib/crypto: Adapt public_key header with MbedTLS

2024-05-07 Thread Raymond Mao
Adapt the public_key header file with MbedTLS Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. include/crypto/public_key.h | 6 ++ lib/crypto/Makefile | 2 ++ lib/crypto/asymmetric_type.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-)

[PATCH v2 16/28] mbedtls: add public key porting layer

2024-05-07 Thread Raymond Mao
Add porting layer for public key on top of MbedTLS X509 library. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. lib/mbedtls/Makefile | 4 ++ lib/mbedtls/public_key.c | 105 +++ 2 files changed, 109 insertions(+)

[PATCH v2 15/28] mbedtls/external: update MbedTLS PKCS7 test suites

2024-05-07 Thread Raymond Mao
Update the PKCS7 test suites for multiple certs. Signed-off-by: Raymond Mao --- Changes in v2 - None. .../external/mbedtls/tests/suites/test_suite_pkcs7.data | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 14/28] mbedtls/external: support decoding multiple signer's cert

2024-05-07 Thread Raymond Mao
Support decoding multiple signer's cert in the signed data within a PKCS7 message. Signed-off-by: Raymond Mao --- Changes in v2 - None. lib/mbedtls/external/mbedtls/library/pkcs7.c | 75 1 file changed, 47 insertions(+), 28 deletions(-) diff --git

[PATCH v2 13/28] mbedtls/external: support PKCS9 Authenticate Attributes

2024-05-07 Thread Raymond Mao
Populate PKCS9 Authenticate Attributes from signer info if it exists in a PKCS7 message. Add OIDs for describing objects using for Authenticate Attributes. Signed-off-by: Raymond Mao --- Changes in v2 - None. .../external/mbedtls/include/mbedtls/oid.h| 5 +

[PATCH v2 12/28] mbedtls/external: support MicroSoft Authentication Code

2024-05-07 Thread Raymond Mao
Populate MicroSoft Authentication Code from the content data into PKCS7 decoding context if it exists in a PKCS7 message. Add OIDs for describing objects using for MicroSoft Authentication Code. Signed-off-by: Raymond Mao --- Changes in v2 - None. .../external/mbedtls/include/mbedtls/oid.h

[PATCH v2 11/28] makefile: add mbedtls include directories

2024-05-07 Thread Raymond Mao
Add the mbedtls include directories into the build system. Signed-off-by: Raymond Mao --- Changes in v2 - None. Makefile | 13 + 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 7321fe1499e..80db1dfd8ec 100644 --- a/Makefile +++ b/Makefile @@ -829,6 +829,12

[PATCH v2 10/28] hash: integrate hash on mbedtls

2024-05-07 Thread Raymond Mao
Integrate common/hash.c on the hash shim layer so that hash APIs from mbedtls can be leveraged by boot/image and efi_loader. Signed-off-by: Raymond Mao --- Changes in v2 - Use the original head files instead of creating new ones. common/hash.c | 134

[PATCH v2 09/28] mbedtls: add digest shim layer for MbedTLS

2024-05-07 Thread Raymond Mao
Implement digest shim layer on top of MbedTLS crypto library. Signed-off-by: Raymond Mao --- Changes in v2 - Split the shim layer into separated files and use the original head files instead of creating new ones. lib/mbedtls/Makefile | 7 +++ lib/mbedtls/md5.c| 68

[PATCH v2 08/28] md5: Adapt to the changes of md5 header

2024-05-07 Thread Raymond Mao
The md5 header is updated to adapt to both original lib and MbedTLS. Now we need to change the API callers accordingly. Signed-off-by: Raymond Mao --- Changes in v2 - Initial patch. drivers/crypto/hash/hash_sw.c | 8 lib/md5.c | 10 +- 2 files changed, 9

[PATCH v2 07/28] lib: Adapt digest header files to MbedTLS

2024-05-07 Thread Raymond Mao
Adapt digest header files to support both original libs and MbedTLS by switching on/off MBEDTLS_LIB_CRYPTO FIXME: `IS_ENABLED` or `CONFIG_IS_ENABLED` is not applicable here, since including causes undefined reference on schedule() with sandbox build. As includes which enables

[PATCH v2 06/28] efi_loader: remove redundant hash includes

2024-05-07 Thread Raymond Mao
Remove the redundant includes of u-boot/sha1.h, u-boot/sha256.h and u-boot/sha512.h Signed-off-by: Raymond Mao --- Changes in v2 - None. lib/efi_loader/efi_signature.c | 1 - lib/efi_loader/efi_tcg2.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/lib/efi_loader/efi_signature.c

[PATCH v2 05/28] image: remove redundant hash includes

2024-05-07 Thread Raymond Mao
Remove the redundant includes of u-boot/md5.h, u-boot/sha1.h, u-boot/sha256.h and u-boot/sha512.h Signed-off-by: Raymond Mao --- Changes in v2 - None. boot/image-fit.c | 4 boot/image.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/boot/image-fit.c b/boot/image-fit.c index

[PATCH v2 04/28] arm: EFI linker script text section alignment

2024-05-07 Thread Raymond Mao
Add text section alignment to fix sbsign signing warning 'gaps in the section table may result in different checksums' which causes a failure of efi_image_verify_diges() Signed-off-by: Raymond Mao --- Changes in v2 - None. arch/arm/lib/elf_aarch64_efi.lds | 1 + 1 file changed, 1 insertion(+)

[PATCH v2 02/28] mbedtls: Add script to update MbedTLS subtree

2024-05-07 Thread Raymond Mao
lib/mbedtls/update-mbedtls-subtree.sh is a wrapper of git subtree commands. Usage from U-Boot top directory, run: $ ./lib/mbedtls/update-mbedtls-subtree.sh pull $ ./lib/mbedtls/update-mbedtls-subtree.sh pick Signed-off-by: Raymond Mao --- Changes in v2 - Initial patch.

[PATCH v2 01/28] CI: Exclude MbedTLS subtree for CONFIG checks

2024-05-07 Thread Raymond Mao
Since MbedTLS is an external repo with its own coding style, exclude it from Azure and gitlab CI CONFIG checks. Signed-off-by: Raymond Mao --- Changes in v2 - Initial patch. .azure-pipelines.yml | 3 ++- .gitlab-ci.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v2 00/28] [RFC] Integrate MbedTLS v3.6 LTS with U-Boot

2024-05-07 Thread Raymond Mao
Integrate MbedTLS v3.6 LTS (currently v3.6.0-RC1) with U-Boot. Motivations: 1. MbedTLS is well maintained with LTS versions. 2. LWIP is integrated with MbedTLS and easily to enable HTTPS. 3. MbedTLS recently switched license back to GPLv2. Prerequisite: - This patch

Re: [PATCH] kconfig: default to zero if int/hex symbol lacks default property

2024-05-07 Thread Tom Rini
On Tue, May 07, 2024 at 09:17:46AM +0200, Yoann Congal wrote: > Le 06/05/2024 à 19:43, Tom Rini a écrit : > > On Sun, May 05, 2024 at 03:53:53PM +0200, Yoann Congal wrote: > > > >> From: Masahiro Yamada > >> > >> This is a cherry-pick from the kernel commit: > >> 6262afa10ef7c (kconfig: default

Re: Pull request: u-boot-rockchip-20240507

2024-05-07 Thread Tom Rini
e/u-boot/custodians/u-boot-rockchip.git > tags/u-boot-rockchip-20240507 > > for you to fetch changes up to bc7cb4b67a4070129bbfc5bffb2f5e9fd206991e: > > configs: rk3588-turing-rk1: disable SPI flash by default (2024-05-07 > 15:56:10 +0800) > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 5/5] board: phytec: am62x: Add support for 1 & 4 GB RAM variants

2024-05-07 Thread Daniel Schultz
Hey Wadim, On 07.05.24 17:17, Wadim Egorov wrote: Use content of EEPROM to detect the actual RAM size and adjust DDR timings, size and banks accordingly. Also enable the SoM detection per default in the defconfigs. Signed-off-by: Wadim Egorov --- board/phytec/common/am6_som_detection.h

Re: [PATCH v11 0/8] spi-nor: Add parallel and stacked memories support

2024-05-07 Thread Tom Rini
On Tue, May 07, 2024 at 04:15:14AM +, Abbarapu, Venkatesh wrote: > + Tom Rini > > Do you have any comments for this series? Seems likely fine. Jagan, do you have time to put this in a PR for -next? Thanks. > > Thanks > Venkatesh > > > -Original Message- > > From: Venkatesh Yadav

[PATCH 5/5] board: phytec: am62x: Add support for 1 & 4 GB RAM variants

2024-05-07 Thread Wadim Egorov
Use content of EEPROM to detect the actual RAM size and adjust DDR timings, size and banks accordingly. Also enable the SoM detection per default in the defconfigs. Signed-off-by: Wadim Egorov --- board/phytec/common/am6_som_detection.h | 8 + board/phytec/phycore_am62x/phycore-am62x.c

[PATCH 4/5] board: phytec: common: Introduce a method to inject DDR timings deltas

2024-05-07 Thread Wadim Egorov
Introduce fdt_apply_ddrss_timings_patch() to allow board code to override DDR settings in the device tree prior to DDRSS driver probing. Signed-off-by: Wadim Egorov --- board/phytec/common/k3/Makefile | 1 + board/phytec/common/k3/k3_ddrss_patch.c | 68 +

[PATCH 3/5] arm: mach-k3: am625: Call do_board_detect() before DDR probing

2024-05-07 Thread Wadim Egorov
Call do_board_detect() hook before the K3 DDRSS driver gets probed. It will allow boards to adjust DDR timings in do_board_detect(). Signed-off-by: Wadim Egorov --- arch/arm/mach-k3/am625_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-k3/am625_init.c

[PATCH 1/5] board: phytec: Make AM6 SoM detection depend on I2C

2024-05-07 Thread Wadim Egorov
SoM detection is using I2C driver model functions. Let's depend on I2C. Signed-off-by: Wadim Egorov --- board/phytec/common/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/phytec/common/Kconfig b/board/phytec/common/Kconfig index 1077f0f4b61..56c8290f641 100644 ---

[PATCH 2/5] board: phytec: Fix function definitions in AM6x SOM detection

2024-05-07 Thread Wadim Egorov
Functions are declared as phytec_am6* and not phytec_am62*. Update the definitions to match the declarations. Fixes: 9d152c23279c ("board: phytec: Add SOM detection for AM6x") Signed-off-by: Wadim Egorov --- board/phytec/common/am6_som_detection.c | 18 +- 1 file changed, 9

[PATCH 0/5] *** phyCORE-AM62x: DDR detection / Inject DDR timing deltas ***

2024-05-07 Thread Wadim Egorov
PHYTEC stores details about the hardware in an EEPROM on the SoM. We can utilize this information and chose the proper DDR timings accordingly. Due to the limited SRAM memory on the AM62x, the concept was to store only the DDR timings deltas and not their full set, see Patch 4 & 5. The last

Re: Distro Boot instructions with examples

2024-05-07 Thread Mark Kettenis
> From: Igor Opaniuk > Date: Tue, 7 May 2024 16:30:17 +0200 > > Hello Antoni, > > On Tue, May 7, 2024 at 4:14 PM Antoni Jankowski > wrote: > > > > Hi, > > > > I've recently learned about the Distro Boot feature of u-boot. This sounds > > interesting, however the official instructions are

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

2024-05-07 Thread Tom Rini
On Tue, May 07, 2024 at 03:26:18PM +0200, Michal Simek wrote: > Hi Tom, > > út 7. 5. 2024 v 15:20 odesílatel Tom Rini napsal: > > > On Tue, May 07, 2024 at 11:22:45AM +0530, Love Kumar wrote: > > > > > > > > > On 04/05/24 1:48 am, Tom Rini wrote: > > > > On Fri, May 03, 2024 at 05:39:46PM

Re: [PATCH v5 4/6] configs: am62x_evm_*: Enable USB and DFU support

2024-05-07 Thread Tom Rini
On Tue, May 07, 2024 at 10:14:28AM +0200, Francesco Dolcini wrote: > Hello Martyn, > first thanks for your series, with this we might be able to drop some > downstream branch. > > On Mon, May 06, 2024 at 03:38:44PM +0100, Martyn Welch wrote: > > From: Sjoerd Simons > > > > Provide config

Re: Distro Boot instructions with examples

2024-05-07 Thread Igor Opaniuk
Hello Antoni, On Tue, May 7, 2024 at 4:14 PM Antoni Jankowski wrote: > > Hi, > > I've recently learned about the Distro Boot feature of u-boot. This sounds > interesting, however the official instructions are sparse and examples seem > to be non-existent. > > The platform I'm working with at the

Re: [PATCH v2 1/1] net: dwc_eth_qos: mdio: Implement clause 45

2024-05-07 Thread Marek Vasut
On 5/7/24 11:42 AM, Philip Oberfichtner wrote: Bevor this commit, only clause 22 access was possible. After this commit, clause 45 direct access will available as well. Note that there is a slight change of behavior: Before this commit, the C45E bit was set to whatever value was left in the

Re: [PATCH] imx: hab: add documentation about the required keys/certs

2024-05-07 Thread Marek Vasut
On 5/7/24 3:06 PM, Claudius Heine wrote: For CST to find the certificates and keys for signing, some keys and certs need to be copied into the u-boot build directory. Make sure to CC "NXP i.MX U-Boot Team" , else NXP is not informed. Use scripts/get_maintainer to get the full list or just

Distro Boot instructions with examples

2024-05-07 Thread Antoni Jankowski
Hi, I've recently learned about the Distro Boot feature of u-boot. This sounds interesting, however the official instructions are sparse and examples seem to be non-existent. The platform I'm working with at the moment is a raspberry pi CM4, are there any examples of how to implement this

Re: [PATCH 01/81] mmc: Migrate MMC_SUPPORTS_TUNING to Kconfig

2024-05-07 Thread Tom Rini
On Wed, 01 May 2024 19:30:18 -0600, Tom Rini wrote: > The constraints on the MMC_SUPPORTS_TUNING symbol can easily be > expressed in Kconfig (with the addition of SPL_MMC_SUPPORTS_TUNING). > Furthermore, in order to remove from the MMC subsystem, the > way this symbol is used today needs to be

Re: [PATCH 01/33] arm: mach-versatile: Remove dead code

2024-05-07 Thread Tom Rini
On Tue, 30 Apr 2024 07:35:27 -0600, Tom Rini wrote: > This platform is no longer supported in tree, remove. > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH 001/149] global: Make include

2024-05-07 Thread Tom Rini
On Tue, 30 Apr 2024 20:40:48 -0600, Tom Rini wrote: > This follows the example of RISC-V where includes > directly as "gd" includes a reference to bd_info already > and so the first must include the second anyhow. We then remove > from all of the places which include references to "gd" > an so

Re: [PATCH 00/18] Remove from a number of places

2024-05-07 Thread Tom Rini
On Sat, 27 Apr 2024 08:10:48 -0600, Tom Rini wrote: > Hey all, > > This series is the next step in winding down usage of in > order to be able to then remove it. This covers not quite 25% of the > remaining users of the file. Of what is left, it's either arch/arm/, > board/ or drivers/ code. I

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

2024-05-07 Thread Michal Simek
Hi Tom, út 7. 5. 2024 v 15:20 odesílatel Tom Rini napsal: > On Tue, May 07, 2024 at 11:22:45AM +0530, Love Kumar wrote: > > > > > > On 04/05/24 1:48 am, Tom Rini wrote: > > > On Fri, May 03, 2024 at 05:39:46PM +0530, Love Kumar wrote: > > > > > > > Add tests for booting image using tftpboot/pxe

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

2024-05-07 Thread Tom Rini
On Tue, May 07, 2024 at 11:22:45AM +0530, Love Kumar wrote: > > > On 04/05/24 1:48 am, Tom Rini wrote: > > On Fri, May 03, 2024 at 05:39:46PM +0530, Love Kumar wrote: > > > > > Add tests for booting image using tftpboot/pxe boot commands, tftpboot > > > boot case loads the FIT image into DDR

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

2024-05-07 Thread Tom Rini
On Tue, May 07, 2024 at 11:22:45AM +0530, Love Kumar wrote: > > > On 04/05/24 1:48 am, Tom Rini wrote: > > On Fri, May 03, 2024 at 05:39:46PM +0530, Love Kumar wrote: > > > > > Add tests for booting image using tftpboot/pxe boot commands, tftpboot > > > boot case loads the FIT image into DDR

[PATCH] imx: hab: add documentation about the required keys/certs

2024-05-07 Thread Claudius Heine
For CST to find the certificates and keys for signing, some keys and certs need to be copied into the u-boot build directory. Signed-off-by: Claudius Heine --- doc/imx/habv4/guides/mx8m_spl_secure_boot.txt | 16 1 file changed, 16 insertions(+) diff --git

Re: [PATCH] configs: Make USB_GADGET_MANUFACTURER consistent over all PHYTEC boards

2024-05-07 Thread Mattijs Korpershoek
Hi Benjamin, Thank you for the patch. On ven., mai 03, 2024 at 09:00, Benjamin Hahn wrote: > Set CONFIG_USB_GADGET_MANUFACTURER to PHYTEC for all PHYTEC boards. > > Signed-off-by: Benjamin Hahn Reviewed-by: Mattijs Korpershoek This is assigned to me on patchwork. I can pick it up through

Re: [PATCH] kconfig: default to zero if int/hex symbol lacks default property

2024-05-07 Thread Yoann Congal
Le 06/05/2024 à 19:43, Tom Rini a écrit : > On Sun, May 05, 2024 at 03:53:53PM +0200, Yoann Congal wrote: > >> From: Masahiro Yamada >> >> This is a cherry-pick from the kernel commit: >> 6262afa10ef7c (kconfig: default to zero if int/hex symbol lacks default >> property, 2023-11-26) >> >> When

Re: [PATCH] configs: Make USB_GADGET_MANUFACTURER consistent over all PHYTEC boards

2024-05-07 Thread Fabio Estevam
Hi Benjamin, On Mon, May 6, 2024 at 7:52 AM Benjamin Hahn wrote: > We are not registered at USB-IF and therefore don't have a valid > VENDOR_NUM and PRODUCT_NUM, so we rely on the VENDOR_NUM and PRODUCT_NUM > of the SoC Vendor, so the correct features get enabled by the driver. Ok, understood.

Re: [PATCH v2 2/2] armv8: generic_timer: Use event stream for udelay

2024-05-07 Thread Andre Przywara
On Wed, 1 May 2024 09:16:33 +0100 Peter Hoyes wrote: Hi Peter, thanks for the change! > From: Peter Hoyes > > Polling cntpct_el0 in a tight loop for delays is inefficient. > This is particularly apparent on Arm FVPs, which do not simulate > real time, meaning that a 1s sleep can take a

[RFC PATCH 5/5] sysreset: call .on_reset for UCLASS_SPI_FLASH before reset request

2024-05-07 Thread Robert Marko
Call .on_reset method for UCLASS_SPI_FLASH devices before requesting reset. This fixes the issue with 4-byte adressing mode being left enabled on board reset. That is an issue on Qualcomm IPQ4019 boards since the CPU expects flash to be in 3-byte adressing mode and will just hang otherwise. Note

[RFC PATCH 4/5] mtd: spi: sf: implement .on_reset method

2024-05-07 Thread Robert Marko
Implement .on_reset method for SPI flash, by extending the remove method to exit 4-byte adressing mode in case it was entered before. This fixes the issue with 4-byte adressing mode being left enabled on board reset. That is an issue on Qualcomm IPQ4019 boards since the CPU expects flash to be in

[RFC PATCH 3/5] mtd: spi-nor: rename and export 4-byte adressing mode function

2024-05-07 Thread Robert Marko
Currently 4-byte adressing mode function is not exported, but since we plan to use it outside of the SPI NOR core we need to export it. While we are here, rename it to align the naming with the rest of exported functions. Signed-off-by: Robert Marko --- drivers/mtd/spi/spi-nor-core.c | 7

[RFC PATCH 1/5] dm: core: add on_reset method

2024-05-07 Thread Robert Marko
Currently, we dont have a specific method that is intented to be called right before calling board reset. Intention for this method is to be able to exit 4-byte adressing mode on SPI-NOR devices before reset. Signed-off-by: Robert Marko --- include/dm/device.h | 2 ++ 1 file changed, 2

[RFC PATCH 2/5] dm: core: introduce uclass_id_on_reset()

2024-05-07 Thread Robert Marko
Implement a helper to call .on_reset method for every device in a certain uclass. Intention is to use this helper for UCLASS_SPI_FLASH before board reset to exit 4-byte adressing mode. Signed-off-by: Robert Marko --- drivers/core/uclass.c | 13 + include/dm/uclass.h | 8

[RFC PATCH 0/5] Implement exiting 4-byte adressing mode before reset

2024-05-07 Thread Robert Marko
This fixes the issue with 4-byte adressing mode being left enabled on board reset. That is an issue on Qualcomm IPQ4019 boards since the CPU expects flash to be in 3-byte adressing mode and will just hang otherwise. Note that this does not fix a case where you remove the power while U-Boot is

[PATCH v2 1/1] net: dwc_eth_qos: mdio: Implement clause 45

2024-05-07 Thread Philip Oberfichtner
Bevor this commit, only clause 22 access was possible. After this commit, clause 45 direct access will available as well. Note that there is a slight change of behavior: Before this commit, the C45E bit was set to whatever value was left in the register from the previous access. After this

Re: [PATCH v5 5/6] beagleplay: Add DFU support

2024-05-07 Thread Mattijs Korpershoek
Hi Martyn, Thank you for the patch, and for taking over this series. On lun., mai 06, 2024 at 15:38, Martyn Welch wrote: > From: Sjoerd Simons > > DFU mode on a beagleplay can be used via the Type-C connector by holding > the USR switch while powering on. > > Configuration is already provided

[PATCH v1] board: nuvoton: Use an event to replace last_stage_init() and fix build error

2024-05-07 Thread Jim Liu
Followed the new style use event to replace last_stage_init(). Fixed build error After replace last_stage_init(). And remove CONFIG_SYS_SKIP_UART_INIT from defconfig, system will reuse the setting from bootblock and skip the baud rate setting. Signed-off-by: Jim Liu ---

Re: [PATCH v5 4/6] configs: am62x_evm_*: Enable USB and DFU support

2024-05-07 Thread Mattijs Korpershoek
Hi Martyn, Thank you for the patch. On lun., mai 06, 2024 at 15:38, Martyn Welch wrote: > From: Sjoerd Simons > > Provide config fragments to enable USB host as well as USB gadget and DFU > support for a53 and r5. This relevant fragment is included into the > am62x EVM a53 defconfig. For the

Re: [PATCH v5 3/6] arm: dts: k3-am625-sk: Enable usb port in u-boot

2024-05-07 Thread Mattijs Korpershoek
Hi Martyn, Thank you for the patch. On lun., mai 06, 2024 at 15:38, Martyn Welch wrote: > From: Sjoerd Simons > > Enable usb0 in all boot phases for use with DFU > > Signed-off-by: Sjoerd Simons > Reviewed-by: Alexander Sverdlin > Signed-off-by: Martyn Welch Reviewed-by: Mattijs

Pull request: u-boot-rockchip-20240507

2024-05-07 Thread Kever Yang
52835266d3e933656a217233eaf672dd9ccd7352: Prepare v2024.07-rc2 (2024-05-06 13:54:17 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-rockchip.git tags/u-boot-rockchip-20240507 for you to fetch changes up to bc7cb4b67a4070129bbfc5bffb2f5e9fd206991e

Re: [PATCH v5 4/6] configs: am62x_evm_*: Enable USB and DFU support

2024-05-07 Thread Francesco Dolcini
Hello Martyn, first thanks for your series, with this we might be able to drop some downstream branch. On Mon, May 06, 2024 at 03:38:44PM +0100, Martyn Welch wrote: > From: Sjoerd Simons > > Provide config fragments to enable USB host as well as USB gadget and DFU > support for a53 and r5. This

Re: [PATCH 060/149] board: firefly: Remove and add needed includes

2024-05-07 Thread Kever Yang
On 2024/5/1 10:41, Tom Rini wrote: Remove from this board vendor directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Simon Glass Cc: Philipp Tomsich Cc: Kever Yang Cc: Andy Yan Cc: Levin Du Cc: Suniel

Re: [PATCH 111/149] board: rockchip: Remove and add needed includes

2024-05-07 Thread Kever Yang
On 2024/5/1 10:42, Tom Rini wrote: Remove from this board vendor directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: huang lin Cc: Simon Glass Cc: Philipp Tomsich Cc: Kever Yang Cc: Andy Yan Cc:

Re: [PATCH 32/81] fwu-mdata: Remove and add needed includes

2024-05-07 Thread Ilias Apalodimas
On Thu, 2 May 2024 at 04:32, Tom Rini wrote: > > Remove from this driver directory and when needed > add missing include files directly. > > Signed-off-by: Tom Rini > --- > Cc: Tom Rini > Cc: Ilias Apalodimas > Cc: Jassi Brar > Cc: Etienne Carriere > --- >

Re: [PATCH 29/81] firmware: Remove and add needed includes

2024-05-07 Thread Ilias Apalodimas
On Thu, 2 May 2024 at 04:32, Tom Rini wrote: > > Remove from this driver directory and when needed > add missing include files directly. > > Signed-off-by: Tom Rini > --- > Cc: Abdellatif El Khlifi > Cc: Tom Rini > Cc: Simon Glass > Cc: Michal Simek > Cc: Jens Wiklander > Cc: Ilias

Re: [PATCH 71/81] tpm: Remove and add needed includes

2024-05-07 Thread Ilias Apalodimas
On Thu, 2 May 2024 at 04:34, Tom Rini wrote: > > Remove from this driver directory and when needed > add missing include files directly. > > Signed-off-by: Tom Rini > --- > Cc: Ilias Apalodimas > Cc: Tom Rini > Cc: Simon Glass > --- > drivers/tpm/cr50_i2c.c | 2 +- >

Re: [PATCH] usb: dwc2: Add in version 4xx compatibility

2024-05-07 Thread Greg Malysa
> > > > If you have access to the hardware that has a 4.20a dwc2 controller, > > maybe you can help testing the patch above patch as well? My hardware unfortunately only has a 4.00a controller so I cannot test the 4.20a reset functionality. However, Kongyang Liu's patch works for me as a

Re: [PATCH 103/149] board: phytec: Remove and add needed includes

2024-05-07 Thread Teresa Remmet
Am Dienstag, dem 30.04.2024 um 20:42 -0600 schrieb Tom Rini: > Remove from this board vendor directory and when needed > add missing include files directly. > > Signed-off-by: Tom Rini Acked-by: Teresa Remmet > --- > Cc: Martyn Welch > Cc: Parthiban Nallathambi > Cc: "Albert ARIBAUD

Re: [PATCH 14/16] rockchip: rk3588: Update USB3 related nodes in u-boot.dtsi

2024-05-07 Thread Kever Yang
On 2024/5/5 03:43, Jonas Karlman wrote: The USB3 related DT nodes in SoC u-boot.dtsi is slightly different from the final nodes being targeted for Linux kernel v6.10. Sync USB3 related nodes from Linux maintainer v6.10-rockchip-dts64-1 tag to prepare for migration of RK3588 to use

Re: [PATCH 15/16] rockchip: rk3588: Migrate to OF_UPSTREAM

2024-05-07 Thread Kever Yang
On 2024/5/5 03:43, Jonas Karlman wrote: Migrate RK3588 boards that exists in Linux v6.8 to use OF_UPSTREAM. Following targets is not migrated to use OF_UPSTREAM: - generic-rk3588: Generic target only meant for U-Boot use - toybrick-rk3588: Merged in v6.9-rc1 Signed-off-by: Jonas Karlman

Re: [PATCH v3] rockchip: rv1108: Convert to OF_UPSTREAM

2024-05-07 Thread Kever Yang
On 2024/4/24 22:18, Fabio Estevam wrote: Instead of using the local rv1108 devicetree copies from U-Boot, let's convert the rv1108 boards to OF_UPSTREAM so that the upstream kernel devicetrees can be used instead. Tested on a rv1108-elgin-r1 board. Signed-off-by: Fabio Estevam Reviewed-by: