Re: [PATCH] armv8: cache_v8: Fix pgtables setup when MMU is already enabled

2022-09-19 Thread Stefan Roese
On 14.09.22 13:37, Pali Rohár wrote: When MMU is already enabled then dcache_enable() does not call mmu_setup() and so setup_all_pgtables() is also never called. In this situation when some driver calls mmu_set_region_dcache_behaviour() function then U-Boot crashes with error message: Emer

Re: [PATCH] Makefile: Add missing CONFIG_BOARD_SIZE_LIMIT check for u-boot-spl.kwb

2022-09-19 Thread Stefan Roese
On 14.09.22 15:06, Pali Rohár wrote: Currently CONFIG_BOARD_SIZE_LIMIT check is ignored for u-boot-spl.kwb target. Fix it by adding missing $(BOARD_SIZE_CHECK) macro. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- Makefile | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH] arm: mvebu: turris_omnia: Add CONFIG_BOARD_SIZE_LIMIT

2022-09-19 Thread Stefan Roese
On 14.09.22 15:06, Pali Rohár wrote: Maximal size of u-boot kwb image binary is $CONFIG_ENV_OFFSET which is 0xF = 983040 bytes. So add missing CONFIG_BOARD_SIZE_LIMIT definition to ensure that u-boot binary does not overflow to the u-boot env storage. Signed-off-by: Pali Rohár Reviewed-by

Re: [PATCH] arm: mvebu: Add default SPL_SIZE_LIMIT for 32-bit SoCs

2022-09-19 Thread Stefan Roese
On 14.09.22 18:48, Pali Rohár wrote: 32-bit Marvell Armada BootROMs limit maximal size of SPL image to 192 kB. So define 192 kB (= 0x3) limit as default value for SPL_SIZE_LIMIT. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- common/spl/Kconfig | 1 + 1 file

Re: [PATCH] pci: Remove duplicate PCI_REGION_IO / "io" line

2022-09-19 Thread Stefan Roese
On 15.09.22 15:54, Pali Rohár wrote: Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- cmd/pci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/pci.c b/cmd/pci.c index 6258699fec81..58a74755c8b2 100644 --- a/cmd/pci.c +++ b/cmd/pci.c @@ -450,11 +450,10 @@ st

Re: [PATCH] tools: kwbimage: Verify maximal kwbimage header size

2022-09-19 Thread Stefan Roese
On 18.09.22 18:39, Pali Rohár wrote: BootROM loads kwbimage header to L2-SRAM and BootROM reserve only 192 kB for it. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- tools/kwbimage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/kwbimage.c b/tools/

Re: net: emaclite: Fixes, enable driver for other archs

2022-09-19 Thread Michal Simek
Hi Samuel, po 8. 8. 2022 v 10:34 odesílatel Samuel Obuch napsal: > > Hi, > > its a soft-core in an FPGA. Other than the ethernet, I think we only use > Xilinx bridges. > > Unfortunately theres no publicly available version. > > S. > > On Mon, Aug 8, 2022 at 10:08 AM Michal Simek wrote: > > > Hi,

Re: [GIT PULL] mpc85xx changes for v2022.10-rc5

2022-09-19 Thread Pali Rohár
On Sunday 18 September 2022 15:38:52 Marek Behún wrote: > Hello Tom, > > I am sending some fixes for mpc85xx v2022.10-rc5. The other patches > from Pali require some more work, I am working on them. > > The following changes since commit 4f2c559b9a2ad86e03dffeef720257ea680707d0: > > Merge tag

[PATCH] bootcount: pmic: Correct misleading comment

2022-09-19 Thread Philip Oberfichtner
Fix a copy-paste error I did when inserting the comment. Signed-off-by: Philip Oberfichtner --- drivers/bootcount/Kconfig | 2 +- drivers/bootcount/pmic_pfuze100.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconf

[PATCH] xilinx: versal: Remove unused comments from xilinx_versal.h

2022-09-19 Thread Michal Simek
Couple of options have been moved to Kconfig but comments stayed in header that's why remove them. Signed-off-by: Michal Simek --- include/configs/xilinx_versal.h | 4 1 file changed, 4 deletions(-) diff --git a/include/configs/xilinx_versal.h b/include/configs/xilinx_versal.h index 971bd

Re: [PATCH 0/4] Align sama5 and sama7 DT's with Linux

2022-09-19 Thread Eugen.Hristev
On 9/1/22 5:22 PM, Sergiu Moga wrote: > This has been done in order to align the DT of U-Boot with the DT > of Linux. In Linux, a phandle from a '-gpio' DT property is linked > to the pinctrl driver, a single driver that handles both pinctrl > settings and offers GPIO API to callers. On the other h

Re: [PATCH 7/7] tools: kwboot: Add knowledge of Marvell's TIM

2022-09-19 Thread Chris Packham
On Mon, Sep 19, 2022 at 11:03 AM Pali Rohár wrote: > > On Monday 19 September 2022 10:57:10 Chris Packham wrote: > > Having looked more into mox-imager (and WtpDownloader) I've realised > > that the AlleyCat5 uses something called "TIM" but it's different to > > the format used by Armada-3700. I s

[PULL next] u-boot-at91-2023.01-a

2022-09-19 Thread Eugen.Hristev
Hello Tom, Please pull tag u-boot-2023.01-a , the first set of new at91 features for the next cycle 2023.01 . This feature set includes the important update on PIO4 pinctrl driver that solves a long time mismatch between Linux and U-boot, related on the unification of pinctrl and gpio driver s

Re: [PATCH] liteeth: LiteX Ethernet device

2022-09-19 Thread Joel Stanley
On Sun, 18 Sept 2022 at 15:50, Sean Anderson wrote: > > On 8/10/22 00:29, Joel Stanley wrote: > > LiteX is a soft system-on-chip that targets FPGAs. LiteETH is a basic > > network device that is commonly used in LiteX designs. > > +static int liteeth_recv(struct udevice *dev, int flags, uchar **p

[PATCH] lib: crypt: fix selecting a non-existent option

2022-09-19 Thread Oleksandr Suvorov
The option SHA256_ALGO does not exist. Remove selecting it. Fixes: 26dd9936574 ("lib: add crypt subsystem") Signed-off-by: Oleksandr Suvorov --- lib/crypt/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/crypt/Kconfig b/lib/crypt/Kconfig index a59d5c7d1d5..22af6834d93 100644 --- a

[PATCH] powerpc: mpc85xx: Fix incorrect application of patch

2022-09-19 Thread Marek Behún
I messed up application of patch 5a428e751044 ("mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS"). I took it from a work-in-progress branch where I changed usage of CONFIG_SDCARD to CONFIG_SD_BOOT and refactored SYS_MPC85XX_NO_RESETVEC mess. But these changes aren

Re: [PATCH] powerpc: mpc85xx: Fix incorrect application of patch

2022-09-19 Thread Pali Rohár
On Monday 19 September 2022 11:32:08 Marek Behún wrote: > I messed up application of patch 5a428e751044 ("mmc: fsl_esdhc_spl: Add > support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS"). I took it from > a work-in-progress branch where I changed usage of > CONFIG_SDCARD to CONFIG_SD_BOOT > and

[PATCH 0/7] Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Hei hei, while working on FPGA support for a new device I discovered logging in some FPGA drivers is still done as in the old days. Bring that to what I thougt would be the currently preferred approach? Notes: Adding those Kconfig symbols in patch 3 is just to be able to build those two drivers.

[PATCH 5/7] fpga: spartan2: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/spartan2.c | 34 +++--- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/drivers/fpga/spartan2.c b/drivers/fpga/

[PATCH 7/7] fpga: virtex2: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/virtex2.c | 37 +++-- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/drivers/fpga/virtex2.c b/drivers/fpga

[PATCH 1/7] fpga: altera: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/altera.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/fpga/altera.c b/drivers/fpga/altera.c index 10c0475d25..

[PATCH 3/7] fpga: Add missing Kconfig symbols for old FPGA drivers

2022-09-19 Thread Alexander Dahl
Those drivers could not be built anymore without those options present. Signed-off-by: Alexander Dahl --- drivers/fpga/Kconfig | 12 1 file changed, 12 insertions(+) diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index e07a9cf80e..4d55f60ba9 100644 --- a/drivers/fpga/Kcon

[PATCH 4/7] fpga: ACEX1K: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/ACEX1K.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/fpga/ACEX1K.c b/drivers/fpga/ACEX1K.c index ac

[PATCH 6/7] fpga: spartan3: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/spartan3.c | 34 +++--- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/drivers/fpga/spartan3.c b/drivers/fpga/

[PATCH 2/7] fpga: cyclon2: Use logging feature instead of FPGA_DEBUG

2022-09-19 Thread Alexander Dahl
Instead of using DEBUG or LOG_DEBUG the driver still had its own definition for debug output. Signed-off-by: Alexander Dahl --- drivers/fpga/cyclon2.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/drivers/fpga/cyclon2.c b/drivers/fpga/cyclon2.c in

Re: [PATCH 0/9] Nokia RX-51: Small cleanups and UBI boot test case

2022-09-19 Thread Alexander Dahl
Hello Pali, Am Sun, Sep 04, 2022 at 03:28:57AM +0200 schrieb Pali Rohár: > Do various small fixup/cleanups and extend test script to boot kernel > image from UBI volume. This test verifies that U-Boot UBI implementation > is working and U-Boot can read volume with bootable kernel code > correctly.

Re: [PATCH v2 1/3] lib: Add common semihosting library

2022-09-19 Thread Kautuk Consul
Thanks for spotting that. There was a config option selection that I was trying to avoid. Will send out a v3 patch with your suggestions. On Sat, Sep 17, 2022 at 11:10 PM Sean Anderson wrote: > > On 9/16/22 04:12, Kautuk Consul wrote: > > We factor out the arch-independent parts of the ARM semi

[PATCH] tools: env: Fix missing closedir in ubi_get_volnum_by_name

2022-09-19 Thread Miaoqian Lin
The function calls opendir() but missing the corresponding closedir() before exit the function. Add missing closedir() to fix it. Signed-off-by: Miaoqian Lin --- tools/env/fw_env.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c ind

Re: U-Boot support for IMX8MP dual-role

2022-09-19 Thread Alexander Stein
Hello Tim, Am Freitag, 16. September 2022, 20:43:54 CEST schrieb Tim Harvey: > Greetings, > > I'm wondering if anyone has done any work to get dual-role USB working > for the IMX8MP (or any other dwc3 host based board) and how they went > about it if so. > > The imx8mp-venice-gw74xx has dual-rol

u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Waldemar Brodkorb
Hi, I am trying to run u-boot on a STM32F746G-DISCO device. I am configuring u-boot with stm32f746-disco_spl_defconfig. I use following openocd command to flash the output of the build: openocd \ -f interface/stlink.cfg -f board/stm32f7discovery.cfg \ -c "init" \ -c "reset

[PATCH v3 0/3] Add riscv semihosting support in u-boot

2022-09-19 Thread Kautuk Consul
Semihosting is a mechanism that enables code running on a target to communicate and use the Input/Output facilities on a host computer that is running a debugger. This patchset adds support for semihosting in u-boot for RISCV64 targets. CHANGES since v2: - Move the arch/arm/Kconfig common *S

[PATCH v3 1/3] lib: Add common semihosting library

2022-09-19 Thread Kautuk Consul
We factor out the arch-independent parts of the ARM semihosting implementation as a common library so that it can be shared with RISC-V. Signed-off-by: Kautuk Consul --- arch/arm/Kconfig | 46 - arch/arm/lib/semihosting.c | 181 +--- include/sem

[PATCH v3 2/3] arch/riscv: add semihosting support for RISC-V

2022-09-19 Thread Kautuk Consul
We add RISC-V semihosting based serial console for JTAG based early debugging. The RISC-V semihosting specification is available at: https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adoc Signed-off-by: Anup Patel Signed-off-by: Kautuk Consul --- arch/riscv/inclu

[PATCH v3 3/3] board: qemu-riscv: enable semihosting

2022-09-19 Thread Kautuk Consul
To enable semihosting we also need to enable the following configs in defconfigs: CONFIG_SEMIHOSTING CONFIG_SPL_SEMIHOSTING CONFIG_SEMIHOSTING_SERIAL CONFIG_SERIAL_PROBE_ALL CONFIG_SPL_FS_EXT4 CONFIG_SPL_FS_FAT Signed-off-by: Kautuk Consul --- configs/qemu-riscv32_defconfig | 4 confi

Re: [PATCH 0/9] Nokia RX-51: Small cleanups and UBI boot test case

2022-09-19 Thread Pali Rohár
On Monday 19 September 2022 13:12:41 Alexander Dahl wrote: > Hello Pali, > > Am Sun, Sep 04, 2022 at 03:28:57AM +0200 schrieb Pali Rohár: > > Do various small fixup/cleanups and extend test script to boot kernel > > image from UBI volume. This test verifies that U-Boot UBI implementation > > is wo

Re: [PATCH] rpi: Set FDT for RPi CM4 to the IO Board one

2022-09-19 Thread Matthias Brugger
Hi Ariel, On 16/09/2022 17:13, Ariel D'Alessandro wrote: For the RPi CM4 (Compute Module 4), we currently try to load the dtb file bcm2711-rpi-cm4.dtb, which is not built by the upstream kernel. Instead, the only CM4 dtb file provided by linux upstream is the bcm2711-rpi-cm4-io.dtb, so let's us

Re: [PATCH v3 2/3] arch/riscv: add semihosting support for RISC-V

2022-09-19 Thread Kautuk Consul
Ugh.. made a mistake in one of the config options. Please ignore this patchset too. Will send out a v4 now. :-( On Mon, Sep 19, 2022 at 4:53 PM Kautuk Consul wrote: > > We add RISC-V semihosting based serial console for JTAG based early > debugging. > > The RISC-V semihosting specification is av

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Waldemar Brodkorb
Hi again, Waldemar Brodkorb wrote, > Hi, > > I am trying to run u-boot on a STM32F746G-DISCO device. > I am configuring u-boot with stm32f746-disco_spl_defconfig. > > But nothing happens on the LCD nor on the serial console. > I use screen /dev/ttyACM0 115200 under Linux to connect. It seems m

[PATCH v4 0/3] Add riscv semihosting support in u-boot

2022-09-19 Thread Kautuk Consul
Semihosting is a mechanism that enables code running on a target to communicate and use the Input/Output facilities on a host computer that is running a debugger. This patchset adds support for semihosting in u-boot for RISCV64 targets. CHANGES since v2 and v3: - v2: Move the arch/arm/Kconfi

[PATCH v4 1/3] lib: Add common semihosting library

2022-09-19 Thread Kautuk Consul
We factor out the arch-independent parts of the ARM semihosting implementation as a common library so that it can be shared with RISC-V. Signed-off-by: Kautuk Consul --- arch/arm/Kconfig | 46 - arch/arm/lib/semihosting.c | 181 +--- include/sem

[PATCH v4 2/3] arch/riscv: add semihosting support for RISC-V

2022-09-19 Thread Kautuk Consul
We add RISC-V semihosting based serial console for JTAG based early debugging. The RISC-V semihosting specification is available at: https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adoc Signed-off-by: Anup Patel Signed-off-by: Kautuk Consul --- arch/riscv/inclu

[PATCH v4 3/3] board: qemu-riscv: enable semihosting

2022-09-19 Thread Kautuk Consul
To enable semihosting we also need to enable the following configs in defconfigs: CONFIG_SEMIHOSTING CONFIG_SPL_SEMIHOSTING CONFIG_SEMIHOSTING_SERIAL CONFIG_SERIAL_PROBE_ALL CONFIG_SPL_FS_EXT4 CONFIG_SPL_FS_FAT Signed-off-by: Kautuk Consul --- configs/qemu-riscv32_defconfig | 4 confi

Re: [PATCH V5] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2 boards

2022-09-19 Thread Stefano Babic
On 18.09.22 17:48, Fabio Estevam wrote: On Sun, Sep 18, 2022 at 12:09 PM Michael Trimarchi wrote: Introduce BSH SystemMaster (SMM) M2 board family, which consists of: imx6ulz SMM M2 and imx6ulz SMM M2 PRO boards. Add support for imx6ulz BSH SMM M2 board: - 128 MiB DDR3 RAM - 256MiB Nand - US

[PATCH v2 1/9] arm64: versal-net: Add support for Versal NET platform

2022-09-19 Thread Michal Simek
Versal NET platform is based on Versal chip which is reusing a lot of IPs. For more information about new IPs please take a look at DT which describe currently supported devices. The patch is adding architecture and board support with soc detection algorithm. Generic setting should be very similar

[PATCH v2 0/9] xilinx: versal-net: Add support for new Versal NET SoC

2022-09-19 Thread Michal Simek
Hi, I am sending support for new Xilinx/AMD SoC called Versal NET. Versal NET is very similar to origin Versal SOC. There is different register layout, some IPs have been upgraded like i3c and some other changes in different location. Thanks, Michal Changes in v2: - Move symbols from .h to defco

[PATCH v2 2/9] spi: cadence_qspi: Add support for Versal NET platform

2022-09-19 Thread Michal Simek
Trivial changes to support cadence ospi driver for Versal NET platform. Also avoid ospi flash reset for now. Signed-off-by: Michal Simek --- (no changes since v1) arch/arm/mach-versal-net/include/mach/hardware.h | 4 drivers/spi/Kconfig | 2 +- drivers/spi/cad

[PATCH v2 3/9] spi: zynqmp_gqspi: Add support for Versal NET

2022-09-19 Thread Michal Simek
Add support for Versal NET platform. Signed-off-by: Michal Simek --- (no changes since v1) drivers/spi/zynqmp_gqspi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index 4e718c545c64..d3cc8554b8fb 100644 --- a/driv

[PATCH v2 4/9] clk: versal: Enable clock driver for Versal NET

2022-09-19 Thread Michal Simek
From: Jay Buddhabhatti Add support for Versal NET compatible string in clock driver. Signed-off-by: Jay Buddhabhatti Signed-off-by: Michal Simek --- (no changes since v1) drivers/clk/Kconfig | 2 +- drivers/clk/clk_versal.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff -

[PATCH v2 5/9] firmware: zynqmp: Add Versal NET compatible string

2022-09-19 Thread Michal Simek
From: Jay Buddhabhatti Add compatible string for Versal NET. Signed-off-by: Jay Buddhabhatti Signed-off-by: Michal Simek --- (no changes since v1) drivers/firmware/firmware-zynqmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/fi

[PATCH v2 6/9] mailbox: zynqmp: Enable ipi mailbox driver for Versal NET

2022-09-19 Thread Michal Simek
From: Jay Buddhabhatti Enable mailbox configs for Versal NET. Signed-off-by: Jay Buddhabhatti Signed-off-by: Michal Simek --- (no changes since v1) drivers/mailbox/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig i

[PATCH v2 7/9] reset: zynqmp: Enable reset driver for Versal NET

2022-09-19 Thread Michal Simek
From: Jay Buddhabhatti Enable zynqmp reset driver for Versal NET. Signed-off-by: Jay Buddhabhatti Signed-off-by: Michal Simek --- (no changes since v1) drivers/reset/reset-zynqmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/reset/reset-zynqmp.c b/drivers/reset/reset-zynqmp.

[PATCH v2 8/9] arm64: versal-net: Add defconfig for Versal NET

2022-09-19 Thread Michal Simek
Use one defconfig for supporting multiple different platforms. DTB reselection is enabled to choose DT based on SOC detection. Signed-off-by: Michal Simek --- Changes in v2: - Move symbols from .h to defconfig, enable i2c mux, dm_eth_phy, squashfs and grepenv configs/xilinx_versal_net_virt_d

[PATCH v2 9/9] arm64: versal-net: Add support for mini configuration

2022-09-19 Thread Michal Simek
Versal NET mini configuration is designed for running memory test. Current output is on DCC but changing serial0 alias to pl011 will move console to serial port. Signed-off-by: Michal Simek --- Changes in v2: - Remove CONFIG_SYS_CBSIZE, CONFIG_BOOTP_BOOTFILESIZE, CONFIG_BOOTP_MAY_FAIL from .h

Re: [PATCH] powerpc: mpc85xx: Fix incorrect application of patch

2022-09-19 Thread Tom Rini
On Mon, Sep 19, 2022 at 11:32:08AM +0200, Marek Behún wrote: > I messed up application of patch 5a428e751044 ("mmc: fsl_esdhc_spl: Add > support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS"). I took it from > a work-in-progress branch where I changed usage of > CONFIG_SDCARD to CONFIG_SD_BOOT

Re: [PATCH V5] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2 boards

2022-09-19 Thread Michael Nazzareno Trimarchi
Hi Stefano On Mon, Sep 19, 2022 at 2:16 PM Stefano Babic wrote: > > On 18.09.22 17:48, Fabio Estevam wrote: > > On Sun, Sep 18, 2022 at 12:09 PM Michael Trimarchi > > wrote: > >> > >> Introduce BSH SystemMaster (SMM) M2 board family, which consists of: > >> imx6ulz SMM M2 and imx6ulz SMM M2 PRO

Pull request: u-boot-imx u-boot-imx-20220919

2022-09-19 Thread Stefano Babic
/custodians/u-boot-imx.git tags/u-boot-imx-20220919 for you to fetch changes up to cc74cab86a5f32db93a9f0dc7bc46fa5e83f4f3e: bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2 boards (2022-09-18 22:56:18 +0200) u-boot-imx-20220919

Re: [PATCH v10 02/15] FWU: Add FWU metadata structure and driver for accessing metadata

2022-09-19 Thread Sughosh Ganu
On Mon, 19 Sept 2022 at 06:03, Jassi Brar wrote: > > On Thu, 15 Sept 2022 at 03:15, Sughosh Ganu wrote: > > > +/** > > + * fwu_get_active_index() - Get active_index from the FWU metadata > > + * @active_idxp: active_index value to be read > > + * > > + * Read the active_index field from the

Re: [PATCH v2 4/5] verdin-imx8mm: various config additions and improvements

2022-09-19 Thread Stefano Babic
On 18.09.22 22:41, sba...@denx.de wrote: From: Marcel Ziswiler - integrate bootcount using SNVS_LP general purpose register LPGPR0 - enable link-time optimisation - explicitly set a boot delay of one second - enable CRC32 and MD5 - enable command for low-level access to data in a partition - ena

Re: [PATCH] ARM: imx: Deduplicate i.MX8M SNVS LPGPR unlock

2022-09-19 Thread Stefano Babic
On 23.08.22 19:26, Fabio Estevam wrote: On 23/08/2022 14:05, Marek Vasut wrote: Pull this LPGPR unlock into common code, since it is used in multiple systems already. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx Reviewed-by: Fabio E

Re: [PATCH] imx8m*_venice_defconfig: fix default bootcmd

2022-09-19 Thread Tom Rini
On Tue, Sep 13, 2022 at 10:32:19AM -0700, Tim Harvey wrote: > On Thu, Sep 8, 2022 at 9:11 AM Tim Harvey wrote: > > > > commit 970bf8603b87 ("Convert CONFIG_USE_BOOTCOMMAND et al to Kconfig") > > had an unintended side effect of resulting in a bootcmd env var change > > for boards like venice that

[PATCH 0/2] splash: add more options/support

2022-09-19 Thread Julien Masson
This patch series add several options/support for splashscreen feature: - support raw image from MMC - get devpart from environment variable With these changes the user has now more options and can change default configurations through environment variables. Example: image located in splashscreen

[PATCH 0/2] splash: add more options/support

2022-09-19 Thread Julien Masson
This patch series add several options/support for splashscreen feature: - support raw image from MMC - get devpart from environment variable With these changes the user has now more options and can change default configurations through environment variables. Example: image located in splashscreen

[PATCH 1/2] splash: support raw image from MMC

2022-09-19 Thread Julien Masson
The user has now the choice to specify the splash location in the MMC as a raw storage. Signed-off-by: Julien Masson --- common/splash.c| 6 ++ common/splash_source.c | 29 + 2 files changed, 35 insertions(+) diff --git a/common/splash.c b/common/splash.

[PATCH 2/2] splash: get devpart from environment variable

2022-09-19 Thread Julien Masson
By default several types of splash locations are supported and the user can select one of them through environment var (splashsource). However the devpart is still hardcoded and we cannot change it from the environment. This patch add the support of "splashdevpart" which allow the user to set the

Re: [PATCH] rpi: Set FDT for RPi CM4 to the IO Board one

2022-09-19 Thread Ariel D'Alessandro
Hi Matthias, On 9/19/22 08:37, Matthias Brugger wrote: > Hi Ariel, > > On 16/09/2022 17:13, Ariel D'Alessandro wrote: >> For the RPi CM4 (Compute Module 4), we currently try to load the dtb >> file bcm2711-rpi-cm4.dtb, which is not built by the upstream kernel. >> >> Instead, the only CM4 dtb fil

Re: [PATCH v8] board: purism: add the Purism Librem5 phone

2022-09-19 Thread Angus Ainslie
On 2022-09-18 13:41, sba...@denx.de wrote: Initial commit of Librem5 u-boot and SPL Signed-off-by: Angus Ainslie Co-developed-by: Sebastian Krzyszkowiak Signed-off-by: Sebastian Krzyszkowiak Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Thanks Stefano ! Cheers Angu

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Patrice CHOTARD
Hi Waldemar On 9/19/22 13:48, Waldemar Brodkorb wrote: > Hi again, > > Waldemar Brodkorb wrote, > >> Hi, >> >> I am trying to run u-boot on a STM32F746G-DISCO device. >> I am configuring u-boot with stm32f746-disco_spl_defconfig. >> >> But nothing happens on the LCD nor on the serial console. >>

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Patrice CHOTARD
I forgot to mention that information can be directly found in doc/board/st/stm32_MCU.rst Patrice On 9/19/22 13:48, Waldemar Brodkorb wrote: > Hi again, > > Waldemar Brodkorb wrote, > >> Hi, >> >> I am trying to run u-boot on a STM32F746G-DISCO device. >> I am configuring u-boot with stm32f746-

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Patrice CHOTARD
Hi Waldemar On 9/19/22 13:48, Waldemar Brodkorb wrote: > Hi again, > > Waldemar Brodkorb wrote, > >> Hi, >> >> I am trying to run u-boot on a STM32F746G-DISCO device. >> I am configuring u-boot with stm32f746-disco_spl_defconfig. >> >> But nothing happens on the LCD nor on the serial console. >>

[PATCH v1 0/6] SPL fixes for STM32F7 MCUs

2022-09-19 Thread Patrice Chotard
This series is fixing issues in SPL boot mode: - SPL binary size over 0x8000 bytes for STM32F746-disco, STM32F769-DISCO and STM32746G-EVAL boards - fix embedded flash size for STM32F769-DISCO - fix CONFIG_SYS_SPL_ARGS_ADDR for STM32F746-DISCO and STM32746G-EVAL Patrice Chotard (6):

[PATCH v1 1/6] configs: stm32f746-disco: Fix SPL boot

2022-09-19 Thread Patrice Chotard
Commit 'b4b9a00ed593 ("Convert CONFIG_SYS_SPL_ARGS_ADDR to Kconfig")' replaces CONFIG_SYS_FDT_BASE by CONFIG_SYS_SPL_ARGS_ADDR. As CONFIG_SYS_SPL_ARGS_ADDR enables additional code when enable, it increases SPL size over the initial 0x8000 limit. Increase the SPL size to 0x9000 to fix SPL boot. Set

[PATCH v1 2/6] configs: stm32f769-disco: Fix SPL boot

2022-09-19 Thread Patrice Chotard
Commit 'b4b9a00ed593 ("Convert CONFIG_SYS_SPL_ARGS_ADDR to Kconfig")' replaces CONFIG_SYS_FDT_BASE by CONFIG_SYS_SPL_ARGS_ADDR. As CONFIG_SYS_SPL_ARGS_ADDR enables additional code when enable, it increases SPL size over the initial 0x8000 limit. Increase the SPL size to 0x9000 to fix SPL boot. Set

[PATCH v1 3/6] configs: stm32746g-eval: Fix SPL boot

2022-09-19 Thread Patrice Chotard
Commit 'b4b9a00ed593 ("Convert CONFIG_SYS_SPL_ARGS_ADDR to Kconfig")' replaces CONFIG_SYS_FDT_BASE by CONFIG_SYS_SPL_ARGS_ADDR. As CONFIG_SYS_SPL_ARGS_ADDR enables additional code when enable, it increases SPL size over the initial 0x8000 limit. Increase the SPL size to 0x9000 to fix SPL boot. Set

[PATCH v1 4/6] configs: stm32f746-disco: Fix CONFIG_SYS_SPL_ARGS_ADDR

2022-09-19 Thread Patrice Chotard
STM32F746 embeds 1 MB of internal flash [0x0800-0x080f], fix CONFIG_SYS_SPL_ARGS_ADDR accordingly It solves hard fault when jumping from SPL to U-Boot. Signed-off-by: Patrice Chotard --- configs/stm32f746-disco_spl_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH v1 5/6] configs: stm32746g-eval: Fix CONFIG_SYS_SPL_ARGS_ADDR

2022-09-19 Thread Patrice Chotard
STM32F746 embeds 1 MB of internal flash [0x0800-0x080f], fix CONFIG_SYS_SPL_ARGS_ADDR accordingly It solves hard fault when jumping from SPL to U-Boot. Signed-off-by: Patrice Chotard --- configs/stm32746g-eval_spl_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH v1 6/6] config: stm32f769-disco: Fix internal flash size

2022-09-19 Thread Patrice Chotard
arch-stm32f7/stm32.h file is shared between STM32F746 and STM32F769 MCUs. But STM32F769 embeds 2MB of internal flash instead of 1MB for STM32F746. The flash layout is quite similar between the 2 SoCs : STM32F746 STM32F769 4 * 32KB sectors 4 * 3

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Patrice CHOTARD
Waldemar, You can applied the following series on current U-Boot master branch (a0759684e015bd7252be3af508c0fcfdbb8ec5dc): https://patchwork.ozlabs.org/project/uboot/list/?series=318991 Thanks Patrice On 9/19/22 16:36, Patrice CHOTARD wrote: > Hi Waldemar > > On 9/19/22 13:48, Waldemar Brod

[PATCH v4] tee: optee: rework TA bus scanning code

2022-09-19 Thread Patrick DELAUNAY
Hi Simon, On 9/12/22 20:31, Simon Glass wrote: Hi Ilias, On Wed, 7 Sept 2022 at 15:32, Ilias Apalodimas wrote: Hi Simon, On Thu, 8 Sept 2022 at 00:11, Simon Glass wrote: Hi Ilias, On Tue, 6 Sept 2022 at 15:23, Ilias Apalodimas wrote: Hi Simon, On Tue, Sep 06, 2022 at 03:18:28PM -0600

Re: [PATCH] configs: stm32mp*: reset via CONFIG_RESET_SCMI

2022-09-19 Thread Patrick DELAUNAY
Hi, On 9/5/22 19:01, Oleksandr Suvorov wrote: Jorge, I think, renaming the patch to "fix" and adding a field "Fixes:" should help accept it faster. On Mon, Sep 5, 2022 at 7:32 PM Jorge Ramirez-Ortiz, Foundries wrote: On 30/08/22, Jorge Ramirez-Ortiz wrote: Enabling CONFIG_SYSRESET_PSCI prev

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

2022-09-19 Thread Tom Rini
9-18 > 08:27:23 -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20220919 > > for you to fetch changes up to cc74cab86a5f32db93a9f0dc7bc46fa5e83f4f3e: > > bsh: imx6ulz_smm_m2: Add imx

Re: [PATCH] imx8m*_venice_defconfig: fix default bootcmd

2022-09-19 Thread Tom Rini
On Thu, Sep 08, 2022 at 09:11:13AM -0700, Tim Harvey wrote: > commit 970bf8603b87 ("Convert CONFIG_USE_BOOTCOMMAND et al to Kconfig") > had an unintended side effect of resulting in a bootcmd env var change > for boards like venice that did not have CONFIG_USE_BOOTCOMMAND defined > and relied on i

Re: [PATCH v3 3/3] i2c: stm32: do not set the STOP condition on error

2022-09-19 Thread Patrick DELAUNAY
Hi Jorge, On 9/12/22 10:35, Jorge Ramirez-Ortiz, Foundries wrote: On 12/09/22, Patrick DELAUNAY wrote: Hi Alain, On 9/9/22 18:06, Alain Volmat wrote: Current function stm32_i2c_message_xfer is sending a STOP whatever the result of the transaction is. This can cause issues such as making the

Re: [PATCH 2/2] mtd: parsers: add Broadcom's U-Boot parser

2022-09-19 Thread Miquel Raynal
On Mon, 2022-07-11 at 15:30:41 UTC, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= wrote: > From: Rafał Miłecki > > Broadcom stores environment variables blocks inside U-Boot partition > itself. This driver finds & registers them. > > Signed-off-by: Rafał Miłecki Applied to https://git.kernel.org/pub/scm/li

Re: [PATCH 1/2] dt-bindings: mtd: partitions: add binding for U-Boot bootloader

2022-09-19 Thread Miquel Raynal
On Mon, 2022-07-11 at 15:30:40 UTC, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= wrote: > From: Rafał Miłecki > > Right now there is no (known) real reason for a custom binding for > standard U-Boot partitions. Broadcom's U-Boot however requires extra > handling - looking for environment variables subblocks.

[ANN] U-Boot v2022.10-rc5 released

2022-09-19 Thread Tom Rini
Hey all, It's release day and so here's v2022.10-rc5. Probably a bit bigger of a set of updates than I really would have preferred, but they're all contained within specific SoCs / arches and tested by their respective custodians. I really do hope for fairly wide testing of this rc as well as mini

[PULL] u-boot-usb/master

2022-09-19 Thread Marek Vasut
Typo fix and unused driver removal. The following changes since commit 59f6141362cc28e6c0638f16ef6cdb024231e13f: imx8m*_venice_defconfig: fix default bootcmd (2022-09-19 08:53:50 -0400) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to fetch cha

Re: [PATCH] cmd: fdt: Add support for reading stringlist property values

2022-09-19 Thread Marek Vasut
On 7/17/22 10:12, Simon Glass wrote: Hi Marek, Hi, [...] Applied to u-boot-dm, thanks! This patch is still not in u-boot/master ?

[PATCH] cmd: pxe: add alias devicetree-overlay for fdtoverlays

2022-09-19 Thread Edoardo Tomelleri
This adds keyword devicetree-overlay as an alias for fdtoverlays in extlinux (sysboot) and pxe to better follow the Boot Loader Specification, improves documentation around them by adding an example for both fdtoverlays and devicetree-overlay and the environment variable required for this feature.

[PATCH] usb: Add missing guard around env_get() in usb_hub

2022-09-19 Thread Marek Vasut
The env_get() might be undefined in case ENV_SUPPORT is disabled, which may happen e.g. in SPL. Add missing ifdef guard around the env_get() to prevent build failure. Signed-off-by: Marek Vasut --- Cc: Simon Glass Cc: Tom Rini --- common/usb_hub.c | 4 +++- 1 file changed, 3 insertions(+), 1 d

[PATCH] ARM: dts: imx8mm: Swap i.MX8M Mini Menlo board UARTs back

2022-09-19 Thread Marek Vasut
The first production revision of the MX8M Mini Menlo board implements a hardware change which swaps console UART and another UART connector. Implement the swap, which maps the console UART back to the way Verdin console is mapped. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Marcel Ziswi

[PATCH v2] ARM: imx: Deduplicate i.MX8M SNVS LPGPR unlock

2022-09-19 Thread Marek Vasut
Pull this LPGPR unlock into common code, since it is used in multiple systems already. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li Cc: uboot-imx --- V2: Reinstate empty board_init() in DM eDM SBC board to fix build error --- arch/arm/include/asm

[PATCH 1/4] ARM: imx8m: Deduplicate CAAM init with arch_misc_init() call

2022-09-19 Thread Marek Vasut
Instead of duplicating code implemented by i.MX8M version of arch_misc_init() in every board, enable CONFIG_ARCH_MISC_INIT and call arch_misc_init() from spl_board_init(). This removes the duplication. No functional change. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Frieder Schrempf C

[PATCH 2/4] ARM: imx8m: phycore_imx8mm: Drop bogus spl_board_init()

2022-09-19 Thread Marek Vasut
The current implementation of spl_board_init() is not correct, the MX8MM BootROM v1 does not support SDP load when re-entered from U-Boot SPL, it is up to U-Boot to perform the next stage load using its own internal CI gadget driver and SDP protocol implementation. Drop the spl_board_init() to let

[PATCH 3/4] ARM: imx8m: verdin-imx8mm: Drop bogus content from spl_board_init()

2022-09-19 Thread Marek Vasut
The current implementation of spl_board_init() USB boot handling is not correct, the MX8MM BootROM v1 does not support SDP load when re-entered from U-Boot SPL, it is up to U-Boot to perform the next stage load using its own internal CI gadget driver and SDP protocol implementation. Drop the spl_bo

[PATCH 4/4] ARM: dts: imx8m: imx8mm-mx8menlo: Enable SPL SDP support

2022-09-19 Thread Marek Vasut
Enable DM USB, DM PHY and USB gadget support in imx8mm-mx8menlo SPL to let the board continue SDP loading of second stage after the first stage was loaded by BootROM SDP implementation. It is not possible to jump back into BootROM v1 and let the BootROM implementation continue the SDP loading, all

[PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-19 Thread Marek Vasut
The gpio_hog_probe_all() functionality can be perfectly well replaced by DM_FLAG_PROBE_AFTER_BIND DM flag, which would trigger .probe() callback of each GPIO hog driver instance after .bind() and thus configure the hogged GPIO accordingly. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt C

[RFC][PATCH] spl: Turn spl_board_init() into weak symbol

2022-09-19 Thread Marek Vasut
Make spl_board_init() a weak symbol and get rid of Kconfig symbols and ifdeffery guarding this function. Since the spl_board_init() is now a weak symbol, boards can either use the default implementation which is empty and gets inlined with zero text increase, or override the implementation with the

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Waldemar Brodkorb
Hi Patrice, Patrice CHOTARD wrote, > Waldemar, > > You can applied the following series on current U-Boot master > branch (a0759684e015bd7252be3af508c0fcfdbb8ec5dc): > > https://patchwork.ozlabs.org/project/uboot/list/?series=318991 > I applied the patches on top of u-boot master and the non-

Re: u-boot 2022-07 on STM32F746G-DISCO

2022-09-19 Thread Simon Glass
Hi Waldemar, On Mon, 19 Sept 2022 at 13:48, Waldemar Brodkorb wrote: > > Hi again, > > Waldemar Brodkorb wrote, > > > Hi, > > > > I am trying to run u-boot on a STM32F746G-DISCO device. > > I am configuring u-boot with stm32f746-disco_spl_defconfig. > > > > But nothing happens on the LCD nor on t

Re: [PATCH] board_f: show_dram_config: Print also real DRAM size

2022-09-19 Thread Simon Glass
Hi Pali, On Sun, 18 Sept 2022 at 13:30, Pali Rohár wrote: > > On Monday 12 September 2022 17:58:09 Sean Anderson wrote: > > You can use TEST_STATIC from test/export.h this case. > > Now I sent new patch version where I extended comment. > > I have still issue with test framework. Could you help m

  1   2   >