Re: [PATCH 1/1] arm: apple: Switch to fully dynamic mem layout

2022-02-07 Thread Janne Grunau
On 2022-02-06 18:02:43 -0500, Tom Rini wrote: > On Sun, Feb 06, 2022 at 10:07:04PM +0100, Janne Grunau wrote: > > > Support for Apple M1 Pro and Max will allow using a single binary for > > all M1 SoCs. The M1 Pro/Max have a different memory layout. The RAM > > start address is 0x100__ ins

Re: [PATCH] tools/mrvl_uart.sh: Remove script

2022-02-07 Thread Tony Dinh
Most Kirwood boards work with the current kwboot. And those boards have the BootROM version 1.2.1. For a few that don't, mrvl_uart.sh does not work either. And that is due to the defect in the BootROM version 1.1.1. Thanks! Reviewed-by: Tony Dinh On Sun, Feb 6, 2022 at 11:27 PM Marcel Ziswiler

Re: Marvell Avanta UART booting

2022-02-07 Thread Pali Rohár
On Sunday 06 February 2022 15:37:53 Tony Dinh wrote: > Hi Pali, > > I've also tried the latest kwboot with the Marvell Avanta SoC. AFAICT, > it works fine. > > Board: ActionTec MI424WR-I > SoC: 88F6560 A0 > > Thanks, > Tony Perfect, thank you for information. We may extend documentation. But

Re: [PATCH V4] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-02-07 Thread Marek Vasut
On 2/7/22 01:51, Adam Ford wrote: On Sun, Feb 6, 2022 at 3:59 PM Marek Vasut wrote: On 2/3/22 22:20, Adam Ford wrote: The imx8mm and imx8mn appear compatible with imx7d-usb flags in the OTG driver. If the dr_mode is defined as host or peripheral, the device appears to operate correctly, howe

Re: converting IMX6 board to DM_ETH and DM_USB - usb_ether gadget support

2022-02-07 Thread Heiko Schocher
Hello Tim, On 28.01.22 07:06, Heiko Schocher wrote: > Hello Tim, > > On 28.01.22 01:20, Tim Harvey wrote: >> On Fri, Jan 14, 2022 at 6:55 AM Heiko Schocher wrote: >>> >>> Hello Tim, >>> >>> On 25.02.21 02:21, Tim Harvey wrote: Greetings, I'm trying to convert the gwventana board s

Re: Marvell Avanta UART booting

2022-02-07 Thread Tony Dinh
Hi Pali, On Mon, Feb 7, 2022 at 12:44 AM Pali Rohár wrote: > > On Sunday 06 February 2022 15:37:53 Tony Dinh wrote: > > Hi Pali, > > > > I've also tried the latest kwboot with the Marvell Avanta SoC. AFAICT, > > it works fine. > > > > Board: ActionTec MI424WR-I > > SoC: 88F6560 A0 > > > > Thank

Re: Marvell Avanta UART booting

2022-02-07 Thread Pali Rohár
On Monday 07 February 2022 00:58:56 Tony Dinh wrote: > Hi Pali, > > On Mon, Feb 7, 2022 at 12:44 AM Pali Rohár wrote: > > > > On Sunday 06 February 2022 15:37:53 Tony Dinh wrote: > > > Hi Pali, > > > > > > I've also tried the latest kwboot with the Marvell Avanta SoC. AFAICT, > > > it works fine.

Re: [PATCH] tools/mrvl_uart.sh: Remove script

2022-02-07 Thread Pali Rohár
On Monday 07 February 2022 08:20:54 Marcel Ziswiler wrote: > On Sat, 2022-02-05 at 15:54 +0100, Pali Rohár wrote: > > On Saturday 05 February 2022 03:07:00 Marcel Ziswiler wrote: > > > On Sat, 2022-02-05 at 01:54 +0100, Pali Rohár wrote: > > > > On Saturday 05 February 2022 01:40:23 Marcel Ziswiler

[PATCH] tools: kwboot: Allow to use -b without image path as the last getopt() option

2022-02-07 Thread Pali Rohár
Currently it is possible to call "kwboot -b -t /dev/ttyUSB0" but not to call "kwboot -b /dev/ttyUSB0". Fix it by not trying to process the last argv[], which is non-getopt() option (tty path) as the image path for -b. Fixes: c513fe47dca2 ("tools: kwboot: Allow to use option -b without image path"

Re: [PATCH] tools: kwboot: Allow to use -b without image path as the last getopt() option

2022-02-07 Thread Stefan Roese
On 2/7/22 10:12, Pali Rohár wrote: Currently it is possible to call "kwboot -b -t /dev/ttyUSB0" but not to call "kwboot -b /dev/ttyUSB0". Fix it by not trying to process the last argv[], which is non-getopt() option (tty path) as the image path for -b. Fixes: c513fe47dca2 ("tools: kwboot: Allow

Re: [PATCH 0/4] Zynq qspi updates

2022-02-07 Thread Michal Simek
On 1/31/22 06:22, Ashok Reddy Soma wrote: This patch series does below updates to zynq qspi driver. 1. Fix typecast to rxbuf in zynq_qspi_read_data() 2. Fix data abort issue incase of un-aligned writes 3. Add a check for baudrate and if not in limits set to default 4. Add zynq_qspi_exec_op() t

[PATCH v3] power: zynqmp: Add power domain driver for ZynqMP

2022-02-07 Thread Michal Simek
Driver should be enabled by CONFIG_POWER_DOMAIN=y and CONFIG_ZYNQMP_POWER_DOMAIN=y. Power domain driver doesn't have own DT node but it uses zynqmp firmware DT node that's why there is a need to bind driver when firmware node is found. Driver itself is simple. It is sending pmufw config object ove

Re: [PATCH v2] power: zynqmp: Add power domain driver for ZynqMP

2022-02-07 Thread Michal Simek
On 1/27/22 06:02, Jaehoon Chung wrote: On 1/20/22 16:25, Michal Simek wrote: Driver should be enabled by CONFIG_POWER_DOMAIN=y and CONFIG_ZYNQMP_POWER_DOMAIN=y. Power domain driver doesn't have own DT node but it uses zynqmp firmware DT node that's why there is a need to bind driver when firm

[PATCH v2 1/2] phy: zynqmp: Add support for sata and DP phy initialization

2022-02-07 Thread Michal Simek
DP is untested but just c&p from Linux driver. Sata is tested on kv260-revA board which has SATA connector populated. Signed-off-by: Michal Simek --- Changes in v2: Revoke default case - reported by T Karthik Reddy drivers/phy/phy-zynqmp.c | 30 -- 1 file changed,

[PATCH v2 2/2] scsi: ceva: Enable PHY and reset support

2022-02-07 Thread Michal Simek
Add phy and reset support for ceva sata IP. Phy and reset are optional properties that's why detect if description is available. If not just continue with operation. This code was tested on Xilinx Kria SOM kv260-revA with sata connector populated. Signed-off-by: Michal Simek Reviewed-by: Vladimir

Re: [PATCH] arm64: zynqmp: Remove SOM *u-boot.dtsi

2022-02-07 Thread Michal Simek
st 19. 1. 2022 v 12:01 odesílatel Michal Simek napsal: > > Disable mmc from u-boot.dtsi file because it was there only for kv260 > board. With kr260 this is not needed because we will switch to full DT per > board with SD/EMMC there too. > > Signed-off-by: Michal Simek > --- > > arch/arm/dts/zyn

Re: [PATCH 1/2] lmb: Fix lmb property's defination under struct lmb

2022-02-07 Thread Michal Simek
pá 14. 1. 2022 v 13:14 odesílatel Michal Simek napsal: > > From: Ashok Reddy Soma > > Under struct lmb {} the lmb property's should be defined only if > CONFIG_LMB_MEMORY_REGIONS is defined. > > Signed-off-by: Ashok Reddy Soma > Signed-off-by: Michal Simek > --- > > include/lmb.h | 2 +- > 1 f

Re: [PATCH 2/2] zynqmp: Run board_get_usable_ram_top() only on main U-Boot

2022-02-07 Thread Michal Simek
pá 14. 1. 2022 v 13:14 odesílatel Michal Simek napsal: > > From: Ashok Reddy Soma > > With commit ce39ee28ec31 ("zynqmp: Do not place u-boot to reserved memory > location"), the function board_get_usable_ram_top() is allocating > MMU_SECTION_SIZE of about 2MB using lmb_alloc(). But we dont have t

Re: [PATCH] U-Boot ENV in EXT4 support for Espressobin

2022-02-07 Thread Pali Rohár
Hello! See inline comments below. On Monday 07 February 2022 09:11:06 Rogier Stam wrote: > Hi > > I was attemting to boot from SATA on an Espressobin. As such I wanted to > store the Environment in a SATA partition and not in the SPI flash. In order > to get this running I had to make a few chang

Re: [PATCH V4] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-02-07 Thread Michael Walle
Hi Adam, it's nice to include people who made review comments in the follow-up patches. I had to pull this out of the mailinglist again. > The imx8mm and imx8mn appear compatible with imx7d-usb > flags in the OTG driver. If the dr_mode is defined as > host or peripheral, the device appears to op

[PATCH v4] board: toradex: add verdin imx8m plus support

2022-02-07 Thread Marcel Ziswiler
From: Marcel Ziswiler This adds initial support for the Toradex Verdin iMX8M Plus Quad 4GB WB IT V1.0B module. They are strapped to boot from eFuses which are factory fused to properly boot from their on-module eMMC. U-Boot supports booting from the on-module eMMC only, SDP support is disabled fo

Re: [PATCH v4] apalis/colibri_imx6: move setting bootcmd to defconfig

2022-02-07 Thread Stefano Babic
Hi everybody, On 16.09.21 12:52, Oleksandr Suvorov wrote: Move setting the default boot command to the apalis/colibri_imx6_defconfig. It allows replacing the command without code modification. Signed-off-by: Oleksandr Suvorov Reviewed-by: Peng Fan Reviewed-by: Igor Opaniuk Acked-by: Marcel Z

Re: [PATCH V4] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-02-07 Thread Adam Ford
On Mon, Feb 7, 2022 at 2:47 AM Marek Vasut wrote: > > On 2/7/22 01:51, Adam Ford wrote: > > On Sun, Feb 6, 2022 at 3:59 PM Marek Vasut wrote: > >> > >> On 2/3/22 22:20, Adam Ford wrote: > >>> The imx8mm and imx8mn appear compatible with imx7d-usb > >>> flags in the OTG driver. If the dr_mode is

[PATCH v6 0/7] fpga: zynqmp: Adding support of loading authenticated images

2022-02-07 Thread Adrian Fiergolski
This patchset introduces support for the authenticated FPGA images on ZynqMP boards, besides that introducing common way to pass the compatible property to any fpga driver. It bases on the initial work by Jorge Ramirez-Ortiz https://patchwork.ozlabs.org/project/uboot/patch/20211015091506.2602-1-j

[PATCH v6 1/7] fpga: add option for loading FPGA secure bitstreams

2022-02-07 Thread Adrian Fiergolski
From: Oleksandr Suvorov It allows using this feature without enabling the "fpga loads" command. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti --- cmd/Kconfig | 3 ++- drivers/fpga/Kconfig| 14 ++ drivers/fpga/fpga.c | 2 +- drivers/fpga/xilinx.c

[PATCH v6 2/7] fpga: add fit_fpga_load function

2022-02-07 Thread Adrian Fiergolski
From: 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 Tested-by: Ricardo Salveti --- c

[PATCH v6 3/7] fpga: xilinx: pass an address of xilinx_desc in fpga_desc

2022-02-07 Thread Adrian Fiergolski
From: Oleksandr Suvorov Pass an address of xilinx_desc pointer in an fpga_desc to use parent fpga_desc structure members inside a xilinx fpga driver. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti --- drivers/fpga/fpga.c | 4 ++-- drivers/fpga/xilinx.c | 4 +++- include/xilinx

[PATCH v6 4/7] fpga: xilinx: add missed identifier names

2022-02-07 Thread Adrian Fiergolski
From: Oleksandr Suvorov Function definition arguments should also have identifier names. Add missed ones to struct xilinx_fpga_op callbacks, unifying code. Signed-off-by: Oleksandr Suvorov --- include/xilinx.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/inclu

[PATCH v6 6/7] fpga: zynqmp: support loading authenticated images

2022-02-07 Thread Adrian Fiergolski
From: 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

[PATCH v6 5/7] fpga: xilinx: pass xilinx_desc pointer address into load() ops

2022-02-07 Thread Adrian Fiergolski
From: Oleksandr Suvorov Pass an address of xilinx_desc pointer in an fpga_desc into a load() callback of struct xilinx_fpga_op. It allows getting parent fpga_desc structure members inside xilinx fpga drivers. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti --- drivers/fpga/spartan

[PATCH v6 7/7] fpga: zynqmp: support loading encrypted bitfiles

2022-02-07 Thread Adrian Fiergolski
Add supporting new compatible string "u-boot,zynqmp-fpga-enc" to handle loading encrypted bitfiles. This feature requires encrypted FSBL,as according to UG1085: "The CSU automatically locks out the AES key, stored in either BBRAM or eFUSEs, as a key source to the AES engine if the FSBL is not enc

Re: [PATCH V4] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-02-07 Thread Adam Ford
On Mon, Feb 7, 2022 at 5:00 AM Michael Walle wrote: > > Hi Adam, > > it's nice to include people who made review comments in the follow-up > patches. I had to pull this out of the mailinglist again. Sorry. I didn't purposefully leave you out. I have a little script I run to get the list of peop

Re: [PATCH V4] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-02-07 Thread Marek Vasut
On 2/7/22 12:13, Adam Ford wrote: On Mon, Feb 7, 2022 at 2:47 AM Marek Vasut wrote: On 2/7/22 01:51, Adam Ford wrote: On Sun, Feb 6, 2022 at 3:59 PM Marek Vasut wrote: On 2/3/22 22:20, Adam Ford wrote: The imx8mm and imx8mn appear compatible with imx7d-usb flags in the OTG driver. If the

Re: [PATCH v4] apalis/colibri_imx6: move setting bootcmd to defconfig

2022-02-07 Thread Oleksandr Suvorov
Hi Stefano, On Mon, Feb 7, 2022 at 1:01 PM Stefano Babic wrote: > > Hi everybody, > > On 16.09.21 12:52, Oleksandr Suvorov wrote: > > Move setting the default boot command to the > > apalis/colibri_imx6_defconfig. It allows replacing the command > > without code modification. > > > > Signed-off-b

Re: [PATCH v10 6/9] tools: mkeficapsule: allow for specifying GUID explicitly

2022-02-07 Thread Sughosh Ganu
On Mon, 7 Feb 2022 at 08:30, AKASHI Takahiro wrote: > > On Sat, Feb 05, 2022 at 08:32:37PM +0100, Heinrich Schuchardt wrote: > > On 2/1/22 02:27, AKASHI Takahiro wrote: > > > The existing options, "--fit" and "--raw," are only used to put a proper > > > GUID in a capsule header, where GUID identif

Re: [PATCH V4] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-02-07 Thread Adam Ford
On Mon, Feb 7, 2022 at 5:50 AM Marek Vasut wrote: > > On 2/7/22 12:13, Adam Ford wrote: > > On Mon, Feb 7, 2022 at 2:47 AM Marek Vasut wrote: > >> > >> On 2/7/22 01:51, Adam Ford wrote: > >>> On Sun, Feb 6, 2022 at 3:59 PM Marek Vasut wrote: > > On 2/3/22 22:20, Adam Ford wrote: >

[PATCH v5] apalis/colibri_imx6: move setting bootcmd to defconfig

2022-02-07 Thread Oleksandr Suvorov
Move setting the default boot command to the apalis/colibri_imx6_defconfig. It allows replacing the command without code modification. Signed-off-by: Oleksandr Suvorov Reviewed-by: Peng Fan Reviewed-by: Igor Opaniuk Acked-by: Marcel Ziswiler --- Changes in v5: - rebase on top of the latest ma

Re: FIT image: load secure FPGA

2022-02-07 Thread Adrian Fiergolski
Hi Jorge and Oleksandr, Thank you for sharing all the links. I found there a lot of inspiration to meet my target of using encrypted bitfiles. I have also shared with the community a patch, on top of your changes, adding encrypted bitfile support in u-boot. Regards, Adrian On 19.01.2022 1

[PATCH v2 1/3] lmb: Fix lmb property's defination under struct lmb

2022-02-07 Thread Michal Simek
From: Ashok Reddy Soma Under struct lmb {} the lmb property's should be defined only if CONFIG_LMB_MEMORY_REGIONS is defined. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- Changes in v2: - Also fix lib/lmb.c include/lmb.h | 2 +- lib/lmb.c | 2 +- 2 files changed, 2 in

[PATCH v2 2/3] zynqmp: Run board_get_usable_ram_top() only on main U-Boot

2022-02-07 Thread Michal Simek
From: Ashok Reddy Soma With commit ce39ee28ec31 ("zynqmp: Do not place u-boot to reserved memory location"), the function board_get_usable_ram_top() is allocating MMU_SECTION_SIZE of about 2MB using lmb_alloc(). But we dont have this much memory in case of mini U-Boot. Keep these functions which

[PATCH v2 3/3] arm64: zynqmp: Disable LMB for mini configurations

2022-02-07 Thread Michal Simek
There is no need to have LMB enabled that's why save some space by disabling it. aarch64: (for 6/6 boards) all -1550.0 rodata -140.7 text -1409.3 xilinx_zynqmp_mini: all -2001 rodata -185 text -1816 xilinx_zynqmp_mini_qspi: all -2001 rodata -185 text -1816 xi

Re: [PATCH 1/2] lmb: Fix lmb property's defination under struct lmb

2022-02-07 Thread Michal Simek
po 7. 2. 2022 v 10:40 odesílatel Michal Simek napsal: > > pá 14. 1. 2022 v 13:14 odesílatel Michal Simek > napsal: > > > > From: Ashok Reddy Soma > > > > Under struct lmb {} the lmb property's should be defined only if > > CONFIG_LMB_MEMORY_REGIONS is defined. > > > > Signed-off-by: Ashok Reddy

Re: [PATCH v4] sf: Query write-protection status before operating the flash

2022-02-07 Thread Michael Walle
Am 2022-02-04 13:55, schrieb Jan Kiszka: On 02.02.22 10:57, Jan Kiszka wrote: .. What about also exposing a "is_unlocked" service? Seems that would have the semantic we need, and there is at least already stm_is_unlocked_sr. But no sst26_is_unlocked. From my reading of sst26_is_locked, it

[PATCH] U-Boot ENV in EXT4 support for Espressobin

2022-02-07 Thread Rogier Stam
Hi I was attemting to boot from SATA on an Espressobin. As such I wanted to store the Environment in a SATA partition and not in the SPI flash. In order to get this running I had to make a few changes, as the original code assumes the Environment is always in SPI flash. Additionally I also ha

Re: [PATCH] tools/mrvl_uart.sh: Remove script

2022-02-07 Thread Robert Marko
Hi Pali, Sorry for the late reply. As Marcel pointed out, we were relying on this script as kwboot just wasn't working. But if it can replace mrvl_uart.sh then I don't have an issue with dropping it after it gets fixed. Regards, Robert On Mon, 7 Feb 2022 at 10:02, Pali Rohár wrote: > > On Mond

k210 spi flash regression

2022-02-07 Thread Niklas Cassel
Hello Pratyush, I upgraded u-boot on my k210 maix bit board, and the SPI flash is no longer detected. I bisected the problem to commit: d15de623013c ("spi: spi-mem: allow specifying a command's extension") Before the commit in question, the following was printed: Loading Environment from SPIFl

[PATCH v2] gpio: Enable hogging support in SPL

2022-02-07 Thread Eddie James
Use the CONFIG macros to conditionally build the GPIO hogging support in either the SPL or U-Boot, or both, depending on the configuration. Also call the GPIO hog probe function in the common SPL board initialization as an equivalent to adding it to the U-Boot init sequence functions. Signed-off-b

[PATCH] arm: mach-k3: am6_init: Use CONFIG_TI_I2C_BOARD_DETECT

2022-02-07 Thread Christian Gmeiner
We only want to call bo_board_detect() if CONFIG_TI_I2C_BOARD_DETECT is set. Same as done for am64. Signed-off-by: Christian Gmeiner --- arch/arm/mach-k3/am6_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/am6_init.c b/arch/arm/mach-k3/am6_init.c ind

Re: [PATCH v5] apalis/colibri_imx6: move setting bootcmd to defconfig

2022-02-07 Thread Stefano Babic
On 07.02.22 13:19, Oleksandr Suvorov wrote: Move setting the default boot command to the apalis/colibri_imx6_defconfig. It allows replacing the command without code modification. Signed-off-by: Oleksandr Suvorov Reviewed-by: Peng Fan Reviewed-by: Igor Opaniuk Acked-by: Marcel Ziswiler ---

Running qemu tests on RISC-V

2022-02-07 Thread Simon Glass
Hi, I am trying to run the SPL tests for riscv32 but it dies with an illegal instruction. I have tried building qemu 4.2 but it seems to happen on various versions. Has anyone seen this? +u-boot-test-reset qemu-riscv32_spl na U-Boot SPL 2022.01 (Feb 07 2022 - 08:33:30 -0700) Trying to boot from

Re: [PATCH 1/1] arm: apple: Switch to fully dynamic mem layout

2022-02-07 Thread Mark Kettenis
> From: Janne Grunau > Date: Sun, 6 Feb 2022 22:07:04 +0100 > > Support for Apple M1 Pro and Max will allow using a single binary for > all M1 SoCs. The M1 Pro/Max have a different memory layout. The RAM > start address is 0x100__ instead of 0x8__. > Replace the hardcoded memory

Re: Running qemu tests on RISC-V

2022-02-07 Thread Heinrich Schuchardt
On 2/7/22 16:38, Simon Glass wrote: Hi, I am trying to run the SPL tests for riscv32 but it dies with an illegal instruction. I have tried building qemu 4.2 but it seems to happen on various versions. Has anyone seen this? Did you try to run qemu-riscv32_spl_defconfig in the Docker container w

Re: Running qemu tests on RISC-V

2022-02-07 Thread Michael Lawnick
Hi Simon, having absolutely no knowledge about the details here just 2 cents: It looks like concurrent run of multiple cores. Are you sure that all cores beside #0 are properly caught and blocked on start? KR Michael Am 07.02.2022 um 16:38 schrieb Simon Glass: Hi, I am trying to run the SPL

Re: Running qemu tests on RISC-V

2022-02-07 Thread Sean Anderson
On 2/7/22 10:53 AM, Heinrich Schuchardt wrote: > On 2/7/22 16:38, Simon Glass wrote: >> Hi, >> >> I am trying to run the SPL tests for riscv32 but it dies with an >> illegal instruction. I have tried building qemu 4.2 but it seems to >> happen on various versions. Has anyone seen this? > > Did

Re: Running qemu tests on RISC-V

2022-02-07 Thread Tom Rini
On Mon, Feb 07, 2022 at 11:34:17AM -0500, Sean Anderson wrote: > > > On 2/7/22 10:53 AM, Heinrich Schuchardt wrote: > > On 2/7/22 16:38, Simon Glass wrote: > >> Hi, > >> > >> I am trying to run the SPL tests for riscv32 but it dies with an > >> illegal instruction. I have tried building qemu 4.2

Re: [PATCH v4 1/2] GPIO: fxl6408: Add support for FXL6408 GPIO expander

2022-02-07 Thread Oleksandr Suvorov
On Sat, Feb 5, 2022 at 6:54 PM wrote: > > > From: Oleksandr Suvorov > > Initial support for Fairchild's 8 bit I2C gpio expander FXL6408. > > The CONFIG_FXL6408_GPIO define enables support for such devices. > > Based on: https://patchwork.kernel.org/patch/9148419/ > > Signed-off-by: Oleksandr Suvo

Re: Running qemu tests on RISC-V

2022-02-07 Thread Simon Glass
Hi Tom, On Mon, 7 Feb 2022 at 09:49, Tom Rini wrote: > > On Mon, Feb 07, 2022 at 11:34:17AM -0500, Sean Anderson wrote: > > > > > > On 2/7/22 10:53 AM, Heinrich Schuchardt wrote: > > > On 2/7/22 16:38, Simon Glass wrote: > > >> Hi, > > >> > > >> I am trying to run the SPL tests for riscv32 but it

[PATCH v4 00/11] FWU: Add support for FWU Multi Bank Update feature

2022-02-07 Thread Sughosh Ganu
The patchset adds support for the FWU Multi Bank Update[1] feature. Certain aspects of the Dependable Boot[2] specification have also been implemented. The FWU multi bank update feature is used for supporting multiple sets(also called banks) of firmware image(s), allowing the platform to boot f

[PATCH v4 01/11] FWU: Add FWU metadata structure and driver for accessing metadata

2022-02-07 Thread Sughosh Ganu
In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, which is stored on a dedicated partition. Add the metadata structure, and a driver model uclass which provides functions to access the metadata. These are generic API's, and implement

[PATCH v4 02/11] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-02-07 Thread Sughosh Ganu
In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate partition. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored on a block device which is formated with GPT b

[PATCH v4 03/11] FWU: stm32mp1: Add helper functions for accessing FWU metadata

2022-02-07 Thread Sughosh Ganu
Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. These functions have been added for the STM32MP157C-DK2 board which has the updatable images on the uSD card, formatted as GPT partitions. Signed-off-by: Sughosh Ganu --- Changes since

[PATCH v4 04/11] FWU: STM32MP1: Add support to read boot index from backup register

2022-02-07 Thread Sughosh Ganu
The FWU Multi Bank Update feature allows the platform to boot the firmware images from one of the partitions(banks). The first stage bootloader(fsbl) passes the value of the boot index, i.e. the bank from which the firmware images were booted from to U-Boot. On the STM32MP157C-DK2 board, this value

[PATCH v4 05/11] EFI: FMP: Add provision to update image's ImageTypeId in image descriptor

2022-02-07 Thread Sughosh Ganu
The FWU Multi Banks Update feature allows updating different types of updatable firmware images on the platform. These image types are identified using the ImageTypeId GUID value. Add support in the GetImageInfo function of the FMP protocol to get the GUID values for the individual images and popul

[PATCH v4 06/11] stm32mp1: Populate ImageTypeId values in EFI_FIRMWARE_IMAGE_DESCRIPTOR array

2022-02-07 Thread Sughosh Ganu
The EFI_FIRMWARE_IMAGE_DESCRIPTOR array is returned by the Firmware Management Protocol's(FMP) GetImageInfo function. The image descriptor array contains the ImageTypeId which is a GUID identifying the firmware images that are supported by the instance of the FMP. These ImageTypeId values are compa

[PATCH v4 07/11] FWU: Add boot time checks as highlighted by the FWU specification

2022-02-07 Thread Sughosh Ganu
The FWU Multi Bank Update specification requires the Update Agent to carry out certain checks at the time of platform boot. The Update Agent is the component which is responsible for updating the firmware components and maintaining and keeping the metadata in sync. The spec requires that the Updat

[PATCH v4 08/11] FWU: Add support for FWU Multi Bank Update feature

2022-02-07 Thread Sughosh Ganu
The FWU Multi Bank Update feature supports updation of firmware images to one of multiple sets(also called banks) of images. The firmware images are clubbed together in banks, with the system booting images from the active bank. Information on the images such as which bank they belong to is stored

[PATCH v4 09/11] FWU: cmd: Add a command to read FWU metadata

2022-02-07 Thread Sughosh Ganu
Add a command to read the metadata as specified in the FWU specification and print the fields of the metadata. Signed-off-by: Sughosh Ganu --- Changes since V3: * Use the device model api uclass_get_device to probe and get the FWU Metadata device. cmd/Kconfig | 7 + cmd/Makefile

[PATCH v4 10/11] mkeficapsule: Add support for generating empty capsules

2022-02-07 Thread Sughosh Ganu
The Dependable Boot specification describes the structure of the firmware accept and revert capsules. These are empty capsules which are used for signalling the acceptance or rejection of the updated firmware by the OS. Add support for generating these empty capsules. Signed-off-by: Sughosh Ganu

[PATCH v4 11/11] FWU: doc: Add documentation for the FWU feature

2022-02-07 Thread Sughosh Ganu
Add documentattion for the FWU Multi Bank Update feature. The document describes the steps needed for setting up the platform for the feature, as well as steps for enabling the feature on the platform. Signed-off-by: Sughosh Ganu --- Changes since V3: None doc/develop/uefi/fwu_updates.rst | 14

Re: Commit 4f2e2280862a ("RFC: arm: pci: Add PCI cam support to PCI-E ecam driver")

2022-02-07 Thread Pali Rohár
PING! Could you look at this email? On Thursday 20 January 2022 14:48:34 Pali Rohár wrote: > Hello Alistair! > > On Wednesday 19 January 2022 14:48:21 Alistair Delva wrote: > > Hi Pali, > > > > Sorry for the late reply.. > > > > On Thu, Jan 13, 2022 at 4:34 AM Pali Rohár wrote: > > > > > > Hel

Re: [PATCH v2] adc: rockchip-saradc: add support for getting reference voltage value

2022-02-07 Thread Simon Glass
On Fri, 4 Feb 2022 at 13:16, Peter Cai wrote: > > Mirroring commit 97ab802aa36f ("adc: meson-saradc: add support for > getting reference voltage value") for meson-saradc, this adds support > for getting the "vref-supply" regulator and register it as the ADC's > reference voltage regulator, so clie

Re: [RFC PATCH v1 16/21] test: hush: Fix variable expansion tests for hush 2021.

2022-02-07 Thread Simon Glass
Hi Francis, On Sun, 6 Feb 2022 at 11:23, Francis Laniel wrote: > > Le mercredi 12 janvier 2022, 21:03:37 CET Simon Glass a écrit : > > Hi Francis, > > > > On Fri, 31 Dec 2021 at 09:14, Francis Laniel > > > > wrote: > > > This commit modifies the expected result for hush 2021. > > > Indeed, there

Re: [PATCH v2] gpio: Enable hogging support in SPL

2022-02-07 Thread Simon Glass
Hi Eddie, On Mon, 7 Feb 2022 at 07:23, Eddie James wrote: > > Use the CONFIG macros to conditionally build the GPIO hogging support in > either the SPL or U-Boot, or both, depending on the configuration. Also > call the GPIO hog probe function in the common SPL board initialization > as an equiva

Re: [PATCH 1/5] binman: Fix subentry expansion for FIT entry type

2022-02-07 Thread Simon Glass
Hi Alper, On Sun, 6 Feb 2022 at 14:03, Alper Nebi Yasak wrote: > > Binman tries to expand some entries into parts that make it up, e.g. > 'u-boot' into a 'u-boot-expanded' section that contains 'u-boot-nodtb' > and 'u-boot-dtb'. Entries with child entries must call ExpandEntries() > on them to bu

Re: [PATCH] Replace echo -n's used in environment processing with touch

2022-02-07 Thread Simon Glass
Hi, On Sat, 5 Feb 2022 at 06:49, qthedev wrote: > > echo -n does not give the intended effect when invoked in macOS through > /bin/sh, which is the shell make uses by default, see > "https://stackoverflow.com/questions/11675070/makefile-echo-n-not-working"; > for a detailed explanation. In thi

Re: [PATCH 3/5] binman: Check missing bintools of Section subclasses

2022-02-07 Thread Simon Glass
On Sun, 6 Feb 2022 at 14:03, Alper Nebi Yasak wrote: > > Binman can check for missing binary tools and prints warnings if > anything required for an image is missing. The implementation of this > for the Section entry only checks the subentries, presumably because > Section does not use any binary

Re: [PATCH 2/5] binman: Register and check bintools from FIT subentries

2022-02-07 Thread Simon Glass
On Sun, 6 Feb 2022 at 14:03, Alper Nebi Yasak wrote: > > Binman keeps track of binary tools each entry wants to use. The > implementation of this for the FIT entry only adds "mkimage", but not > the tools that would be used by its subentries. > > Register the binary tools that FIT subentries will

Re: [PATCH 5/5] binman: Update image positions of FIT subentries

2022-02-07 Thread Simon Glass
Hi Alper, On Sun, 6 Feb 2022 at 14:03, Alper Nebi Yasak wrote: > > Binman keeps track of positions of each entry in the final image, but > currently this data is wrong for things included in FIT entries, > especially since a previous patch makes FIT a subclass of Section and > inherit its impleme

Re: [PATCH 4/5] binman: Convert FIT entry type to a subclass of Section entry type

2022-02-07 Thread Simon Glass
On Sun, 6 Feb 2022 at 14:03, Alper Nebi Yasak wrote: > > The binman FIT entry type shares some code with the Section entry type. > This shared code is bound to grow, since FIT entries are conceptually a > variation of Section entries. > > Make FIT entry type a subclass of Section entry type, simpl

Re: [PATCH 0/5] binman: Improvements to FIT entry type

2022-02-07 Thread Simon Glass
Hi Alper, On Sun, 6 Feb 2022 at 14:03, Alper Nebi Yasak wrote: > > I've managed to build images like in doc/chromium/chainload.rst wtih > binman, but ran into an issue with entry expansion in FIT and worked on > it a bit. I also added SetImagePos() because that documentation asks for > precise pl

Re: [PATCH 1/2] arch: x86: lib: acpi_table: Fix MCFG entries

2022-02-07 Thread Simon Glass
Hi Moritz, On Sat, 5 Feb 2022 at 13:17, Moritz Fischer wrote: > > Commit d953137526cc ("x86: Move SSDT table to a writer function") > introduced a bug where the actual MCFG entries are no longer generated. > > Cc: Simon Glass > Fixes: d953137526cc ("x86: Move SSDT table to a writer function") >

Re: [PATCH 2/2] acpi: Move MCFG implementation to common lib

2022-02-07 Thread Simon Glass
Hi Moritz, On Sat, 5 Feb 2022 at 13:17, Moritz Fischer wrote: > > MCFG tables are used on multiple arches. Move to common ACPI lib. > > Cc: Simon Glass > Signed-off-by: Moritz Fischer > --- > > arch/x86/cpu/intel_common/acpi.c | 15 +--- > arch/x86/cpu/tangier/acpi.c | 11 -- >

Re: [PATCH] drivers: serial: Make sure we really return a serial device

2022-02-07 Thread Simon Glass
Hi Mark, On Sat, 5 Feb 2022 at 16:10, Mark Kettenis wrote: > > The stdout-path property in the device tree does not necessarily > point at a serial device. The code that binds the device if it > isn't marked to be bound before relocation does not check whether > the device really is a serial devi

Re: [PATCH 1/1] binman: add sign option for binman

2022-02-07 Thread Simon Glass
Hi Ivan, On Thu, 27 Jan 2022 at 03:00, Ivan Mikhaylov wrote: > > On Tue, 2021-12-28 at 01:34 -0700, Simon Glass wrote: > > Hi Ivan, > > > > On Fri, 24 Dec 2021 at 11:23, Ivan Mikhaylov > > wrote: > > > > > > Introduce prototype for binman's new option which provides sign > > > and replace sectio

Re: [PATCH 2/2] acpi: Move MCFG implementation to common lib

2022-02-07 Thread Moritz Fischer
Hi Simon, On Mon, Feb 7, 2022 at 12:22 PM Simon Glass wrote: > > Hi Moritz, > > On Sat, 5 Feb 2022 at 13:17, Moritz Fischer wrote: > > > > MCFG tables are used on multiple arches. Move to common ACPI lib. > > > > Cc: Simon Glass > > Signed-off-by: Moritz Fischer > > --- > > > > arch/x86/cpu/i

Re: [PATCH] drivers: serial: Make sure we really return a serial device

2022-02-07 Thread Mark Kettenis
> From: Simon Glass > Date: Mon, 7 Feb 2022 13:22:22 -0700 > > Hi Mark, > > On Sat, 5 Feb 2022 at 16:10, Mark Kettenis wrote: > > > > The stdout-path property in the device tree does not necessarily > > point at a serial device. The code that binds the device if it > > isn't marked to be bound

Re: [PATCH 0/5] binman: Improvements to FIT entry type

2022-02-07 Thread Alper Nebi Yasak
On 07/02/2022 23:22, Simon Glass wrote: > On Sun, 6 Feb 2022 at 14:03, Alper Nebi Yasak > wrote: >> >> I've managed to build images like in doc/chromium/chainload.rst wtih >> binman, but ran into an issue with entry expansion in FIT and worked on >> it a bit. I also added SetImagePos() because th

[PATCH v2 0/5] binman: Improvements to FIT entry type

2022-02-07 Thread Alper Nebi Yasak
I've managed to build images like in doc/chromium/chainload.rst wtih binman, but ran into an issue with entry expansion in FIT and worked on it a bit. I also added SetImagePos() because that documentation asks for precise placement of u-boot.bin inside the FIT and I felt like doing it as an easier

[PATCH v2 1/5] binman: Fix subentry expansion for FIT entry type

2022-02-07 Thread Alper Nebi Yasak
Binman tries to expand some entries into parts that make it up, e.g. 'u-boot' into a 'u-boot-expanded' section that contains 'u-boot-nodtb' and 'u-boot-dtb'. Entries with child entries must call ExpandEntries() on them to build a correct image, as it's possible that unexpanded child entries have no

[PATCH v2 2/5] binman: Register and check bintools from FIT subentries

2022-02-07 Thread Alper Nebi Yasak
Binman keeps track of binary tools each entry wants to use. The implementation of this for the FIT entry only adds "mkimage", but not the tools that would be used by its subentries. Register the binary tools that FIT subentries will use in addition to the one FIT itself uses, and check their exist

[PATCH v2 3/5] binman: Check missing bintools of Section subclasses

2022-02-07 Thread Alper Nebi Yasak
Binman can check for missing binary tools and prints warnings if anything required for an image is missing. The implementation of this for the Section entry only checks the subentries, presumably because Section does not use any binary tools itself. However, this means the check is also skipped for

[PATCH v2 4/5] binman: Convert FIT entry type to a subclass of Section entry type

2022-02-07 Thread Alper Nebi Yasak
The binman FIT entry type shares some code with the Section entry type. This shared code is bound to grow, since FIT entries are conceptually a variation of Section entries. Make FIT entry type a subclass of Section entry type, simplifying it a bit and providing us the features that Section implem

[PATCH v2 5/5] binman: Update image positions of FIT subentries

2022-02-07 Thread Alper Nebi Yasak
Binman keeps track of positions of each entry in the final image, but currently this data is wrong for things included in FIT entries, especially since a previous patch makes FIT a subclass of Section and inherit its implementation. There are three ways to put data into a FIT image. It can be dire

Re: [PATCH] U-Boot ENV in EXT4 support for Espressobin

2022-02-07 Thread Rogier Stam
Hi Per Pali's comments adapted the patch. This one also includes the changes necessary for storing ENV in FAT. I also added CONFIG_SCSI for both ext4 and fat should anyone want to use SCSI instead of AHCI. Regards Rogier On 07-02-2022 09:11, Rogier Stam wrote: Hi I was attemting to boot f

Re: [PATCH] U-Boot ENV in EXT4 support for Espressobin

2022-02-07 Thread Pali Rohár
On Monday 07 February 2022 23:56:25 Rogier Stam wrote: > Hi > > Per Pali's comments adapted the patch. This one also includes the changes > necessary for storing ENV in FAT. I also added CONFIG_SCSI for both ext4 and > fat should anyone want to use SCSI instead of AHCI. > > Regards > > Rogier >

[PATCH v2] pstore: Support already existing reserved-memory node

2022-02-07 Thread Detlev Casanova
The pstore command tries to create a reserved-memory node but fails if it is already present with: Add 'reserved-memory' node failed: FDT_ERR_EXISTS This patch creates the node only if it does not exist and adapts the reg values sizes depending on already present #address-cells and #size-cell

[PATCH v3] gpio: Enable hogging support in SPL

2022-02-07 Thread Eddie James
Use the CONFIG macros to conditionally build the GPIO hogging support in either the SPL or U-Boot, or both, depending on the configuration. Also call the GPIO hog probe function in the common SPL board initialization as an equivalent to adding it to the U-Boot init sequence functions. Signed-off-b

[PATCH 01/14] sandbox: net: Remove fake-host-hwaddr

2022-02-07 Thread Sean Anderson
Instead of reading a pseudo-rom mac address from the device tree, just use whatever we get from write_hwaddr. This has the effect of using the mac address from the environment (or from the device tree, if it is specified). Signed-off-by: Sean Anderson --- arch/sandbox/dts/sandbox.dts | 1 -

[PATCH 02/14] sandbox: Remove eth2addr from environment

2022-02-07 Thread Sean Anderson
DSA interfaces use the same mac address for each interface, unless instructed otherwise. Just set eth4addr and let eth2addr and eth7addr be set automatically. Signed-off-by: Sean Anderson --- board/sandbox/sandbox.env | 1 - 1 file changed, 1 deletion(-) diff --git a/board/sandbox/sandbox.env

[PATCH 03/14] test: eth: Add test for ethernet addresses

2022-02-07 Thread Sean Anderson
This adds a test to make sure that all the ethernet interfaces have their addresses read properly. At the moment everything is read from the environment, but the next few commits will add additional sources. Signed-off-by: Sean Anderson --- test/dm/eth.c | 28 1 fil

  1   2   >