[PATCH v7 27/27] configs: enable MbedTLS as default setting

2024-09-13 Thread Raymond Mao
Enable MbedTLS as default setting for qemu arm64 and sandbox. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v2 - None. Changes in v3 - None. Changes in v4 - None. Changes in v5 - Remove unused config MBEDTLS_LIB_TLS. - Remove EFI_SECURE_BOOT from the default config. Cha

[PATCH v7 26/27] test: Remove ASN1 library test

2024-09-13 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 Reviewed-by: Ilias Apalodimas --- Changes in v2 - Initial patch. Changes in v3 - None. Changes in v4 - None. Changes in v5 - None. Changes in v6 - None. Changes in v7 - None.

[PATCH v7 25/27] asn1_decoder: add build options for ASN1 decoder

2024-09-13 Thread Raymond Mao
When building with MbedTLS, we are using MbedTLS to decode ASN1 data for x509, pkcs7 and mscode. Introduce _LEGACY and _MBEDTLS kconfigs for ASN1 decoder legacy and MbedTLS implementations respectively. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v2 - Initial patch. C

[PATCH v7 24/27] lib/rypto: Adapt rsa_helper to MbedTLS

2024-09-13 Thread Raymond Mao
Previous patch has introduced MbedTLS porting layer for RSA helper, here to adjust the makefile accordingly. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v2 - Initial patch. Changes in v3 - Update commit message. Changes in v4 - Control building legacy library via '_LE

[PATCH v7 23/27] mbedtls: add RSA helper layer on MbedTLS

2024-09-13 Thread Raymond Mao
Add RSA helper layer on top on MbedTLS PK and RSA library. Introduce _LEGACY and _MBEDTLS kconfigs for RSA helper legacy and MbedTLS implementations respectively. Signed-off-by: Raymond Mao Acked-by: Ilias Apalodimas --- Changes in v2 - Initial patch. Changes in v3 - None. Changes in v4 - Introd

[PATCH v7 22/27] lib/crypto: Adapt mscode_parser to MbedTLS

2024-09-13 Thread Raymond Mao
Previous patch has introduced MbedTLS porting layer for mscode parser, here to adjust the header and makefiles accordingly. Adding _LEGACY Kconfig for legacy mscode implementation. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - Update commit

[PATCH v7 21/27] mbedtls: add MSCode parser porting layer

2024-09-13 Thread Raymond Mao
Add porting layer for MSCode on top of MbedTLS ASN1 library. Introduce _MBEDTLS kconfigs for MSCode MbedTLS implementation. Signed-off-by: Raymond Mao Acked-by: Ilias Apalodimas --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - None. Changes in v4 - Introduce _LEGACY and

[PATCH v7 20/27] lib/crypto: Adapt PKCS7 parser to MbedTLS

2024-09-13 Thread Raymond Mao
Previous patch has introduced MbedTLS porting layer for PKCS7 parser, here to adjust the header and makefiles accordingly. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - Update commit message. Changes in v4 - Control building legacy library v

[PATCH v7 19/27] mbedtls: add PKCS7 parser porting layer

2024-09-13 Thread Raymond Mao
Add porting layer for PKCS7 parser on top of MbedTLS PKCS7 library. Introduce _LEGACY and _MBEDTLS kconfigs for PKCS7 parser legacy and MbedTLS implementations respectively. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. - Fix EFI Capsule CI test failures. C

[PATCH v7 18/27] lib/crypto: Adapt x509_cert_parser to MbedTLS

2024-09-13 Thread Raymond Mao
Previous patch has introduced MbedTLS porting layer for x509 cert parser, here to adjust the header and makefiles accordingly. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - Update commit message. Changes in v4 - Control building legacy libra

[PATCH v7 17/27] mbedtls: add X509 cert parser porting layer

2024-09-13 Thread Raymond Mao
Add porting layer for X509 cert parser on top of MbedTLS X509 library. Introduce _LEGACY and _MBEDTLS kconfigs for X509 cert parser legacy and MbedTLS implementations respectively. Signed-off-by: Raymond Mao --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - None. Changes

[PATCH v7 16/27] lib/crypto: Adapt public_key header with MbedTLS

2024-09-13 Thread Raymond Mao
Previous patch has introduced MbedTLS porting layer for public key, here to adjust the header and makefiles accordingly. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in v3 - Update commit message. Changes in v4 - Cont

[PATCH v7 15/27] mbedtls: add public key porting layer

2024-09-13 Thread Raymond Mao
Add porting layer for public key on top of MbedTLS X509 library. Introduce _LEGACY and _MBEDTLS kconfigs for public key legacy and MbedTLS implementations respectively. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v2 - Move the porting layer to MbedTLS dir. Changes in

[PATCH v7 14/27] pkcs7: move common functions to PKCS7 helper

2024-09-13 Thread Raymond Mao
Move pkcs7_get_content_data as a helper function that can be shared by legacy crypto lib and MbedTLS implementation. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v4 - Initial patch. Changes in v5 - Remove authorship. Changes in v6 - None. Changes in v7 - None. lib/cr

[PATCH v7 13/27] x509: move common functions to x509 helper

2024-09-13 Thread Raymond Mao
Move x509_check_for_self_signed as a common helper function that can be shared by legacy crypto lib and MbedTLS implementation. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v4 - Initial patch. Changes in v5 - Removed authorship. Changes in v6 - None. Changes in v7 - No

[PATCH v7 12/27] public_key: move common functions to public key helper

2024-09-13 Thread Raymond Mao
Move public_key_free and public_key_signature_free as helper functions that can be shared by legacy crypto lib and MbedTLS implementation. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v4 - Initial patch. Changes in v5 - Removed authorship. Changes in v6 - None. Changes

[PATCH v7 11/27] mbedtls/external: update MbedTLS PKCS7 test suites

2024-09-13 Thread Raymond Mao
Update the PKCS7 test suites for multiple certs. The PR for this patch is at: https://github.com/Mbed-TLS/mbedtls/pull/9001 For enabling EFI loader PKCS7 features with MbedTLS build, we need this patch on top of MbedTLS v3.6.0 before it is merged into the next MbedTLS LTS release. Signed-off-by:

[PATCH v7 10/27] mbedtls/external: support decoding multiple signer's cert

2024-09-13 Thread Raymond Mao
Support decoding multiple signer's cert in the signed data within a PKCS7 message. The PR for this patch is at: https://github.com/Mbed-TLS/mbedtls/pull/9001 For enabling EFI loader PKCS7 features with MbedTLS build, we need this patch on top of MbedTLS v3.6.0 before it is merged into the next Mb

[PATCH v7 09/27] mbedtls/external: support PKCS9 Authenticate Attributes

2024-09-13 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. The PR for this patch is at: https://github.com/Mbed-TLS/mbedtls/pull/9001 For enabling EFI loader PKCS7 features with MbedTLS build, we need

[PATCH v7 08/27] mbedtls/external: support Microsoft Authentication Code

2024-09-13 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. The PR for this patch is at: https://github.com/Mbed-TLS/mbedtls/pull/9001 For enabling EFI loader PKC

[PATCH v7 07/27] mbedtls: Enable smaller implementation for SHA256/512

2024-09-13 Thread Raymond Mao
Smaller implementation for SHA256 and SHA512 helps to reduce the ROM footprint though it has a certain impact on performance. As a trade-off, enable it as a default config when MbedTLS is enabled can reduce the target size significantly with acceptable performace loss. Signed-off-by: Raymond Mao

[PATCH v7 06/27] mbedtls: add digest shim layer for MbedTLS

2024-09-13 Thread Raymond Mao
Implement digest shim layer on top of MbedTLS crypto library. Introduce _MBEDTLS kconfig for MbedTLS crypto implementations. 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. Changes in v3 - Ref

[PATCH v7 05/27] sha1: Remove sha1 non-watchdog API

2024-09-13 Thread Raymond Mao
We don't need an API specially for non-watchdog since sha1_csum_wd supports it by disabling CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG. Set 0x1 as default chunk size for SHA1. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v4 - Initial patch. Changes in v5 - None. Change

[PATCH v7 04/27] md5: Remove md5 non-watchdog API

2024-09-13 Thread Raymond Mao
We don't need an API specially for non-watchdog since md5_wd supports it by disabling CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG. Set 0x1 as default chunk size for MD5. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas Reviewed-by: Michal Simek --- Changes in v3 - Initial patch. Changes

[PATCH v7 03/27] lib: Adapt digest header files to MbedTLS

2024-09-13 Thread Raymond Mao
Adapt digest header files to support both original libs and MbedTLS by switching on/off MBEDTLS_LIB_CRYPTO. Introduce _LEGACY kconfig for legacy hash implementations. sha256.o should depend on SHA256 kconfig only but not SUPPORT_EMMC_RPMB, SHA256 should be selected when SUPPORT_EMMC_RPMB is enabled

[PATCH v7 02/27] mbedtls: add mbedtls into the build system

2024-09-13 Thread Raymond Mao
Port mbedtls with adapted 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 skeleton and config submenu entry for selecting crypto libraries between mbedtls and

[PATCH v7 01/27] CI: Exclude MbedTLS subtree for CONFIG checks

2024-09-13 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 Reviewed-by: Tom Rini Reviewed-by: Ilias Apalodimas --- Changes in v2 - Initial patch. Changes in v3 - None. Changes in v4 - None. Changes in v5 - None. Cha

[PATCH v7 00/27] Integrate MbedTLS v3.6 LTS with U-Boot

2024-09-13 Thread Raymond Mao
Integrate MbedTLS v3.6 LTS (currently v3.6.0) 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 series

[PATCH v3] mtd: spi-nor: Fix chip erase timeout issue

2024-09-13 Thread Ye Li
Chip erase support was added to spi_nor_erase, but the timeout for polling SR ready is not updated and still for sector erase. So the timeout value is not enough for chip erase on some NOR flash. Follow kernel implementation 09b6a377687b ("mtd: spi-nor: scale up timeout for full-chip erase") to set

[PATCH] imx6q-lxr: Add board support

2024-09-13 Thread Fabio Estevam
From: Fabio Estevam Add support for the Comvetia i.MX6Q LXR2 board, which is uses the Phytec PFLA02 SoM. Based on the original work from Stefano Babic . The Phytec PFLA02 devicetrees are taken from kernel 6.11-rc7. The imx6q-lxr.dts has been submitted upstream: https://lore.kernel.org/linux-d

Re: [PATCH v2 0/6] android_ab: introduce bcb ab_dump command and provide several bcb fixes

2024-09-13 Thread Tom Rini
On Fri, Sep 13, 2024 at 07:27:38PM +0300, Dmitry Rokosov wrote: > On Thu, Sep 12, 2024 at 10:10:53AM +0300, Dmitry Rokosov wrote: > > There are Pipeline results. One test was failed. I suppose it's not > > related to my patch series: > > > > https://github.com/u-boot/u-boot/pull/625/checks?check_r

Re: [NEXT] Pull request efi-next-20241024

2024-09-13 Thread Tom Rini
On Fri, Sep 13, 2024 at 03:48:11PM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 78d898eec080b02059c8dc09318b8761044fea85: > > Merge patch series "phycore-am62/4: Add more boot sources" > (2024-09-10 14:56:12 -0600) > > are available in the Git repositor

Re: [MASTER] Pull request doc-2024-10-rc4

2024-09-13 Thread Tom Rini
On Fri, Sep 13, 2024 at 03:39:06PM +0200, Heinrich Schuchardt wrote: > Hello Tom, > > The following changes since commit 5f044932413694475422d4b16607dfcf9aff8781: > > scripts/Makefile.lib: do not include CONFIG_DEVICE_TREE_INCLUDES in > dtsi_include_list (2024-09-10 11:31:54 -0600) > > are av

Re: [PATCH v2 0/6] android_ab: introduce bcb ab_dump command and provide several bcb fixes

2024-09-13 Thread Dmitry Rokosov
On Thu, Sep 12, 2024 at 10:10:53AM +0300, Dmitry Rokosov wrote: > There are Pipeline results. One test was failed. I suppose it's not > related to my patch series: > > https://github.com/u-boot/u-boot/pull/625/checks?check_run_id=30029925059 > > === FAILURES > ===

Re: [PATCH v3] mtd: spi-nor: Fix chip erase timeout issue

2024-09-13 Thread Marek Vasut
On 9/13/24 4:56 PM, Ye Li wrote: Chip erase support was added to spi_nor_erase, but the timeout for polling SR ready is not updated and still for sector erase. So the timeout value is not enough for chip erase on some NOR flash. Follow kernel implementation 09b6a377687b ("mtd: spi-nor: scale up t

Re: [PATCH] dfu: define a callback function for the dfu_alt_info environment variable

2024-09-13 Thread Mattijs Korpershoek
Hi Rasmus, Thank you for the patch. On mer., sept. 11, 2024 at 15:39, Rasmus Villemoes wrote: > I'm trying to use dfu-util for bootstrapping an stm32mp board. It > mostly works fine, but something goes horribly wrong as soon as I make > use of the ability to run arbitrary u-boot shell commands

Re: [PATCH] dfu: fix Kconfig dependencies

2024-09-13 Thread Mattijs Korpershoek
Hi, On Tue, 10 Sep 2024 12:27:50 +0200, Jerome Forissier wrote: > Fix link errors caused by missing Kconfig dependencies: > > 1. DFU_OVER_USB compiles common/dfu.c which calls g_dnl_clear_detach() > which is implemented in drivers/usb/gadget/g_dnl.c which needs > USB_GADGET_DOWNLOAD. Test case: >

Re: [PATCH v6 07/28] hash: integrate hash on mbedtls

2024-09-13 Thread Ilias Apalodimas
Hi Simon, Apologies lost that email > On Sun, Sep 01, 2024 at 02:09:44PM -0600, Simon Glass wrote: > Hi Ilias, > > On Fri, 30 Aug 2024 at 03:37, Ilias Apalodimas > wrote: > > > > Hi Simon, > > > > On Thu, 29 Aug 2024 at 18:01, Simon Glass wrote: > > > > > > Hi Raymond, > > > > > > On Fri, 16

Re: [PATCH v10 00/25] Introduce the lwIP network stack

2024-09-13 Thread Jerome Forissier
On 9/13/24 15:59, Tom Rini wrote: > On Fri, Sep 13, 2024 at 11:33:31AM +0200, Jerome Forissier wrote: >> >> >> On 9/9/24 18:19, Tom Rini wrote: >>> On Mon, Sep 09, 2024 at 04:11:37PM +0200, Jerome Forissier wrote: On 9/6/24 19:54, Tom Rini wrote: > On Fri, Sep 06, 2024 at 02:3

Re: [PATCH v10 00/25] Introduce the lwIP network stack

2024-09-13 Thread Tom Rini
On Fri, Sep 13, 2024 at 11:33:31AM +0200, Jerome Forissier wrote: > > > On 9/9/24 18:19, Tom Rini wrote: > > On Mon, Sep 09, 2024 at 04:11:37PM +0200, Jerome Forissier wrote: > >> > >> > >> On 9/6/24 19:54, Tom Rini wrote: > >>> On Fri, Sep 06, 2024 at 02:33:16PM +0200, Jerome Forissier wrote: >

Re: [PATCH v5 00/14] efi: Add a test for EFI bootmeth

2024-09-13 Thread Heinrich Schuchardt
On 02.09.24 03:18, Simon Glass wrote: The test coverage for the EFI bootmeth is incomplete since it does not actually boot the application. This series creates a simple test for this purpose. It includes a few patches to make this work: - ANSI output from the EFI loader confusing the unit-testi

[NEXT] Pull request efi-next-20241024

2024-09-13 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 78d898eec080b02059c8dc09318b8761044fea85: Merge patch series "phycore-am62/4: Add more boot sources" (2024-09-10 14:56:12 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-next-202410

[MASTER] Pull request doc-2024-10-rc4

2024-09-13 Thread Heinrich Schuchardt
Hello Tom, The following changes since commit 5f044932413694475422d4b16607dfcf9aff8781: scripts/Makefile.lib: do not include CONFIG_DEVICE_TREE_INCLUDES in dtsi_include_list (2024-09-10 11:31:54 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-

Re: [PATCH v2 0/6] Miscellaneous FWU fixes

2024-09-13 Thread Michal Simek
On 9/9/24 13:20, Sughosh Ganu wrote: The following set of patches are miscellaneous fixes and some hardening of the FWU update logic. Changes since V1: * Squash patch 1 and 2 in the earlier version into a single patch. * Have a single check for image descriptor offset, and have a log mes

[PATCH 00/26] Support display (and even more) on the BSH SMM S2/PRO boards

2024-09-13 Thread Dario Binacchi
This series was created out of the need to supportsimple-framebuffer for BSH boards SMM_S2 and SMM_S2PRO. To achieve this goal, it was necessary to develop additional code and/or drivers for all the required components (i. e. clock, power domain, video, etc.). This series has a Linux counterpart

[PATCH] board: xilinx: Remove conditional check for Microblaze

2024-09-13 Thread Padmarao Begari
U-Boot is not picking boot.scr script address from device tree rather it's using default address for Microblaze platform, and it's picking for other platforms. Remove conditional check for Microblaze platform, so that u-boot pick up boot.scr script address for all platforms from device tree. Signe

[PATCH] mmc: zynq_sdhci: Remove device_is_compatible() function

2024-09-13 Thread Padmarao Begari
There are lot of device_is_compatible() present in the driver. Remove them and replace with a variables "SDHCI_COMPATIBLE_SDHCI_89A" and "SDHCI_COMPATIBLE_VERSAL_NET_EMMC" with match data. This change saves the space and reduce the execution time. Signed-off-by: Padmarao Begari --- drivers/mmc/z

[PATCH v2] mtd: spi-nor: Fix chip erase timeout issue

2024-09-13 Thread Ye Li
Chip erase support was added to spi_nor_erase, but the timeout for polling SR ready is not updated and still for sector erase. So the timeout value is not enough for chip erase on some NOR flash. Follow kernel implementation 09b6a377687b ("mtd: spi-nor: scale up timeout for full-chip erase") to set

Re: [PATCH] board: rpi: Enable capsule updates

2024-09-13 Thread Ilias Apalodimas
Apologies for responding to myself here, but clarifying things a bit more... On Fri, 13 Sept 2024 at 14:15, Ilias Apalodimas wrote: > > Hi Matthias > > On Fri, 13 Sept 2024 at 13:40, Matthias Brugger wrote: > > > > > > > > On 11/09/2024 12:05, Ilias Apalodimas wrote: > > > On Wed, 11 Sept 2024 a

Re: [PATCH] board: rpi: Enable capsule updates

2024-09-13 Thread Ilias Apalodimas
Hi Matthias On Fri, 13 Sept 2024 at 13:40, Matthias Brugger wrote: > > > > On 11/09/2024 12:05, Ilias Apalodimas wrote: > > On Wed, 11 Sept 2024 at 12:50, Peter Robinson wrote: > >> > >> On Tue, 10 Sept 2024 at 08:29, Sughosh Ganu > >> wrote: > >>> > >>> On Tue, 10 Sept 2024 at 12:09, Ilias Ap

Re: [PATCH] board: rpi: Enable capsule updates

2024-09-13 Thread Matthias Brugger
On 11/09/2024 12:05, Ilias Apalodimas wrote: On Wed, 11 Sept 2024 at 12:50, Peter Robinson wrote: On Tue, 10 Sept 2024 at 08:29, Sughosh Ganu wrote: On Tue, 10 Sept 2024 at 12:09, Ilias Apalodimas wrote: Since RPI works well using EFI and has no size limitations with regards to U-Boot

Re: [PATCH 03/26] clk: imx8mm: Prevent clock critical path from disabling during reparent and set_rate

2024-09-13 Thread Marek Vasut
On 9/13/24 11:55 AM, Dario Binacchi wrote: From: Michael Trimarchi This commit ensures that critical clock paths are not disabled during reparent and set_rate operations within the clock framework, paving the way for the inclusion of new features. Signed-off-by: Michael Trimarchi Signed-off-b

Re: [PATCH 05/26] clk: imx8mm: Mark IMX8MM_SYS_PLL2 and IMX8MM_SYS_PLL3 as enabled

2024-09-13 Thread Marek Vasut
On 9/13/24 11:55 AM, Dario Binacchi wrote: From: Michael Trimarchi Both clock are enabled by the bootloader and we need to increase their reference count to avoid disable during reparent operation. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/clk/imx/clk-imx8

[PATCH] arm64: zynqmp: Define only one revision in zcu106-rev1.0

2024-09-13 Thread Michal Simek
zcu106 rev1.0 is sw compatible with revA but only one revision should be listed in compatible string that's why remove revA and keep only rev1.0. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu106-rev1.0.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dt

[PATCH 26/26] imx8mn_bsh_smm_s2/pro: add splash screen with BSH logo

2024-09-13 Thread Dario Binacchi
Display the BSH logo with features VIDEO_LOGO and SPLASH_SCREEN on imx8mn_bsh_smm_s2/pro boards. With CONFIG_SYS_VENDOR = "bsh", the logo bsh.bmp is selected, loaded at the address indicated by splashimage and centered with "splashpos=m,m". Co-developed-by: Michael Trimarchi Signed-off-by: Micha

[PATCH 25/26] imx8mn_bsh_smm_s2/pro: enable simple frame-buffer

2024-09-13 Thread Dario Binacchi
Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- configs/imx8mn_bsh_smm_s2_defconfig| 3 +++ configs/imx8mn_bsh_smm_s2pro_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs/im

[PATCH 24/26] imx8mn_bsh_smm_s2/pro: support simple frame-buffer

2024-09-13 Thread Dario Binacchi
If you want to pass the frame-buffer to the kernel, the video output is initialized by U-Boot, and kept by the kernel. The commit modifies the device tree to be passed to the kernel just before launching it, to prevent the kernel from reinitializing hardware that has already been configured by the

[PATCH 23/26] video: bridge: samsung: support simple frame-buffer

2024-09-13 Thread Dario Binacchi
If you want to pass the frame-buffer to the kernel, the video output is initialized by U-Boot, and kept by the kernel. The patch does not turn off the power domains or disable the peripheral if you want to support such feature. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi

[PATCH 22/26] video: mxsfb: support simple frame-buffer

2024-09-13 Thread Dario Binacchi
If you want to pass the frame-buffer to the kernel, the video output is initialized by U-Boot, and kept by the kernel. The patch does not turn off the power domains or reset the peripheral if you want to support such feature. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Si

[PATCH 21/26] boot: fdt_simplefb: add a debug message

2024-09-13 Thread Dario Binacchi
The printed information is useful when adding support for the simple frame buffer to a board. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- boot/fdt_simplefb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/fdt_simplefb.c b/b

[PATCH 20/26] imx8mn_bsh_smm_s2/pro: Enable display on reference design

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Co-developed-by: Dario Binacchi Signed-off-by: Dario Binacchi Signed-off-by: Michael Trimarchi --- .../dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi | 23 +++ configs/imx8mn_bsh_smm_s2_defconfig | 15 configs/imx8mn_bsh_smm_s2pro_def

[PATCH 19/26] video: Add Synaptics R63353 panel driver

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi The LS068B3SX02 panel is based on the Synaptics R63353 Controller. Add a driver for it. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/video/Kconfig| 8 ++ drivers/video/Makefile | 1 + drivers/video/synaptics-r633

[PATCH 18/26] video: bridge: Add Samsung DSIM bridge

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Samsung MIPI DSIM controller is common DSI IP that can be used in various SoCs like Exynos, i.MX8M Mini/Nano. In order to access this DSI controller between various platform SoCs, the ideal way to incorporate this in the as a bridge that can support all different platform

[PATCH 17/26] lib: div64: sync with Linux

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Sync with Linux commit fc4a0db4149af ("Merge tag '6.5'"). Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- include/linux/math64.h | 110 + 1 file changed, 110 insertions(+) diff --git a/include/linux/math64.h

[PATCH 16/26] phy: dphy: Correct clk_pre parameter

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 9a8406ba1a9a29. The D-PHY specification (v1.2) explicitly mentions that the T-CLK-PRE parameter's unit is Unit Interval(UI) and the minimum value is 8. Also, kernel doc of the 'clk_pre' member of struct phy_configure_opts_mipi_dphy mentions that it

[PATCH 15/26] phy: dphy: Correct lpx parameter and its derivatives(ta_{get, go, sure})

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 3153fa38e38af5. According to the comment of the function phy_mipi_dphy_get_default_config(), it uses minimum D-PHY timings based on MIPI D-PHY specification. They are derived from the valid ranges specified in Section 6.9, Table 14, Page 41 of the D

[PATCH 14/26] phy: dphy: add support to calculate the timing based on hs_clk_rate

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Upstream Linux commit 22168675bae7. For MIPI-CSI sender use-case it is common to specify the allowed link-frequencies which should be used for the MIPI link and is half the hs-clock rate. This commit adds a helper to calculate the D-PHY timing based on the hs-clock rate

[PATCH 13/26] video: Enable DM_UC_FLAG_SEQ_ALIAS for display and bridge

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi To support multiple display or bridge devices, enable the flag, so we can assign the req seq via DTB alias Signed-off-by: Ye Li Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/video/bridge/video-bridge-uclass.c | 1 + drivers/video/display-

[PATCH 12/26] video: Update mxsfb video drivers for iMX8MM/iMX8MN display

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Update mxsfb for LCD video driver Signed-off-by: Ye Li Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/video/mxsfb.c | 139 -- 1 file changed, 93 insertions(+), 46 deletions(-) diff --git a/drivers/v

[PATCH 11/26] video: dsi_host: add disable host interface

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Current operations structure has provided disable callback, but there is no API from dsi_host uclass to use it. Add this disable host interface, so that dsi bridge can call it to disable host Signed-off-by: Ye Li Signed-off-by: Michael Trimarchi Signed-off-by: Dario Bi

[PATCH 10/26] video: bridge: Add check_timing interface

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Add new interface check_timing to video bridge uclass. For bridge device who may update timing needs to implement the callback. So host device can sync the timing with the bridge. Signed-off-by: Ye Li Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi ---

[PATCH 08/26] power: Add iMX8M block ctrl driver for dispmix

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Add iMX8 block ctrl driver for displaymix on iMX8MM/iMX8MN and mediamix on iMX8MP. To support blk ctrl driver, the power domain driver on iMX8M needs update to add relevant PGC domains Signed-off-by: Ye Li Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi

[PATCH 09/26] video: Add video link framework

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi The video link framework bases a port-endpoint gragh in DTB to connect the video components in uclass like: video, display, bridge, and panel. Using the port-endpoint gragh, we manage multiple video link and user can select one of them for splash screen. Signed-off-by: Y

[PATCH 07/26] clk: imx8mn: add video clocks support

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Add clocks support for the video subsystem. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/clk/imx/clk-imx8mn.c | 97 +--- 1 file changed, 90 insertions(+), 7 deletions(-) diff --git a/drivers/clk/imx/clk-im

[PATCH 06/26] clk: imx8mn: Mark IMX8MN_SYS_PLL2 and IMX8MN_SYS_PLL3 as enabled

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Both clock are enabled by the bootloader and we need to increase their reference count to avoid disable during reparent operation. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/clk/imx/clk-imx8mn.c | 8 1 file changed, 8 insertion

[PATCH 05/26] clk: imx8mm: Mark IMX8MM_SYS_PLL2 and IMX8MM_SYS_PLL3 as enabled

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Both clock are enabled by the bootloader and we need to increase their reference count to avoid disable during reparent operation. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/clk/imx/clk-imx8mm.c | 9 + 1 file changed, 9 insertio

[PATCH 03/26] clk: imx8mm: Prevent clock critical path from disabling during reparent and set_rate

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi This commit ensures that critical clock paths are not disabled during reparent and set_rate operations within the clock framework, paving the way for the inclusion of new features. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/clk/imx/clk-

[PATCH 04/26] clk: clk-uclass: Implement CLK_OPS_PARENT_ENABLE

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi There are scenario that we need to enable the new parent clock before reparent, or we need to do the same with clk_set_rate. The patch cover those scenario Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/clk/clk-uclass.c | 47 +++

[PATCH 02/26] clk: imx8mn: Prevent clock critical path from disabling during reparent and set_rate

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi This commit ensures that critical clock paths are not disabled during reparent and set_rate operations within the clock framework, paving the way for the inclusion of new features. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/clk/imx/clk-

[PATCH 01/26] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present for gate and mux

2024-09-13 Thread Dario Binacchi
From: Michael Trimarchi Gate and mux does not have .set_rate operation, but they could have CLK_SET_PARENT_RATE flag set. In that case it's usually possible to find a parent up the tree which is capable of setting the rate (div, pll, etc). Add clk_generic_set_rate to allow them to trasverse the c

[PATCH v3] board: rpi: Enable capsule updates

2024-09-13 Thread Ilias Apalodimas
Since RPI works well using EFI and has no size limitations with regards to U-Boot, add the needed structures to support capsule updates. While at it update the most commonly used defconfigs and include capsule support and U-Boot commands needed by EFI Tested-by: Sughosh Ganu Signed-off-by: Ilias

Re: [PATCH v10 00/25] Introduce the lwIP network stack

2024-09-13 Thread Jerome Forissier
On 9/9/24 18:19, Tom Rini wrote: > On Mon, Sep 09, 2024 at 04:11:37PM +0200, Jerome Forissier wrote: >> >> >> On 9/6/24 19:54, Tom Rini wrote: >>> On Fri, Sep 06, 2024 at 02:33:16PM +0200, Jerome Forissier wrote: >>> This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip >>

[PATCH 10/10] arm64: zynqmp: Rename ina226-vccint-io-bram-ps nodes

2024-09-13 Thread Michal Simek
Remove -ps suffix to avoid issues with dt-schema where -ps is allocated in property-units.yaml for pico seconds. Signed-off-by: Michal Simek --- The same behavior is if -ms or -us is used. --- arch/arm/dts/zynqmp-zcu208-revA.dts | 2 +- arch/arm/dts/zynqmp-zcu216-revA.dts | 2 +- arch/arm/dts/

[PATCH 09/10] arm64: zynqmp: Use generic spi@ name in zcu111-revA

2024-09-13 Thread Michal Simek
DT schema requires to use spi@ name for SPI devices that's why fix it. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu111-revA.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/zynqmp-zcu111-revA.dts b/arch/arm/dts/zynqmp-zcu111-revA.dts index 787cf0d

[PATCH 08/10] arm64: zynqmp: Define phy-mode in zcu1275-revB

2024-09-13 Thread Michal Simek
Add missing required phy-mode property. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu1275-revB.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/zynqmp-zcu1275-revB.dts b/arch/arm/dts/zynqmp-zcu1275-revB.dts index 4060dc3613a2..ed83ba327916 100644 --- a/arch/arm/dt

[PATCH 07/10] arm64: zynqmp: Align mini-qspi DT with dt-schema

2024-09-13 Thread Michal Simek
fixed-clock can't be described on the bus because it is missing reg property. Also remove additional compatible string for flash. Mini qspi configuration is used with multiple different flashes that's why describing only one is not correct but also not required based on DT schema. Signed-off-by: M

[PATCH 06/10] arm64: zynqmp: fix i2c mux bus description for m-a2197 platforms

2024-09-13 Thread Michal Simek
Uncomment reg property for bus 3 in i2c mux. It is better option than removing the whole node. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-03-revA.dts | 2 +- 3 files changed, 3 inser

[PATCH 05/10] arm64: zynqmp: Fix comment style around gpio line-names

2024-09-13 Thread Michal Simek
Just fix description to be aligned with other comments. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-dlc21-revA.dts | 2 +- arch/arm/dts/zynqmp-g-a2197-00-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 2 +- arch/arm/dts/zy

[PATCH 04/10] arm64: zynqmp: Fix gpio-line-name size for m-a2197 platforms

2024-09-13 Thread Michal Simek
There were 3 additional empty strings which shouldn't be there. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-03-revA.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 02/10] arm64: zynqmp: Align gpio hogs with dt-schema

2024-09-13 Thread Michal Simek
As was done in past for zcu102 append -hog to node name to pass dt-schema. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-m-a2197-01-revA.dts| 8 arch/arm/dts/zynqmp-m-a2197-02-revA.dts| 8 arch/arm/dts/zynqmp-m-a2197-03-revA.dts

[PATCH 03/10] xilinx: Fix axi and mmc node names in mini configuration

2024-09-13 Thread Michal Simek
amba is not approved node name for simple-bus that's why use axi instead to be aligned with other xilinx boards. Node reference is not changed that's why there is no impact but also mini configuration will never gets to OS that's why nothing should be affected from OS perspective (paths in /proc/ f

[PATCH 01/10] arm64: zynqmp: Fix status property for m-a2197 boards

2024-09-13 Thread Michal Simek
Status property should be missing or okay or disabled but not just disable. dt-validate is reporting it too. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 2 +- arch/arm/dts/zynqmp-m-a2197-03-revA.dts | 2 +- 3 files ch

[PATCH 00/10] arm64: zynqmp: DT schema alignments

2024-09-13 Thread Michal Simek
Hi, I am sending some patches to fix issues reported by dt-schema checking. Thanks, Michal Michal Simek (10): arm64: zynqmp: Fix status property for m-a2197 boards arm64: zynqmp: Align gpio hogs with dt-schema xilinx: Fix axi and mmc node names in mini configuration arm64: zynqmp: Fix g

Re: [PATCH v4] cmd: sf: prevent overwriting the reserved memory

2024-09-13 Thread Michal Simek
On 9/13/24 09:32, Prasad Kummari wrote: Added LMB API to prevent SF command from overwriting reserved memory areas. The current SPI code does not use LMB APIs for loading data into memory addresses. To resolve this, LMB APIs were added to check the load address of an SF command and ensure it d

Re: [PATCH v2 0/6] android_ab: introduce bcb ab_dump command and provide several bcb fixes

2024-09-13 Thread Dmitry Rokosov
Hello Tom, On Thu, Sep 12, 2024 at 11:45:01AM -0600, Tom Rini wrote: > On Thu, Sep 12, 2024 at 10:10:53AM +0300, Dmitry Rokosov wrote: > > There are Pipeline results. One test was failed. I suppose it's not > > related to my patch series: > > > > https://github.com/u-boot/u-boot/pull/625/checks?c

Re: [PATCH 0/8] Add imx8mp video support

2024-09-13 Thread Miquel Raynal
Hi Michael, > > > Thank you for adding those patches. We are working on mipi support > > > here and some of the clock patches > > > are there too. I will try to look and rebase our patchset > > > > > > https://patchwork.amarulasolutions.com/patch/3401/ > > > > Thanks for letting me know. Indeed

RE: [PATCH v3] cmd: sf: prevent overwriting the reserved memory

2024-09-13 Thread Kummari, Prasad
Hi Sughosh, > -Original Message- > From: Sughosh Ganu > Sent: Wednesday, September 11, 2024 5:26 PM > To: Simek, Michal > Cc: Kummari, Prasad ; u-boot@lists.denx.de; > git (AMD-Xilinx) ; Abbarapu, Venkatesh > ; Begari, Padmarao > ; g...@xilinx.com; > ja...@amarulasolutions.com; n-fran...

[PATCH] net: gem: Remove undocumented is-internal-pcspma dt flag

2024-09-13 Thread Michal Simek
Generic understanding/consideration is that phy-mode as sgmi means that the internal PCS(Physical Coding Sublayer) should be enabled by default. Xilinx GEM implementation allows configuration GEM (gmii mode) + PL PCS PMA (sgmii mode, Physical Medum Attachment) but in this case phy-mode should be se

[PATCH v4] cmd: sf: prevent overwriting the reserved memory

2024-09-13 Thread Prasad Kummari
Added LMB API to prevent SF command from overwriting reserved memory areas. The current SPI code does not use LMB APIs for loading data into memory addresses. To resolve this, LMB APIs were added to check the load address of an SF command and ensure it does not overwrite reserved memory addresses.