Re: imx: imx8mm: imx8mm-kontron-n801x-s: does not start work

2022-01-11 Thread Heiko Thiery
Hi Adam, Hi Frieder, Am Di., 11. Jan. 2022 um 20:33 Uhr schrieb Adam Ford : > > On Tue, Jan 11, 2022 at 1:18 AM Heiko Thiery wrote: > > > > Hi all, > > > > I wanted to test the newly introduced kontron-sl-mx8mm_defconfig but > > it does not work. > > > > I already found two converted config

Re: [PATCH u-boot-marvell 00/16] tools: kwbimage: Load address fixes

2022-01-11 Thread Stefan Roese
Hi Pali, while testing with this patchset (amongst others), I get this error while building for "theadorable_debug": $ make theadorable_debug_defconfig $ make -s -j20 Invalid LOAD_ADDRESS 0x40004030 for BINARY spl/u-boot-spl.bin with 0 args. Address must be 4-byte aligned and in range

[PATCH 1/1] .readthedocs.yml: update the requirements

2022-01-11 Thread Heinrich Schuchardt
Fix an error: This project needs at least Sphinx v2.4.4. Signed-off-by: Heinrich Schuchardt --- .readthedocs.yml| 15 ++- doc/sphinx/requirements.txt | 6 +++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index

Re: [RESEND PATCH v3 01/12] mmc: fsl_esdhc_imx: make BLK as hard requirement of DM_MMC

2022-01-11 Thread Minkyu Kang
Hi! On Wed, 12 Jan 2022 at 08:29, Jaehoon Chung wrote: > From: Sean Anderson > > U-boot prefers DM_MMC + BLK for MMC. Now eSDHC driver has already > support it, so let's force to use it. > > - Drop non-BLK support for DM_MMC introduced by below patch. >66fa035 mmc: fsl_esdhc: fix probe

Re: [PATCH 2/4] CI, Dockerfile: Update to latest "focal" tag

2022-01-11 Thread Fabio Estevam
On Tue, Jan 11, 2022 at 9:14 PM Tom Rini wrote: > > Bring us to the focial-20220105 tag and rebuild our images on top of s/focial/focal

[GIT PULL] Please pull u-boot-mmc master

2022-01-11 Thread Jaehoon Chung
Hi Tom, Please pull u-boot-mmc master into u-boot master branch. If there is a problem, let me know, plz. Best Regards, Jaehoon Chung CI: https://source.denx.de/u-boot/custodians/u-boot-mmc/-/pipelines/10571 The following changes since commit fe04d885fb540b614a2f989e16e808b300ccb52e: Merge

Re: [PATCH v2 4/4] rockchip: sdhci: Add HS400 Enhanced Strobe support for RK3568

2022-01-11 Thread 赵仪峰
Hi Alper, The Synopsys DWC MSHC for RK3568 and RK3588 need config DWCMSHC_EMMC_CONTROL.bit0 = 1 (CARD_IS_EMMC) to enable Data Strobe pin for HS400 and HS400ES. reference code: #define DWCMSHC_EMMC_CONTROL 0x52c #define DWCMSHC_CARD_IS_EMMC BIT(0) /* set CARD_IS_EMMC bit to enable Data Strobe

Re: [PATCH 4/4] .readthedocs.yml: Set our requirements file

2022-01-11 Thread Heinrich Schuchardt
On 1/12/22 01:14, Tom Rini wrote: We provide a requirements.txt file for doc building, but had not been configuring readthedocs to know where it is. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- .readthedocs.yml | 9 - > 1 file changed, 4 insertions(+), 5 deletions(-) diff

How to use add-symbol-file in gdb after the program jumped to linux? (both when PC is physical and virtual)

2022-01-11 Thread Chan Kim
Hello experts, I'm following linux boot-loading using u-boot (using SPL falcon mode, from RAM) on a qemu virtual machine (now linux started in real board too). The code jumped to linux kernel and because I have done `add-symbol-file vmlinux 0x80081000` I can follow the kernel code step by step

Re: [PATCH 2/4] CI, Dockerfile: Update to latest "focal" tag

2022-01-11 Thread Tom Rini
On Tue, Jan 11, 2022 at 10:55:08PM -0300, Fabio Estevam wrote: > On Tue, Jan 11, 2022 at 9:14 PM Tom Rini wrote: > > > > Bring us to the focial-20220105 tag and rebuild our images on top of > > s/focial/focal Whoops, thanks. -- Tom signature.asc Description: PGP signature

Re: imx: imx8mm: imx8mm-kontron-n801x-s: does not start work

2022-01-11 Thread Frieder Schrempf
On 12.01.22 08:16, Heiko Thiery wrote: > Hi Adam, Hi Frieder, > > Am Di., 11. Jan. 2022 um 20:33 Uhr schrieb Adam Ford : >> >> On Tue, Jan 11, 2022 at 1:18 AM Heiko Thiery wrote: >>> >>> Hi all, >>> >>> I wanted to test the newly introduced kontron-sl-mx8mm_defconfig but >>> it does not work.

Re: [PATCH 2/3] arm: dts: apple: Add watchdog timer node

2022-01-11 Thread Stefan Roese
On 11/14/21 12:19, Mark Kettenis wrote: Add a node for the watchdog timer based on the proposed Linux device tree bindings. Signed-off-by: Sven Peter Signed-off-by: Mark Kettenis --- arch/arm/dts/t8103.dtsi | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

Re: [PATCHv3] net: uclass: Save generated ethernet MAC addresses to the environment

2022-01-11 Thread Michal Simek
po 10. 1. 2022 v 15:09 odesílatel Michal Simek napsal: > > > > On 1/10/22 15:03, Tom Rini wrote: > > On Fri, Jan 07, 2022 at 04:08:34PM +0100, Michal Simek wrote: > >> so 27. 11. 2021 v 20:37 odesílatel Ramon Fried > >> napsal: > >>> > >>> On Mon, Nov 22, 2021 at 3:45 PM Tom Rini wrote: >

Re: [PATCH 3/3] arm: apple: Use watchdog timer for system reset

2022-01-11 Thread Stefan Roese
On 11/14/21 12:19, Mark Kettenis wrote: Rely on the new watchdog timer driver and the sysreset uclass to reset the system. This gets rid of hard-coded addresses and should work on systems based on the new M1 Pro and M1 Max SoCs as well. Signed-off-by: Mark Kettenis Reviewed-by: Stefan Roese

Re: [PATCH 1/2] ARM: dts: stm32: Synchronize DHCOR DTs with Linux 5.15.12

2022-01-11 Thread Patrick DELAUNAY
Hi Marek, On 12/30/21 11:46 PM, Marek Vasut wrote: Synchronize DH DHCOR DTs with Linux commit 25960cafa06e ("Linux 5.15.12"). There is no functional change to the resulting DTs. The eeprom0 alias is now reinstated in SoM u-boot dtsi, the PHY reset GPIO is reinstated in AV96 u-boot dtsi.

Re: [PATCH 2/2] ARM: dts: stm32: Synchronize DHCOM DTs with Linux 5.15.12

2022-01-11 Thread Patrick DELAUNAY
Hi Marek, On 12/30/21 11:46 PM, Marek Vasut wrote: Synchronize DH DHCOM DTs with Linux commit 25960cafa06e ("Linux 5.15.12"). There is no functional change to the resulting DTs. The eeprom0 alias and PHY reset GPIO are now reinstated in SoM u-boot dtsi. Signed-off-by: Marek Vasut Cc: Patrice

Re: [PATCH 1/3] watchdog: Add a driver for the Apple watchdog

2022-01-11 Thread Stefan Roese
On 11/14/21 12:19, Mark Kettenis wrote: This driver supports the watchdog timer found on Apple's M1 SoC. On systems that use these SoC, the watchdog timer is the primary way to reboot the system. Signed-off-by: Mark Kettenis --- MAINTAINERS | 1 + drivers/watchdog/Kconfig

[PATCH v2] imx8mq_evk: configs: add/cleanup variables for distro boot

2022-01-11 Thread Andrey Zhizhikin
Add fdt_addr_r fdtfile which used by distro boot, and cleanup legacy environment variables. Signed-off-by: Andrey Zhizhikin --- Changes in V2: - Rebased on latest master after 2022.01 release include/configs/imx8mq_evk.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH v9 03/14] crypto/fsl: i.MX8M: Enable Job ring driver model.

2022-01-11 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 +

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

2022-01-11 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 --- drivers/crypto/fsl/Kconfig | 1 + drivers/crypto/fsl/jr.c| 323 -

[PATCH v9 00/14] Add CAAM driver model support

2022-01-11 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) fix build issue for mx6sabre: Remove SPL DTB related configs and SPL_OF_CONTROL. i.MX platforms: i.MX6, i.MX7, i.MX7ULP, i.MX8MM/MN/MP/MQ,

[PATCH v9 02/14] i.MX8M: crypto: updated device tree for supporting DM in SPL

2022-01-11 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 | 19 ++- arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 19 ++- arch/arm/dts/imx8mp-evk-u-boot.dtsi

[PATCH v9 04/14] mx6sabre: Remove unnecessary SPL configs

2022-01-11 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 --

[PATCH 7/7] sunxi: H6: Enable SPI0 in DT when no eMMC is used

2022-01-11 Thread Andre Przywara
On the Allwinner H6 SoC both the SPI0 and the eMMC device share one pin, so cannot be used simultaneously. On Linux this is a showstopper, since only one of them would be able to claim the pin, and the probe order is somewhat random. The DT consequently disables SPI0 in favour of the more useful

[PATCH] serial: zynq: Add missing xlnx,zynqmp-uart compatible

2022-01-11 Thread Michal Simek
Based on Linux kernel DT binding xlnx,zynqmp-uart is another compatible string which can be used for this driver. That's why also list it here. Signed-off-by: Michal Simek --- drivers/serial/serial_zynq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_zynq.c

[PATCH v4] net: uclass: Save generated ethernet MAC addresses to the environment

2022-01-11 Thread Michal Simek
When a MAC address is randomly generated we currently only update the appropriate data structure. For consistency and to re-align with historic usage, it should be also saved to the appropriate environment variable as well. Cc: Wolfgang Denk Signed-off-by: Michal Simek Reviewed-by: Ramon Fried

Re: [PATCH 1/6] cmd: exception: arm64: fix undefined, add faults

2022-01-11 Thread Andre Przywara
On Mon, 10 Jan 2022 23:37:59 +0100 (CET) Mark Kettenis wrote: > > Date: Sun, 9 Jan 2022 23:19:10 + > > From: Andre Przywara > > > > On Sun, 9 Jan 2022 23:47:32 +0100 (CET) > > Mark Kettenis wrote: > > > > Hi Mark, > > > > (I knew I forgot to CC: one person ...) > > > > > > Date: Sun,

RE: [EXT] Re: [PATCH v8 12/15] Layerscape: Enable Job ring driver model.

2022-01-11 Thread Gaurav Jain
Hi Michael > -Original Message- > From: Michael Walle > Sent: Tuesday, January 11, 2022 12:52 PM > To: Gaurav Jain > Cc: Shengzhou Liu ; Varun Sethi ; > Adrian Alonso ; Alison Wang > ; Andy Tang ; > feste...@gmail.com; Franck Lenormand ; Horia > Geanta ; Ji Luo ; Meenakshi > Aggarwal ;

Re: [EXT] Re: [PATCH v9 11/14] Layerscape: Enable Job ring driver model.

2022-01-11 Thread Michael Walle
Hi, Am 2022-01-11 13:55, schrieb Gaurav Jain: >> > diff --git a/configs/ls2088ardb_tfa_defconfig >> > b/configs/ls2088ardb_tfa_defconfig >> > index a28b45b129..5230d7ead8 100644 >> > --- a/configs/ls2088ardb_tfa_defconfig >> > +++ b/configs/ls2088ardb_tfa_defconfig >> > @@ -53,7 +53,6 @@

Re: [PATCH] mmc: dw_mmc: Fixes timeout issue for FIFO mode

2022-01-11 Thread Jaehoon Chung
Hi, On 1/11/22 7:24 PM, hmz007 wrote: > Clearing the DTO interrupt should be unnecessary, and it would > potentially result in never receiving this interrupt again. > > Do power-on or reset from uboot for a while can reproduce the issue: > dwmci_data_transfer: Timeout waiting for data! >

Re: [PATCH v9 11/14] Layerscape: Enable Job ring driver model.

2022-01-11 Thread Michael Walle
Hi Gaurav, Am 2022-01-11 12:28, schrieb Gaurav Jain: @@ -1329,6 +1331,7 @@ config TARGET_LS2080ARDB select FSL_DDR_BIST select FSL_DDR_INTERACTIVE if !SPL select GPIO_EXTRA_HEADER + select FSL_CAAM See below. diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c

Re: [RFC PATCH v3 1/5] imx8m: drop env_get_location for imx8mn and imx8mp

2022-01-11 Thread Teresa Remmet
Hello Tommaso, Am Samstag, dem 08.01.2022 um 20:08 +0100 schrieb Tommaso Merciai: > On Tue, Jan 04, 2022 at 11:04:10AM +, Teresa Remmet wrote: > > Hello Tommaso, > > > > Am Samstag, dem 25.12.2021 um 21:25 +0100 schrieb Tommaso Merciai: > > > This function defined for two architecture is not

Re: [EXT] Re: [PATCH v9 11/14] Layerscape: Enable Job ring driver model.

2022-01-11 Thread Michael Walle
Hi Gaurav, Am 2022-01-11 13:30, schrieb Gaurav Jain: Am 2022-01-11 12:28, schrieb Gaurav Jain: > @@ -1329,6 +1331,7 @@ config TARGET_LS2080ARDB > select FSL_DDR_BIST > select FSL_DDR_INTERACTIVE if !SPL > select GPIO_EXTRA_HEADER > + select FSL_CAAM See below. > diff

[PATCH 0/7] sunxi: Fix U-Boot proper SPI operation

2022-01-11 Thread Andre Przywara
Hi, despite U-Boot supporting SPI on Allwinner chips and SPI flash in general for a while, it wasn't really working well for many sunxi boards. Booting from SPI is handled by separate SPL code, which works fine, but the "sf" command in U-Boot proper is often just not operational. This series

[PATCH 1/1] cmd: enable UEFI commands by default

2022-01-11 Thread Heinrich Schuchardt
Enable commands for display and manipulation of UEFI boot options by default. Signed-off-by: Heinrich Schuchardt --- cmd/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 02c298fdbe..cfc4563f59 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -502,6

[PATCH v9 11/14] Layerscape: Enable Job ring driver model.

2022-01-11 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

[PATCH v9 12/14] PPC: Add crypto node in device tree

2022-01-11 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 +

[PATCH v9 13/14] PPC: Enable Job ring driver model.

2022-01-11 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 | 22 ++

[PATCH v9 10/14] Layerscape: Add crypto node in device tree

2022-01-11 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-ls1043a.dtsi | 45 +-

[PATCH v9 14/14] update CAAM MAINTAINER

2022-01-11 Thread Gaurav Jain
updated CAAM driver files maintainer. Signed-off-by: Gaurav Jain --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f4bd3d79e2..1c912b2c65 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1334,3 +1334,9 @@ T:git

Re: [PATCH] .mailmap: add Atish Patra, Anup Patel

2022-01-11 Thread Anup Patel
On Sun, Jan 9, 2022 at 11:21 PM Heinrich Schuchardt wrote: > > Both have left Western Digital. > > Signed-off-by: Heinrich Schuchardt Thanks Heinrich, we totally forgot changing email addresses here. Regards, Anup > --- > .mailmap | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

[PATCH 1/7] sunxi: SPI: fix pinmuxing for Allwinner H6 SoCs

2022-01-11 Thread Andre Przywara
From: Daniel Wagenknecht The driver for SPI0 on Allwinner H6 SoCs did not use the correct define SUN50I_GPC_SPI0 for the pin function, but one for a different Allwinner SoC series. Fix the conditionals to use the correct define for H6 SoCs. This matches the conditional logic in the SPL spi

[PATCH 5/7] env: sunxi: enable ENV_IS_IN_SPI_FLASH

2022-01-11 Thread Andre Przywara
Now that sunxi uses CONFIG_SPI more sanely, and can also now properly load the environment from SPI flash, let's enable the symbol that actually considers the SPI flash when accessing the environment. As this symbol depends on CONFIG_SPI, which we now only enable if the board has a SPI flash, we

[PATCH 6/7] sunxi: boards: Enable SPI flash support in U-Boot proper

2022-01-11 Thread Andre Przywara
Some sunxi boards ship with SPI flash, which allows booting through the BootROM. We cover this functionality by a separate SPL "mini" driver. Separately we have a proper DM_SPI driver for U-Boot proper, which provides access to the SPI flash through the "sf" command. That allows to update the

[PATCH 2/7] sunxi: Kconfig: Fix up SPI configuration

2022-01-11 Thread Andre Przywara
Commit 7945caf22c44 ("arm: sunxi: Enable SPI/SPI-FLASH support for A64") selected CONFIG_SPI by default on all Allwinner A64 boards, even though only 4 out of the 14 A64 boards have a SPI flash chip. All other SoCs had to manually select DM_SPI and friends, even though they are a platform property

[PATCH 4/7] sunxi: use boot source for determining environment location

2022-01-11 Thread Andre Przywara
Currently we only support to load the environment from raw MMC or FAT locations on Allwinner boards. With the advent of SPI flash we probably also want to support using the environment there, so we need to become a bit more flexible. Change the environment priority function to take the boot

[PATCH 3/7] env: sunxi: Define location in SPI flash

2022-01-11 Thread Andre Przywara
To allow loading and storing the environment from SPI flash, adjust the raw offset variables for Allwinner boards to make sense there. U-Boot (including SPL and other blobs) is loaded from the beginning of SPI flash, so move the environment location as far back as possible, to not create

RE: [EXT] Re: [PATCH v9 11/14] Layerscape: Enable Job ring driver model.

2022-01-11 Thread Gaurav Jain
Hi Michael > -Original Message- > From: Michael Walle > Sent: Tuesday, January 11, 2022 6:04 PM > To: Gaurav Jain > Cc: u-boot@lists.denx.de; Stefano Babic ; Fabio Estevam > ; Peng Fan ; Simon Glass > ; Priyanka Jain ; Ye Li > ; Horia Geanta ; Ji Luo > ; Franck Lenormand ; Silvano Di >

[PATCH 1/1] configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin

2022-01-11 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" We changed to single flash.bin now. So dfu_alt_info should be modified to reflect this change. Signed-off-by: Ying-Chun Liu (PaulLiu) --- include/configs/imx8mm-cl-iot-gate.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 0/1] configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin

2022-01-11 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" imx8mm generate a single bootable flash.bin again. Previous it is flash.bin and u-boot.itb. So we need to modify dfu_alt_info for single flash.bin. Ying-Chun Liu (PaulLiu) (1): configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin

Re: [PATCH 1/1] configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin

2022-01-11 Thread Fabio Estevam
On Tue, Jan 11, 2022 at 1:38 PM Ying-Chun Liu wrote: > > From: "Ying-Chun Liu (PaulLiu)" > > We changed to single flash.bin now. So dfu_alt_info should be modified > to reflect this change. > > Signed-off-by: Ying-Chun Liu (PaulLiu) Reviewed-by: Fabio Estevam

[PATCH] cmd: bcb: fix bcb struct alignment issue

2022-01-11 Thread Gary Bisson
Without this patch the bcb struct could be located at an odd address which resulted in data not being copied to the buffer. Here was the repro steps (from Mattijs): => mmc dev 1 => bcb load 1 misc => bcb dump command : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0010: 00 00 00 00

Re: [PATCH 3/3] misc: atsha204a: fix i2c address readout from DTS

2022-01-11 Thread Adrian Fiergolski
Hi Marek, Thank you for your review. On 21.12.2021 18:52, Marek Behún wrote: On Tue, 21 Dec 2021 17:17:22 +0100 Adrian Fiergolski wrote: This patch replaces use fdtdec_get_addr with recommended fdtdec_get_addr_size_auto_parent. And why is that required? I didn't debug why exactly, but it

[PATCH 1/2 v2] soc: sdm845: implement ABL info collecting, add bootcommand and usage doc

2022-01-11 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image, and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT -

[PATCH 2/2 v2] board: starqltechn: get board usable - fix defconfig and strip config options

2022-01-11 Thread Dzmitry Sankouski
- add FIT image support - increase LMB_MAX_REGIONS, to store all linux dtb reserved memory regions - add linux kernel image header Uart driver causes hang, when u-boot is used in android boot image instead of linux. Temporary disable console driver, until investigated and fixed. Signed-off-by:

[PATCH 0/2] get sdm845 boards u-boot usable as a secondary bootloader

2022-01-11 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image(ABL), and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT

[PATCH v9 07/14] i.MX7ULP: Enable Job ring driver model.

2022-01-11 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

[PATCH v9 06/14] i.MX7: Enable Job ring driver model.

2022-01-11 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 | 1 +

[PATCH v9 09/14] crypto/fsl: i.MX8: Enable Job ring driver model.

2022-01-11 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 ++

[PATCH v9 08/14] i.MX8: Add crypto node in device tree

2022-01-11 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 v9 05/14] i.MX6: Enable Job ring driver model.

2022-01-11 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 | 10 ++ arch/arm/mach-imx/mx6/soc.c | 12

RE: [EXT] Re: [PATCH v9 11/14] Layerscape: Enable Job ring driver model.

2022-01-11 Thread Gaurav Jain
Hi Michael > -Original Message- > From: Michael Walle > Sent: Tuesday, January 11, 2022 5:41 PM > To: Gaurav Jain > Cc: u-boot@lists.denx.de; Stefano Babic ; Fabio Estevam > ; Peng Fan ; Simon Glass > ; Priyanka Jain ; Ye Li > ; Horia Geanta ; Ji Luo > ; Franck Lenormand ; Silvano Di >

[PATCH] mmc: dw_mmc: Fixes timeout issue for FIFO mode

2022-01-11 Thread hmz007
Clearing the DTO interrupt should be unnecessary, and it would potentially result in never receiving this interrupt again. Do power-on or reset from uboot for a while can reproduce the issue: dwmci_data_transfer: Timeout waiting for data! mmc_load_image_raw_sector: mmc block read error

Re: [PATCH] mmc: dw_mmc: Fixes timeout issue for FIFO mode

2022-01-11 Thread gtXfined H.
Hi, > Which board did you test? When you do power-on, is it reproduced every time? I am using Rockchip RK3399 based board - NanoPi R4S for this test. It doesn't appear every time, but it should be encountered once about 20 times. I have run "setenv bootcmd reset; saveenv; reset" for automated

[PATCH] arm: dts: rz-g2-beacon-u-boot: Enable pinmux for QSPI

2022-01-11 Thread Adam Ford
When booting from QSPI, the boot ROM appears to mux the QSPI pins, but it's not guaranteed to be setup when booting from eMMC. Fix this by explicitly configuring the pinmux. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/rz-g2-beacon-u-boot.dtsi b/arch/arm/dts/rz-g2-beacon-u-boot.dtsi

[PATCH 1/1] stm32mp: fix board_get_alt_info_mmc()

2022-01-11 Thread Heinrich Schuchardt
MAX_SEARCH_PARTITIONS is the highest possible partition number. Do not skip the last partition in board_get_alt_info_mmc(). Signed-off-by: Heinrich Schuchardt --- board/st/common/stm32mp_dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/st/common/stm32mp_dfu.c

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

2022-01-11 Thread Michael Walle
Hi, Am 2022-01-11 15:20, schrieb Adam Ford: On Tue, Jan 4, 2022 at 2:32 AM Michael Walle 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, > however the auto

[PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Marek Vasut
The kwbimage has hard dependency on OpenSSL, do not build it in case TOOLS_LIBCRYPTO is disabled. Signed-off-by: Marek Vasut Cc: Heinrich Schuchardt Cc: Marek Behún Cc: Pali Rohár Cc: Stefan Roese Cc: Tom Rini --- tools/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Pali Rohár
On Tuesday 11 January 2022 16:31:20 Marek Vasut wrote: > The kwbimage has hard dependency on OpenSSL, do not build it > in case TOOLS_LIBCRYPTO is disabled. This patch does not work as kwbimage is required for 32-bit Armada platforms. So kwbimage.o cannot be disabled on these platforms. There is

[PATCH 1/2] soc: sdm845: implement ABL info collecting, add bootcommand and usage doc

2022-01-11 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image, and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT -

[PATCH 2/2] board: starqltechn: get board usable - fix defconfig and strip config options

2022-01-11 Thread Dzmitry Sankouski
- add FIT image support - increase LMB_MAX_REGIONS, to store all linux dtb reserved memory regions - add linux kernel image header Uart driver causes hang, when u-boot is used in android boot image instead of linux. Temporary disable console driver, until investigated and fixed. Signed-off-by:

[PATCH 0/2] get sdm845 boards u-boot usable as a secondary bootloader

2022-01-11 Thread Dzmitry Sankouski
U-boot is intended to replace linux kernel in android boot image(ABL), and it's FIT payload to replace initramfs file. The boot process is similar to boot image with linux: - android bootloader (ABL) unpacks android boot image - ABL sets `linux,initrd-start property` in chosen node in unpacked FDT

Re: [PATCH 2/2] board: starqltechn: get board usable - fix defconfig and strip config options

2022-01-11 Thread Tom Rini
On Tue, Jan 11, 2022 at 07:01:59PM +0300, Dzmitry Sankouski wrote: > - add FIT image support > - increase LMB_MAX_REGIONS, to store all linux dtb reserved memory regions > - add linux kernel image header > > Uart driver causes hang, when u-boot is used in android boot image instead > of linux.

[PATCH 3/3] sandox: test: activate tests for the command LOG

2022-01-11 Thread Patrick Delaunay
Activate the CONFIG_CMD_LOG in sandbox to execute the LOG tests by default and correct the test log format after 72fa1ad8d9 ("log: Allow padding of the function name"). Signed-off-by: Patrick Delaunay --- configs/sandbox_defconfig | 2 +- test/py/tests/test_log.py | 8 2 files

[PATCH 2/3] dm: compare full name in uclass_get_by_name

2022-01-11 Thread Patrick Delaunay
Change uclass_get_by_name to use a strict string compare function "strcmp" with the parameter 'name'. This patch avoids issues when strlen(name)name) as the function uclass_get_by_name() no more use uclass_get_by_name_len(), which limit the check with "strncmp" and length of name. This problem

[PATCH 0/3] sandox: test: activate tests for the command LOG

2022-01-11 Thread Patrick Delaunay
This patches activate the command LOG and the associated tests in sandbox with CONFIG_CMD_LOG=y and solve the associated issues when these tests are executed. Patrick Patrick Delaunay (3): dm: fix up documentation for uclass_get_by_name_len dm: compare full name in uclass_get_by_name

[PATCH 1/3] dm: fix up documentation for uclass_get_by_name_len

2022-01-11 Thread Patrick Delaunay
Fix up the comment for uclass_get_by_name_len() to avoid confusion. Fixes: 4b030177b660 ("dm: core: Allow finding children / uclasses by partial name") Signed-off-by: Patrick Delaunay --- include/dm/uclass.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] misc: mark write buffer const

2022-01-11 Thread John Keeping
The write operation in misc_ops already takes a "const void *" buffer, but misc_write() takes a mutable "void *". There's no reason for this, so make misc_write() consistent with the standard write() prototype. Signed-off-by: John Keeping --- drivers/misc/misc-uclass.c | 2 +- include/misc.h

Re: [PATCH 1/2] board: samsung: fix menu entries for a{3,7}y17lte

2022-01-11 Thread Dzmitry Sankouski
Reviewed-by: Dzmitry Sankouski пт, 7 янв. 2022 г. в 22:14, Henrik Grimler : > a7y17lte is called SM-A720F, and a3y17lte SM-A320F. a3y17lte also > should select PINCTRL_EXYNOS78x0, not the (non-existent) > PINCTRL_EXYNOS7880, and it has an Exynos 7870 SoC and not 7880. > > Fixes: 3e2095e960b4

Re: [PATCH 1/1] doc: Building on Alpine Linux

2022-01-11 Thread Sean Anderson
On 1/10/22 7:46 PM, Heinrich Schuchardt wrote: Describe the required packages for building U-Boot on Alpine Linux Signed-off-by: Heinrich Schuchardt --- doc/build/gcc.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst index

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

2022-01-11 Thread Adam Ford
On Tue, Jan 11, 2022 at 9:31 AM Michael Walle wrote: > > Hi, > > Am 2022-01-11 15:20, schrieb Adam Ford: > > On Tue, Jan 4, 2022 at 2:32 AM Michael Walle wrote: > >> > The imx8mm and imx8mn appear compatible with imx7d-usb > >> > flags in the OTG driver. If the dr_mode is defined as > >> > host

[PATCH v2 1/3] misc: atsha204a: return timeout from wakeup function

2022-01-11 Thread Adrian Fiergolski
If the maximum number of wake-up attempts is exceeded, return -ETIMEDOUT. Signed-off-by: Adrian Fiergolski --- drivers/misc/atsha204a-i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index

[PATCH v2 2/3] misc: atsha204a: add delay after sending the message

2022-01-11 Thread Adrian Fiergolski
Once request is sent, and before receiving a response, the delay is required. This patch fixes missing delay for before first response try. Signed-off-by: Adrian Fiergolski --- drivers/misc/atsha204a-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 0/3] misc: atsha204a: bug fixes

2022-01-11 Thread Adrian Fiergolski
Series of patches fixing atsha204a driver. Partially inspired by Enclustra's repo [1]. [1] https://github.com/enclustra-bsp/xilinx-uboot Adrian Fiergolski (3): misc: atsha204a: return timeout from wakeup function misc: atsha204a: add delay after sending the message misc: atsha204a: fix

[PATCH v2 3/3] misc: atsha204a: fix i2c address readout from DTS

2022-01-11 Thread Adrian Fiergolski
This patch replaces use fdtdec_get_addr with simpler dev_read_addr(). fdtdec_get_addr doesn't work properly on ZynqMP-based (64bit) system. Although not confirmed, it could be related to the fact, that quoting the documentation, "This variant hard-codes the number of cells used to represent the

Re: [PATCH 1/1] sandbox: compatibility of os_get_filesize()

2022-01-11 Thread Simon Glass
On Mon, 10 Jan 2022 at 17:50, Heinrich Schuchardt wrote: > > U-Boot define loff_t as long long. But the header > /usr/include/linux/types.h may not define it. > This has lead to a build error on Alpine Linux. > > So let's use long long instead of loff_t for > the size parameter of function

Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Tom Rini
On Tue, Jan 11, 2022 at 07:58:05PM +0100, Marek Vasut wrote: > On 1/11/22 17:16, Tom Rini wrote: > > On Tue, Jan 11, 2022 at 04:36:34PM +0100, Pali Rohár wrote: > > > On Tuesday 11 January 2022 16:31:20 Marek Vasut wrote: > > > > The kwbimage has hard dependency on OpenSSL, do not build it > > > >

Re: imx: imx8mm: imx8mm-kontron-n801x-s: does not start work

2022-01-11 Thread Adam Ford
On Tue, Jan 11, 2022 at 1:18 AM Heiko Thiery wrote: > > Hi all, > > I wanted to test the newly introduced kontron-sl-mx8mm_defconfig but > it does not work. > > I already found two converted config options that are missing in that > defconfig: > > +CONFIG_SPL_MMC=y > +CONFIG_SPL_SERIAL=y > >

Re: [PATCH 1/1] sandbox: compatibility of os_get_filesize()

2022-01-11 Thread Milan P . Stanić
On Tue, 2022-01-11 at 01:50, Heinrich Schuchardt wrote: > U-Boot define loff_t as long long. But the header > /usr/include/linux/types.h may not define it. > This has lead to a build error on Alpine Linux. > > So let's use long long instead of loff_t for > the size parameter of function

Re: [PATCH] mkimage: fix segfault on MacOS arm64

2022-01-11 Thread Jessica Clarke
On 2 Dec 2021, at 22:16, Sergey V. Lobanov wrote: > > mkimage segfaults due ASLR mechasim on MacOS arm64 > > It is required to use _dyld_get_image_vmaddr_slide() > to prevent segfault on MacOS arm64 > > This patch ased on the discussion >

[PATCH v3] net: fsl: Fix busy flag polling register

2022-01-11 Thread Markus Koch
NXP's mEMAC reference manual, Chapter 6.5.5 "MDIO Ethernet Management Interface usage", specifies to poll the BSY (0) bit in the CFG/STAT register to wait until a transaction has finished, not bit 31 in the data register. In the Linux kernel, this has already been fixed in commit 26eee0210ad7

Re: [PATCH v2 1/3] misc: atsha204a: return timeout from wakeup function

2022-01-11 Thread Marek Behún
On Tue, 11 Jan 2022 19:05:29 +0100 Adrian Fiergolski wrote: > If the maximum number of wake-up attempts is exceeded, return -ETIMEDOUT. > > Signed-off-by: Adrian Fiergolski Reviewed-by: Marek Behún

Re: [PATCH v2 2/3] misc: atsha204a: add delay after sending the message

2022-01-11 Thread Marek Behún
On Tue, 11 Jan 2022 19:05:30 +0100 Adrian Fiergolski wrote: > Once request is sent, and before receiving a response, the delay is required. > This patch fixes missing delay for before first response try. > > Signed-off-by: Adrian Fiergolski Reviewed-by: Marek Behún

Re: [PATCH v2 3/3] misc: atsha204a: fix i2c address readout from DTS

2022-01-11 Thread Marek Behún
On Tue, 11 Jan 2022 19:05:31 +0100 Adrian Fiergolski wrote: > This patch replaces use fdtdec_get_addr with simpler dev_read_addr(). > fdtdec_get_addr doesn't work properly on ZynqMP-based (64bit) system. Although > not confirmed, it could be related to the fact, that quoting the >

[PATCH v2 1/2] board: samsung: fix menu entries for a{3,7}y17lte

2022-01-11 Thread Henrik Grimler
a7y17lte is called SM-A720F, and a3y17lte SM-A320F. a3y17lte also should select PINCTRL_EXYNOS78x0, not the (non-existent) PINCTRL_EXYNOS7880, and it has an Exynos 7870 SoC and not 7880. Fixes: 3e2095e960b4 ("board: samsung: add support for Galaxy A series of 2017 (a5y17lte)") Signed-off-by:

[PATCH v2 2/2] doc: board: avoid ambiguous names for axy17lte

2022-01-11 Thread Henrik Grimler
Model names are SM-A{3,5,7}20, just SM-{3,5,7}20 could also refer to SM-J{3,5,7}20 or SM-T{3,5,7}20. Also fix a5y17lte->a7y17lte for SM-A720. Fixes: 3e2095e960b4 ("board: samsung: add support for Galaxy A series of 2017 (a5y17lte)") Signed-off-by: Henrik Grimler Reviewed-by: Dzmitry Sankouski

Re: [PATCH] tools: Do not build kwbimage if CONFIG_TOOLS_LIBCRYPTO=n

2022-01-11 Thread Marek Vasut
On 1/11/22 17:16, Tom Rini wrote: On Tue, Jan 11, 2022 at 04:36:34PM +0100, Pali Rohár wrote: On Tuesday 11 January 2022 16:31:20 Marek Vasut wrote: The kwbimage has hard dependency on OpenSSL, do not build it in case TOOLS_LIBCRYPTO is disabled. This patch does not work as kwbimage is

[PATCH] board: stm32mp1: solve compilation issue when ENV_IS_IN_MMC is deactivated

2022-01-11 Thread Patrick Delaunay
Solve compilation issue on undefined CONFIG_SYS_MMC_ENV_DEV when CONFIG_ENV_IS_IN_MMC is deactivated on STMicroelectronics boards defconfig Fixes: 9f97193616f1 ("board: stm32mp1: use CONFIG_SYS_MMC_ENV_DEV when available") Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 6

Re: [RESEND PATCH v3 01/12] mmc: fsl_esdhc_imx: make BLK as hard requirement of DM_MMC

2022-01-11 Thread Sean Anderson
On 1/10/22 8:14 PM, Jaehoon Chung wrote: Dear Sean, On 1/5/22 1:16 AM, Sean Anderson wrote: [ fsl_esdhc commit 41dec2fe99512e941261594f522b2e7d485c314b ] U-boot prefers DM_MMC + BLK for MMC. Now eSDHC driver has already support it, so let's force to use it. - Drop non-BLK support for

[PATCH] mmc: dwmmc: return a proper error code when busy

2022-01-11 Thread John Keeping
When failing to send a command because the hardware is busy, return EBUSY to indicate the cause instead of just -1. Signed-off-by: John Keeping --- drivers/mmc/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index

  1   2   >