Re: [PATCH] watchdog: Fix watchdog enablement in SPL and TPL

2021-09-02 Thread Marcel Ziswiler
On Tue, 2021-08-31 at 11:17 +0200, Marek Vasut wrote: > On 8/31/21 8:49 AM, Marcel Ziswiler wrote: > > Hi Marek > > > > On Tue, 2021-08-31 at 00:03 +0200, Marek Vasut wrote: > > > Commit 830d29ac372 ("watchdog: Allow to use CONFIG_WDT without starting > > > watchdog") > > > completely broke WDT o

Re: [PATCH] watchdog: Fix watchdog enablement in SPL and TPL

2021-09-02 Thread Stefan Roese
On 02.09.21 09:30, Marcel Ziswiler wrote: On Tue, 2021-08-31 at 11:17 +0200, Marek Vasut wrote: On 8/31/21 8:49 AM, Marcel Ziswiler wrote: Hi Marek On Tue, 2021-08-31 at 00:03 +0200, Marek Vasut wrote: Commit 830d29ac372 ("watchdog: Allow to use CONFIG_WDT without starting watchdog") complet

[PATCH] arm: mvebu: turris_{omnia, mox}: GPT partition support

2021-09-02 Thread Pali Rohár
This allows U-Boot to access filesystems on GPT partitioned disks. Signed-off-by: Pali Rohár --- configs/turris_mox_defconfig | 1 + configs/turris_omnia_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig index 40f975ead3

Re: Fwd: Re: [PATCH] efi_loader: Omit memory with "no-map" when returning memory map.

2021-09-02 Thread Kristian Amlie
On 31/08/2021 13:12, Kristian Amlie wrote: > On 31/08/2021 12:46, Heinrich Schuchardt wrote: >> >> >> >> *Von:* Ard Biesheuvel >> *Gesendet:* 31. August 2021 12:33:56 MESZ >> *An:* Heinrich Schuchardt >> *CC:* Kristian Amlie

[PATCH] arm: mvebu: espressobin: Enable GPT partition support

2021-09-02 Thread Pali Rohár
Signed-off-by: Pali Rohár --- configs/mvebu_espressobin-88f3720_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mvebu_espressobin-88f3720_defconfig b/configs/mvebu_espressobin-88f3720_defconfig index 9641c02d9317..761187479fc7 100644 --- a/configs/mvebu_espressobin-88f3720_

Re: Fwd: Re: [PATCH] efi_loader: Omit memory with "no-map" when returning memory map.

2021-09-02 Thread Ard Biesheuvel
On Thu, 2 Sept 2021 at 10:43, Kristian Amlie wrote: > > On 31/08/2021 13:12, Kristian Amlie wrote: > > On 31/08/2021 12:46, Heinrich Schuchardt wrote: > >> > >> > >> > >> *Von:* Ard Biesheuvel > >> *Gesendet:* 31. August 202

Re: [PATCH v3 3/5] doc: update UEFI document for usage of mkeficapsule

2021-09-02 Thread AKASHI Takahiro
On Tue, Aug 31, 2021 at 08:07:18AM +0200, Heinrich Schuchardt wrote: > On 8/31/21 4:46 AM, AKASHI Takahiro wrote: > > Now we can use mkeficapsule command instead of EDK-II's script > > to create a signed capsule file. So update the instruction for > > capsule authentication. > > > > Signed-off-by:

Re: [PATCH] watchdog: Fix watchdog enablement in SPL and TPL

2021-09-02 Thread Marek Vasut
On 9/2/21 9:49 AM, Stefan Roese wrote: On 02.09.21 09:30, Marcel Ziswiler wrote: On Tue, 2021-08-31 at 11:17 +0200, Marek Vasut wrote: On 8/31/21 8:49 AM, Marcel Ziswiler wrote: Hi Marek On Tue, 2021-08-31 at 00:03 +0200, Marek Vasut wrote: Commit 830d29ac372 ("watchdog: Allow to use CONFIG_W

[PATCH v3 3/3] efi_loader: correct determination of secure boot state

2021-09-02 Thread Heinrich Schuchardt
From: Heinrich Schuchardt When U-Boot is started we have to use the existing variables to determine in which secure boot state we are. * If a platform key PK is present and DeployedMode=1, we are in deployed mode. * If no platform key PK is present and AuditMode=1, we are in audit mode. * Othe

[PATCH v3 2/3] efi_loader: efi_auth_var_type for AuditMode, DeployedMode

2021-09-02 Thread Heinrich Schuchardt
Writing variables AuditMode and DeployedMode serves to switch between Secure Boot modes. Provide a separate value for these in efi_auth_var_type. With this patch the variables will not be read from from file even if they are marked as non-volatile by mistake. Signed-off-by: Heinrich Schuchardt -

[PATCH v3 1/3] efi_loader: don't load signature database from file

2021-09-02 Thread Heinrich Schuchardt
The UEFI specification requires that the signature database may only be stored in tamper-resistant storage. So these variable may not be read from an unsigned file. Signed-off-by: Heinrich Schuchardt --- include/efi_variable.h | 5 +++- lib/efi_loader/efi_var_common.c | 2 -- lib/efi_

[PATCH v3 0/3] efi_loader: secure boot using preseed cert db

2021-09-02 Thread Heinrich Schuchardt
When implementing secure boot the database with the certificates must be stored in tamper-resistant storage. This implies it cannot be read from a file on the EFI system partition. We already have the possibility to provide UEFI variables built into U-Boot via CONFIG_EFI_VAR_SEED_FILE. If TF-A val

[PATCH 2/2] tee: add a stub for tee_find_device

2021-09-02 Thread Patrick Delaunay
Add stub for tee_find_device function when CONFIG_TEE is not activated to simplify the caller code. This patch allows to remove the CONFIG_IS_ENABLED(OPTEE) tests for stm32 platform. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/fdt.c| 1 - board/st/common/stm32mp_mtdparts

[PATCH 1/2] lib: optee: remove the duplicate CONFIG_OPTEE

2021-09-02 Thread Patrick Delaunay
The configuration CONFIG_OPTEE is defined 2 times: 1- in lib/optee/Kconfig for support of OPTEE images loaded by bootm command 2- in drivers/tee/optee/Kconfig for support of OP-TEE driver. It is abnormal to have the same CONFIG define for 2 purpose; and it is difficult to managed correctly their d

[PATCH] arm: mvebu: a38x: Fix 5200000 baudrate

2021-09-02 Thread Pali Rohár
Fix baudrate value 515 which was added in commit ead4864fa6cc ("arm: mvebu: a38x: Define supported UART baudrates"). Exact value for divisor 3 with 250 MHz TCLK is 5208333 baudrate. In above commit I incorrectly rounded it to 515 value due to testing with USB-UART hw which incorrectly repo

[PATCH 1/2] arm: stm32: Disable ATAGs support

2021-09-02 Thread Patrick Delaunay
These platforms never had to support an ATAGs-based Linux Kernel, so remove the options. Cc: Marek Vasut Signed-off-by: Tom Rini Signed-off-by: Patrick Delaunay --- Hi, this patch is a rebased version of the STM32 part [1] of Tom's patchset [2]. I also update the new file include/configs/stm3

[PATCH 2/2] board: stm32: Remove the bi_boot_params initialization

2021-09-02 Thread Patrick Delaunay
The stm32 platforms never had to support an ATAGs-based Linux Kernel, so remove the bi_boot_params initialization. Signed-off-by: Patrick Delaunay --- board/dhelectronics/dh_stm32mp1/board.c | 3 --- board/engicam/stm32mp1/stm32mp1.c| 3 --- board/st/stm32f429-d

[PATCH v2] configs: fsl: migrate FMAN/QE specific defines to Kconfig

2021-09-02 Thread Rajesh Bhagat
Use moveconfig.py script to convert CONFIG_SYS_FMAN_FW_ADDR, CONFIG_SYS_QE_FW_ADDR and CONFIG_SYS_QE_FMAN_FW_LENGTH to Kconfig and move these entries to defconfigs. Signed-off-by: Rajesh Bhagat --- Changes in v2: Rebased to top of tree configs/P2041RDB_NAND_defconfig | 1 + confi

Re: [PATCH] arm: mvebu: turris_{omnia, mox}: GPT partition support

2021-09-02 Thread Stefan Roese
On 02.09.21 10:34, Pali Rohár wrote: This allows U-Boot to access filesystems on GPT partitioned disks. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- configs/turris_mox_defconfig | 1 + configs/turris_omnia_defconfig | 1 + 2 files changed, 2 insertions(+)

Re: [PATCH] arm: mvebu: espressobin: Enable GPT partition support

2021-09-02 Thread Stefan Roese
On 02.09.21 10:46, Pali Rohár wrote: Signed-off-by: Pali Rohár Nitpicking: The commit text from the "turris" patch would be good here as well. Reviewed-by: Stefan Roese Thanks, Stefan --- configs/mvebu_espressobin-88f3720_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/co

Re: [PATCH] arm: mvebu: a38x: Fix 5200000 baudrate

2021-09-02 Thread Stefan Roese
On 02.09.21 12:00, Pali Rohár wrote: Fix baudrate value 515 which was added in commit ead4864fa6cc ("arm: mvebu: a38x: Define supported UART baudrates"). Exact value for divisor 3 with 250 MHz TCLK is 5208333 baudrate. In above commit I incorrectly rounded it to 515 value due to testing

[PATCH] drivers: net: phy: in112525: fix out of bounds write

2021-09-02 Thread Cosmin-Florin Aluchenesei
Changed declarations of line_temp, reg_addr and reg_data arrays in order to avoid out-of-bounds write which may be caused by the following writing: line_temp[column_cnt] = '\0'; (Increased size from 80 to 81). Signed-off-by: Cosmin-Florin Aluchenesei --- drivers/net/phy/in112525.c | 6 +++--- 1

[PATCH] board: freescale: lx2160a: fix out of bounds write

2021-09-02 Thread Cosmin-Florin Aluchenesei
The declaration of dpmac_str was changed in order to make the following sprintf safe: sprintf(dpmac_str, "ethernet@%x", dpmac_id). Signed-off-by: Cosmin-Florin Aluchenesei --- board/freescale/lx2160a/eth_lx2160ardb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/frees

Re: [PATCH 1/2] arm: stm32: Disable ATAGs support

2021-09-02 Thread Patrice CHOTARD
Hi Patrick On 9/2/21 12:02 PM, Patrick Delaunay wrote: > These platforms never had to support an ATAGs-based Linux Kernel, so > remove the options. > > Cc: Marek Vasut > Signed-off-by: Tom Rini > Signed-off-by: Patrick Delaunay > --- > Hi, > > this patch is a rebased version of the STM32 part

Re: [PATCH 2/2] board: stm32: Remove the bi_boot_params initialization

2021-09-02 Thread Patrice CHOTARD
Hi Patrick On 9/2/21 12:02 PM, Patrick Delaunay wrote: > The stm32 platforms never had to support an ATAGs-based Linux Kernel, > so remove the bi_boot_params initialization. > > Signed-off-by: Patrick Delaunay > --- > > board/dhelectronics/dh_stm32mp1/board.c | 3 --- > board/engi

Re: [PATCH 1/2] arm: stm32: Disable ATAGs support

2021-09-02 Thread Tom Rini
On Thu, Sep 02, 2021 at 12:02:06PM +0200, Patrick Delaunay wrote: > These platforms never had to support an ATAGs-based Linux Kernel, so > remove the options. > > Cc: Marek Vasut > Signed-off-by: Tom Rini > Signed-off-by: Patrick Delaunay > --- > Hi, > > this patch is a rebased version of the

Re: Fwd: Re: [PATCH] efi_loader: Omit memory with "no-map" when returning memory map.

2021-09-02 Thread Kristian Amlie
On 02/09/2021 10:47, Ard Biesheuvel wrote: > On Thu, 2 Sept 2021 at 10:43, Kristian Amlie > wrote: >> >> On 31/08/2021 13:12, Kristian Amlie wrote: >>> On 31/08/2021 12:46, Heinrich Schuchardt wrote: *Von:

Re: [PATCH] lib/rsa: Remove support for OpenSSL < 1.1.0 and libressl < 2.7.0

2021-09-02 Thread Tom Rini
On Thu, Jul 29, 2021 at 01:31:21PM -0500, Alexandru Gagniuc wrote: > Older OpenSSL and libressl versions have a slightly different API. > This require #ifdefs to support. However, we still can't support it > because the ECDSA path does not compile with these older versions. > These #ifdefs are tru

Re: [PATCH 1/4] lib/md5: Export progressive APIs

2021-09-02 Thread Tom Rini
On Fri, Jul 30, 2021 at 09:08:02AM +0800, Chia-Wei Wang wrote: > Export the MD5 hash init/update/finish progressive APIs > for better flexibility. > > Signed-off-by: Chia-Wei Wang Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/4] dm: hash: Add new UCLASS_HASH support

2021-09-02 Thread Tom Rini
On Fri, Jul 30, 2021 at 09:08:03AM +0800, Chia-Wei Wang wrote: > Add UCLASS_HASH for hash driver development. Thus the > hash drivers (SW or HW-accelerated) can be developed > in the DM-based fashion. > > Signed-off-by: Chia-Wei Wang Applied to u-boot/next, thanks! -- Tom signature.asc Desc

Re: [PATCH 3/4] crypto: hash: Add software hash DM driver

2021-09-02 Thread Tom Rini
On Fri, Jul 30, 2021 at 09:08:04AM +0800, Chia-Wei Wang wrote: > Add purely software-implmented drivers to support multiple > hash operations including CRC, MD5, and SHA family. > > This driver is based on the new hash uclass. > > Signed-off-by: Chia-Wei Wang Applied to u-boot/next, thanks! -

Re: [PATCH 4/4] fit: Use DM hash driver if supported

2021-09-02 Thread Tom Rini
On Fri, Jul 30, 2021 at 09:08:05AM +0800, Chia-Wei Wang wrote: > Calculate hash using DM driver if supported. > For backward compatibility, the call to legacy > hash functions is reserved. > > Signed-off-by: Chia-Wei Wang Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH] lib: -Wformat-truncation in rsa_engine_get_priv_key

2021-09-02 Thread Tom Rini
On Fri, Jul 30, 2021 at 05:05:07PM +0200, Heinrich Schuchardt wrote: > With glibc 2.33 (Ubuntu package glibc6 2.33-0ubuntu9) building > sifive_unmatched_defconfig results in: > > In file included from /usr/include/stdio.h:866, > from ././include/compiler.h:26, >

Re: [PATCH] mkimage: clarify error message for empty input files

2021-09-02 Thread Tom Rini
On Sun, Aug 01, 2021 at 03:23:13PM -0700, Thomas Hebb wrote: > Currently, an empty imput file causes `mmap()` to fail, and you get an > error like "mkimage: Can't read file.img: Invalid argument", which is > extremely unintuitive and hard to diagnose if you don't know what to > look for. Add an ex

Re: [PATCH] loadb: Properly indicate aborted kermit transfer

2021-09-02 Thread Tom Rini
On Fri, Aug 06, 2021 at 06:07:39PM +0200, Pali Rohár wrote: > When k_recv() returns zero it indicates that kermit transfer was aborted. > Function do_load_serial_bin() (caller of load_serial_bin()) interprets > value ~0 as aborted transfer, so properly propagates information about > aborted transf

Re: [PATCH] scripts/checkpatch.pl: Resync with v5.13

2021-09-02 Thread Tom Rini
On Tue, Aug 03, 2021 at 08:31:56AM -0400, Tom Rini wrote: > This resyncs us with the version found in v5.13 of the Linux kernel with > the following exceptions: > - Keep our u-boot specific tests / code area. > - Change the location of checkpatch.rst (which we now import) > - Drop the "use strscpy

Re: [PATCH 1/7] MAINTAINERS: Add new drivers for ARM U8500

2021-09-02 Thread Tom Rini
On Sat, Aug 07, 2021 at 03:07:18PM +0200, Stephan Gerhold wrote: > Update MAINTAINERS with various drivers for ARM U8500 that were > added during the U-Boot 2021.10 merge window. > > Signed-off-by: Stephan Gerhold For the series, applied to u-boot/next, thanks! -- Tom signature.asc Descript

Re: [PATCH 1/1] rtc: ds1307: Fix incorrect clock reset for DS13xx

2021-09-02 Thread Tom Rini
On Tue, Aug 10, 2021 at 02:51:15PM +1200, Callum Sinclair wrote: > The ds1307 driver also supports the DS1339 and DS1340. > However, in ds1307_rtc_reset the register writes assume that the chip > is a DS1307. This is evident in the writing of bits SQWE, RS1, RS0 to > the control register. While th

Re: [PATCH 1/2] ata: ahci-pci: Fix dependency on DM_PCI

2021-09-02 Thread Tom Rini
On Sun, Aug 15, 2021 at 04:27:36PM +0200, Pali Rohár wrote: > File drivers/ata/ahci-pci.c calls function ahci_probe_scsi_pci() which is > compiled only when DM_PCI is enabled. So add missing dependency into > Kconfig. > > Signed-off-by: Pali Rohár > Reviewed-by: Stefan Roese Applied to u-boot/

Re: [PATCH 2/2] ata: ahci-pci: Add new option CONFIG_SPL_AHCI_PCI

2021-09-02 Thread Tom Rini
On Sun, Aug 15, 2021 at 04:27:37PM +0200, Pali Rohár wrote: > This new option allows to disable ahci-pci driver in SPL. Disabling it is > needed when SPL_PCI is not enabled as ahci-pci depends on PCI. > > This change fixes following compile error when CONFIG_SPL_SATA_SUPPORT is > enabled and SPL_

Re: [PATCH] list: include linux/kernel.h

2021-09-02 Thread Tom Rini
On Wed, Aug 25, 2021 at 11:58:52AM +0800, Mark-PK Tsai wrote: > linux/list.h uses container_of, therefore it depends on linux/kernel.h. > Sync from below linux commit: > > commit 8b21d9ca17ff8 ("list: include linux/kernel.h") > > Signed-off-by: Mark-PK Tsai > Cc: YJ Chiang > --- > include/lin

Re: [PATCH v5 3/3] arm64: Kconfig: Enable usage of optimized memset/memcpy/memmove

2021-09-02 Thread Tom Rini
On Tue, Aug 17, 2021 at 10:48:27AM +0200, Stefan Roese wrote: > This patch enables the use of the optimized memset(), memmove() & > memcpy() versions recently added on ARM64. > > Signed-off-by: Stefan Roese > --- > > Changes in v5: > - memmove is now auto-selected (or deselected) with the memcp

Re: [PATCH] lib/rsa: Remove support for OpenSSL < 1.1.0 and libressl < 2.7.0

2021-09-02 Thread Peter Robinson
On Thu, Sep 2, 2021 at 2:28 PM Tom Rini wrote: > > On Thu, Jul 29, 2021 at 01:31:21PM -0500, Alexandru Gagniuc wrote: > > > Older OpenSSL and libressl versions have a slightly different API. > > This require #ifdefs to support. However, we still can't support it > > because the ECDSA path does not

Re: [PATCH v5 3/3] arm64: Kconfig: Enable usage of optimized memset/memcpy/memmove

2021-09-02 Thread Stefan Roese
On 02.09.21 16:17, Tom Rini wrote: On Tue, Aug 17, 2021 at 10:48:27AM +0200, Stefan Roese wrote: This patch enables the use of the optimized memset(), memmove() & memcpy() versions recently added on ARM64. Signed-off-by: Stefan Roese --- Changes in v5: - memmove is now auto-selected (or dese

Re: [PATCH] lib/rsa: Remove support for OpenSSL < 1.1.0 and libressl < 2.7.0

2021-09-02 Thread Tom Rini
On Thu, Sep 02, 2021 at 03:36:43PM +0100, Peter Robinson wrote: > On Thu, Sep 2, 2021 at 2:28 PM Tom Rini wrote: > > > > On Thu, Jul 29, 2021 at 01:31:21PM -0500, Alexandru Gagniuc wrote: > > > > > Older OpenSSL and libressl versions have a slightly different API. > > > This require #ifdefs to sup

Re: [PATCH v5 3/3] arm64: Kconfig: Enable usage of optimized memset/memcpy/memmove

2021-09-02 Thread Tom Rini
On Thu, Sep 02, 2021 at 04:37:41PM +0200, Stefan Roese wrote: > On 02.09.21 16:17, Tom Rini wrote: > > On Tue, Aug 17, 2021 at 10:48:27AM +0200, Stefan Roese wrote: > > > > > This patch enables the use of the optimized memset(), memmove() & > > > memcpy() versions recently added on ARM64. > > > >

[PATCH v6 2/3] arm64: memset-arm64: Use simple memset when cache is disabled

2021-09-02 Thread Stefan Roese
The optimized memset uses the dc opcode, which causes problems when the cache is disabled. This patch adds a check if the cache is disabled and uses a very simple memset implementation in this case. Otherwise the optimized version is used. Signed-off-by: Stefan Roese --- (no changes since v4)

[PATCH v6 0/3] arm64: Add optimized memset/memcpy/memove functions

2021-09-02 Thread Stefan Roese
On an NXP LX2160 based platform it has been noticed, that the currently implemented memset/memcpy functions for aarch64 are suboptimal. Especially the memset() for clearing the NXP MC firmware memory is very expensive (time-wise). This patchset now adds the optimized functions ported from this r

[PATCH v6 3/3] arm64: Kconfig: Enable usage of optimized memset/memcpy/memmove

2021-09-02 Thread Stefan Roese
This patch enables the use of the optimized memset(), memmove() & memcpy() versions recently added on ARM64. Please note that these optimized functions are now only enabled for recent GCC versions (>= 9.4), as earlier GCC versions throw these errors: aarch64-linux-ar: warning: arch/arm/lib/memset

[PATCH v6 1/3] arm64: arch/arm/lib: Add optimized memset/memcpy/memmove functions

2021-09-02 Thread Stefan Roese
Ported from https://github.com/ARM-software/optimized-routines These files are included from this repository, including the latest git commit ID: string/aarch64/memcpy.S: afd6244a1f8d string/aarch64/memset.S: e823e3abf5f8 string/asmdefs.h: e823e3abf5f8 Note that memmove is also handled by the mem

Re: [PATCH v2 0/5] Use device tree to get DRAM for sama5d27_som1_ek/sama5d2_xplained

2021-09-02 Thread Eugen.Hristev
On 8/16/21 3:25 PM, Clément Léger wrote: > Loading U-Boot after OP-TEE requires to move the base address of the > DRAM and reduce its size. Indeed, OP-TEE will be loaded at start of > DRAM for these platforms and this DRAM will be secured and thus not > accessible to U-Boot. > > Currently, address

Re: [PATCH] RFC: Support an EFI-loader bootflow

2021-09-02 Thread Simon Glass
Hi Takahiro, On Tue, 31 Aug 2021 at 00:14, AKASHI Takahiro wrote: > > Simon, > > On Sat, Aug 28, 2021 at 02:35:21PM -0600, Simon Glass wrote: > > This is just a demonstration of how to support EFI loader using bootflow. > > Various things need cleaning up, not least that the naming needs to be >

Re: [PATCH][RFC] tree: imx: remove old fit generator script

2021-09-02 Thread Simon Glass
On Tue, 24 Aug 2021 at 01:55, Andrey Zhizhikin wrote: > > Since derivatives are moving to binman from usage of the FIT generator > script, and considering the warning introduced in f4a43d2925 > ("Makefile: Warn against using CONFIG_SPL_FIT_GENERATOR"), usage of FIT > generator is discouraged. > >

Re: sandbox TPM

2021-09-02 Thread Simon Glass
Hi Heinrich, On Mon, 30 Aug 2021 at 01:34, Heinrich Schuchardt wrote: > > > > On 8/30/21 8:10 AM, Ilias Apalodimas wrote: > > On Sun, 29 Aug 2021 at 13:53, Peter Robinson wrote: > >> > >> On Sat, Aug 28, 2021 at 10:19 PM Simon Glass wrote: > >>> > >>> Hi Heinrich, > >>> > >>> On Sat, 28 Aug 202

Re: [PATCH] doc: Add documentation about devicetree usage

2021-09-02 Thread Simon Glass
Hi, On Sun, 29 Aug 2021 at 08:47, Tom Rini wrote: > > On Sun, Aug 29, 2021 at 09:43:12PM +0800, Bin Meng wrote: > > Hi Simon, > > > > On Sun, Aug 29, 2021 at 9:03 PM Simon Glass wrote: > > > > > > Hi Mark, > > > > > > On Sun, 29 Aug 2021 at 02:19, Mark Kettenis > > > wrote: > > > > > > > > > F

Re: [PATCH] doc: Add documentation about devicetree usage

2021-09-02 Thread Simon Glass
Hi Tom, On Sun, 29 Aug 2021 at 08:46, Tom Rini wrote: > > On Sun, Aug 29, 2021 at 07:03:14AM -0600, Simon Glass wrote: > > Hi Mark, > > > > On Sun, 29 Aug 2021 at 02:19, Mark Kettenis wrote: > > > > > > > From: Simon Glass > > > > Date: Sat, 28 Aug 2021 20:07:27 -0600 > > > > > > > > Hi Bin, >

Re: [PATCH 1/1] lib/rsa: don't use NULL as key_id

2021-09-02 Thread Simon Glass
On Sat, 28 Aug 2021 at 04:13, Heinrich Schuchardt wrote: > > If keydir is not provided but name is we want to use name as key_id. > > But with the current coding name is only used on its own if it is NULL > and keydir is provided which never occurs. > > Fixes: 824ee745fbca ("lib/rsa: Use the 'keyf

Re: [PATCH 0/3] common: Add fdt network helper

2021-09-02 Thread Simon Glass
Hi Tony, On Wed, 1 Sept 2021 at 03:22, Tony Dinh wrote: > > Hey Simon, > > On Thu, Aug 26, 2021 at 9:00 PM Tony Dinh wrote: > > > > Hi Simon, > > > > On Tue, Aug 17, 2021 at 9:09 AM Simon Glass wrote: > > > > > > Hi Tony, > > > > > > On Sun, 15 Aug 2021 at 15:28, Tony Dinh wrote: > > > > > > >

Re: [PATCH 1/2] sandbox: correct cpu nodes

2021-09-02 Thread Simon Glass
On Sat, 28 Aug 2021 at 03:42, Heinrich Schuchardt wrote: > > The cpu nodes in arch/sandbox/dts/test.dts should conform to the devicetree > specification: > > * property device_type must be set to "cpu" > * the reg property must be provided > * the cpu nodes must have an address > > Signed-off-by:

Re: [PATCH v3 0/7] vpl: Introduce a verifying program loader

2021-09-02 Thread Simon Glass
Hi Tom, (just to reply to this old email) On Mon, 2 Aug 2021 at 12:54, Tom Rini wrote: > > On Wed, Jul 28, 2021 at 12:37:55PM -0600, Simon Glass wrote: > > Hi Tom, > > > > > > On Wed, 28 Jul 2021 at 11:37, Tom Rini wrote: > > > > > > On Wed, Jul 28, 2021 at 09:33:56AM -0600, Simon Glass wrote:

[PATCH v3 00/29] arm: dts: ls1028a: sync device tree with linux

2021-09-02 Thread Michael Walle
This series sync the device tree of the LS1028A SoC with the linux one. To ease future debugging and reviewing, we first clean up the existing one, removing bogus nodes, moving all CCSR related nodes in /soc and update the drivers to accept the offical compatible strings. This was tested on a sl28

[PATCH v3 01/29] armv8: ls1028a: add IOMMU stream ID to vivante node

2021-09-02 Thread Michael Walle
The fixup is done for the "fsl,ls1028a-gpu" which isn't any official device tree binding. Don't break it, but instead add a fixup for another compatible "vivante,gc" which is the offical one for the GPU on the LS1028A. Signed-off-by: Michael Walle --- arch/arm/cpu/armv8/fsl-layerscape/ls1028_ids

[PATCH v3 02/29] arm: dts: ls1028a: remove /memory node

2021-09-02 Thread Michael Walle
This node is some hodgepodge between the ddr controller node at SoC offset 0x108 and some static memory size of 2GiB. Remove this bogus node because it doesn't seem to be used at all. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean Tested-by: Vladimir Oltean --- arch/arm/dts/fsl-

[PATCH v3 05/29] arm: dts: ls1028a: move the clockgen node into /soc

2021-09-02 Thread Michael Walle
Populate the /soc node with the first device node. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/arm/dts/fsl-ls1028a.dtsi index 1f562cfdad..54f97014be 100644 -

[PATCH v3 04/29] arm: dts: ls1028a: add an empty /soc

2021-09-02 Thread Michael Walle
To keep the device tree similar to the linux kernel one, we need to move all CCSR related devices into the /soc node. To keep the patches easy to review, we initially add an empty /soc node and populate it piece by piece. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a-kontron-sl28-u-b

[PATCH v3 03/29] arm: dts: ls1028a-{rdb, qds}: remove dm-pre-reloc property

2021-09-02 Thread Michael Walle
Nowadays, both boards boot using the TF-A BL1/BL2 and SPL isn't used at all. The property is not needed, remove it. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a-qds.dtsi | 1 - arch/arm/dts/fsl-ls1028a-rdb.dts | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm/dts/fsl-ls

[PATCH v3 07/29] arm: dts: ls1028a: move the FlexSPI controller node

2021-09-02 Thread Michael Walle
While inserting it into the new location, keep it sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/arm

[PATCH v3 06/29] arm: dts: ls1028a: move I2C controller nodes into /soc

2021-09-02 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle --- .../dts/fsl-ls1028a-qds-1xxx-sch-30842.dtsi | 2 +- .../dts/fsl-ls1028a-qds-6xxx-sch-30842.dtsi | 2 +- .../dts/fsl-ls1028a

[PATCH v3 10/29] arm: dts: ls1028a: move the low-power UART nodes into /soc

2021-09-02 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 120 +- 1 file changed, 60 insertions(+), 60 deletions(-) diff --g

[PATCH v3 09/29] arm: dts: ls1028a: move the UART controller nodes into /soc

2021-09-02 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git

[PATCH v3 08/29] arm: dts: ls1028a: move the SPI and eSDHC controller nodes into /soc

2021-09-02 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 116 +- 1 file changed, 58 insertions(+), 58 deletions(-) diff --g

[PATCH v3 11/29] arm: dts: ls1028a: move the GPIO controller nodes into /soc

2021-09-02 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 66 +-- 1 file changed, 33 insertions(+), 33 deletions(-) diff --g

[PATCH v3 12/29] arm: dts: ls1028a: move SATA and USB controller nodes into /soc

2021-09-02 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --g

[PATCH v3 13/29] arm: dts: ls1028a: move the PCIe controller nodes into /soc

2021-09-02 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. While at it fix the indentation. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 64 +-- 1 file changed, 32 insert

[PATCH v3 14/29] arm: dts: ls1028a: move the watchdog node into /soc

2021-09-02 Thread Michael Walle
While inserting it into the new location, keep it sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028a.d

[PATCH v3 15/29] arm: dts: ls1028a: move the iRC node and its devices into /soc

2021-09-02 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. While at it fix the indentation. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 202 +- 1 file changed, 103 inser

[PATCH v3 17/29] watchdog: sp805_wdt: use correct compatible string

2021-09-02 Thread Michael Walle
According to the linux device tree specification the compatible string is: compatible = "arm,sp805", "arm,primecell"; Fix all users in u-boot. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 2 +- arch/arm/dts/hi3660.dtsi | 4 ++-- drivers/watchdog/sp805_wdt.c | 2 +- 3

[PATCH v3 16/29] arm: dts: ls1028a: update the labels

2021-09-02 Thread Michael Walle
Update the labels of the nodes to match the kernel ones. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean Tested-by: Vladimir Oltean --- Vladimir, this has changed due to the sorted nodes now. It should be the same, but maybe you should retest it. .../dts/fsl-ls1028a-kontron-sl28-u-b

[PATCH v3 20/29] serial: lpuart: add new compatible fsl, ls1028a-lpuart

2021-09-02 Thread Michael Walle
The official ls1028a binding of the driver uses the following as compatibles: compatible = "fsl,ls1028a-lpuart"; Add the missing compatible to the driver and update the device tree. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 18 ++--

[PATCH v3 18/29] spi: fsl_dspi: add new compatible fsl, ls1021a-v1.0-dspi

2021-09-02 Thread Michael Walle
The official ls1028a binding of the driver uses the following as compatibles: compatible = "fsl,ls1028a-dspi", "fsl,ls1021a-v1.0-dspi"; Add the missing compatible to the driver and update the device tree. We can use the fallback "fsl,ls1021a-v1.0-dspi", because the endianness is determined by th

[PATCH v3 19/29] spi: fsl_dspi: rename num-cs to spi-num-chipselects

2021-09-02 Thread Michael Walle
The official devicetree bindings specifies spi-num-chipselects as the name. Use it. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1012a.dtsi | 2 +- arch/arm/dts/fsl-ls1028a.dtsi | 6 +++--- arch/arm/dts/fsl-ls1043a.dtsi | 4 ++-- arch/arm/dts/fsl-ls1046a.dtsi | 4 ++-- arch/arm/dts/fsl-ls

[PATCH v3 21/29] scsi: ceva: rename the resource name to match the linux kernel one

2021-09-02 Thread Michael Walle
The driver will look for a named resource "ecc-addr", but this isn't the official binding. In fact, the official device tree binding documentation doesn't mention any resource names at all. But it is safe to assume that it's the linux ones we have to use if we want to be compatible with the linux d

[PATCH v3 22/29] usb: xhci: fsl: add new compatible fsl,ls1028a-dwc3

2021-09-02 Thread Michael Walle
The official ls1028a binding of the driver uses the following as compatibles: compatible = "fsl,ls1028a-dwc3", "snps,dwc3"; Change the ls1028a device tree and add this new compatible to the fsl specific xhci driver, otherwise the generic dwc3 driver will be used with the compatibles above. Cc:

[PATCH v3 24/29] arm: dts: ls1028a: remove num-lanes in the PCIe controller nodes

2021-09-02 Thread Michael Walle
This property is unused in the layerscape PCIe controller driver and not present in the linux device tree. Remove it to be similarly. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/arm/dts/f

[PATCH v3 23/29] pci: layerscape: add official ls1028a binding support

2021-09-02 Thread Michael Walle
The official bindind of the PCIe controller of the ls1028a has the following compatible string: compatible = "fsl,ls1028a-pcie"; Additionally, the resource names and count are different. Update the driver to support this binding and change the entry in the ls1028a device tree. Signed-off-by: Mi

[PATCH v3 26/29] arm: dts: ls1028a: disable the PCIe controller by default

2021-09-02 Thread Michael Walle
Disable the PCIe controllers by default, just like in the linux device tree. But there is one catch, for linux they are enabled in-place by the bootloader. Obviously, this doesn't work for the bootloader. Thus we explicitly enable the controllers in the -u-boot.dtsi files. Signed-off-by: Michael W

[PATCH v3 27/29] arm: dts: ls1028a: drop non-removable property from esdhc controller node

2021-09-02 Thread Michael Walle
The linux device tree hasn't set this property. To be similarly we remove it from the u-boot device tree, too. The second controller of the LS1028A has indeed no card detect pin. The present state register of the second controller will always report the card as present. Thus, there should be no fun

[PATCH v3 25/29] arm: dts: ls1028a: move the PCI I/O window to match

2021-09-02 Thread Michael Walle
To make the synchronization of the u-boot device tree with the one from linux easier, move the I/O window to the one which is specified in the linux device tree. The actual value shouldn't matter as long as it mapped to the corresponding memory window of the PCIe controller which is a 32GiB window

Subject: [PATCH 1/6 v3] serial: qcom: add support for GENI serial driver

2021-09-02 Thread Дмитрий Санковский
>From e92b90fcc81565c39eefe63a56051736bd392716 Mon Sep 17 00:00:00 2001 From: Dzmitry Sankouski Date: Fri, 27 Aug 2021 17:47:22 +0300 Subject: [PATCH 1/6 v3] serial: qcom: add support for GENI serial driver Generic Interface (GENI) Serial Engine (SE) based uart can be found on newer qualcomm SOCs

Re: Setting serverip from DHCP server

2021-09-02 Thread Gregory Anders
> On Jul 2, 2021, at 7:39 AM, Harald Seiler wrote: > > This is just a guess because I don't have a dhcpd server running, but with > dnsmasq we have this working without problems. From a quick search, maybe > adding > >next-server 10.0.10.1; > > m I know this is two months later, but I

[PATCH v3 29/29] arm: dts: sl28: sync dtbs

2021-09-02 Thread Michael Walle
Copy the board device tree files from linux v5.14. On top of the v5.14 dtbs the changes of these two patches are included here which are needed for u-boot: https://lore.kernel.org/linux-devicetree/20210831134013.1625527-7-mich...@walle.cc/ https://lore.kernel.org/linux-devicetree/202108311340

[PATCH v3 28/29] arm: dts: ls1028a: sync the fsl-ls1028a.dtsi with linux

2021-09-02 Thread Michael Walle
Now that everything is prepared, copy the fsl-ls1028a.dtsi from the linux kernel v5.14. Notable changes: - second watchdog added - the number of chip selects of the SPI controller is now correct and reflects what the hardware offers - the LPUARTs have the correct clock parent - USB controll

Re: [RFC PATCH v1 0/5] arm64: dts: imx8mm: add common -binman.dtsi and further clean-up

2021-09-02 Thread Fabio Estevam
Hi Marcel, On Thu, Aug 26, 2021 at 9:14 AM Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > With the move to using binman to generate SPL aka u-boot-spl-ddr.bin and > U-Boot proper aka u-boot.itb every board now covers such configuration > in its own U-Boot specific device tree include. In

Re: [PATCH][RFC] tree: imx: remove old fit generator script

2021-09-02 Thread Fabio Estevam
Hi Andrey, On Tue, Aug 24, 2021 at 4:55 AM Andrey Zhizhikin wrote: > > Since derivatives are moving to binman from usage of the FIT generator > script, and considering the warning introduced in f4a43d2925 > ("Makefile: Warn against using CONFIG_SPL_FIT_GENERATOR"), usage of FIT > generator is dis

Re: [PATCH 10/10] stm32mp1: spl: Copy optee nodes to target FDT for OP-TEE payloads

2021-09-02 Thread Alex G.
Hi Patrick, On 9/1/21 10:10 AM, Alex G. wrote: Hi Patrick, On 8/31/21 12:24 PM, Patrick DELAUNAY wrote: Hi, On 8/26/21 11:42 PM, Alexandru Gagniuc wrote: OP-TEE does not take a devicetree for its own use. However, it does pass the devicetree to the normal world OS. In most cases that will be

Re: [PATCH] lib/rsa: Remove support for OpenSSL < 1.1.0 and libressl < 2.7.0

2021-09-02 Thread Peter Robinson
On Thu, Sep 2, 2021 at 3:38 PM Tom Rini wrote: > > On Thu, Sep 02, 2021 at 03:36:43PM +0100, Peter Robinson wrote: > > On Thu, Sep 2, 2021 at 2:28 PM Tom Rini wrote: > > > > > > On Thu, Jul 29, 2021 at 01:31:21PM -0500, Alexandru Gagniuc wrote: > > > > > > > Older OpenSSL and libressl versions ha

Re: [PATCH] lib/rsa: Remove support for OpenSSL < 1.1.0 and libressl < 2.7.0

2021-09-02 Thread Alex G.
On 9/2/21 12:43 PM, Peter Robinson wrote: On Thu, Sep 2, 2021 at 3:38 PM Tom Rini wrote: On Thu, Sep 02, 2021 at 03:36:43PM +0100, Peter Robinson wrote: On Thu, Sep 2, 2021 at 2:28 PM Tom Rini wrote: On Thu, Jul 29, 2021 at 01:31:21PM -0500, Alexandru Gagniuc wrote: Older OpenSSL and

Re: [PATCH] lib/rsa: Remove support for OpenSSL < 1.1.0 and libressl < 2.7.0

2021-09-02 Thread Tom Rini
On Thu, Sep 02, 2021 at 12:48:29PM -0500, Alex G. wrote: > > > On 9/2/21 12:43 PM, Peter Robinson wrote: > > On Thu, Sep 2, 2021 at 3:38 PM Tom Rini wrote: > > > > > > On Thu, Sep 02, 2021 at 03:36:43PM +0100, Peter Robinson wrote: > > > > On Thu, Sep 2, 2021 at 2:28 PM Tom Rini wrote: > > > >

Re: [PATCH] doc: Remove information about CAPSULE_FMP_HEADER

2021-09-02 Thread Heinrich Schuchardt
On 8/27/21 12:41 PM, Michal Simek wrote: This Kconfig symbol was never added to U-Boot but it was mentioned in the origin commit c35df7c9e43e ("qemu: arm64: Add documentation for capsule update"). That's why remove it from documentation to be accurate. Signed-off-by: Michal Simek Reviewed-by:

[PATCH v2 0/2] Add MNT Reform 2 board support

2021-09-02 Thread Patrick Wildt
The MNT Reform 2 is a modular DIY laptop. In its initial version it is based on the BoundaryDevices i.MX8MQ SoM. Some parts have been lifted from BoundaryDevices official U-Boot downstream project. This U-Boot patchset supports the serial console, the SD card and eMMC, Gigabit Ethernet and USB.

  1   2   >