RE: [PATCH v3] gpio: mxc_gpio: fix reading state of GPIO pins in output mode

2024-08-28 Thread Peng Fan
> Subject: [PATCH v3] gpio: mxc_gpio: fix reading state of GPIO pins in > output mode You may give a look to this https://lore.kernel.org/u-boot/57015c5f.3080...@denx.de/ Regards, Peng. > > The PSR register works correctly for GPIO pins in input mode, but > always returns 0 for GPIO pins in ou

Re: [PATCH v2 2/3] efi: Convert device_path allocation to use malloc()

2024-08-28 Thread Ilias Apalodimas
Hi Simon, [...] > > > > > > --- > > > > > > > > > > > > (no changes since v1) > > > > > > > > > > What about > > > > > https://lore.kernel.org/u-boot/caflsztjlakayk_jlxj7z571l-qmtoiqe-oxhcrs186dz2qo...@mail.gmail.com/ > > > > > ? > > > > > > > > Yes, I reordered the patches in this series. > >

RE: [PATCH v2 1/4] imx: Remove CFG_MXC_USB_FLAGS

2024-08-28 Thread Peng Fan
> Subject: [PATCH v2 1/4] imx: Remove CFG_MXC_USB_FLAGS > > From: Fabio Estevam > > CFG_MXC_USB_FLAGS is only used for drivers/usb/host/ehci-mx5.c, so > it can be removed from all the imx6/imx7/imx8m board config files. > > mx51evk.h is the only place CFG_MXC_USB_FLAGS is not set to 0. > > Sug

RE: [PATCH v2 2/4] usb: ehci-mx5: Add a default for CFG_MXC_USB_PORTSC

2024-08-28 Thread Peng Fan
> Subject: [PATCH v2 2/4] usb: ehci-mx5: Add a default for > CFG_MXC_USB_PORTSC > > From: Fabio Estevam > > Just like drivers/usb/host/ehci-mx6.c, add a default for > drivers/usb/host/ehci-mx5.c. > > The motivation for doing this is to remove CFG_MXC_USB_PORTSC > from board config files. > > A

RE: [PATCH v2 3/4] mx5: Remove CFG_MXC_USB_PORT

2024-08-28 Thread Peng Fan
> Subject: [PATCH v2 3/4] mx5: Remove CFG_MXC_USB_PORT > > From: Fabio Estevam > > CFG_MXC_USB_PORT is not used anywhere, so remove this unused > symbol. > > Suggested-by: Tim Harvey > Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan

RE: [PATCH v3] gpio: mxc_gpio: fix reading state of GPIO pins in output mode

2024-08-28 Thread Tomas Paukrt
> You may give a look to this > > https://lore.kernel.org/u-boot/57015c5f.3080...@denx.de/ > > Regards, > Peng. The Linux driver uses the DR register for about 9 years and the NXP U-Boot driver uses the DR register for about 7 years, so only the mainline U-Boot driver still uses the PSR register.

Re: [PATCH v2] config: imx: Define CFG_SYS_UBOOT_BASE for Phytec's imx8mm SoM QSPI boot

2024-08-28 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Tue, Aug 20, 2024 at 12:00 PM Lukasz Majewski > wrote: > > > > The image offset when booting from SPI-NOR (QSPI, FSPI driver) is > > different than one for SD card / eMMC as extra space (0x1000) is > > consumed by FSPI configuration header (CONFIG_FSPI_CONF_HEADER).

Re: [PATCH v3] gpio: mxc_gpio: fix reading state of GPIO pins in output mode

2024-08-28 Thread Lothar Waßmann
Hi, On Wed, 28 Aug 2024 09:49:44 +0200 (CEST) Tomas Paukrt wrote: > > You may give a look to this > > > > https://lore.kernel.org/u-boot/57015c5f.3080...@denx.de/ > > > > Regards, > > Peng. > > The Linux driver uses the DR register for about 9 years and > the NXP U-Boot driver uses the DR regis

Re: [Binman] Question regarding SPL symbol offsets generation

2024-08-28 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Thu, Aug 15, 2024 at 5:14 PM Lukasz Majewski wrote: > > > Unfortunately not - this change is only for properly setting start > > address of the u-boot. > > > > The _real_ problem here is the symbol placement generated by binman > > when we try to define the image a

Re: [Binman] Question regarding SPL symbol offsets generation

2024-08-28 Thread Lukasz Majewski
Hi Simon, > Hi, > > On Tue, 27 Aug 2024 at 12:47, Fabio Estevam > wrote: > > > > Hi Lukasz, > > > > On Thu, Aug 15, 2024 at 5:14 PM Lukasz Majewski > > wrote: > > > Unfortunately not - this change is only for properly setting start > > > address of the u-boot. > > > > > > The _real_ problem he

Re: [PATCH v6 02/28] mbedtls: add mbedtls into the build system

2024-08-28 Thread Ilias Apalodimas
Hi Raymond On Sat, 17 Aug 2024 at 00:45, Raymond Mao wrote: > > 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

Re: [PATCH v6 09/28] mbedtls/external: support Microsoft Authentication Code

2024-08-28 Thread Ilias Apalodimas
On Sat, 17 Aug 2024 at 00:48, Raymond Mao wrote: > > 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://g

Re: [PATCH v6 10/28] mbedtls/external: support PKCS9 Authenticate Attributes

2024-08-28 Thread Ilias Apalodimas
Hi Raymond On Sat, 17 Aug 2024 at 00:48, Raymond Mao wrote: > > 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/pu

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

2024-08-28 Thread Ilias Apalodimas
On Sat, 17 Aug 2024 at 00:55, Raymond Mao wrote: > > Enable MbedTLS as default setting for qemu arm64 and sandbox. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - None. > Changes in v3 > - None. > Changes in v4 > - None. > Changes in v5 > - Remove unused config MBEDTLS_LIB_TLS. > - Remov

Re: [PATCH v6 26/28] asn1_decoder: add build options for ASN1 decoder

2024-08-28 Thread Ilias Apalodimas
On Sat, 17 Aug 2024 at 00:54, Raymond Mao wrote: > > 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 > --

Re: [PATCH v6 03/28] lib: Adapt digest header files to MbedTLS

2024-08-28 Thread Ilias Apalodimas
On Sat, 17 Aug 2024 at 00:46, Raymond Mao wrote: > > 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. > > `IS_ENABLED` or `CONFIG_IS_ENABLED` is not applicable here, since > in

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

2024-08-28 Thread Ilias Apalodimas
Hi Raymond On Sat, 17 Aug 2024 at 00:47, Raymond Mao wrote: > > 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

Re: [PATCH 00/18] vbe: Series part D

2024-08-28 Thread Peter Robinson
Hi Simon, > This includes various patches towards implementing the VBE abrec What is abrec? > bootmeth in U-Boot. > > > Simon Glass (18): > sandbox: Add missing header file > bootstd: Add stub for bootdev_setup_for_sibling_blk() > gzip: Correct function comment for gunzip() Is this from u

Re: [PATCH 00/15] binman: More patches to support VBE

2024-08-28 Thread Peter Robinson
On Mon, 26 Aug 2024 at 20:11, Simon Glass wrote: > > This series provides a number of patches to make VBE easier to > implement, particularly with the new OF_UPSTREAM option. How? They mostly look unrelated to VBE. > > Simon Glass (15): > binman: Fix up test coverage for mkeficapsule > binma

Re: [RESEND PATCH v3 7/9] net/tcp: simplify tcp header filling code

2024-08-28 Thread Peter Robinson
This needs an actual description, please add details what and why for this 70 line patch. > Signed-off-by: Mikhail Kshevetskiy > --- > net/tcp.c | 70 +-- > 1 file changed, 37 insertions(+), 33 deletions(-) > > diff --git a/net/tcp.c b/net/tcp.

[PATCH 01/20] arm: dts: Support SC573-EZKIT

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Adds minimal device tree for Analog Devices' SC573-EZKIT board and common files for the SC57x/SC5xx family. This also adds all sc5* devicetrees to ARM SC5XX in MAINTAINERS, and adds the ADSP Linux mailing list as the list for ARM SC5XX. Co-developed-by: Greg Malysa Co-deve

[PATCH 18/20] arm: SC589-EZKIT initial support

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Adds support for Analog Devices' SC589-EZKIT board. Includes: - Board specific configs in mach-sc5xx/Kconfig - Board-specific Kconfig and environment in board/adi/ - Memory configuration Signed-off-by: Oliver Gaskell --- arch/arm/mach-sc5xx/Kconfig | 5 ++ boar

[PATCH 05/20] arm: dts: Support SC594-SOM-EZKIT

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Add minimal device tree for Analog Devices' SC594-SOM-EZKIT board, and the SC594 SoM. This patch depends on patch 01, for sc5xx.dtsi. Co-developed-by: Greg Malysa Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/dts/Makefile

[PATCH 17/20] arm: SC584-EZKIT initial support

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Adds support for Analog Devices' SC584-EZKIT board. Includes: - SoC specific configs in mach-sc5xx/Kconfig - Memory Map for SPL - Necessary board-specific init functions - Board-specific Kconfig and environment in board/adi/ - Memory configuration Co-developed-by: Greg Malys

[PATCH 20/20] arm: SC573-EZKIT initial support

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Adds support for Analog Devices' SC573-EZKIT board. Includes: - SoC specific configs in mach-sc5xx/Kconfig - Memory Map for SPL - Necessary board-specific init functions - Board-specific Kconfig and environment in board/adi/ - Memory configuration Co-developed-by: Greg Malys

[PATCH 13/20] arm: SC598-SOM-EZKIT initial support

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Adds support for Analog Devices' SC598-SOM-EZKIT board. Includes: - CONFIG options common to all SC5xx SoCs - SoC specific configs in mach-sc5xx/Kconfig - Memory Map for SPL - Necessary board-specific init functions - Board-specific Kconfig and environment in board/adi/ - Mem

[PATCH 19/20] arm: SC589-MINI initial support

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Adds support for Analog Devices' SC589-MINI board. Includes: - Board specific configs in mach-sc5xx/Kconfig - Board-specific Kconfig and environment in board/adi/ Signed-off-by: Oliver Gaskell --- arch/arm/mach-sc5xx/Kconfig | 5 ++ board/adi/sc589-mini/Kconfig

[PATCH 16/20] arm: SC594-SOM-EZLITE initial support

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Adds support for Analog Devices' SC594-SOM-EZLITE board. Includes: - Board specific configs in mach-sc5xx/Kconfig - Board-specific Kconfig and environment in board/adi/ Signed-off-by: Oliver Gaskell --- arch/arm/mach-sc5xx/Kconfig | 6 + board/adi/sc5

[PATCH 07/20] arm: dts: Support SC598-SOM-EZKIT

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Add minimal device tree for Analog Devices' SC598-SOM-EZKIT board, and the SC598 SoM. This patch depends on patch 01, for sc5xx.dtsi. Co-developed-by: Greg Malysa Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/dts/Makefile

[PATCH 06/20] arm: dts: Support SC594-SOM-EZLITE

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Add minimal device tree for Analog Devices' SC594-SOM-EZLITE board. This patch depends on Patches 01 and 05, for sc5xx.dtsi and sc594-som.dtsi respectively. Co-developed-by: Greg Malysa Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/

[PATCH 02/20] arm: dts: Support SC584-EZKIT

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Add minimal device tree for Analog Devices' SC584-EZKIT board, and common files for the SC58x family. This patch depends on Patch 01, for sc5xx.dtsi. Co-developed-by: Greg Malysa Co-developed-by: Trevor Woerner Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliv

[PATCH 11/20] dt-bindings: timer: Add SC5xx Timer bindings

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Add devicetree schema for the timer peripheral on Analog Devices SC5xx series SoCs. Signed-off-by: Oliver Gaskell --- MAINTAINERS| 1 + .../timer/adi,sc5xx-gptimer.yaml | 42 ++ 2 files changed,

[PATCH 03/20] arm: dts: Support SC589-MINI

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Add minimal device tree for Analog Devices' SC589-MINI board. This patch depends on Patches 01 and 02, for sc5xx.dtsi and sc58x.dtsi. Co-developed-by: Greg Malysa Co-developed-by: Trevor Woerner Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell ---

[PATCH 14/20] arm: SC598-SOM-EZLITE initial support

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Adds support for Analog Devices' SC598-SOM-EZLITE board. Includes: - Board specific configs in mach-sc5xx/Kconfig - Board-specific Kconfig and environment in board/adi/ Signed-off-by: Oliver Gaskell --- arch/arm/mach-sc5xx/Kconfig | 6 + board/adi/sc5

[PATCH 10/20] dt-bindings: clock: Add SC5xx clock tree bindings

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Add devicetree schema for the clock tree on Analog Devices SC5xx series SoCs. Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- MAINTAINERS| 1 + .../clock/adi,sc5xx-clocks.yaml| 112 ++

[PATCH 04/20] arm: dts: Support SC589-EZKIT

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Add minimal device tree for Analog Devices' SC589-EZKIT board. This patch depends on Patches 01 and 02, for sc5xx.dtsi and sc58x.dtsi. Co-developed-by: Greg Malysa Co-developed-by: Trevor Woerner Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell ---

[PATCH 00/20] arm: Initial support for Analog Devices SC5xx boards

2024-08-28 Thread Oliver Gaskell via B4 Relay
ADSP-SC5xx is a series of ARM-based DSPs. This comprises the armv7 based SC57x, SC58x and SC594 series, and the armv8 based SC598. This patch series includes configurations, init code, and minimal DTs to enable Analog Devices' evaluation boards for these SoCs to boot through SPL and into U-Boot Pr

[PATCH 08/20] arm: dts: Support SC598-SOM-EZLITE

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Add minimal device tree for Analog Devices' SC598-SOM-EZLITE board. This patch depends on Patches 01 and 07, for sc5xx.dtsi and sc598-som.dtsi respectively. Co-developed-by: Greg Malysa Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/

[PATCH 15/20] arm: SC594-SOM-EZKIT initial support

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Adds support for Analog Devices' SC594-SOM-EZKIT board. Includes: - SoC specific configs in mach-sc5xx/Kconfig - Memory Map for SPL - Necessary board-specific init functions - Board-specific Kconfig and environment in board/adi/ - Memory configuration Co-developed-by: Greg M

[PATCH 12/20] arm: mach-sc5xx: clean up Kconfig

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Moves common options between all SC5xx series boards to the ARCH_SC5XX option instead of duplicating them. Also, it was possible to select multiple of the SoC support options. Given a U-Boot binary can only support a single platform, this moves the SoC selection to a `choice

[PATCH 09/20] dt-bindings: arm: Add SC5xx Series binding

2024-08-28 Thread Oliver Gaskell via B4 Relay
From: Oliver Gaskell Add devicetree schema for Analog Devices SC5xx series SoCs. Signed-off-by: Oliver Gaskell --- MAINTAINERS | 1 + doc/device-tree-bindings/arm/adi/adi,sc5xx.yaml | 46 + 2 files changed, 47 insertions(+) diff --g

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

2024-08-28 Thread Ilias Apalodimas
On Sat, 17 Aug 2024 at 00:53, Raymond Mao wrote: > > Add porting layer for MSCode on top of MbedTLS ASN1 library. > Introduce _MBEDTLS kconfigs for MSCode MbedTLS implementation. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Move the porting layer to MbedTLS dir. > Changes in v3 > - No

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

2024-08-28 Thread Ilias Apalodimas
On Sat, 17 Aug 2024 at 00:53, Raymond Mao wrote: > > Add porting layer for MSCode on top of MbedTLS ASN1 library. > Introduce _MBEDTLS kconfigs for MSCode MbedTLS implementation. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Move the porting layer to MbedTLS dir. > Changes in v3 > - No

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

2024-08-28 Thread Ilias Apalodimas
On Sat, 17 Aug 2024 at 00:54, Raymond Mao wrote: > > 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 > --- > Changes in v2 > - Initial patch. > Cha

Re: [RESEND PATCH v3 6/9] net/tcp: improve tcp framework, use better state machine

2024-08-28 Thread Peter Robinson
On Fri, 23 Aug 2024 at 16:31, Mikhail Kshevetskiy wrote: > > Unfortunately no. This patch change the tcp state machine and > corresponding logic. That should be better described in the commit message. > I tried to split "initial send value is always zero" fix to a separate > patch but failed. >

Re: [PATCH v6 06/28] mbedtls: add digest shim layer for MbedTLS

2024-08-28 Thread Ilias Apalodimas
Hi Raymond, [...] > --- a/lib/mbedtls/Makefile > +++ b/lib/mbedtls/Makefile > @@ -5,17 +5,23 @@ > > MBEDTLS_LIB_DIR = external/mbedtls/library > > +# shim layer for hash > +obj-$(CONFIG_$(SPL_)MD5_MBEDTLS) += md5.o > +obj-$(CONFIG_$(SPL_)SHA1_MBEDTLS) += sha1.o > +obj-$(CONFIG_$(SPL_)SHA256

RE: [PATCH 0/7] Add the USB5744 hub driver as per new DT binding

2024-08-28 Thread Abbarapu, Venkatesh
Hi Marek, Did you get a chance to review this? Thanks Venkatesh > -Original Message- > From: Michal Simek > Sent: Monday, July 15, 2024 5:24 PM > To: Abbarapu, Venkatesh ; Tom Rini > ; Marek Vašut ; > fabrice.gasn...@foss.st.com > Cc: u-boot@lists.denx.de; Simek, Michal ; git > (AMD-Xilin

Re: [PATCH v9 00/23] Introduce the lwIP network stack

2024-08-28 Thread Peter Robinson
Hi Jerome, > > Jerome Forissier (36): > Makefile: detect HOST_ARCH properly when CROSS_COMPILE is multi-word > flash: prefix error codes with FL_ > at91: rename mem_init() to at91_mem_init() > arm: omap2: add missing #include > net: fm: call dtsec_init_phy() only when it is defined >

Re: [PATCH v9 00/23] Introduce the lwIP network stack

2024-08-28 Thread Jerome Forissier
Hi Peter, On 8/28/24 13:05, Peter Robinson wrote: > Hi Jerome, > >> >> Jerome Forissier (36): >> Makefile: detect HOST_ARCH properly when CROSS_COMPILE is multi-word >> flash: prefix error codes with FL_ >> at91: rename mem_init() to at91_mem_init() >> arm: omap2: add missing #include >>

[PATCH 00/13] Miscellaneous fixes

2024-08-28 Thread Jerome Forissier
Miscellaneous fixes made when developing the lwIP series [1]. [1] http://patchwork.ozlabs.org/project/uboot/list/?series=420712&state=%2A&archive=both Jerome Forissier (13): Makefile: detect HOST_ARCH properly when CROSS_COMPILE is multi-word flash: prefix error codes with FL_ at91: rename

[PATCH 01/13] Makefile: detect HOST_ARCH properly when CROSS_COMPILE is multi-word

2024-08-28 Thread Jerome Forissier
When CROSS_COMPILE contains multiple words, HOST_ARCH is not properly detected and the sandbox build fail. It typically happens when using ccache. For example: $ make sandbox_defconfig $ make CROSS_COMPILE="ccache x86_64-linux-gnu-" \ CC="ccache x86_64-linux-gnu-gcc" [...] In file incl

[PATCH 02/13] flash: prefix error codes with FL_

2024-08-28 Thread Jerome Forissier
Prefix the flash status codes (ERR_*) with FL_ in order to avoid clashes with third-party libraries. Case in point: including the lwIP library header file which defines err_enum_t as an enum with values being ERR_*. Signed-off-by: Jerome Forissier Reviewed-by: Tom Rini Reviewed-by: Ilias Apalod

[PATCH 03/13] at91: rename mem_init() to at91_mem_init()

2024-08-28 Thread Jerome Forissier
THe AT91-based platforms have a mem_init() function declared in arch/arm/mach-at91/include/mach/at91_common.h and implemented in various places. In preparation of the introduction of the lwIP networking library which also has a global mem_init() function, rename the AT91 one to at91_mem_init(). Si

[PATCH 04/13] arm: omap2: add missing #include

2024-08-28 Thread Jerome Forissier
emac.c implements cpu_eth_init() so it needs to pull the corresponding header file. Signed-off-by: Jerome Forissier Reviewed-by: Tom Rini --- arch/arm/mach-omap2/omap3/emac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/omap3/emac.c b/arch/arm/mach-omap2/omap3/emac.c

[PATCH 05/13] net: fm: call dtsec_init_phy() only when it is defined

2024-08-28 Thread Jerome Forissier
dtsec_init_phy() is defined only with MII so add the proper conditional in the caller code. Signed-off-by: Jerome Forissier --- drivers/net/fm/eth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c index 19f3f0fef0..e4ec769693 100644 --- a/drivers

[PATCH 06/13] net: wget: removed unused function wget_success()

2024-08-28 Thread Jerome Forissier
wget_success() is used nowhere so remove it. Signed-off-by: Jerome Forissier Reviewed-by: Ilias Apalodimas --- net/wget.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/net/wget.c b/net/wget.c index f1dd7abeff..0e4dc5159d 100644 --- a/net/wget.c +++ b/net/wget.c @@ -199,13 +199,6 @@

[PATCH 07/13] net: phy: ncsi: depend on NET

2024-08-28 Thread Jerome Forissier
PHY_NCSI enables drivers/net/phy/ncsi.c which calls net_loop() and net_set_timeout_handler(). That's the legacy NET stack (as opposed to NET_LWIP). Therefore add the dependency to Kconfig. Signed-off-by: Jerome Forissier --- drivers/net/phy/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --g

[PATCH 08/13] net: ftgmac100: depend on NET

2024-08-28 Thread Jerome Forissier
FTGMAC100 enables drivers/net/ftgmac100.c which uses PHY_INTERFACE_MODE_NCSI, which is defined only when PHY_NCSI is enabled. Therefore FTGMAC100 depends on PHY_NCSI. However adding such a dependency causes a "recursive dependency detected!" message, so add a dependency on NET instead (PHY_NCSI dep

[PATCH 09/13] net: wget: allow EFI boot

2024-08-28 Thread Jerome Forissier
wget followed by bootefi currently fails as follows: U-Boot> wget 20 192.168.0.30:helloworld.efi Waiting for Ethernet connection... done. HTTP/1.0 200 OK Packets received 13, Transfer Successful Bytes transferred = 12720 (31b0 hex) U-Boot> bootefi 20 No UEFI binary known at 20

[PATCH 10/13] net: fec_mxc_init(): do not ignore return status of fec_open()

2024-08-28 Thread Jerome Forissier
The fec_mxc_init() function currently always returns 0. This does not allow the callers to detect when for instance the PHY initialization failed due to the port being unconnected. Fix that by returning the status of fec_open(). Signed-off-by: Jerome Forissier Reviewed-by: Fabio Estevam --- dri

[PATCH 11/13] test/py: net_boot: fix comment

2024-08-28 Thread Jerome Forissier
If env__pxe_boot_test_skip is not present, it defaults to True not False. Therefore fix the comment. Signed-off-by: Jerome Forissier --- test/py/tests/test_net_boot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/tests/test_net_boot.py b/test/py/tests/test_net_boot

[PATCH 12/13] test/py: test_efi_loader: add missing dependency on cmd_tftpboot

2024-08-28 Thread Jerome Forissier
test_efi_helloworld_net() and test_efi_grub_net() depend on cmd_tftpboot so add the missing annotations. Reported-by: Tom Rini Signed-off-by: Jerome Forissier --- test/py/tests/test_efi_loader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/tests/test_efi_loader.py b/test/py/te

[PATCH 13/13] test/py: test_efi_loader: add HTTP (wget) test for the EFI loader

2024-08-28 Thread Jerome Forissier
Add a test to test_efi_loader.py similar to the TFTP test but for HTTP with the wget command. Suggested-by: Tom Rini Signed-off-by: Jerome Forissier Tested-by: Tom Rini --- test/py/tests/test_efi_loader.py | 62 +++- 1 file changed, 46 insertions(+), 16 deletions(-)

[PATCH] led: gpio: handle GPIO_ACTIVE_LOW flag properly

2024-08-28 Thread FUKAUMI Naoki
invert gpio state if GPIO_ACTIVE_LOW is specified in dts. Signed-off-by: FUKAUMI Naoki --- drivers/led/led_gpio.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c index ce22fb49f2a..54aa84e0726 100644 --- a/drivers/led/led_gpio.c +++ b/driv

Re: [PATCH v3] gpio: mxc_gpio: fix reading state of GPIO pins in output mode

2024-08-28 Thread Fabio Estevam
Hi Tomas, On Wed, Aug 28, 2024 at 2:58 AM Tomas Paukrt wrote: > regs = (struct gpio_regs *)gpio_ports[port]; > > - val = (readl(®s->gpio_psr) >> gpio) & 0x01; > + if ((readl(®s->gpio_dir) >> offset) & 0x01) This does not build: drivers/gpio/mxc_gpio.c: In function ‘gpio_get

Re: [PATCH v6 12/28] mbedtls/external: update MbedTLS PKCS7 test suites

2024-08-28 Thread Ilias Apalodimas
On Sat, 17 Aug 2024 at 00:49, Raymond Mao wrote: > > 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

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

2024-08-28 Thread Ilias Apalodimas
On Sat, 17 Aug 2024 at 00:51, Raymond Mao wrote: > > 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 > --- > Changes in v2 > - Move the porti

[PATCH v4] gpio: mxc_gpio: fix reading state of GPIO pins in output mode

2024-08-28 Thread Tomas Paukrt
The PSR register works correctly for GPIO pins in input mode, but always returns 0 for GPIO pins in output mode unless the SION bit is set. The DR register should be used for GPIO pins in output mode to allow correct getting of previously set output value. Please note that the Linux gpio-mxc driv

Re: [PATCH v3] gpio: mxc_gpio: fix reading state of GPIO pins in output mode

2024-08-28 Thread Marek Vasut
On 8/28/24 9:58 AM, Lothar Waßmann wrote: Hi, Hi, On Wed, 28 Aug 2024 09:49:44 +0200 (CEST) Tomas Paukrt wrote: You may give a look to this https://lore.kernel.org/u-boot/57015c5f.3080...@denx.de/ Regards, Peng. The Linux driver uses the DR register for about 9 years and the NXP U-Boot d

Re: [PATCH v4] gpio: mxc_gpio: fix reading state of GPIO pins in output mode

2024-08-28 Thread Marek Vasut
On 8/28/24 3:09 PM, Tomas Paukrt wrote: The PSR register works correctly for GPIO pins in input mode, but always returns 0 for GPIO pins in output mode unless the SION bit is set. The DR register should be used for GPIO pins in output mode to allow correct getting of previously set output value.

[PATCH v3 1/4] imx: Remove CFG_MXC_USB_FLAGS

2024-08-28 Thread Fabio Estevam
From: Fabio Estevam CFG_MXC_USB_FLAGS is only used for drivers/usb/host/ehci-mx5.c, so it can be removed from all the imx6/imx7/imx8m board config files. mx51evk.h is the only place CFG_MXC_USB_FLAGS is not set to 0. Suggested-by: Tim Harvey Signed-off-by: Fabio Estevam Reviewed-by: Marek Vas

[PATCH v3 2/4] usb: ehci-mx5: Add a default for CFG_MXC_USB_PORTSC

2024-08-28 Thread Fabio Estevam
From: Fabio Estevam Just like drivers/usb/host/ehci-mx6.c, add a default for drivers/usb/host/ehci-mx5.c. The motivation for doing this is to remove CFG_MXC_USB_PORTSC from board config files. All the mx5 boards, with the exeption of mx51evk, define CFG_MXC_USB_PORTSC as: #define CFG_MXC_USB_

[PATCH v3 3/4] mx5: Remove CFG_MXC_USB_PORT

2024-08-28 Thread Fabio Estevam
From: Fabio Estevam CFG_MXC_USB_PORT is not used anywhere, so remove this unused symbol. Suggested-by: Tim Harvey Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan --- Changes since v2: - None. include/configs/m53menlo.h | 1 - include/configs/mx51evk.h| 1 - include/configs/mx53cx90

[PATCH v3 4/4] imx: Remove CFG_MXC_USB_PORTSC

2024-08-28 Thread Fabio Estevam
From: Fabio Estevam The definition of CFG_MXC_USB_PORTSC as (PORT_PTS_UTMI | PORT_PTS_PTW) can be removed from mx5/mx6/mx7/mx8m board config files as it is the default in drivers/usb/host/ehci-mx5.c and drivers/usb/host/ehci-mx6.c. Suggested-by: Tim Harvey Signed-off-by: Fabio Estevam Reviewed

Re: [PATCH v4] gpio: mxc_gpio: fix reading state of GPIO pins in output mode

2024-08-28 Thread Tomas Paukrt
> Changelog is missing, what changed since V3 of this patch ? There was a typo in V3 that caused compilation failure without CONFIG_DM_GPIO.

Re: [PATCH v3 0/3] Meson: R/W support for pages used by boot ROM

2024-08-28 Thread Neil Armstrong
Hi, On Mon, 26 Aug 2024 16:17:07 +0300, Arseniy Krasnov wrote: > Patchset is based on patchset for Linux (today merged to nand-next): > https://lore.kernel.org/linux-mtd/20240507230903.3399594-1-avkras...@salutedevices.com/ > > Here is description from it: > > > Amlogic's boot ROM code needs t

Re: How to retrieve cpu info from u-boot fucntion?

2024-08-28 Thread Sourabh Hegde Ramu
Hello, Is there any update on the below request? Are there any functions similar to eth_get_ethaddr() to retrieve device-specific info? I am working with raspberry pi 0 and there is no network interface card. So, eth_get_ethaddr() returns null Thanks in advance On Wed, Jun 19, 2024 at 9:11 AM So

[PATCH v2] android_ab: Fixes: Fix backup offset calculation

2024-08-28 Thread Joshua Watt
The backup offset is in bytes, but was incorrectly be interpreted as blocks, leading to it being written to the wrong location. Fix the calculation, clarify that ANDROID_AB_BACKUP_OFFSET is in bytes and must be a multiple of the block size, and add a runtime check to validate the offset. Signed-of

Re: u-boot on raspberry pi with secure boot

2024-08-28 Thread Jonas Kvinge
Hi, I have produced a signed linux UKI image. But I need to build u-boot to only allow booting with the signed certificate. So I need a ubootefi.var for (EFI_VAR_SEED_FILE) according tohttps://github.com/u-boot/u-boot/blob/ee2af844ba1b27b2e959c4e649e4b769fbeb4074/lib/efi_loader/Kconfig#L146 How

Re: How to retrieve cpu info from u-boot fucntion?

2024-08-28 Thread Peter Robinson
Hi, I appear to have missed the first post. > Is there any update on the below request? Are there any functions similar > to eth_get_ethaddr() to retrieve device-specific info? I am working with > raspberry pi 0 and there is no network interface card. > So, eth_get_ethaddr() returns null So ther

[PATCH] mach-imx: do not use if_changed more than once per target

2024-08-28 Thread Jerome Forissier
doc/develop/makefiles.rst has the following note: if_changed should not be used more than once per target. It stores the executed command in a corresponding .cmd file and multiple calls would result in overwrites and unwanted results when the target is up to date and only the tests on ch

Re: imx8ulp_evk build with buildman fails every other time

2024-08-28 Thread Jerome Forissier
On 8/27/24 17:53, Simon Glass wrote: > Hi Jerome, > > On Tue, 27 Aug 2024 at 08:53, Fabio Estevam wrote: >> >> Adding Gary and Peng on Cc. >> >> On Tue, Aug 27, 2024 at 11:42 AM Jerome Forissier >> wrote: >>> >>> Hi, >>> >>> Can someone explain what's happening with the imx8ulp_evk buildman b

Re: [PATCH 2/2] bootstage: Do not sort records

2024-08-28 Thread Simon Glass
Hi Jonas, On Tue, 6 Aug 2024 at 15:50, Simon Glass wrote: > > Hi Jonas, > > On Sat, 3 Aug 2024 at 06:42, Jonas Karlman wrote: > > > > The timer counter on Rockchip SoCs may be reset in TF-A, this may cause > > the bootstage records to be printed out of order and with an incorrect > > elapsed tim

Re: [PATCH 2/2] bootstage: Do not sort records

2024-08-28 Thread Jonas Karlman
Hi Simon, On 2024-08-28 18:01, Simon Glass wrote: > Hi Jonas, > > On Tue, 6 Aug 2024 at 15:50, Simon Glass wrote: >> >> Hi Jonas, >> >> On Sat, 3 Aug 2024 at 06:42, Jonas Karlman wrote: >>> >>> The timer counter on Rockchip SoCs may be reset in TF-A, this may cause >>> the bootstage records to

[u-boot-test-hooks PATCH v4 0/3] Add support for Labgrid

2024-08-28 Thread Simon Glass
This adds hooks for use with Labgrid. The only existing hook that really does anything now is the 'console' one. There is also a new 'getrole' hook which looks up a role to find various things about it, such as the U-Boot board name. Changes in v4: - Use an environment variable to select the Labgr

[u-boot-test-hooks PATCH v4 1/3] Create a common file for test scripts

2024-08-28 Thread Simon Glass
The top part of each of the u-boot-test-* files is common. Put it in a common script file to avoid duplication and to allow it to be replaced for the Labgrid integration. Signed-off-by: Simon Glass --- Changes in v4: - Use an environment variable to select the Labgrid hooks Changes in v3: - Fal

[u-boot-test-hooks PATCH v4 2/3] Add .none scripts for power off/on

2024-08-28 Thread Simon Glass
These methods don't have a 'none' method right now, but it will be needed for Labgrid. Add these scripts. Note that these are not used by the existing integration, which requires that boards can be powered off and on. Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to add .none sc

[u-boot-test-hooks PATCH v4 3/3] Provide some basic scripts for Labgrid integration

2024-08-28 Thread Simon Glass
With Labgrid we don't need to specify the various methods, except for the console, which simply calls labgrid-client. This allows supporting any boards in your lab, without adding per-board configuration to these hooks. Provide ellesmere files as an example. Signed-off-by: Simon Glass --- Chan

Re: [PATCH 2/2] bootstage: Do not sort records

2024-08-28 Thread Tom Rini
On Wed, Aug 28, 2024 at 06:15:32PM +0200, Jonas Karlman wrote: > Hi Simon, > > On 2024-08-28 18:01, Simon Glass wrote: > > Hi Jonas, > > > > On Tue, 6 Aug 2024 at 15:50, Simon Glass wrote: > >> > >> Hi Jonas, > >> > >> On Sat, 3 Aug 2024 at 06:42, Jonas Karlman wrote: > >>> > >>> The timer coun

Re: [u-boot-test-hooks PATCH v4 1/3] Create a common file for test scripts

2024-08-28 Thread Tom Rini
On Wed, Aug 28, 2024 at 10:45:21AM -0600, Simon Glass wrote: > The top part of each of the u-boot-test-* files is common. Put it in > a common script file to avoid duplication and to allow it to be > replaced for the Labgrid integration. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini --

[PATCH v2] list: use list_count_nodes() to count list entries

2024-08-28 Thread Sughosh Ganu
Use the API function list_count_nodes() to count the number of list entries. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass --- Changes since V1: Rebased on top of next boot/scene.c | 8 +--- drivers/mtd/ubi/fastmap.c | 8 +++- fs/yaffs2/yaffs_guts.c| 5 ++--- li

Re: [PATCH 2/2] bootstage: Do not sort records

2024-08-28 Thread Simon Glass
Hi Jonas, On Wed, 28 Aug 2024 at 10:15, Jonas Karlman wrote: > > Hi Simon, > > On 2024-08-28 18:01, Simon Glass wrote: > > Hi Jonas, > > > > On Tue, 6 Aug 2024 at 15:50, Simon Glass wrote: > >> > >> Hi Jonas, > >> > >> On Sat, 3 Aug 2024 at 06:42, Jonas Karlman wrote: > >>> > >>> The timer coun

Re: [PATCH 00/13] Miscellaneous fixes

2024-08-28 Thread Peter Robinson
On Wed, 28 Aug 2024 at 13:10, Jerome Forissier wrote: > > Miscellaneous fixes made when developing the lwIP series [1]. > > [1] > http://patchwork.ozlabs.org/project/uboot/list/?series=420712&state=%2A&archive=both > > Jerome Forissier (13): > Makefile: detect HOST_ARCH properly when CROSS_COMP

Re: [PATCH 2/2] bootstage: Do not sort records

2024-08-28 Thread Simon Glass
Hi again Jonas, On Wed, 28 Aug 2024 at 11:06, Simon Glass wrote: > > Hi Jonas, > > On Wed, 28 Aug 2024 at 10:15, Jonas Karlman wrote: > > > > Hi Simon, > > > > On 2024-08-28 18:01, Simon Glass wrote: > > > Hi Jonas, > > > > > > On Tue, 6 Aug 2024 at 15:50, Simon Glass wrote: > > >> > > >> Hi Jo

Re: [u-boot-test-hooks PATCH v4 3/3] Provide some basic scripts for Labgrid integration

2024-08-28 Thread Peter Robinson
Hi Simon, > With Labgrid we don't need to specify the various methods, except for > the console, which simply calls labgrid-client. > > This allows supporting any boards in your lab, without adding per-board > configuration to these hooks. > > Provide ellesmere files as an example. What's ellesme

Re: [PATCH] lib: move phdr increment to for loop heading

2024-08-28 Thread Tom Rini
On Sat, 17 Aug 2024 14:02:22 +0300, Maxim Moskalets wrote: > Shifting this pointer in the loop will be more logical when working > with the code later, because you can see at a glance what exactly > changes at each iteration. Moreover, the code remains equivalent > because this variable is not use

Re: [PATCH v1] arm: dts: nuvoton: add dts support for npcm845 yosemite4

2024-08-28 Thread Tom Rini
On Mon, 19 Aug 2024 15:24:28 +0800, Jim Liu wrote: > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH v1] dm: core: Make SPL_DM_SEQ_ALIAS select SPL_STRTO

2024-08-28 Thread Tom Rini
On Mon, 19 Aug 2024 09:43:52 +, Gaskell, Oliver wrote: > Enabling CONFIG_DM_SEQ_ALIAS enables code which relies on > `trailing_strtol()` - which is only linked in SPL when CONFIG_SPL_STRTO > is enabled. > > CONFIG_SPL_STRTO is not enabled by default - to ensure this function is > available in

Re: [PATCH] tools/scripts/Kconfig: Update references from kconfig-language.txt to rst

2024-08-28 Thread Tom Rini
On Mon, 19 Aug 2024 13:24:49 -0300, Hiago De Franco wrote: > The Linux kernel documentation has transitioned from using > kconfig-language.txt to kconfig-language.rst. Therefore update all > occurrences of kconfig-language.txt. > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH] gpio: Add G7 Aspeed gpio controller driver

2024-08-28 Thread Tom Rini
On Tue, 20 Aug 2024 15:27:36 +0800, Billy Tsai wrote: > In the 7th generation of the SoC from Aspeed, the control logic of the > GPIO controller has been updated to support per-pin control. Each pin now > has its own 32-bit register, allowing for individual control of the pin’s > value, direction,

  1   2   >