Re: [PATCH u-boot-marvell] tools: kwboot: Do not send magic seq when changing baudrate back to 115200

2021-11-02 Thread Stefan Roese
On 01.11.21 14:00, Marek Behún wrote: From: Pali Rohár After successful transfer of whole image only two things can happen: - BootROM starts execution of data block, which changes UART baudrate back to 115200 Bd, - board crashes and causes CPU reset In both cases UART baudrate is reset to

Re: [PATCH u-boot-marvell 5/5] tools: kwboot: Do not use stack when setting baudrate back to default value

2021-11-02 Thread Stefan Roese
On 27.10.21 20:57, Marek Behún wrote: From: Pali Rohár The ARM code we inject into the image to change baudrate back to the default value of 115200 Baud, which is run after successful UART transfer of the whole image, cannot use stack as at this stage stack pointer is not initialized yet.

Re: [PATCH u-boot-marvell 4/5] tools: kwboot: Replace ARM mov + movt instruction pair by mov + orr

2021-11-02 Thread Stefan Roese
On 27.10.21 20:57, Marek Behún wrote: From: Pali Rohár Older Armada SoCs have custom ARMv5te compatible core which does not support movt instruction. So replace mov + movt instruction pair used for immediate move construction by mov + orr instructions which are supported also by ARMv5te.

Re: [PATCH u-boot-marvell 3/5] tools: kwboot: Increase delay after changing baudrate in ARM code

2021-11-02 Thread Stefan Roese
On 27.10.21 20:57, Marek Behún wrote: From: Pali Rohár Increase loop cycles from 60 to 2998272, which should increase delay from 1ms to about 5ms on 1200 MHz CPU. The Number 2998272 was chosen as the nearest value around 300 which can be encoded into one ARM mov instruction. It avoids

Re: [PATCH u-boot-marvell 2/5] tools: kwboot: Do not call tcdrain() after each sent packet

2021-11-02 Thread Stefan Roese
On 27.10.21 20:56, Marek Behún wrote: From: Pali Rohár Kwboot puts each xmodem packet to kernel queue, then waits until all bytes of that packet are transmitted over UART and then waits for xmodem reply until it is received into kernel queue. If some reply is received during the time we are

Re: [PATCH u-boot-marvell 1/5] tools: kwboot: Fix sending retry of last header packet

2021-11-02 Thread Stefan Roese
On 27.10.21 20:56, Marek Behún wrote: From: Pali Rohár After the trasfer of last header packet, it is possible that baudrate change pattern is received, and also that NAK byte is received so that the packet should be sent again. Thus we should not clear the baudrate change state when sending

[PATCH 2/2] board: traverse: add initial Ten64 support

2021-11-02 Thread Mathew McBride
The Ten64 is a networking-oriented MiniITX board using the NXP LS1088A SoC. This patch provides the bare minimum to support Ten64 boards under U-Boot for distroboot. Some related drivers have not yet been submitted and this basic support lacks some of the opinionated defaults provided by our

[PATCH 1/2] board: traverse: add Ten64 board controller driver

2021-11-02 Thread Mathew McBride
Traverse Technologies Ten64 family boards use a microcontroller to control low level board functions like startup and reset, as well as holding details such as the board MAC address. Communication between the CPU and microcontroller is via I2C. To keep the driver structure clean between the

[PATCH 0/2] Initial Traverse Ten64 board support

2021-11-02 Thread Mathew McBride
This patchset adds initial support for the Traverse Ten64 family, which is a networking focused Mini-ITX board using NXP's LS1088A. This patchset is the bare minimum necessary to get a system running on U-Boot and booting via distroboot/EFI. There are still a few more drivers to come, such as

Re: [PATCH v5 06/26] arm: qemu: Add a devicetree file for qemu_arm64

2021-11-02 Thread François Ozog
Hi Simon Le mer. 3 nov. 2021 à 02:30, Simon Glass a écrit : > Hi Tom, > > On Tue, 2 Nov 2021 at 11:28, Tom Rini wrote: > > > > On Tue, Nov 02, 2021 at 09:00:53AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 1 Nov 2021 at 12:07, Tom Rini wrote: > > > > > > > > On Mon, Nov 01,

Re: [PATCH v5 00/26] fdt: Make OF_BOARD a boolean option

2021-11-02 Thread François Ozog
Hi Simon Le mer. 3 nov. 2021 à 02:21, Simon Glass a écrit : > Hi François, > > On Wed, 27 Oct 2021 at 14:07, François Ozog > wrote: > > > > Hi Simon > > > > Le mer. 27 oct. 2021 à 20:23, Simon Glass a écrit : > >> > >> Hi François, > >> > >> On Wed, 27 Oct 2021 at 09:14, François Ozog >

Re: [PATCH v5 02/26] doc: Add documentation about devicetree usage

2021-11-02 Thread Simon Glass
Hi Ilias, On Tue, 2 Nov 2021 at 09:38, Ilias Apalodimas wrote: > > Hi Simon, > > [...] > > > > > > > > > > > > > > > > Why me? Perhaps Linaro could take this on instead of working in a > > > > > > separate tool and domain? You guys could really pull things together > > > > > > and reduce the

Re: [RESEND PATCH] usb: mtu3: flush cache for the first GPD when allocate GPD ring

2021-11-02 Thread Chunfeng Yun
Hi Marek, On Thu, 2021-10-21 at 13:33 +0800, Chunfeng Yun wrote: > When allocate the GPD ring, and tell its address to the controller, > then > the driver starts or resumes the QMU, the controller will try to > access > the first GPD, so need flush the first one to avoid wrong GPD status. > >

[PATCH u-boot-marvell 11/11] fdt_support: Add fdt_delete_disabled_nodes() and use in Turris MOX

2021-11-02 Thread Marek Behún
From: Marek Behún Move Turris MOX specific remove_disabled_nodes() to fdt_support with name fdt_delete_disabled_nodes(), so that others can potentially use it. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_mox/turris_mox.c | 20 +--- common/fdt_support.c |

[PATCH u-boot-marvell 09/11] phy: marvell: a3700: Convert to official DT bindings in COMPHY driver

2021-11-02 Thread Marek Behún
From: Pali Rohár Convert A3720 common PHY driver to official DT bindings. This puts us closer to be able to synchronize A3720 device-trees with those from Linux. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún --- arch/arm/dts/armada-3720-espressobin.dts | 21 +---

[PATCH u-boot-marvell 10/11] arm: mvebu: turris_mox: Fix unstable board topology reading

2021-11-02 Thread Marek Behún
From: Marek Behún The pre-relocation board topology reading in board_fix_fdt() is unstable: sometimes wrong data are read from the SPI bus. This is due to wrong order of SPI bus configuration instructions: we first need to set the pins to SPI mode, and only after that configure the bus. Also

[PATCH u-boot-marvell 07/11] arm: mvebu: turris_mox: Find DT nodes by compatible or alias instead of path

2021-11-02 Thread Marek Behún
From: Marek Behún It is better to find DT nodes by compatible strings or aliases instead of path. There were issues with Linux some DTBs having different names of some nodes, e.g. internal-regs instead of internal-regs@d000 This should be a generic fix for such issues. Also since

[PATCH u-boot-marvell 08/11] arm: mvebu: turris_mox: Enable eth1 in U-Boot if a network module is present

2021-11-02 Thread Marek Behún
From: Pali Rohár Enable eth1 node in U-Boot's device-tree if a network module (SFP, Topaz or Peridot) is detected. This is required for proper detection of eth1 comphy in a3700 comphy driver by the following patches. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún ---

[PATCH u-boot-marvell 06/11] fdt_support: Add some useful functions

2021-11-02 Thread Marek Behún
From: Marek Behún Add functions fdt_node_offset_by_pathf(), fdt_create_phandle_by_pathf(), fdt_set_status_by_pathf() to get node offset, get/create node phandle and set status for node given by path/alias formatted with sprintf. Add functions fdt_create_phandle_by_compatible(),

[PATCH u-boot-marvell 04/11] fdt_support: Remove FDT_STATUS_FAIL_ERROR_CODE

2021-11-02 Thread Marek Behún
From: Marek Behún Since no one uses this feature and I am not aware of any parsers of this in Linux, remove it. Signed-off-by: Marek Behún --- arch/arm/cpu/armv7/ls102xa/fdt.c | 6 +++--- board/gateworks/gw_ventana/common.c | 3 +-- board/kontron/sl28/sl28.c| 2

[PATCH u-boot-marvell 05/11] fdt_support: Fix comment for fdt_create_phandle()

2021-11-02 Thread Marek Behún
From: Marek Behún This function does not necessarily create a new phandle. If a phandle exists, no new phandle is created. Signed-off-by: Marek Behún --- common/fdt_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index

[PATCH u-boot-marvell 03/11] fdt_support: Remove fdt_alloc_phandle() in favor of fdt_generate_phandle()

2021-11-02 Thread Marek Behún
From: Marek Behún Commit f0921f5098d ("fdt: Sync up to the latest libfdt") introduced fdt_generate_phandle() in libfdt, making fdt_alloc_phandle() obsolete in fdt_support. Signed-off-by: Marek Behún --- board/freescale/lx2160a/eth_lx2160aqds.c | 8 +--

[PATCH u-boot-marvell 02/11] treewide: Use fdt_create_phandle() where appropriate

2021-11-02 Thread Marek Behún
From: Marek Behún Replace fdt_alloc_phandle() with subsequent fdt_set_phandle() by fdt_create_phandle(). Signed-off-by: Marek Behún --- board/Marvell/octeon_ebb7304/board.c | 5 ++--- drivers/misc/fsl_portals.c | 10 -- 2 files changed, 6 insertions(+), 9 deletions(-) diff

[PATCH u-boot-marvell 01/11] include/linux/byteorder: Fix compilation of __constant_cpu_to_be32()

2021-11-02 Thread Marek Behún
From: Pali Rohár The macro __constant_cpu_to_be32() uses ___constant_swab32(), which for some reason is not defined and causes the following error during compilation: include/linux/byteorder/little_endian.h:28:52: warning: implicit declaration of function ‘___constant_swab32’; did you

[PATCH u-boot-marvell 00/11] Some mvebu comphy + mox + fdt_support changes

2021-11-02 Thread Marek Behún
From: Marek Behún Hello Stefan, Pali prepared patches that convert A3720 comphy driver to use Linux' DT bindings. (Yes, I have patches that convert the whole driver into using SMC calls into ATF, but haven't found time yet to rebase them since last year, and Pali has done this in the meantime

[PATCH] efi_loader: use byteshift unaligned access helper

2021-11-02 Thread Masahisa Kojima
Calling unaligned/access-ok.h version of put_unaligned_le64() causes data abort in arm 32-bit QEMU. The similar issue also occurs in linux kernel, unaligned/access-ok.h is no longer used in linux kernel[1]. This commit uses the unaligned/be_byteshift.h and unaligned/le_byteshift.h helper instead

Re: [PATCH v5 06/26] arm: qemu: Add a devicetree file for qemu_arm64

2021-11-02 Thread Simon Glass
Hi Tom, On Tue, 2 Nov 2021 at 10:57, Tom Rini wrote: > > On Tue, Nov 02, 2021 at 08:59:45AM -0600, Simon Glass wrote: > > Hi François, > > > > On Mon, 1 Nov 2021 at 11:33, François Ozog wrote: > > > > > > Hi Simon > > > > > > Le lun. 1 nov. 2021 à 17:58, Simon Glass a écrit : > > >> > > >> Hi

Re: [PATCH v5 06/26] arm: qemu: Add a devicetree file for qemu_arm64

2021-11-02 Thread Simon Glass
Hi Tom, On Tue, 2 Nov 2021 at 11:28, Tom Rini wrote: > > On Tue, Nov 02, 2021 at 09:00:53AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 1 Nov 2021 at 12:07, Tom Rini wrote: > > > > > > On Mon, Nov 01, 2021 at 06:33:35PM +0100, François Ozog wrote: > > > > Hi Simon > > > > > > > > Le

Re: [PATCH v5 00/26] fdt: Make OF_BOARD a boolean option

2021-11-02 Thread Simon Glass
Hi Mark, On Wed, 27 Oct 2021 at 16:30, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Wed, 27 Oct 2021 12:23:21 -0600 > > > > Hi François, > > > > On Wed, 27 Oct 2021 at 09:14, François Ozog > > wrote: > > > > > > > > > > > > On Wed, 27 Oct 2021 at 16:08, Simon Glass wrote: > > >> >

Re: [PATCH v5 00/26] fdt: Make OF_BOARD a boolean option

2021-11-02 Thread Simon Glass
Hi François, On Wed, 27 Oct 2021 at 14:07, François Ozog wrote: > > Hi Simon > > Le mer. 27 oct. 2021 à 20:23, Simon Glass a écrit : >> >> Hi François, >> >> On Wed, 27 Oct 2021 at 09:14, François Ozog wrote: >> > >> > >> > >> > On Wed, 27 Oct 2021 at 16:08, Simon Glass wrote: >> >> >> >> Hi

[PATCH] pci: Add standard PCIe ECAM macros

2021-11-02 Thread Pali Rohár
Lot of PCIe controllers are using ECAM addressing. So add common ECAM macros into U-Boot's pci.h header file which can be suitable for most PCI controller drivers. Replace custom ECAM address macros in every PCI controller driver by new ECAM macros from U-Boot's pci.h header file. Similar macros

[PATCH] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-02 Thread Ariel D'Alessandro
Add support for iMX8MN VAR-SOM-MX8M-NANO board. Enables support for: - 1GiB DDR4 RAM - 16 GiB eMMC - SD card - Gigabit ethernet - USBOTG1 peripheral - fastboot Signed-off-by: Ariel D'Alessandro --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx8mn-var-som-u-boot.dtsi

Re: [PATCH 1/2] test/dm: fix watchdog test

2021-11-02 Thread Simon Glass
Hi Heinrich, On Sun, 31 Oct 2021 at 23:21, Heinrich Schuchardt wrote: > > > > Am 1. November 2021 00:46:49 MEZ schrieb Simon Glass : > >On Thu, 28 Oct 2021 at 04:16, Heinrich Schuchardt > > wrote: > >> > >> Avoid a build failure for CONFIG_WDT_GPIO=n. > >> > >> We need this setting to test

Re: rk3399-gru-kevin: issues on bringup

2021-11-02 Thread Simon Glass
Hi Alpher, On Mon, 1 Nov 2021 at 17:25, Alper Nebi Yasak wrote: > > Hi, > > I've had some recent success with my gru-kevin and wanted to update you > on this. Long story short, I can boot from SPI flash and have the > display, keyboard, eMMC, microSD card, USB disks all work (however with > some

Re: [PATCH 1/2] test/dm: fix watchdog test

2021-11-02 Thread Heinrich Schuchardt
On 11/1/21 06:21, Heinrich Schuchardt wrote: Am 1. November 2021 00:46:49 MEZ schrieb Simon Glass : On Thu, 28 Oct 2021 at 04:16, Heinrich Schuchardt wrote: Avoid a build failure for CONFIG_WDT_GPIO=n. We need this setting to test watchdog based system reset. watchdog-based

[PATCH v2 2/2] sandbox: fix sandbox_wdt_expire_now()

2021-11-02 Thread Heinrich Schuchardt
With CONFIG_SYSRESET_WATCHDOG=y the sandbox can use a watchdog based system reset. To make this work calling sandbox_wdt_expire_now() must lead to a reset. With this change we can test the development suggested in [PATCH 0/4] Improved sysreset/watchdog uclass integration

[PATCH v2 0/2] sandbox: enable testing SYSRESET_WATCHDOG

2021-11-02 Thread Heinrich Schuchardt
With CONFIG_SYSRESET_WATCHDOG=y the sandbox can use a watchdog based system reset. To make this work calling sandbox_wdt_expire_now() must lead to a reset. Further we need CONFIG_WDT_GPIO=n to actually call the right watchdog. Adjust the watchdog test to avoid a build error. With this change we

[PATCH v2 1/2] test/dm: fix watchdog test

2021-11-02 Thread Heinrich Schuchardt
For successful execution of the watchdog test we need both the GPIO as well as the SANDBOX watchdog. Avoid a build failure for CONFIG_WDT_GPIO=n. Signed-off-by: Heinrich Schuchardt --- v2: move changes to Makefile --- test/dm/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH v6 2/2] board: brcm-ns3: Load netXtreme firmware

2021-11-02 Thread Roman Bacik
From: Bharat Gooty Load NetXtreme firmware in board_init when BNXT_ETH is selected. Signed-off-by: Bharat Gooty Signed-off-by: Roman Bacik --- (no changes since v4) Changes in v4: - remove bnxt commands - load bnxt firmware in board_init Changes in v3: - remove commands set/get mac/speed

RE: [PATCH v5 1/2] net: brcm: netXtreme driver

2021-11-02 Thread Roman Bacik
Hi Marek, > -Original Message- > From: Marek Behún > Sent: Tuesday, November 2, 2021 5:07 AM > To: Roman Bacik > Cc: U-Boot Mailing List ; Bharat Gooty > ; Joe Hershberger > ; Ramon Fried > Subject: Re: [PATCH v5 1/2] net: brcm: netXtreme driver > > On Mon, 1 Nov 2021 13:21:44 -0700 >

Re: [PATCH v7] arm: add initial support for the Phytium Pomelo Board

2021-11-02 Thread Rob Herring
On Mon, Sep 13, 2021 at 12:59 AM wrote: > > From: weichangzheng > > This adds platform code and the device tree for the Phytium Pomelo Board. > The initial support comprises the UART and the PCIE. > > Signed-off-by: weichangzheng > Changes since v1: > updated to DT > Changes since v2: >

Re: [PATCH v5 06/26] arm: qemu: Add a devicetree file for qemu_arm64

2021-11-02 Thread Tom Rini
On Tue, Nov 02, 2021 at 09:00:53AM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 1 Nov 2021 at 12:07, Tom Rini wrote: > > > > On Mon, Nov 01, 2021 at 06:33:35PM +0100, François Ozog wrote: > > > Hi Simon > > > > > > Le lun. 1 nov. 2021 à 17:58, Simon Glass a écrit : > > > > > > > Hi Peter, >

[PATCH v2] pinctrl: Add Apple pinctrl driver

2021-11-02 Thread Mark Kettenis
This driver supports both pin muxing and GPIO support for the pin control logic found on Apple SoCs. Signed-off-by: Mark Kettenis --- ChangeLog: v2: - Enable driver on Apple hardware MAINTAINERS | 1 + arch/arm/Kconfig | 2 +

Re: [PATCH v5 06/26] arm: qemu: Add a devicetree file for qemu_arm64

2021-11-02 Thread Tom Rini
On Tue, Nov 02, 2021 at 08:59:45AM -0600, Simon Glass wrote: > Hi François, > > On Mon, 1 Nov 2021 at 11:33, François Ozog wrote: > > > > Hi Simon > > > > Le lun. 1 nov. 2021 à 17:58, Simon Glass a écrit : > >> > >> Hi Peter, > >> > >> On Mon, 1 Nov 2021 at 04:48, Peter Maydell > >> wrote: >

Re: [PATCH v1] env: setenv add resolve value option

2021-11-02 Thread Tom Rini
On Tue, Nov 02, 2021 at 03:19:14PM +0800, Artem Lapkin wrote: > Add possibility setup env variable with additional resolving vars inside > value. > > Usage examples > > => setenv a hello > => setenv b world > => setenv c '${a} ${b}' > => setenv -r d '${c}! ${a}...' > => printenv d > d=hello

RE: [PATCH v4] driver: spi: add bcm iproc qspi support.

2021-11-02 Thread Roman Bacik
Hi Jagan, > -Original Message- > From: Jagan Teki > Sent: Monday, November 1, 2021 10:07 PM > To: Roman Bacik > Cc: U-Boot Mailing List ; Rayagonda Kokatanur > ; Bharat Gooty > ; Vignesh R > Subject: Re: [PATCH v4] driver: spi: add bcm iproc qspi support. > > On Tue, Nov 2, 2021 at

Re: [PATCH 0/2] add selftest for EFI_TCG2_PROTOCOL and Measured Boot

2021-11-02 Thread Ilias Apalodimas
Hi Simon. On Tue, 2 Nov 2021 at 16:55, Simon Glass wrote: > > Hi Masahisa, > > On Tue, 2 Nov 2021 at 02:03, Masahisa Kojima > wrote: > > > > Hi Simon, > > > > On Mon, 25 Oct 2021 at 04:54, Simon Glass wrote: > > > > > > Hi Masahisa, > > > > > > On Fri, 22 Oct 2021 at 05:23, Masahisa Kojima >

[scan-ad...@coverity.com: New Defects reported by Coverity Scan for Das U-Boot]

2021-11-02 Thread Tom Rini
There's a whole lot of new defects here because I noticed yesterday that there was a new stable version of the scanner, after running yesterdays normal post-RC scan. So here's a new scan done on current master. - Forwarded message from scan-ad...@coverity.com - Date: Tue, 02 Nov 2021

Re: [PATCH v6 06/12] test/py: efi_capsule: add image authentication test

2021-11-02 Thread Ilias Apalodimas
On Tue, 2 Nov 2021 at 16:58, Simon Glass wrote: > > On Mon, 1 Nov 2021 at 18:56, AKASHI Takahiro > wrote: > > > > Add a couple of test cases against capsule image authentication > > for capsule-on-disk, where only a signed capsule file with the verified > > signature will be applied to the

Re: [PATCH 00/31] passage: Define a standard for firmware data flow

2021-11-02 Thread François Ozog
Hi Simon, On Tue, 2 Nov 2021 at 15:59, Simon Glass wrote: > Hi François, > > On Mon, 1 Nov 2021 at 02:53, François Ozog > wrote: > > > > Hi Simon, > > > > this seems a great endeavor. I'd like to better understand the scope of > it. > > > > Is it to be used as part of what could become a

Re: [PATCH v5 02/26] doc: Add documentation about devicetree usage

2021-11-02 Thread Ilias Apalodimas
Hi Simon, [...] > > > > > > > > > > > > Why me? Perhaps Linaro could take this on instead of working in a > > > > > separate tool and domain? You guys could really pull things together > > > > > and reduce the fragmentation, if you took it on. > > > > > > > > > > Honestly it is hard enough to

Re: [PATCH v5 02/11] tools: mkeficapsule: add firmwware image signing

2021-11-02 Thread Mark Kettenis
> From: Simon Glass > Date: Tue, 2 Nov 2021 08:56:50 -0600 > > Hi Takahiro, > > > > - can we just build the tool always? > > > > This is one of my questions. > > Why do you want to do so while there are bunch of tools that are > > not always built. > > Because I think all tools should be built

Re: [PATCH 00/16] fdt: Make OF_BOARD a boolean option

2021-11-02 Thread Simon Glass
Hi François, On Thu, 28 Oct 2021 at 10:26, François Ozog wrote: > > Hi Simon > > Le jeu. 28 oct. 2021 à 17:44, Simon Glass a écrit : >> >> Hi François, >> >> On Thu, 28 Oct 2021 at 08:50, François Ozog wrote: >> > >> > Hi Simon >> > >> > Le jeu. 28 oct. 2021 à 16:30, Simon Glass a écrit : >>

Re: [PATCH v5 06/26] arm: qemu: Add a devicetree file for qemu_arm64

2021-11-02 Thread Simon Glass
Hi Tom, On Mon, 1 Nov 2021 at 12:07, Tom Rini wrote: > > On Mon, Nov 01, 2021 at 06:33:35PM +0100, François Ozog wrote: > > Hi Simon > > > > Le lun. 1 nov. 2021 à 17:58, Simon Glass a écrit : > > > > > Hi Peter, > > > > > > On Mon, 1 Nov 2021 at 04:48, Peter Maydell > > > wrote: > > > > > > >

Re: [PATCH v5 06/26] arm: qemu: Add a devicetree file for qemu_arm64

2021-11-02 Thread Simon Glass
Hi François, On Mon, 1 Nov 2021 at 11:33, François Ozog wrote: > > Hi Simon > > Le lun. 1 nov. 2021 à 17:58, Simon Glass a écrit : >> >> Hi Peter, >> >> On Mon, 1 Nov 2021 at 04:48, Peter Maydell wrote: >> > >> > On Tue, 26 Oct 2021 at 01:33, Simon Glass wrote: >> > > >> > > Add this file,

Re: [PATCH 00/16] fdt: Make OF_BOARD a boolean option

2021-11-02 Thread Simon Glass
Hi Ilias, On Mon, 1 Nov 2021 at 05:05, Ilias Apalodimas wrote: > > Hi Simon, > > On Thu, 28 Oct 2021 at 05:51, Simon Glass wrote: > > > > Hi Ilias, > > > > On Tue, 26 Oct 2021 at 00:46, Ilias Apalodimas > > wrote: > > > > > > Hi Simon, > > > > > > A bit late to the party, sorry! > > > > (Did

Re: [PATCH v2] arm: xea: Modify board code to generate single binary u-boot

2021-11-02 Thread Simon Glass
On Mon, 25 Oct 2021 at 03:12, Lukasz Majewski wrote: > > This change provides the possibility to build XEA (imx287 based) board > U-Boot as a single binary (without support for CONFIG_SPL_FRAMEWORK). > > The generated u-boot.sb can be used in the factory environment to for > example perform

Re: [PATCH 00/31] passage: Define a standard for firmware data flow

2021-11-02 Thread Simon Glass
Hi François, On Mon, 1 Nov 2021 at 02:53, François Ozog wrote: > > Hi Simon, > > this seems a great endeavor. I'd like to better understand the scope of it. > > Is it to be used as part of what could become a U-Boot entry ABI scheme? By > that I mean giving some fixed aspects > to U-Boot entry

Re: [PATCH v6 06/12] test/py: efi_capsule: add image authentication test

2021-11-02 Thread Simon Glass
On Mon, 1 Nov 2021 at 18:56, AKASHI Takahiro wrote: > > Add a couple of test cases against capsule image authentication > for capsule-on-disk, where only a signed capsule file with the verified > signature will be applied to the system. > > Due to the difficulty of embedding a public key (esl

Re: [PATCH v1] env: setenv add resolve value option

2021-11-02 Thread Simon Glass
Hi Artem, On Tue, 2 Nov 2021 at 01:19, Artem Lapkin wrote: > > Add possibility setup env variable with additional resolving vars inside > value. > > Usage examples > > => setenv a hello > => setenv b world > => setenv c '${a} ${b}' > => setenv -r d '${c}! ${a}...' > => printenv d > d=hello

Re: [PATCH v6 12/12] (RFC) efi_loader, dts: add public keys for capsules to device tree

2021-11-02 Thread Simon Glass
Hi Takahiro, On Mon, 1 Nov 2021 at 18:56, AKASHI Takahiro wrote: > > By specifying CONFIG_EFI_CAPSULE_KEY_PATH, the build process will > automatically insert the given key into the device tree. > Otherwise, users are required to do so manually, possibly, with > the utility script, fdtsig.sh. > >

Re: [PATCH v6 10/12] test/py: efi_capsule: check the results in case of CAPSULE_AUTHENTICATE

2021-11-02 Thread Simon Glass
On Mon, 1 Nov 2021 at 18:56, AKASHI Takahiro wrote: > > Before the capsule authentication is supported, this test script works > correctly, but with the feature enabled, most tests will fail due to > unsigned capsules. > So check the results depending on CAPSULE_AUTHENTICATE or not. > >

Re: [PATCH v6 08/12] test/py: efi_capsule: align with the syntax change of mkeficapsule

2021-11-02 Thread Simon Glass
On Mon, 1 Nov 2021 at 18:56, AKASHI Takahiro wrote: > > Since the syntax of mkeficapsule was changed in the previous commit, > we need to modify command line arguments in a pytest script. > > Signed-off-by: AKASHI Takahiro > --- > test/py/tests/test_efi_capsule/conftest.py | 4 ++-- > 1 file

Re: [PATCH v6 07/12] tools: mkeficapsule: allow for specifying GUID explicitly

2021-11-02 Thread Simon Glass
Hi Takahiro, On Mon, 1 Nov 2021 at 18:56, AKASHI Takahiro wrote: > > The existing options, "--fit" and "--raw," are only used to put a proper > GUID in a capsule header, where GUID identifies a particular FMP (Firmware > Management Protocol) driver which then would handle the firmware binary in

Re: [PATCH v5 05/11] test/py: efi_capsule: add image authentication test

2021-11-02 Thread Simon Glass
Hi Takahiro, On Thu, 28 Oct 2021 at 23:25, AKASHI Takahiro wrote: > > On Thu, Oct 28, 2021 at 09:17:49PM -0600, Simon Glass wrote: > > Hi Takahiro, > > > > On Thu, 28 Oct 2021 at 00:25, AKASHI Takahiro > > wrote: > > > > > > Add a couple of test cases against capsule image authentication > > >

Re: [PATCH v6 02/12] tools: mkeficapsule: rework the code a little bit

2021-11-02 Thread Simon Glass
On Mon, 1 Nov 2021 at 18:55, AKASHI Takahiro wrote: > > Abstract common routines to make the code easily understandable. > No functional change. > > Signed-off-by: AKASHI Takahiro > --- > tools/mkeficapsule.c | 219 ++- > 1 file changed, 155

Re: [PATCH 5/5] arm: mvebu: Espressobin: Use new API for setting default env at runtime

2021-11-02 Thread Simon Glass
On Sun, 31 Oct 2021 at 14:15, Pali Rohár wrote: > > On Thursday 28 October 2021 05:28:10 Marek Behún wrote: > > diff --git a/configs/mvebu_espressobin-88f3720_defconfig > > b/configs/mvebu_espressobin-88f3720_defconfig > > index 3a69954fcd..3dc6da04f8 100644 > > ---

Re: [PATCH v5 04/11] doc: update UEFI document for usage of mkeficapsule

2021-11-02 Thread Simon Glass
Hi Takahiro, On Thu, 28 Oct 2021 at 23:20, AKASHI Takahiro wrote: > > On Thu, Oct 28, 2021 at 09:17:48PM -0600, Simon Glass wrote: > > Hi Takahiro, > > > > On Thu, 28 Oct 2021 at 00:25, AKASHI Takahiro > > wrote: > > > > > > Now we can use mkeficapsule command instead of EDK-II's script > > >

Re: [PATCH v5 02/11] tools: mkeficapsule: add firmwware image signing

2021-11-02 Thread Simon Glass
Hi Takahiro, On Thu, 28 Oct 2021 at 22:56, AKASHI Takahiro wrote: > > On Thu, Oct 28, 2021 at 09:17:45PM -0600, Simon Glass wrote: > > Hi Takahiro, > > > > On Thu, 28 Oct 2021 at 00:25, AKASHI Takahiro > > wrote: > > > > > > With this enhancement, mkeficapsule will be able to sign a capsule > >

Re: [PATCH v3 1/3] efi_loader: add SMBIOS table measurement

2021-11-02 Thread Simon Glass
Hi Masahisa, On Thu, 21 Oct 2021 at 07:41, Masahisa Kojima wrote: > > is > > On Thu, 21 Oct 2021 at 22:04, Heinrich Schuchardt wrote: > > > > > > > > On 10/21/21 14:52, Masahisa Kojima wrote: > > > On Thu, 21 Oct 2021 at 17:49, Heinrich Schuchardt > > > wrote: > > >> > > >> > > >> > > >> On

Re: [PATCH v4 1/4] efi_loader: add SMBIOS table measurement

2021-11-02 Thread Simon Glass
Hi Masahisa, On Tue, 26 Oct 2021 at 02:26, Masahisa Kojima wrote: > > TCG PC Client Platform Firmware Profile Specification > requires to measure the SMBIOS table that contains static > configuration information (e.g. Platform Manufacturer > Enterprise Number assigned by IANA, platform model

Re: [PATCH v4 01/16] crypto/fsl: Add support for CAAM Job ring driver model

2021-11-02 Thread Simon Glass
Hi Gaurav, On Tue, 26 Oct 2021 at 00:56, Gaurav Jain wrote: > > added device tree support for job ring driver. > sec is initialized based on job ring information processed > from device tree. > > Signed-off-by: Gaurav Jain > Reviewed-by: Ye Li > --- > cmd/Kconfig | 1 + >

Re: [PATCH 0/2] add selftest for EFI_TCG2_PROTOCOL and Measured Boot

2021-11-02 Thread Simon Glass
Hi Masahisa, On Tue, 2 Nov 2021 at 02:03, Masahisa Kojima wrote: > > Hi Simon, > > On Mon, 25 Oct 2021 at 04:54, Simon Glass wrote: > > > > Hi Masahisa, > > > > On Fri, 22 Oct 2021 at 05:23, Masahisa Kojima > > wrote: > > > > > > This patch series adds the selftest for the EFI_TCG2_PROTOCOL

Re: [PATCH v5 02/26] doc: Add documentation about devicetree usage

2021-11-02 Thread Simon Glass
Hi François, On Fri, 29 Oct 2021 at 11:07, François Ozog wrote: > > Hi Simon > > (I keep getting messages about delivery problems so I don't know what > went through or not) > > I got this one, anyway. > On Wed, 27 Oct 2021 at 21:52, Simon Glass wrote: > > > > Hi Ilias, > > > > On Wed, 27 Oct

Re: [PATCH v5 02/26] doc: Add documentation about devicetree usage

2021-11-02 Thread Simon Glass
Hi Ilias, On Fri, 29 Oct 2021 at 04:20, Ilias Apalodimas wrote: > > Hi Simon, > > [...] > > > > > > > > > Why me? Perhaps Linaro could take this on instead of working in a > > > > separate tool and domain? You guys could really pull things together > > > > and reduce the fragmentation, if you

Re: [PULL u-boot] Please pull u-boot-amlogic-20211102

2021-11-02 Thread Tom Rini
it repository at: > > https://source.denx.de/u-boot/custodians/u-boot-amlogic.git > tags/u-boot-amlogic-20211102 > > for you to fetch changes up to 4f4f974a46244270c1c6723017711c0aa8250206: > > ARM: amlogic: add JetHub D1 eth mac generation with manufacturer OUI &

[PATCH 1/2] arm: dts: k3-j721e-sk: EMIF tool update to 0.6.1 with 4266MTs for lpddr4

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja EMIF tool for J721E SK is now updated to 0.6.1 that includes * Updated write DQ training pattern to enable user pattern and clock pattern (from 0x7 to 0x6). * Updated IO drive strength to 40-80-80 Ohms. J721E SK uses the lpddr4 configuration of 4266 MTs data rate which is

[PATCH 0/2] EMIF tool update to 0.6.1

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Hi All, This patch series introduces a new lpddr4 config file for the J7 SK board. Also, an update to the SK R5 dts file to point to the new DDR configuration file This patch series shall be merged after this [1] patch series. [1]

[PATCH 2/2] arm: dts: k3-j721e-r5-sk: Update R5 DT to pick the new DDR config

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja A new lpddr4 configuration is introduced for J7 SK with 4266 MTs data rate. Therefore, update the R5 DTS file to point to the new DDR config file. Signed-off-by: Sinthu Raja --- arch/arm/dts/k3-j721e-r5-sk.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH V2 17/17] include: configs: Update env for selecting right dtb

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Now that single defconfig can be used for booting J721E EVM and SK, default device tree will not work for selecting dtb for kernel. Update the findfdt env to select right dtb based on board_name env variable. Signed-off-by: Sinthu Raja --- No Changes in V2.

[PATCH V2 16/17] configs: j721e_evm: Store env in MMC FAT partition

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Enable defconfigs relevant for storing env on FAT partion of MMC. Signed-off-by: Sinthu Raja --- No changes in v2. configs/j721e_evm_a72_defconfig | 5 +++-- configs/j721e_evm_r5_defconfig | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH V2 15/17] configs: j721e_evm_a72: Align OSPI partitions on erase block boundary

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja S28HS512T on TI SK has sector size of 256KB, so update OSPI partition to align on 256KB sector size. Since the sector size for MT35XU512ABA on EVM is 128KB, partitions will remain aligned for EVM. Also, now since the sector size is 256KB ospi.env.backup will collide with

[PATCH V2 13/17] configs: j721e_evm_r5: Enable support for building multiple dtbs into FIT

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Enable configs for building multiple dtbs into a single fit image and load the right dtb for next stage. This will help to use same defconfig for both J721E EVM and SK boards. Signed-off-by: Sinthu Raja --- Changes in V2: * J721E EAIK board name is changed to J721E SK,

[PATCH V2 11/17] arm: dts: k3-j721e-sk: Add initial A72 specific dts support

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja J721E Starter Kit (SK)[1] is a low cost, small form factor board designed for TI’s J721E SoC. TI’s J721E SoC comprises of dual core A72, high performance vision accelerators, video codec accelerators, latest C71x and C66x DSP, high bandwidth real-time IPs for capture and

[PATCH V2 14/17] configs: j721e_evm_a72: Add SK dtb as part of DTB FIT

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Add k3-j721e-sk dtb along with other dtbs inside DTB FIT image. Signed-off-by: Sinthu Raja --- Changes in V2: * J721E EAIK board name is changed to J721E SK, rename all occurrences of eaik to sk. configs/j721e_evm_a72_defconfig | 2 ++ 1 file changed, 2 insertions(+)

[PATCH V2 12/17] arm: dts: k3-j721e-r5-sk: Add initial R5 specific dts support for j721e-sk

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Add R5 specific dts for J721E-SK Signed-off-by: Sinthu Raja --- Changes in V2: * J721E EAIK board name is changed to J721E SK, rename all occurrences of eaik to sk. * Rename file from eaik to sk. arch/arm/dts/Makefile | 3 +-

[PATCH V2 10/17] arm: dts: k3-j721e-r5-common-proc-board: Do not use power-domains for I2C

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Board ID I2C EEPROM will be probed before SYSFW is available. So drop the power-domains property for wakup_i2c0 on which board ID EEPROM is connected. Signed-off-by: Sinthu Raja --- No Changes in V2. arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 5 + 1 file changed,

[PATCH V2 09/17] arm: j721e: Add support for selecting DT based on EEPROM

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Enable support for selecting DTB from FIT within SPL based on the board name read from EEPROM. This will help to use single defconfig for both EVM and SK. Also print FDT model name and board name read from EEPROM on SPL debug console. This is useful to verify that right dtb is

[PATCH V2 07/17] board: ti: j721e: Disable probing of daughtercards

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja j721e-sk doesn't have any daughter cards, so disable daughter card probing inside board_late_init() and spl_board_init() for j721e-sk. Signed-off-by: Sinthu Raja --- Changes in V2: * J721E EAIK board name is changed to J721E SK, rename all occurrences of eaik to sk.

[PATCH V2 08/17] board: ti: j721e: Add support for detecting multiple device trees

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Update the board_fit_config_name_match() to choose the right dtb based on the board name read from EEPROM. Also restrict multpile EEPROM reads by verifying if EEPROM is already read. Signed-off-by: Sinthu Raja --- Changes in V2: * J721E EAIK board name is changed to J721E

[PATCH V2 06/17] board: ti: j721e: Add support to update board_name for j721e-sk

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Update setup_board_eeprom_env() to choose the right board name for j721e-sk. Signed-off-by: Sinthu Raja --- Changes in V2: * J721E EAIK board name is changed to J721E SK, rename all occurrences of eaik to sk * Quite amount of SK boards are preprogrammed as EAIK in EEPROM,

[PATCH V2 05/17] board: ti: j721e: Enable support for reading EEPROM at next alternate address

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja J721E EVM has EEPROM populated at 0x50. J721E SK has EEPROM populated at next address 0x51 in order to be compatible with RBPi. So start looking for TI specific EEPROM at 0x50, if not found look for EEPROM at 0x51. Signed-off-by: Sinthu Raja --- No changes in V2.

[PATCH V2 04/17] board: ti: j721e: Guard functions with right #ifdef to avoid build warnings

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja board_late_init(), setup_board_eeprom_env() and setup_serial() is called only under CONFIG_BOARD_LATE_INIT, so guard these functions with the same. Signed-off-by: Sinthu Raja --- No chnages in V2. board/ti/j721e/evm.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH V2 03/17] drivers: power: regulator: tps65941_regulator: Add support for 3Phase buck

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Buck regulator 1, 2 and 3 of TPS6594132 on j721e-sk is in 3 Phase confguration, in-order to support this, add configuring 3 Phase buck in tps65941 while driver probing. Signed-off-by: Sinthu Raja Acked-by: Jaehoon Chung --- No changes in V2.

[PATCH V2 02/17] drivers: power: pmic: Add support for tps659412 PMIC

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Since TPS659412 and TPS659413 are both software compatible, add a compatible string for the same inside tps65941.c. Signed-off-by: Sinthu Raja Acked-by: Jaehoon Chung --- No changes in V2. drivers/power/pmic/tps65941.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH V2 00/17] Add support for J721E SK

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Hi All, This series adds support for J721E SK [1]. Below is the detailed description of the J721E SoC and the SK board supporting features. Changes in V2: Board name updated from EAIK to SK. * So changed the occurrences of EAIK to SK. * Rename files from eaik to sk. [1]

[PATCH V2 01/17] common: make: Support show_board_info() as part of SPL build

2021-11-02 Thread Sinthu Raja
From: Sinthu Raja Enable support for show_board_info() in SPL build. Signed-off-by: Sinthu Raja --- common/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/Makefile b/common/Makefile index e7839027b6..55e455c5b8 100644 --- a/common/Makefile +++

Re: [PATCH v2 4/4] fpga: zynqmp: support loading authenticated images

2021-11-02 Thread Oleksandr Suvorov
Hi Michal, On Mon, Nov 1, 2021 at 2:06 PM Michal Simek wrote: > > > > On 11/1/21 11:47, Oleksandr Suvorov wrote: > > Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to > > handle loading authenticated images (DDR). > > > > Based on solution by Jorge Ramirez-Ortiz > >

[PATCH v3 2/3] fpga: add fit_fpga_load function

2021-11-02 Thread Oleksandr Suvorov
Introduce a function which passes an fpga compatible string from FIT images to FPGA drivers. This lets the different implementations decide how to handle it. Some code of Jorge Ramirez-Ortiz is reused. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) common/spl/spl_fit.c | 6

[PATCH v3 3/3] fpga: zynqmp: support loading authenticated images

2021-11-02 Thread Oleksandr Suvorov
Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to handle loading authenticated images (DDR). Based on solution by Jorge Ramirez-Ortiz Signed-off-by: Oleksandr Suvorov Co-developed-by: Ricardo Salveti Signed-off-by: Ricardo Salveti Tested-by: Ricardo Salveti --- Changes in

  1   2   >