Re: [PATCH v5 3/5] env: Allow U-Boot scripts to be placed in a .env file

2021-10-04 Thread Rasmus Villemoes
On 02/10/2021 02.38, Simon Glass wrote: > At present U-Boot environment variables, and thus scripts, are defined > by CONFIG_EXTRA_ENV_SETTINGS. It is painful to add large amounts of text > to this file and dealing with quoting and newlines is harder than it > should be. It would be better if we co

Re: [PATCH v8 3/5] arm64: dts: ti: k3-am65-mcu: Add RTI watchdog entry

2021-10-04 Thread Jan Kiszka
On 03.10.21 20:40, Tom Rini wrote: > On Sat, Sep 18, 2021 at 08:17:54AM +0200, Jan Kiszka wrote: > >> From: Jan Kiszka >> >> Add the DT entry for a watchdog based on RTI1. It requires additional >> firmware on the MCU R5F cores to handle the expiry, e.g. >> https://github.com/siemens/k3-rti-wdt.

Re: [PATCH] arm: mvebu: Select SPL_SKIP_LOWLEVEL_INIT on ARMADA_32BIT

2021-10-04 Thread Pali Rohár
On Sunday 03 October 2021 11:53:45 Stefan Roese wrote: > Select SPL_SKIP_LOWLEVEL_INIT on 32bit Armada platforms via Kconfig, > as this was removed from mach/config.h in a2ac2b96 ("Convert > CONFIG_SKIP_LOWLEVEL_INIT et al to Kconfig"). > > Signed-off-by: Stefan Roese > Fixes: a2ac2b96 ("Convert

[PATCH] Convert CONFIG_STM32_FLASH to Kconfig

2021-10-04 Thread Patrick Delaunay
This converts the CONFIG_STM32_FLASH to Kconfig by using tools/moveconfig.py Signed-off-by: Patrick Delaunay --- configs/stm32f429-discovery_defconfig | 1 + configs/stm32f429-evaluation_defconfig | 1 + configs/stm32f469-discovery_defconfig | 1 + configs/stm32f746-disco_defconfig | 1 +

Re: [PATCH] nvme: invalidate correct memory range after read

2021-10-04 Thread Stefan Agner
On 2021-09-30 18:09, Andre Przywara wrote: > On Tue, 28 Sep 2021 10:01:40 +0200 > Stefan Agner wrote: > >> The current code invalidates the range after the read buffer since the >> buffer pointer gets incremented in the read loop. Use a temporary >> pointer to make sure we have a pristine pointer

[PATCH] configs: Move some usb config in defconfig

2021-10-04 Thread Patrick Delaunay
Using the tools moveconfig.py to move the following config in the defconfig files: CONFIG_USB_HOST_ETHER CONFIG_USB_ETHER_ASIX CONFIG_USB_ETHER_MCS7830 CONFIG_USB_ETHER_SMSC95XX These option are already migrated since the commit f58ad98a621c ("usb: net: migrate USB Ethernet adapters to Kconfig

[PATCH v2] nvme: invalidate correct memory range after read

2021-10-04 Thread Stefan Agner
The current code invalidates the range after the read buffer since the buffer pointer gets incremented in the read loop. Use a temporary pointer to make sure we have a pristine pointer to invalidate the correct memory range after read. Fixes: 704e040a51d2 ("nvme: Apply cache operations on the DMA

Re: [PATCH] configs: Move some usb config in defconfig

2021-10-04 Thread Mark Kettenis
> From: Patrick Delaunay > Date: Mon, 4 Oct 2021 11:23:41 +0200 > > Using the tools moveconfig.py to move the following config in the > defconfig files: > CONFIG_USB_HOST_ETHER > CONFIG_USB_ETHER_ASIX > CONFIG_USB_ETHER_MCS7830 > CONFIG_USB_ETHER_SMSC95XX > > These option are already migrate

Re: EXT: Re: [PATCH] configs: Move some usb config in defconfig

2021-10-04 Thread Ian Ray
On Mon, Oct 04, 2021 at 11:33:45AM +0200, Mark Kettenis wrote: > > > From: Patrick Delaunay > > Date: Mon, 4 Oct 2021 11:23:41 +0200 > > > > Using the tools moveconfig.py to move the following config in the > > defconfig files: > > CONFIG_USB_HOST_ETHER > > CONFIG_USB_ETHER_ASIX > > CONFIG_US

[PATCH 2/6] am33x: Remove unused define CONFIG_MUSB_HOST

2021-10-04 Thread Patrick Delaunay
This define was left over from a previous revision, and was never used. Signed-off-by: Patrick Delaunay --- include/configs/am335x_sl50.h | 7 --- scripts/config_whitelist.txt | 1 - 2 files changed, 8 deletions(-) diff --git a/include/configs/am335x_sl50.h b/include/configs/am335x_sl50.h

[PATCH 6/6] scripts: remove CONFIG_IS_ENABLED in config_whitelist.txt

2021-10-04 Thread Patrick Delaunay
Redefine the macro CONFIG_IS_ENABLED is not allowed, so this entry can be removed in whitelist file. Signed-off-by: Patrick Delaunay --- scripts/config_whitelist.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index b3ebd20c57..

[PATCH 5/6] Remove unused CONFIG_CONS_NONE

2021-10-04 Thread Patrick Delaunay
Remove the latest reference of CONFIG_CONS_NONE in code Signed-off-by: Patrick Delaunay --- include/configs/MPC8560ADS.h | 1 - scripts/config_whitelist.txt | 1 - 2 files changed, 2 deletions(-) diff --git a/include/configs/MPC8560ADS.h b/include/configs/MPC8560ADS.h index 3a9ea03292..dcd538f

[PATCH 4/6] Remove unused CONFIG_SYS_FLASH_AMD_CHECK_DQ7

2021-10-04 Thread Patrick Delaunay
Remove the latest reference of CONFIG_SYS_FLASH_AMD_CHECK_DQ7 in code Signed-off-by: Patrick Delaunay --- include/configs/P2041RDB.h | 1 - include/configs/corenet_ds.h | 1 - scripts/config_whitelist.txt | 1 - 3 files changed, 3 deletions(-) diff --git a/include/configs/P2041RDB.h b/includ

[PATCH 3/6] Remove unused CONFIG_NO_RELOCATION

2021-10-04 Thread Patrick Delaunay
Remove the latest reference of CONFIG_NO_RELOCATION in code Signed-off-by: Patrick Delaunay --- include/configs/thunderx_88xx.h | 1 - scripts/config_whitelist.txt| 1 - 2 files changed, 2 deletions(-) diff --git a/include/configs/thunderx_88xx.h b/include/configs/thunderx_88xx.h index 1ce

[PATCH 1/6] scripts: remove some configs in config_whitelist.txt

2021-10-04 Thread Patrick Delaunay
Remove some config finishing by _ badly added by scripts/build-whitelist.sh when joker is used in comments. for example: doc/uImage.FIT/command_syntax_extensions.txt: ... #ifdef CONFIG_OF_* | ... cmd/nvedit.c:# error Define one of CONFIG_ENV_IS_IN_{EEPROM| \ FLASH|MMC|FAT|EXT4|\

Re: [PATCH] cmd: sf: Support unaligned flash updates with 'sf update'

2021-10-04 Thread Frieder Schrempf
On 30.09.21 23:08, Michael Walle wrote: > Am 2021-09-30 19:17, schrieb Frieder Schrempf: >> On 30.09.21 18:35, Michael Walle wrote: >>> Am 2021-09-30 18:19, schrieb Frieder Schrempf: In order to support unaligned updates, we simply read the first full block and check only the requested pa

Re: [PATCH] cmd: sf: Support unaligned flash updates with 'sf update'

2021-10-04 Thread Frieder Schrempf
On 30.09.21 23:21, Michael Walle wrote: > Am 2021-09-30 18:19, schrieb Frieder Schrempf: >> From: Frieder Schrempf >> >> Currently 'sf update' supports only offsets that are aligned to the >> erase block size of the serial flash. Unaligned offsets result in >> something like: >> >> => sf update ${

Re: [PATCH v2 0/4] Add reset support to HiFive Unmatched

2021-10-04 Thread Alexandre Ghiti
On Fri, Sep 24, 2021 at 10:42 AM Alexandre Ghiti wrote: > > As there is no GPIO to reset the HiFive Unmatched board, we must directly > ask the da9063 PMIC for a reset: this small patchset adds the corresponding > sysreset driver and enables it for this board. > > As the probing of this new device

Re: [PATCH] cmd: sf: Support unaligned flash updates with 'sf update'

2021-10-04 Thread Michael Walle
Am 2021-10-04 12:31, schrieb Frieder Schrempf: On 30.09.21 23:08, Michael Walle wrote: Printing a warning might scare users, though. I'd prefer to fix the online help, where only "erase and write" is mentioned. Which document are you referring to? I don't really see the "sf" command docume

[PATCH] Revert "configs: stm32mp1: only support SD card after NOR in bootcmd_stm32mp"

2021-10-04 Thread Marek Vasut
This reverts commit d5d726d3cc47691ace3c68fa31147ad104aaf579, which breaks boards which ship with multiple SD/eMMC sockets. This stm32mp1.h config is not used only by the ST reference boards, but all the other STM32MP1 based boards in U-Boot, so changes to this stm32mp1.h cannot break the other bo

Re: [PATCH v5 2/5] doc: Move environment documentation to rST

2021-10-04 Thread Wolfgang Denk
Dear Simon, In message <20211002003848.1803446-3-...@chromium.org> you wrote: > > +baudrate > +see CONFIG_BAUDRATE > + > +bootdelay > +see CONFIG_BOOTDELAY > + > +bootcmd > +see CONFIG_BOOTCOMMAND I know you only copied this, but the text is actually not helpful, as it does not even m

Re: [PATCH v5 3/5] env: Allow U-Boot scripts to be placed in a .env file

2021-10-04 Thread Wolfgang Denk
Dear Simon, In message <20211001183842.v5.3.If789ba3e2667c46c03eda3386ca84a863baeda55@changeid> you wrote: > > Add a feature that brings in a .env file associated with the board > config, if present. To use it, create a file in a board//env > directory called .env (or common.env if you want the

Re: [PATCH v5 4/5] env: Allow environment files to use the C preprocessor

2021-10-04 Thread Wolfgang Denk
Dear Simon Glass, In message <20211001183842.v5.4.Ie78bfbfca0d01d9cba501e127f446ec48e1f7afe@changeid> you wrote: > In many cases environment variables need access to the U-Boot CONFIG > variables to select different options. Enable this so that the environment > scripts can be as useful as the o

[PATCH 1/2] arm: mvebu: dts: m801: correct CP1 pinctrl

2021-10-04 Thread Robert Marko
Current CP1 pinctrl that is set on the Puzzle M801 is incorrect. CP1 pins are only used for the SMI bus and the MSS I2C, all other pins are just GPIO-s. Due to this being set completely wrong, the pinctrl was actually ended up being hardcoded in the board_early_init_f() step so that SMI would work

[PATCH 2/2] arm: mvebu: mvebu_armada-8k: drop Puzzle M801 early init code

2021-10-04 Thread Robert Marko
Since the CP1 pinctrl is not properly set in the DTS, there is no need for setting the pinctrl by writing hardcoded values to the MPP registers. So, drop the code relating to that. Fixes: 87c220d0 ("arm: mvebu: mvebu_armada-8k: Add support for initializing iEi Puzzle-M801 networking") Signed-off

Re: [Uboot-stm32] [PATCH v2 01/11] spl: Move SYS_MMCSD_RAW_MODE_KERNEL_SECTOR to Kconfig

2021-10-04 Thread Patrick DELAUNAY
Hi, On 9/8/21 1:59 AM, Alexandru Gagniuc wrote: Although Falcon mode is very useful in improving boot speed, its implementation is quite antiquated. A question that Falcon mode asks is "Where do I look for the kernel". With MMC boot media, the correct answer is CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_S

Re: [PATCH] mtd: cqspi: Fix division by zero

2021-10-04 Thread Tom Rini
On Tue, Sep 14, 2021 at 05:21:48AM +0200, Marek Vasut wrote: > Both dummy.nbytes and dummy.buswidth may be zero. By not checking > the later, it is possible to trigger division by zero and a crash. > This does happen with tiny SPI NOR framework in SPL. Fix this by > adding the check and returning

Re: [PATCH] sf: Querying write-protect status before operating the flash

2021-10-04 Thread Jan Kiszka
On 13.09.21 09:48, Jan Kiszka wrote: > Hi all, > > Chao, please no top-post on mailing list. Also check your mail client, > it seems to inject a lot of bogus newlines. > > On 08.09.21 06:55, chaochao2021666 wrote: >> >> >> >> HI Jagan >> >> >> >> sorry for the delay response. >> >> >> And I have

Re: imx6 DM_VIDEObroken

2021-10-04 Thread Anatolij Gustschin
On Wed, 29 Sep 2021 09:33:18 -0700 Tim Harvey thar...@gateworks.com wrote: ... > One last question on this. I have never used U-Boot vidconsole before. > It does work if I 'setenv stdout serial,videconsole' but if I saveenv > and reboot vidconsole is not enabled. Should I expect it to be or is > i

[PATCH] common: Kconfig: use 'vidconsole' name instead of old 'video'

2021-10-04 Thread Anatolij Gustschin
After DM_VIDEO conversion the 'vidconsole' is the correct name for the frame buffer console. 'video' will not work, so update the description of the config option. Signed-off-by: Anatolij Gustschin --- common/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/

Re: [PATCH] mmc: zynq_sdhci: Add xilinx_pm_request weak function

2021-10-04 Thread Michal Simek
On 10/1/21 1:08 PM, T Karthik Reddy wrote: > Mini emmc does not use any pmufw and ZYNQMP_FIRMWARE is disabled. > xilinx_pm_request() will not be compiled and causes undefined reference to > `xilinx_pm_request' error. So add a weak function in zynq_sdhci.c file. > > Signed-off-by: T Karthik Redd

Re: [resent RFC 00/22] efi_loader: more tightly integrate UEFI disks to device model

2021-10-04 Thread Heinrich Schuchardt
On 10/4/21 05:44, AKASHI Takahiro wrote: # Resending the RFC as some of patches were deplicately submitted. # See also https://git.linaro.org/people/takahiro.akashi/u-boot.git efi/dm_disk The purpose of this RPC is to reignite the discussion about how UEFI subystem would best be integrated

Re: [Uboot-stm32] [PATCH v2 03/11] stm32mp1: Add support for falcon mode boot from SD card

2021-10-04 Thread Patrick DELAUNAY
Hi, On 9/8/21 1:59 AM, Alexandru Gagniuc wrote: Falcon mode requires a board-specific mechanism to select between fast and normal boot. This is done via spl_start_uboot() Use the USER2 button as the selection mechanism. This is connected to GPIO PA13. This GPIO is already accessible via the "st

Re: [PATCH v2 00/11] stm32mp1: Support falcon mode with OP-TEE payloads

2021-10-04 Thread Patrick DELAUNAY
Hi Alexandru On 9/8/21 1:59 AM, Alexandru Gagniuc wrote: My goal when I started on this project a year ago was to get to linux userspace within a second from power on. Oh, and it had to be secure! Contrast that to the two minutes it took the STLinux demo to come up. It was obvious that the acce

[PATCH] video: remove not used mx3fb driver

2021-10-04 Thread Anatolij Gustschin
i.MX31 support was removed, and the non dm-video driver is obsolete and not used. Remove it. Signed-off-by: Anatolij Gustschin --- drivers/video/Makefile | 1 - drivers/video/cfb_console.c | 7 - drivers/video/mx3fb.c | 906 3 files changed, 91

[ANN] U-Boot v2021.10 released

2021-10-04 Thread Tom Rini
Hey all, It is release day and here is v2021.10. With this release we are now at the third of our 2 years past a number of DM migration deadlines. We're now at the point where it's watchdog related migrations that are past due. This is actually a small list of boards and I think can be quickly

[PATCH] video: move MXS to Kconfig

2021-10-04 Thread Anatolij Gustschin
Move CONFIG_VIDEO_MXS from board headers to Kconfig and drop it from obsolete cfb_console driver. Signed-off-by: Anatolij Gustschin --- I'm CCing board maintainers, please review/ack. configs/colibri-imx6ull_defconfig | 1 + configs/colibri_imx7_defconfig| 1 + configs/imxrt1050-evk_defconf

Re: [PATCH v5 3/5] env: Allow U-Boot scripts to be placed in a .env file

2021-10-04 Thread Tom Rini
On Mon, Oct 04, 2021 at 09:28:43AM +0200, Rasmus Villemoes wrote: > On 02/10/2021 02.38, Simon Glass wrote: > > At present U-Boot environment variables, and thus scripts, are defined > > by CONFIG_EXTRA_ENV_SETTINGS. It is painful to add large amounts of text > > to this file and dealing with quot

Re: [PATCH v8 2/5] board: siemens: Add support for SIMATIC IOT2050 devices

2021-10-04 Thread Jan Kiszka
On 04.10.21 01:34, Tom Rini wrote: > On Sat, Sep 18, 2021 at 08:17:53AM +0200, Jan Kiszka wrote: > >> From: Jan Kiszka >> >> This adds support for the IOT2050 Basic and Advanced devices. The Basic >> used the dual-core AM6528 GP processor, the Advanced one the AM6548 HS >> quad-core version. >> >

Re: [PATCH v8 2/5] board: siemens: Add support for SIMATIC IOT2050 devices

2021-10-04 Thread Tom Rini
On Mon, Oct 04, 2021 at 05:54:46PM +0200, Jan Kiszka wrote: > On 04.10.21 01:34, Tom Rini wrote: > > On Sat, Sep 18, 2021 at 08:17:53AM +0200, Jan Kiszka wrote: > > > >> From: Jan Kiszka > >> > >> This adds support for the IOT2050 Basic and Advanced devices. The Basic > >> used the dual-core AM65

Re: [PATCH] video: move MXS to Kconfig

2021-10-04 Thread Fabio Estevam
Hi Anatolij, On Mon, Oct 4, 2021 at 12:33 PM Anatolij Gustschin wrote: > > Move CONFIG_VIDEO_MXS from board headers to Kconfig > and drop it from obsolete cfb_console driver. > > Signed-off-by: Anatolij Gustschin > --- > I'm CCing board maintainers, please review/ack. Reviewed-by: Fabio Estevam

Re: [PATCH] Revert "configs: stm32mp1: only support SD card after NOR in bootcmd_stm32mp"

2021-10-04 Thread Patrick DELAUNAY
Hi, On 10/4/21 1:48 PM, Marek Vasut wrote: This reverts commit d5d726d3cc47691ace3c68fa31147ad104aaf579, which breaks boards which ship with multiple SD/eMMC sockets. This stm32mp1.h config is not used only by the ST reference boards, but all the other STM32MP1 based boards in U-Boot, so change

Re: [PATCH v8 2/5] board: siemens: Add support for SIMATIC IOT2050 devices

2021-10-04 Thread Jan Kiszka
On 04.10.21 18:02, Tom Rini wrote: > On Mon, Oct 04, 2021 at 05:54:46PM +0200, Jan Kiszka wrote: >> On 04.10.21 01:34, Tom Rini wrote: >>> On Sat, Sep 18, 2021 at 08:17:53AM +0200, Jan Kiszka wrote: >>> From: Jan Kiszka This adds support for the IOT2050 Basic and Advanced devices. T

Re: [PATCH] Revert "configs: stm32mp1: only support SD card after NOR in bootcmd_stm32mp"

2021-10-04 Thread Marek Vasut
On 10/4/21 6:34 PM, Patrick DELAUNAY wrote: Hi, Hi, On 10/4/21 1:48 PM, Marek Vasut wrote: This reverts commit d5d726d3cc47691ace3c68fa31147ad104aaf579, which breaks boards which ship with multiple SD/eMMC sockets. This stm32mp1.h config is not used only by the ST reference boards, but all

Re: [ANN] U-Boot v2021.10 released

2021-10-04 Thread Tom Rini
On Mon, Oct 04, 2021 at 11:11:08AM -0400, Tom Rini wrote: > Hey all, > > It is release day and here is v2021.10. With this release > we are now at the third of our 2 years past a number of DM migration > deadlines. We're now at the point where it's watchdog related > migrations that are past d

[PATCH] ppc: mpc8xx: Drop -mstring from PLATFORM_CPPFLAGS

2021-10-04 Thread Tom Rini
This has not been supported by toolchains for some time and has been putting out a warning. Drop this. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc8xx/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/mpc8xx/config.mk b/arch/powerpc/cpu/mpc8xx/c

Re: [resent RFC 00/22] efi_loader: more tightly integrate UEFI disks to device model

2021-10-04 Thread Ilias Apalodimas
On Mon, Oct 04, 2021 at 04:47:53PM +0200, Heinrich Schuchardt wrote: > > > > [...] > > My approach in this RFC: > > > > Due to functional differences in semantics, it would be difficult > > to identify "udevice" structure as a handle in UEFI world. Instead, we will > >

Re: [resent RFC 08/22] dm: blk: add UCLASS_PARTITION

2021-10-04 Thread Ilias Apalodimas
Hi Akashi-san, > [...] > +int blk_create_partitions(struct udevice *parent) > +{ > + int part, count; > + struct blk_desc *desc = dev_get_uclass_plat(parent); > + struct disk_partition info; > + struct disk_part *part_data; > + char devname[32]; > + struct udevice *dev;

Re: [resent RFC 06/22] sata: call device_probe() after scanning

2021-10-04 Thread Ilias Apalodimas
On Mon, Oct 04, 2021 at 12:44:14PM +0900, AKASHI Takahiro wrote: > Every time a sata bus/port is scanned and a new device is detected, > we want to call device_probe() as it will give us a chance to run additional > post-processings for some purposes. > > In particular, support for creating partit

Re: [resent RFC 14/22] efi_loader: disk: a helper function to create efi_disk objects from udevice

2021-10-04 Thread Ilias Apalodimas
On Mon, Oct 04, 2021 at 12:44:22PM +0900, AKASHI Takahiro wrote: > Add efi_disk_create() function. > > Any UEFI handle created by efi_disk_create() can be treated as a efi_disk > object, the udevice is either a UCLASS_BLK (a whole raw disk) or > UCLASS_PARTITION (a disk partition). > > So this fu

Re: [PATCH 1/2] docs: dt: Fix a few grammar nits in the binding/schema docs

2021-10-04 Thread Rob Herring
On Sun, 03 Oct 2021 12:50:06 -0600, Simon Glass wrote: > Add missing hyphens and reword one sentence for clarity. > > Signed-off-by: Simon Glass > --- > > .../devicetree/bindings/example-schema.yaml | 14 - > .../devicetree/bindings/writing-bindings.rst | 2 +- > .../devicetree/bind

Re: [PATCH 2/2] dt-bindings: u-boot: Add an initial binding for config

2021-10-04 Thread Rob Herring
On Sun, Oct 03, 2021 at 12:51:53PM -0600, Simon Glass wrote: > U-Boot makes use of the devicetree for its driver model. Devices are bound > based on the hardware description in the devicetree. > > Since U-Boot is not an operating system, it has no command line or user > space to provide configurat

FIT image: load secure FPGA

2021-10-04 Thread Jorge Ramirez-Ortiz, Foundries
Hello, We are enabling secure boot on Zynqmp with SPL. The issue however is that during secure boot, the bootrom not only validates the first loader (SPL and PMUFW combo) but it will also expect a signed bitstream during load(FPGA). Since currently the SPL load of an FPGA image from FIT does not

Re: FIT image: load secure FPGA

2021-10-04 Thread Alex G.
On 10/4/21 3:32 PM, Jorge Ramirez-Ortiz, Foundries wrote: Hello, We are enabling secure boot on Zynqmp with SPL. The issue however is that during secure boot, the bootrom not only validates the first loader (SPL and PMUFW combo) but it will also expect a signed bitstream during load(FPGA). Sin

Re: [PATCH] sunxi: h3: enable clock support for r_pio gpios

2021-10-04 Thread Andre Przywara
On Mon, 26 Jul 2021 18:19:48 +0200 (CEST) Manuel Dipolt wrote: Hi Manuel, > This patch enables clock for the r_pio gpios for the h3 Thanks for the patch, but can you say what this is needed for or what it fixes? Also this patch looks mangled, the leading spaces in the diff context are gone, a

RE: [PATCH v2 1/2] pinctrl: single: Parse gpio details from dt

2021-10-04 Thread Roman Bacik
> -Original Message- > From: Roman Bacik > Sent: Friday, October 1, 2021 3:40 PM > To: U-Boot Mailing List > Cc: Bharat Gooty ; Rayagonda Kokatanur > ; Roman Bacik > ; Dario Binacchi ; > Pratyush Yadav ; Simon Glass ; > Vignesh Raghavendra > Subject: [PATCH v2 1/2] pinctrl: single: Parse

Re: [resent RFC 00/22] efi_loader: more tightly integrate UEFI disks to device model

2021-10-04 Thread Simon Glass
Hi Takahiro, On Sun, 3 Oct 2021 at 21:44, AKASHI Takahiro wrote: > > # Resending the RFC as some of patches were deplicately submitted. > # See also > https://git.linaro.org/people/takahiro.akashi/u-boot.git efi/dm_disk > > The purpose of this RPC is to reignite the discussion about how UEFI >

Re: [PATCH] sun7i: Add defconfig and dts for Vivax TPC-9150 v3

2021-10-04 Thread Andre Przywara
On Sat, 2 Oct 2021 23:32:34 +0200 Nikola Pavlica wrote: Hi Nikola, > This patch uses the (almost) the same settings as those found in the > original Android firmware. As such, it gurantees good compatibility. > > V2: Small fixes/changes to the config > > V3: Checkpatch fixes Please try to fi

Re: [PATCH] sunxi: Add support for FriendlyARM NanoPi R1S H5

2021-10-04 Thread Andre Przywara
On Sun, 3 Oct 2021 21:16:54 +0800 Chukun Pan wrote: > This adds support for the NanoPi R1S H5 board. > > Allwinner H5 SoC > 512MB DDR3 RAM > 10/100/1000M Ethernet x 2 > RTL8189ETV WiFi 802.11b/g/n > USB 2.0 host port (A) > MicroSD Slot > Reset button > Serial Debug Port > WAN - LAN - SYS LED >

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

2021-10-04 Thread Vladimir Oltean
On Thu, Sep 02, 2021 at 06:45:29PM +0200, Michael Walle wrote: > This series sync the device tree of the LS1028A SoC with the linux one. > To ease future debugging and reviewing, we first clean up the existing one, > removing bogus nodes, moving all CCSR related nodes in /soc and update the > drive

Re: [resent RFC 06/22] sata: call device_probe() after scanning

2021-10-04 Thread AKASHI Takahiro
On Mon, Oct 04, 2021 at 09:45:35PM +0300, Ilias Apalodimas wrote: > On Mon, Oct 04, 2021 at 12:44:14PM +0900, AKASHI Takahiro wrote: > > Every time a sata bus/port is scanned and a new device is detected, > > we want to call device_probe() as it will give us a chance to run additional > > post-proc

Re: [resent RFC 08/22] dm: blk: add UCLASS_PARTITION

2021-10-04 Thread AKASHI Takahiro
On Mon, Oct 04, 2021 at 09:40:21PM +0300, Ilias Apalodimas wrote: > Hi Akashi-san, > > > > > [...] > > > +int blk_create_partitions(struct udevice *parent) > > +{ > > + int part, count; > > + struct blk_desc *desc = dev_get_uclass_plat(parent); > > + struct disk_partition info; > > + s

Re: [resent RFC 14/22] efi_loader: disk: a helper function to create efi_disk objects from udevice

2021-10-04 Thread AKASHI Takahiro
On Mon, Oct 04, 2021 at 09:50:02PM +0300, Ilias Apalodimas wrote: > On Mon, Oct 04, 2021 at 12:44:22PM +0900, AKASHI Takahiro wrote: > > Add efi_disk_create() function. > > > > Any UEFI handle created by efi_disk_create() can be treated as a efi_disk > > object, the udevice is either a UCLASS_BLK

Re: [resent RFC 00/22] efi_loader: more tightly integrate UEFI disks to device model

2021-10-04 Thread AKASHI Takahiro
On Mon, Oct 04, 2021 at 04:47:53PM +0200, Heinrich Schuchardt wrote: > > > On 10/4/21 05:44, AKASHI Takahiro wrote: > > # Resending the RFC as some of patches were deplicately submitted. > > # See also > >https://git.linaro.org/people/takahiro.akashi/u-boot.git efi/dm_disk > > > > The purpos

Re: [resent RFC 00/22] efi_loader: more tightly integrate UEFI disks to device model

2021-10-04 Thread AKASHI Takahiro
On Mon, Oct 04, 2021 at 09:07:35PM +0300, Ilias Apalodimas wrote: > On Mon, Oct 04, 2021 at 04:47:53PM +0200, Heinrich Schuchardt wrote: > > > > > > > > > [...] > > > > My approach in this RFC: > > > > > > Due to functional differences in semantics, it would be difficu

[PATCH v3 00/16] Add CAAM driver model support

2021-10-04 Thread Gaurav Jain
This patchset adds the support for following: 1) CAAM Driver model for all i.MX, layerscape, PPC platforms. 2) Added crypto node in device tree files. 3) CAAM support for blob key encryption key(bkek), random number generation. 4) fix build issue for mx6sabre: Remove SPL DTB related configs and SP

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

2021-10-04 Thread Gaurav Jain
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 + drivers/crypto/fsl/Kconfig | 7 + drivers/crypto/fsl/Makefile | 3 +- drivers/c

[PATCH v3 02/16] crypto/fsl: Add CAAM support for bkek, random number generation

2021-10-04 Thread Gaurav Jain
added api and descriptor for blob key encryption key(bkek) generation. added api for random number generation. Signed-off-by: Gaurav Jain Signed-off-by: Ji Luo Reviewed-by: Ye Li --- drivers/crypto/fsl/desc.h | 5 +++ drivers/crypto/fsl/fsl_blob.c | 82 +++

[PATCH v3 03/16] i.MX8M: crypto: updated device tree for supporting DM in SPL

2021-10-04 Thread Gaurav Jain
disabled use of JR0 in SPL and uboot, as JR0 is reserved for secure boot. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 18 +- arch/arm/dts/imx8mm.dtsi | 1 + arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 18 ++

[PATCH v3 04/16] crypto/fsl: i.MX8M: Enable Job ring driver model in SPL and U-Boot.

2021-10-04 Thread Gaurav Jain
i.MX8MM/MN/MP/MQ - added support for JR driver model. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/include/asm/arch-imx8m/imx-regs.h | 1 + arch/arm/ma

[PATCH v3 05/16] mx6sabre: Remove unnecessary SPL configs

2021-10-04 Thread Gaurav Jain
From: Ye Li Because we don't use SPL_DM on mx6sabresd and mx6sabreauto, so it is unnecessary to have SPL DTB related configs and SPL_OF_CONTROL enabled. Signed-off-by: Ye Li Reviewed-by: Fabio Estevam Reviewed-by: Gaurav Jain --- configs/mx6sabreauto_defconfig | 2 -- configs/mx6sabresd_defc

[PATCH v3 06/16] i.MX6: Enable Job ring driver model in U-Boot.

2021-10-04 Thread Gaurav Jain
i.MX6,i.MX6SX,i.MX6UL - added support for JR driver model. removed sec_init() call, sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/mach-imx/mx6/Kconfig | 20 arch/arm/mach-imx/mx6/soc.

[PATCH v3 07/16] i.MX7: Enable Job ring driver model in U-Boot.

2021-10-04 Thread Gaurav Jain
i.MX7D - added support for JR driver model. removed sec_init() call, sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/mach-imx/mx7/Kconfig | 3 +++ arch/arm/mach-imx/m

[PATCH v3 08/16] i.MX7ULP: Enable Job ring driver model in U-Boot.

2021-10-04 Thread Gaurav Jain
added crypto node in device tree. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/dts/imx7ulp.dtsi| 24 arch/arm/mach-imx/mx7ulp/Kco

[PATCH v3 09/16] i.MX8: Add crypto node in device tree

2021-10-04 Thread Gaurav Jain
i.MX8(QM/QXP) - updated device tree for supporting DM in SPL. disabled use of JR1 in SPL and uboot, as JR1 is reserved for SECO FW. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/dts/fsl-imx8dx.dtsi | 61 +++- arch/arm/dts/fsl-imx8qm-mek-u-boot.dtsi

[PATCH v3 10/16] crypto/fsl: i.MX8: Enable Job ring driver model in SPL and U-Boot.

2021-10-04 Thread Gaurav Jain
i.MX8(QM/QXP) - added support for JR driver model. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Signed-off-by: Horia Geantă Reviewed-by: Ye Li --- arch/arm/Kconfig | 3 +++ arch/arm/include/asm/arch-imx8/imx-r

[PATCH v3 11/16] crypto/fsl: Fix kick_trng

2021-10-04 Thread Gaurav Jain
From: Ye Li fix hwrng performance issue in kernel. Signed-off-by: Ye Li Acked-by: Gaurav Jain > --- drivers/crypto/fsl/jr.c | 109 ++-- include/fsl_sec.h | 1 + 2 files changed, 94 insertions(+), 16 deletions(-) diff --git a/drivers/crypto/fsl/jr.c

[PATCH v3 12/16] Layerscape: Add crypto node in device tree

2021-10-04 Thread Gaurav Jain
LS(1021/1012/1028/1043/1046/1088/2088), LX2160 - updated device tree Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/arm/dts/fsl-ls1012a.dtsi | 46 ++- arch/arm/dts/fsl-ls1028a.dtsi | 41 ++- arch/arm/dts/fsl-ls1043a.dts

[PATCH v3 13/16] Layerscape: Enable Job ring driver model in U-Boot.

2021-10-04 Thread Gaurav Jain
LS(1021/1012/1028/1043/1046/1088/2088), LX2160, LX2162 platforms are enabled with JR driver model. removed sec_init() call from board files. removed CONFIG_FSL_CAAM from defconfig files. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Revie

[PATCH v3 14/16] PPC: Add crypto node in device tree

2021-10-04 Thread Gaurav Jain
device tree imported from linux kernel. c500bee1c5b2 (tag: v5.14-rc4) Linux 5.14-rc4 Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/powerpc/dts/p2041si-post.dtsi | 1 + arch/powerpc/dts/p3041si-post.dtsi | 1 + arch/powerpc/dts/p4080si-post.dtsi | 1 + arch/powerpc/dts/

[PATCH v3 15/16] PPC: Enable Job ring driver model in U-Boot

2021-10-04 Thread Gaurav Jain
removed sec_init() call and CONFIG_FSL_CAAM from defconfig. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 44 +++ arch/powerpc/cpu/mpc85xx/cpu

[PATCH v3 16/16] update CAAM MAINTAINER

2021-10-04 Thread Gaurav Jain
Signed-off-by: Gaurav Jain --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 40a0e7ac72..e2f601d7cc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1258,3 +1258,10 @@ T: git https://source.denx.de/u-boot/u-boot.git F: configs/tool

Re: FIT image: load secure FPGA

2021-10-04 Thread Jorge Ramirez-Ortiz, Foundries
On 04/10/21, Alex G. wrote: > On 10/4/21 3:32 PM, Jorge Ramirez-Ortiz, Foundries wrote: > > Hello, > > hi Alex, > > We are enabling secure boot on Zynqmp with SPL. > > > > The issue however is that during secure boot, the bootrom not only > > validates the first loader (SPL and PMUFW combo) but

Re: FIT image: load secure FPGA

2021-10-04 Thread Jorge Ramirez-Ortiz, Foundries
On 05/10/21, Jorge Ramirez-Ortiz, Foundries wrote: > On 04/10/21, Alex G. wrote: > > On 10/4/21 3:32 PM, Jorge Ramirez-Ortiz, Foundries wrote: > > > Hello, > > > > > hi Alex, > > > > We are enabling secure boot on Zynqmp with SPL. > > > > > > The issue however is that during secure boot, the boo

Re: [PATCH] introduce CONFIG_DEVICE_TREE_INCLUDES

2021-10-04 Thread Rasmus Villemoes
Please note that this is not a resubmission of fdt_add_pubkey, I merely mentioned that in passing (and cc'ed Roman because of his interest in that) as a previous attempt at solving the problem of getting the public key info baked into U-Boot's .dtb, an approach that I've since learnt is not without