Re: [PATCH v2 5/5] configs: am335x_evm: Fix BeagleBone Green DTB selection

2021-07-20 Thread Lokesh Vutla
On 20/07/21 1:49 pm, Paul Barker wrote: > On Tue, 13 Jul 2021 11:59:06 +0530 > Lokesh Vutla wrote: > >> On 13/07/21 1:44 am, Paul Barker wrote: >>> The function board_is_bone_lt() returns true for the BeagleBone Green, >>> the BeagleBone Enhanced and the BeagleBone Black. Therefore when >>>

Re: [PULL] u-boot-sh/master

2021-07-20 Thread Tom Rini
On Wed, Jul 21, 2021 at 12:50:00AM +0200, Marek Vasut wrote: > The following changes since commit dd3dfa50d88cffeb244485594a7bf18c58ae6d63: > > Merge https://source.denx.de/u-boot/custodians/u-boot-marvell (2021-07-19 > 08:41:04 -0400) > > are available in the Git repository at: > >

Re: [PATCH v2 2/6] efi_loader: add secure boot variable measurement

2021-07-20 Thread Simon Glass
Hi Masahisa, On Tue, 20 Jul 2021 at 19:51, Masahisa Kojima wrote: > > Hi Simon, > > On Wed, 21 Jul 2021 at 03:34, Simon Glass wrote: > > > > Hi, > > > > On Wed, 14 Jul 2021 at 06:59, Masahisa Kojima > > wrote: > > > > > > TCG PC Client PFP spec requires to measure the secure > > > boot policy

RE: [EXT] Re: [PATCH 1/9] net: eqos: Add PHY reset control for i.MX platform

2021-07-20 Thread Ye Li
Hi Stefano, Ok. I will rebase the patches after the 8ULP is merged. Best regards, Ye Li > -Original Message- > From: Stefano Babic > Sent: Saturday, July 17, 2021 8:54 PM > To: Ye Li ; sba...@denx.de; u-boot@lists.denx.de; Peng Fan > ; ma...@denx.de > Cc: rfried@gmail.com;

Re: [PATCH v2 2/6] efi_loader: add secure boot variable measurement

2021-07-20 Thread Masahisa Kojima
Hi Simon, On Wed, 21 Jul 2021 at 03:34, Simon Glass wrote: > > Hi, > > On Wed, 14 Jul 2021 at 06:59, Masahisa Kojima > wrote: > > > > TCG PC Client PFP spec requires to measure the secure > > boot policy before validating the UEFI image. > > This commit adds the secure boot variable measurement

Re: [PATCH] arm: bootm: Disable LMB reservation for command line and board info on arm64

2021-07-20 Thread Marek Vasut
On 7/20/21 11:08 AM, Jan Kiszka wrote: [...] diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index f60ee3a7e6..23b99a541c 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -43,6 +43,7 @@ DECLARE_GLOBAL_DATA_PTR; static struct tag *params; +#ifndef CONFIG_ARM64

[PULL] u-boot-sh/master

2021-07-20 Thread Marek Vasut
The following changes since commit dd3dfa50d88cffeb244485594a7bf18c58ae6d63: Merge https://source.denx.de/u-boot/custodians/u-boot-marvell (2021-07-19 08:41:04 -0400) are available in the Git repository at: git://source.denx.de/u-boot-sh.git master for you to fetch changes up to

[PATCH] ARM: dts: stm32: Fix AV96 eMMC pinmux

2021-07-20 Thread Marek Vasut
Commit 500327e2ea7 ("ARM: dts: stm32mp1: DT alignment with Linux kernel v5.8-rc1") renamed sdmmc2_d47_pins_b phandle to sdmmc2_d47_pins_c, but without updating the AV96 DT which uses that phandle. Linux missed similar update as well and it was only added in commit 1ad6e36ec266 ("ARM: dts: stm32:

Re: Help wanted: Adding OpenSSL in FSL HAB

2021-07-20 Thread Jojan
You need to enable configs , by running make menuconfig Library routines > Security support and enable the configs needed for the library. On Monday, July 19, 2021, 10:11:05 PM PDT, Daniel D wrote: The architecture is arm (i.MX 6UL board) and I've successfully added HAB. I want

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Tom Rini
On Tue, Jul 20, 2021 at 12:33:14PM -0600, Simon Glass wrote: > Hi Tom. > > On Tue, 20 Jul 2021 at 10:05, Tom Rini wrote: > > > > On Tue, Jul 20, 2021 at 09:57:55AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Tue, 20 Jul 2021 at 08:22, Tom Rini wrote: > > > > > > > > On Tue, Jul 20,

Re: [PATCH 2/3] mkeficapsule: Remove dtb related options

2021-07-20 Thread Simon Glass
Hi Ilias, On Tue, 20 Jul 2021 at 12:43, Ilias Apalodimas wrote: > > On Tue, 20 Jul 2021 at 21:33, Simon Glass wrote: > > > > Hi Ilias, > > > > On Sat, 17 Jul 2021 at 01:24, Ilias Apalodimas > > wrote: > > > > > > On Fri, Jul 16, 2021 at 08:03:23AM -0600, Simon Glass wrote: > > > > Hi Ilias, >

Re: [PATCH] build: remove the variable NM in gen_ll_addressable_symbols.sh

2021-07-20 Thread Simon Glass
Hi Patrick, On Tue, 20 Jul 2021 at 12:34, Patrick Delaunay wrote: > > With LTO activated, the buildman tools failed with an error on my > configuration (Ubuntu 20.04, stm32mp15_trusted_defconfig) with the error: > > ../arm-linux-gnueabi/bin/nm: > scripts/gen_ll_addressable_symbols.sh:

Re: [PATCH 2/3] mkeficapsule: Remove dtb related options

2021-07-20 Thread Ilias Apalodimas
On Tue, 20 Jul 2021 at 21:33, Simon Glass wrote: > > Hi Ilias, > > On Sat, 17 Jul 2021 at 01:24, Ilias Apalodimas > wrote: > > > > On Fri, Jul 16, 2021 at 08:03:23AM -0600, Simon Glass wrote: > > > Hi Ilias, > > > > > > On Thu, 15 Jul 2021 at 11:00, Ilias Apalodimas > > > wrote: > > > > > > > >

Re: [PATCH RESEND u-boot-spi 5/8] mtd: spi-nor-core: Don't check for zero length in spi_nor_erase()

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 17:51, Marek Behún wrote: > > This check is already done in mtdcore's mtd_erase(), no reason to do > this here as well. > > Signed-off-by: Marek Behún > Tested-by: Masami Hiramatsu > --- > drivers/mtd/spi/spi-nor-core.c | 3 --- > 1 file changed, 3 deletions(-)

Re: [PATCH RESEND u-boot-spi 8/8] mtd: mtdpart: Make mtdpart's _erase method sane

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 17:51, Marek Behún wrote: > > The _erase() method of the mtdpart driver, part_erase(), currently > implements offset shifting (for given mtdpart partition) in a weird way: > 1. part_erase() adds partition offset to block address > 2. parent driver's _erase() method is

Re: [PATCH] command: Fix SMC and HVC maximum number of arguments

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 22:39, Siew Chin Lim wrote: > > smc and hvc commands take upto 8 user input arguments, the maximum > number of arguments of the U_BOOT_CMD macro should set to 9. > > Besides, fix the typo (arg7 -> arg6) in hvc command's help message. > > Signed-off-by: Siew Chin Lim > ---

[PATCH] build: remove the variable NM in gen_ll_addressable_symbols.sh

2021-07-20 Thread Patrick Delaunay
With LTO activated, the buildman tools failed with an error on my configuration (Ubuntu 20.04, stm32mp15_trusted_defconfig) with the error: ../arm-linux-gnueabi/bin/nm: scripts/gen_ll_addressable_symbols.sh: file format not recognized It seems the shell variable initialization NM=$(NM)

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Simon Glass
Hi Tom. On Tue, 20 Jul 2021 at 10:05, Tom Rini wrote: > > On Tue, Jul 20, 2021 at 09:57:55AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 20 Jul 2021 at 08:22, Tom Rini wrote: > > > > > > On Tue, Jul 20, 2021 at 07:29:24AM -0600, Simon Glass wrote: > > > > > > > U-Boot mostly uses hex

Re: [PATCH RESEND u-boot-spi 7/8] mtd: spi-nor-core: Check for ctrlc() in spi_nor_erase()

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 17:51, Marek Behún wrote: > > May it possible to interrupt the spi_nor_erase() function. > > Signed-off-by: Marek Behún > Tested-by: Masami Hiramatsu > --- > drivers/mtd/spi/spi-nor-core.c | 5 + > 1 file changed, 5 insertions(+) Reviewed-by: Simon Glass

Re: [PATCH v2 1/6] dm: pci: add option to map virtual system memory base address

2021-07-20 Thread Simon Glass
On Thu, 15 Jul 2021 at 12:54, Daniel Schwierzeck wrote: > > On MIPS the DRAM start address respectively CONFIG_SYS_SDRAM_BASE > is still used as a virtual, CPU-mapped address instead of being used > as physical address. Converting all MIPS boards and generic MIPS code > to fix that is not

Re: [PATCH RESEND u-boot-spi 6/8] mtd: spi-nor-core: Call mtd_erase_callback() from spi_nor_erase()

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 17:51, Marek Behún wrote: > > The spi_nor_erase() function does not call mtd_erase_callback() as it > should. > > The mtdpart code currently implements the subtraction of partition > offset in mtd_erase_callback(). > > This results in partition offset being added prior

Re: [PATCH v2 2/6] efi_loader: add secure boot variable measurement

2021-07-20 Thread Simon Glass
Hi, On Wed, 14 Jul 2021 at 06:59, Masahisa Kojima wrote: > > TCG PC Client PFP spec requires to measure the secure > boot policy before validating the UEFI image. > This commit adds the secure boot variable measurement > of "SecureBoot", "PK", "KEK", "db" and "dbx". > > Note that this

Re: [PATCH] serial: pl011: Enable DEBUG_UART_PL011 in SPL

2021-07-20 Thread Simon Glass
Hi, On Sun, 18 Jul 2021 at 02:46, Chen Baozi wrote: > > Commit b81406db51a6 ("arm: serial: Add debug UART capability to the > pl01x driver") add supports to use pl01x as a debug UART. However, > due to CONFIG_IS_ENABLED macro requires CONFIG_SPL_* prefix, the > _debug_uart_init() would not

Re: [PATCH] arm: vexpress64: juno: Enable distro_bootcmd functionality

2021-07-20 Thread Simon Glass
On Sun, 11 Jul 2021 at 17:26, Andre Przywara wrote: > > The ARM Juno boards can be used as somewhat decent machines to run > off-the-shelf distributions, with USB, SATA, GBit Ethernet and 8GB of > DRAM. > > With stable DTs in the board's NOR flash this would work really nicely, > however the

Re: [PATCH 3/3 v3] MAINTAINERS: Add entry for TPM drivers

2021-07-20 Thread Simon Glass
On Thu, 8 Jul 2021 at 03:23, Heinrich Schuchardt wrote: > > On 08.07.21 10:23, Ilias Apalodimas wrote: > > TPM drivers have currently no maintainers. Add myself since I contributed > > the TIS implementation. > > > > Signed-off-by: Ilias Apalodimas > > Thanks for volunteering. > > Reviewed-by:

Re: [PATCH] dts: khadas Edge: Use devicetree for SMBIOS settings

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 23:01, Artem Lapkin wrote: > > Khadas Edge series: Use devicetree for SMBIOS settings > Add settings and enable the default sysinfo driver so that these can come > from the device tree. > > Signed-off-by: Artem Lapkin > --- > arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi |

Re: [PATCH] distro_boot: Fix block device after DHCP boot sequence

2021-07-20 Thread Simon Glass
On Sun, 11 Jul 2021 at 17:07, Andre Przywara wrote: > > The generic distro boot sequence iterates over several types of devices, > trying one after another. In doing do, it starts with setting the > "devtype" variable, then uses this later in more generic commands. > > Now most (block) device

Re: [PATCH RESEND u-boot-spi 2/8] mtd: spi-nor-core: Check return value of write_enable() in spi_nor_erase()

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 17:51, Marek Behún wrote: > > The spi_nor_erase() function does not check return value of the > write_enable() call. Fix this. > > Signed-off-by: Marek Behún > Tested-by: Masami Hiramatsu > --- > drivers/mtd/spi/spi-nor-core.c | 4 +++- > 1 file changed, 3 insertions(+),

Re: sandbox: drivers/core/ofnode.c:118: ofnode_read_bool: Assertion `ofnode_valid(node)' failed.

2021-07-20 Thread Simon Glass
Hi Heinrich, On Sat, 10 Jul 2021 at 05:57, Heinrich Schuchardt wrote: > > Hello Simon, > > if I set DEBUG=1 in common.h I get: > > drivers/core/ofnode.c:118: ofnode_read_bool: Assertion > `ofnode_valid(node)' failed. > drivers/core/ofnode.c:133: ofnode_read_prop: Assertion > `ofnode_valid(node)'

Re: [PATCH RESEND u-boot-spi 3/8] mtd: spi-nor-core: Don't overwrite return value if it is non-zero

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 17:51, Marek Behún wrote: > > The cleanup code of the spi_nor_erase() function overwrites the ret > variable with return value of clean_bar(), even if the ret variable is > already set. Fix this. > > Signed-off-by: Marek Behún > Tested-by: Masami Hiramatsu > --- >

Re: [RESEND PATCH v2 1/3] spl: mmc: extend spl_mmc_boot_mode() to take mmc argument

2021-07-20 Thread Simon Glass
Hi Andre, On Mon, 12 Jul 2021 at 04:07, Andre Przywara wrote: > > Platforms can overwrite the weak definition of spl_mmc_boot_mode() to > determine where to load U-Boot proper from. > For most of them this is a trivial decision based on Kconfig variables, > but it might be desirable the probe

Re: [PATCH v3] dm: core: fix no null pointer detection in ofnode_get_addr_size_index()

2021-07-20 Thread Simon Glass
On Mon, 12 Jul 2021 at 01:40, chenguanqiao wrote: > > From: Chen Guanqiao > > Fixed a defect of a null pointer being discovered by Coverity Scan: >CID 331544: Null pointer dereferences (REVERSE_INULL) >Null-checking "size" suggests that it may be null, but it has already been >

Re: [PATCH v4 01/21] drivers: reset: Add devm_to_reset() to return dummy "struct reset_ctl"

2021-07-20 Thread Simon Glass
Hi Kishon, On Mon, 12 Jul 2021 at 00:20, Kishon Vijay Abraham I wrote: > > Add devm_to_reset() to return dummy "struct reset_ctl", useful for > invoking reset APIs which doesn't have a valid "struct reset_ctl". > > Suggested-by: Simon Glass > Signed-off-by: Kishon Vijay Abraham I > --- >

Re: [PATCH v3 03/14] crypto: aspeed: Add AST2600 HACE support

2021-07-20 Thread Simon Glass
Hi Chia-Wei, On Tue, 20 Jul 2021 at 00:38, Chia-Wei Wang wrote: > > From: Joel Stanley > > Hash and Crypto Engine (HACE) is designed to accelerate the > throughput of hash data digest, and symmetric-key encryption. > > Signed-off-by: Joel Stanley > Signed-off-by: Chia-Wei Wang > --- >

Re: [PATCH v2] serial: pl011: Resend the character if FIFO is full in debug uart

2021-07-20 Thread Simon Glass
On Mon, 19 Jul 2021 at 01:36, Chen Baozi wrote: > > pl01x_putc() might return -EAGAIN if there was no space in FIFO. In that > case, high-level caller should wait until there is space and resend the > character. > > Signed-off-by: Chen Baozi > Reviewed-by: Stefan Roese > --- >

Re: [PATCH 9/9] sandbox: tpm: Support extending a PCR multiple times

2021-07-20 Thread Simon Glass
Hi Ilias, On Thu, 15 Jul 2021 at 13:21, Ilias Apalodimas wrote: > > On Thu, 15 Jul 2021 at 22:04, Ilias Apalodimas > wrote: > > > > On Mon, Jul 05, 2021 at 09:48:49AM -0600, Simon Glass wrote: > > > It is fairly easy to handle this case and it makes the emulator more > > > useful, since PCRs

Re: [PATCH RESEND u-boot-spi 0/8] Fix `mtd erase` when used with mtdpart

2021-07-20 Thread Simon Glass
Hi Marek, On Wed, 14 Jul 2021 at 17:51, Marek Behún wrote: > > Hello, > > I accidentally forgot to send this series to U-Boot's mailing list last > time, meaning it did not end up in patchwork, so now I am resending it. > Sorry for this mess. > > The original cover letter said: > > this patch

Re: [PATCH 2/3] mkeficapsule: Remove dtb related options

2021-07-20 Thread Simon Glass
Hi Ilias, On Sat, 17 Jul 2021 at 01:24, Ilias Apalodimas wrote: > > On Fri, Jul 16, 2021 at 08:03:23AM -0600, Simon Glass wrote: > > Hi Ilias, > > > > On Thu, 15 Jul 2021 at 11:00, Ilias Apalodimas > > wrote: > > > > > > commit 322c813f4bec ("mkeficapsule: Add support for embedding public key

Re: [PATCH] configs: khadas-edge series: Enable SMBIOS

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 23:01, Artem Lapkin wrote: > > Enable configs to support SMBIOS for all Khadas Edge* boards > > Signed-off-by: Artem Lapkin > --- > configs/khadas-edge-captain-rk3399_defconfig | 2 ++ > configs/khadas-edge-rk3399_defconfig | 2 ++ >

Re: [PATCH RESEND u-boot-spi 4/8] mtd: spi-nor-core: Check return value of write_disable() in spi_nor_erase()

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 17:51, Marek Behún wrote: > > The cleanup code of spi_nor_erase() function calls write_disable(), but > does not return it's return value even in case of failure. Fix this. > > Signed-off-by: Marek Behún > Tested-by: Masami Hiramatsu > --- >

Re: [PATCH RESEND u-boot-spi 1/8] mtd: spi-nor-core: Try cleaning up in case writing BAR failed

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 17:51, Marek Behún wrote: > > Use the cleanup codepath of spi_nor_erase() also in the event of failure > of writing the BAR register. > > Signed-off-by: Marek Behún > Tested-by: Masami Hiramatsu > --- > drivers/mtd/spi/spi-nor-core.c | 2 +- > 1 file changed, 1

Re: [PATCH] acpi: Use U-Boot version for OEM_REVISION

2021-07-20 Thread Simon Glass
On Sat, 10 Jul 2021 at 05:10, Pali Rohár wrote: > > OEM_REVISION is 32-bit unsigned number. It should be increased only when > changing software version. Therefore it should not depend on build time. > > Change calculation to use U-Boot version numbers and set this revision > to date number. > >

Re: [PATCH 8/8] dtoc: Update documentation to cover warnings in more detail

2021-07-20 Thread Simon Glass
Hi Walter, On Mon, 5 Jul 2021 at 12:04, Walter Lozano wrote: > > Hi Simon, > > On 7/4/21 3:19 PM, Simon Glass wrote: > > When things go wrong it can be confusing to figure out what to change. > > Add a few more details to the documentation. > > > > Fix a 'make htmldocs' warning while we are

[RESEND PATCH 3/3] net: define LOG_CATEGORY

2021-07-20 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay Reviewed-by: Ramon Fried --- net/eth-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 5146bd..c2a97d723a 100644 --- a/net/eth-uclass.c +++

[RESEND PATCH 2/3] net: dwc_eth_qos: define LOG_CATEGORY

2021-07-20 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay Reviewed-by: Ramon Fried --- drivers/net/dwc_eth_qos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index f048e9d585..3358dc3514 100644 ---

[RESEND PATCH 1/3] net: eth-phy: define LOG_CATEGORY

2021-07-20 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay Reviewed-by: Ramon Fried --- drivers/net/eth-phy-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/eth-phy-uclass.c b/drivers/net/eth-phy-uclass.c index 07aebd935e..abb658bf21

[PATCH v3 6/6] net: dwc: add a common empty ops eqos_null_ops

2021-07-20 Thread Patrick Delaunay
Add a common empty ops: eqos_null_ops() to remove the duplicated empty functions and reduce the driver size for stm32 and imx config. This patch also aligns the prototype of ops 'eqos_stop_clks' with other eqos ops by adding return value. Reviewed-by: Ramon Fried Signed-off-by: Patrick Delaunay

[PATCH v3 5/6] net: dwc_eth_qos: use generic ethernet phy for stm32 variant

2021-07-20 Thread Patrick Delaunay
Use the generic ethernet phy which already manages the correct binding for gpio reset, including the assert an deassert delays. Reviewed-by: Ramon Fried Signed-off-by: Patrick Delaunay --- (no changes since v2) Changes in v2: - use generic ethernet phy for stm32 variant, this patch is a

[PATCH v3 4/6] net: dwc_eth_qos: remove the field phyaddr of the struct eqos_priv

2021-07-20 Thread Patrick Delaunay
Since the commit commit 6a895d039ba7 ("net: Update eQos driver and FEC driver to use eth phy interfaces") the field phyaddr of driver private data struct eqos_priv is no more used in eqos_start() for the phy_connect() parameter. Now this variable is only initialized in

[PATCH v3 3/6] net: eth-phy: manage subnode mdio0

2021-07-20 Thread Patrick Delaunay
Bind any subnode with name beginning by mdio, mdio0 for example, and not only the "mdio" as namei of subnode. Reviewed-by: Ramon Fried Signed-off-by: Patrick Delaunay --- (no changes since v2) Changes in v2: - update eth-phy driver to support STM32 binding with a mdio0 subnode (NEW)

[PATCH v3 2/6] net: eth-phy: use dev_dbg and log_notice

2021-07-20 Thread Patrick Delaunay
Replace debug trace and printf to log macros: - debug() replaced by dev_dbg() when device is available, this macro indicate the device name since commit ceb70bb870ac ("dm: Print device name in dev_xxx like Linux") - printf() replaced by log_notice() to allow dispatch to log backends.

[PATCH v3 1/6] net: eth-phy: add support of device tree configuration for gpio reset

2021-07-20 Thread Patrick Delaunay
The gpio reset and the assert or deassert delay are defined in generic binding of the ethernet phy in Linux: Documentation/devicetree/bindings/net/ethernet-phy.yaml reset-gpios: maxItems: 1 description: The GPIO phandle and specifier for the PHY reset signal. reset-assert-us:

[PATCH v3 0/6] net: dwc_eth_qos: add support of device tree configuration for reset delay

2021-07-20 Thread Patrick Delaunay
It is the V3 version of [1], rebased and without compilation issue for power PC baord withotu CONFIG_DM_GPIO. I change the DWC_ETH_QOS STM32 variant by using generic the phy driver. This driver is updated to use the gpio reset and assert/deassert delay from DT with the generic binding defined

Re: [PATCH v2 1/6] net: eth-phy: add support of device tree configuration for gpio reset

2021-07-20 Thread Patrick DELAUNAY
Hi Ramon, On 4/26/21 5:46 PM, Patrick Delaunay wrote: The gpio reset and the assert or deassert delay are defined in generic binding of the ethernet phy in Linux: Documentation/devicetree/bindings/net/ethernet-phy.yaml reset-gpios: maxItems: 1 description: The GPIO phandle

Re: Pull request: u-boot-imx u-boot-imx-20210720

2021-07-20 Thread Tom Rini
7-17 11:39:50 > -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20210720 > > for you to fetch changes up to bd8e26606db62a0434c7f09adfa6ec666b36985b: > > imx: imx8mm: Add support for Kontron Elec

Re: [PATCH] common: board_r: print error if binman_init fails

2021-07-20 Thread Simon Glass
Hi Tim, On Fri, 16 Jul 2021 at 16:44, Tim Harvey wrote: > > Display an error if binman_init fails. > > Signed-off-by: Tim Harvey > --- > common/board_r.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/common/board_r.c b/common/board_r.c > index

Re: [PATCH 1/3 v2] efi_capsule: Move signature from DTB to .rodata

2021-07-20 Thread Simon Glass
Hi Sughosh, On Tue, 20 Jul 2021 at 07:32, Sughosh Ganu wrote: > > hi Simon, > > On Tue, 20 Jul 2021 at 18:20, Ilias Apalodimas > wrote: >> >> Hi Simon, >> On Tue, 20 Jul 2021 at 15:33, Simon Glass wrote: >> > >> > Hi Ilias, >> > >> > On Sat, 17 Jul 2021 at 08:27, Ilias Apalodimas >> > wrote:

Re: [PATCH v2 4/5] watchdog: rti_wdt: Add support for loading firmware

2021-07-20 Thread Simon Glass
Hi Jan, On Tue, 20 Jul 2021 at 06:58, Jan Kiszka wrote: > > On 14.07.21 16:15, Simon Glass wrote: > > Hi Jan, > > > > On Wed, 14 Jul 2021 at 03:53, Jan Kiszka wrote: > >> > >> On 05.07.21 17:29, Simon Glass wrote: > >>> Hi Jan, > >>> > >>> On Sun, 27 Jun 2021 at 23:40, Jan Kiszka wrote: >

Re: [Uboot-stm32] [PATCH v2 2/5] arm: stm32mp: handle the OP-TEE nodes in DT with FIP support

2021-07-20 Thread Patrick DELAUNAY
Hi Ahmad On 7/15/21 7:11 PM, Ahmad Fatoum wrote: Hello Patrick, On 15.07.21 17:22, Patrick Delaunay wrote: With FIP support in TF-A (when CONFIG_STM32MP15x_STM32IMAGE is not activated), the DT nodes needed by OP-TEE are added by OP-TEE firmware in U-Boot device tree, present in FIP. What

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Eugeniu Rosca
On Tue, Jul 20, 2021 at 12:05:47PM -0400, Tom Rini wrote: > On Tue, Jul 20, 2021 at 09:57:55AM -0600, Simon Glass wrote: [..] > > Can you give examples for what you are thinking for radix notation? > > Well, since we don't have subscript in shell, '(number)base' would how > it would be. Which

Re: [PATCH v2 4/5] watchdog: rti_wdt: Add support for loading firmware

2021-07-20 Thread Jan Kiszka
On 20.07.21 14:57, Jan Kiszka wrote: > On 14.07.21 16:15, Simon Glass wrote: >> Hi Jan, >> >> On Wed, 14 Jul 2021 at 03:53, Jan Kiszka wrote: >>> >>> On 05.07.21 17:29, Simon Glass wrote: Hi Jan, On Sun, 27 Jun 2021 at 23:40, Jan Kiszka wrote: > > On 27.06.21 20:18, Simon

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Tom Rini
On Tue, Jul 20, 2021 at 09:57:55AM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 20 Jul 2021 at 08:22, Tom Rini wrote: > > > > On Tue, Jul 20, 2021 at 07:29:24AM -0600, Simon Glass wrote: > > > > > U-Boot mostly uses hex for value input, largely because addresses are much > > > easier to

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Simon Glass
Hi Tom, On Tue, 20 Jul 2021 at 08:22, Tom Rini wrote: > > On Tue, Jul 20, 2021 at 07:29:24AM -0600, Simon Glass wrote: > > > U-Boot mostly uses hex for value input, largely because addresses are much > > easier to understand in hex. > > > > But in some cases a hex value is requested, but it is

Pull request: u-boot-imx u-boot-imx-20210720

2021-07-20 Thread Stefano Babic
-imx.git tags/u-boot-imx-20210720 for you to fetch changes up to bd8e26606db62a0434c7f09adfa6ec666b36985b: imx: imx8mm: Add support for Kontron Electronics SL/BL i.MX8M-Mini boards (N801x) (2021-07-19 23:30:47 +0200) CI: https

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Tom Rini
On Tue, Jul 20, 2021 at 10:00:13AM -0500, Jonathan A. Kollasch wrote: > On Tue, Jul 20, 2021 at 07:29:24AM -0600, Simon Glass wrote: > > U-Boot mostly uses hex for value input, largely because addresses are much > > easier to understand in hex. > > > > But in some cases a hex value is requested,

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Jonathan A. Kollasch
On Tue, Jul 20, 2021 at 07:29:24AM -0600, Simon Glass wrote: > U-Boot mostly uses hex for value input, largely because addresses are much > easier to understand in hex. > > But in some cases a hex value is requested, but it is more convenient to > provide a decimal value. This may be because the

[Patch V3 21/44] arm: imx8ulp: Update the reset vector in u-boot

2021-07-20 Thread sbabic
> From: Ye Li > Because we have set reset vector to ATF in SPL, have to set it back > to ROM for any reset in u-boot > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[Patch V3 36/44] driver: misc: imx8ulp: Add fuse driver for imx8ulp

2021-07-20 Thread sbabic
> From: Ye Li > This driver uses FSB to read some fuses, but not support program fuse. > It only works in SPL (secure mode), u-boot needs traps to ATF to > read them. > Some fuses can read from S400 API and others are from FSB. > Also support program some fuses via S400 API > Signed-off-by: Ye Li

[Patch V3 43/44] arm: dts: add i.MX8ULP dtsi

2021-07-20 Thread sbabic
> From: Peng Fan > Add i.MX8ULP dtsi > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich,

[Patch V3 03/44] arm: imx: sys_proto: move boot mode define to common header

2021-07-20 Thread sbabic
> From: Peng Fan > These defines could be reused by i.MX8ULP, so move them > to common header. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[Patch V3 29/44] arm: imx8ulp: release trdc and assign lpav from RTD to APD

2021-07-20 Thread sbabic
> From: Peng Fan > Rlease LPAV from RTD to APD > Release gpu2D/3D to APD > Set TRDC MBC2 MEM1 for iomuxc0 access > Since upower depends AP/M33 SW to configure IOMUX for its PMIC i2c > and MODE pins. we have to open iomuxc0 access for A35 core (domain 7) > in single boot. > Signed-off-by: Peng Fan

[Patch V3 44/44] arm: imx: add i.MX8ULP EVK support

2021-07-20 Thread sbabic
> From: Peng Fan > Add i.MX8ULP EVK basic support, support SD/I2C/ENET/LPUART > Log as below: I would keep some debug info for now, and after we move > to be stable and production launch, we could drop that. > U-Boot SPL 2021.07-rc4-00164-gb800e19a6b (Jun 29 2021 - 10:23:30 +0800) > Normal Boot >

[Patch V3 39/44] imx8ulp: Add workaround for eMMC boot

2021-07-20 Thread sbabic
> From: Ye Li > When booting from boot part1/2, the image offset should be 0, but > ROM has a bug to return 0x8000. Has to workaround the issue before > ROM fix it. > Use a ROM function to know boot from emmc boot part or user part > So we can set the image offset accordingly. > Signed-off-by: Ye

[Patch V3 40/44] imx8ulp: move struct mu_type to common header

2021-07-20 Thread sbabic
> From: Peng Fan > Move struct mu_type to common header to make it reusable by upower and > S400 > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering

[Patch V3 35/44] arm: imx8ulp: add iomuxc support

2021-07-20 Thread sbabic
> From: Peng Fan > Add i.MX8ULP iomuxc support > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB

[Patch V3 41/44] imx8ulp: add upower api support

2021-07-20 Thread sbabic
> From: Peng Fan > Add upower api support, this is modified from upower firmware exported > package. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering

[Patch V3 17/44] drivers: mmc: fsl_esdhc_imx: support i.MX8ULP

2021-07-20 Thread sbabic
> From: Peng Fan > i.MX8ULP reuse same SDHC IP as i.MX8M, so follow i.MX8M code logic. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[Patch V3 07/44] arm: imx8: Move container parser and image to mach-imx common folder

2021-07-20 Thread sbabic
> From: Ye Li > Since we will re-use the container parser on imx8ulp, move the codes > to mach-imx > Signed-off-by: Ye Li Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering

[Patch V3 04/44] arm: imx8ulp: support print cpu info

2021-07-20 Thread sbabic
> From: Peng Fan > Support print cpu info. the clock function has not been added, it will > be added in following patches. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[Patch V3 15/44] driver: serial: fsl_lpuart: support i.MX8ULP

2021-07-20 Thread sbabic
> From: Peng Fan > i.MX8ULP lpuart has same register layout as i.MX7ULP and i.MX8 > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[Patch V3 05/44] imx: imx8ulp: add get reset cause

2021-07-20 Thread sbabic
> From: Peng Fan > Add get reset cause function to show what triggerred reset. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing

[Patch V3 24/44] drivers: misc: imx8ulp: Update S400 API for release RDC

2021-07-20 Thread sbabic
> From: Ye Li > The RDC API is updated to add a field for XRDC or TRDC > Signed-off-by: Ye Li Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director:

[Patch V3 01/44] arm: imx: add i.MX8ULP basic Kconfig option

2021-07-20 Thread sbabic
> From: Peng Fan > Add i.MX8ULP related basic Kconfig option, which will be used later. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[Patch V3 31/44] arm: imx8ulp: Probe the S400 MU device in arch init

2021-07-20 Thread sbabic
> From: Ye Li > Need probe the S400 MU device in arch_cpu_init_dm, so we can use > S400 API in u-boot > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[Patch V3 32/44] arm: iMX8ULP: Add boot device relevant functions

2021-07-20 Thread sbabic
> From: Ye Li > Read from ROM API to get current boot device. > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[Patch V3 08/44] arm: imx8: Move container image header file to mach-imx

2021-07-20 Thread sbabic
> From: Ye Li > Since the container is shared among i.MX platforms, move its header file > to mach-imx > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[Patch V3 38/44] imx8ulp: Use DGO_GP5 to get boot config

2021-07-20 Thread sbabic
> From: Ye Li > Since CMC1 MR0 only reflects high 16 bits boot cfg used for AP domian, > it does not connect to low 16 bits for RTD. So we can't get the correct > boot mode. > Change to use DGO_GP5 of SEC_SIM which is set by ROM. > Signed-off-by: Ye Li Applied to u-boot-imx, master, thanks !

[Patch V3 10/44] arm: imx8ulp: add container support

2021-07-20 Thread sbabic
> From: Ye Li > i.MX8ULP support using ROM API to load container image, > it use same ROM API as i.MX8MN/MP, and use same container format > as i.MX8QM/QXP. > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[Patch V3 25/44] drivers: misc: s400_api: Update API for fuse read and write

2021-07-20 Thread sbabic
> From: Ye Li > Add API to support fuse read and write > Signed-off-by: Ye Li Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB

[Patch V3 12/44] driver: misc: Add MU and S400 API to communicate with Sentinel

2021-07-20 Thread sbabic
> From: Ye Li > Add MU driver and S400 API. Need enable MISC driver to work > Signed-off-by: Ye Li Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing

[PATCH v3 2/2] imx: imx8mm: Add support for Kontron Electronics SL/BL i.MX8M-Mini boards (N801x)

2021-07-20 Thread sbabic
> From: Frieder Schrempf > The Kontron SoM-Line i.MX8MM (N801x) by Kontron Electronics GmbH is a SoM > module with an i.MX8M-Mini SoC, 1/2/4 GB LPDDR4 RAM, SPI NOR, eMMC and PMIC. > The matching evaluation boards (Board-Line) have 2 Ethernets, USB 2.0, > HDMI/LVDS, > SD card, CAN, RS485 and much

[Patch V3 19/44] arm: imx8ulp: Enable full L2 cache in SPL

2021-07-20 Thread sbabic
> From: Ye Li > SRAM2 is half L2 cache and default to SRAM after system boot. > To enable the full l2 cache (512KB), it needs to reset A35 to make > the change happen. > So re-implement the jump entry function in SPL: > 1. configure the core0 reset vector to entry (ATF) > 2. enable the L2 full

[Patch V3 18/44] arm: imx8ulp: soc: Change to use CMC1 to get bootcfg

2021-07-20 Thread sbabic
> From: Ye Li > CMC1 also has a MR register for bootcfg > Signed-off-by: Ye Li Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB

[Patch V3 28/44] arm: imx8ulp: add trdc release request

2021-07-20 Thread sbabic
> From: Peng Fan > Add TRDC release request, then we could configure resources to be > accessible by A35 Domain. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software

[Patch V3 22/44] drivers: misc: s400_api: Update S400_SUCCESS_IND to 0xd6

2021-07-20 Thread sbabic
> From: Ye Li > According to latest S400 API doc, the the success indicate value is > changed to 0xd6. So update the driver codes. > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[Patch V3 37/44] imx8ulp: soc: correct reset cause

2021-07-20 Thread sbabic
> From: Peng Fan > The CMC1 SRS reflects the current reset cause, not SSRS. > Then you could get "Reset cause: WARM-WDG" when issue reset in U-Boot. > Reviewed-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[Patch V3 13/44] net: fec_mxc: support i.MX8ULP

2021-07-20 Thread sbabic
> From: Peng Fan > Support i.MX8ULP in fec_mxc > Signed-off-by: Peng Fan > Reviewed-by: Ramon Fried Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing

[PATCH v3 1/2] imx: imx6ul: Add support for Kontron Electronics SL/BL i.MX6UL/ULL boards (N63xx/N64xx)

2021-07-20 Thread sbabic
> From: Frieder Schrempf > This adds support for i.MX6UL/ULL-based evaluation kits with SoMs by > Kontron Electronics GmbH. > Currently there are the following SoM flavors (SoM-Line): > * N6310: SOM with i.MX6UL-2, 256MB RAM, 256MB SPI NAND > * N6311: SOM with i.MX6UL-2, 512MB RAM, 512MB SPI

[Patch V3 27/44] arm: imx8ulp: add rdc support

2021-07-20 Thread sbabic
> From: Peng Fan > There is xrdc inside i.MX8ULP, we need to configure permission to make > sure AP non-secure world could access the resources. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[Patch V3 06/44] arm: imx: basic i.MX8ULP support

2021-07-20 Thread sbabic
> From: Peng Fan > Add basic i.MX8ULP support > For the MMU part, Using a simple way the calculate the MMU size to avoid > default heavy calcaulation. And align address and size in the table > settings to 2MB or 4GB as much as possible. So we can reduce the 4K page > allocations in MMU table

  1   2   >