Re: [PATCH] arm: kirkwood: Sheevaplug : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-03-21 Thread Stefan Roese
Hi Tony, On 3/21/22 22:46, Tony Dinh wrote: Hi Stefan & Tom, Sure, I will apply Tom's patch to my work tree and rebuild the Kirkwood boards. My grep shows 33 defconfig with ARCH_KIRKWOOD. After that, I will do a quick review on the boards' files for sanity. Perfect, thanks. Thanks, Stefan

[PATCH 6/7] Remove CONFIG_BOARDNAME and CONFIG_BOARD_NAME

2022-03-21 Thread Tom Rini
Both of these variables are used in a few hard-coded ways to set some string values or print something to the user. In almost all cases, it's just as useful to hard-code the value used. The exception here is printing something closer to correct board name for p1_p2_rdb machines. This can be done

[PATCH 3/7] Finish converting CONFIG_BOOTM_NETBSD et al to Kconfig

2022-03-21 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOOTM_NETBSD CONFIG_BOOTM_RTEMS CONFIG_DESIGNWARE_WATCHDOG CONFIG_DISPLAY_CPUINFO CONFIG_DM_ETH CONFIG_DM_MMC CONFIG_DM_REGULATOR CONFIG_DM_SPI CONFIG_DM_SPI_FLASH CONFIG_ISO_PARTITION CONFIG_OF_SEPARATE CONFIG_SPI_F

[PATCH 5/7] Convert CONFIG_BITBANGMII_MULTI to Kconfig

2022-03-21 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BITBANGMII_MULTI Signed-off-by: Tom Rini --- configs/alt_defconfig | 1 + configs/armadillo-800eva_defconfig | 1 + configs/controlcenterdc_defconfig | 1 + configs/gose_defconfig | 1 + configs/grpeach_defconfig

[PATCH 7/7] atmel: Remove CONFIG_SPL_ATMEL_SIZE

2022-03-21 Thread Tom Rini
This seems to be unused in the code, remove it. Cc: Eugen Hristev Signed-off-by: Tom Rini --- include/configs/at91sam9m10g45ek.h | 1 - include/configs/corvus.h | 1 - include/configs/pm9g45.h | 1 - include/configs/smartweb.h | 1 - include/configs/taurus.h

[PATCH 4/7] Convert CONFIG_BCM2835_GPIO to Kconfig

2022-03-21 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BCM2835_GPIO Signed-off-by: Tom Rini --- configs/rpi_0_w_defconfig | 1 + configs/rpi_2_defconfig| 1 + configs/rpi_3_32b_defconfig| 1 + configs/rpi_3_b_plus_defconfig | 1 + configs/rpi_3_defconfig| 1 + configs/rpi_4_3

[PATCH 2/7] CI: Update unmigrated symbol check

2022-03-21 Thread Tom Rini
We need to check for config header files that #undef migrated symbols as well. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 6 -- .gitlab-ci.yml | 6 -- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 0f1a1bd863

[PATCH 1/7] am33xx: musb: Remove unused configuration logic

2022-03-21 Thread Tom Rini
At this point DM and OF_CONTROL are used to configure how the USB ports are enabled, with the exception of in SPL and no SPL_OF_CONTROL. Remove a bunch of now unused logic to simplify the code. Signed-off-by: Tom Rini --- arch/arm/mach-omap2/am33xx/board.c | 82 +++--- 1

[PATCH v6] wdt: nuvoton: Add support for Nuvoton

2022-03-21 Thread Jim Liu
Add watchdog controller driver for NPCM7xx/npcm8xx Signed-off-by: Jim Liu Reviewed-by: Stefan Roese Reviewed-by: Simon Glass Changes for v2: - coding style cleanup - change register type from struct Changes for v3: - remove common.h Changes for v4: - add a bit of detail about the d

[PATCH] mtd: gpmi: fix the gpmi bch setting unalignment issue

2022-03-21 Thread Han Xu
The code change fixed the kernel gpmi bch setting not aligned with u-boot settings issue. It still uses the legacy bch geometry as the default option. If users need to choose the minimum ecc strength that NAND chips required, it can be enabled by either adding DT flag "fsl,use-minimum-ecc" or CONFI

Re: [PATCH v2 1/3] Add valgrind headers to U-Boot

2022-03-21 Thread Sean Anderson
On 3/21/22 2:06 PM, Simon Glass wrote: Hi Sean, On Mon, 17 May 2021 at 19:39, Tom Rini wrote: On Mon, May 17, 2021 at 09:36:10PM -0400, Sean Anderson wrote: On 5/17/21 5:18 PM, Tom Rini wrote: On Wed, May 05, 2021 at 04:08:18PM -0400, Sean Anderson wrote: Valgrind uses magic code sequenc

[PATCH] image-fdt: save name of FIT configuration in '/chosen' node

2022-03-21 Thread Daniel Golle
It can be useful for the OS (Linux) to know which configuration has been chosen by U-Boot when launching a FIT image. Store the name of the FIT configuration node used in a new string attribute called 'bootconf' in the '/chosen' node in device tree. Signed-off-by: Daniel Golle --- boot/image-fdt

Re: [PATCH] arm: kirkwood: Sheevaplug : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-03-21 Thread Tony Dinh
Hi Stefan & Tom, Sure, I will apply Tom's patch to my work tree and rebuild the Kirkwood boards. My grep shows 33 defconfig with ARCH_KIRKWOOD. After that, I will do a quick review on the boards' files for sanity. Tony On Mon, Mar 21, 2022 at 4:46 AM Tom Rini wrote: > > On Mon, Mar 21, 2022 at

[PATCH] arm: apple: Fix mem layout

2022-03-21 Thread Mark Kettenis
The current approach for setting the environment variables that describe the memory layout runs the risk of overlapping with reserved memory regions. Use the lmb code to derive the addresses for these variables instead. Signed-off-by: Mark Kettenis --- Another candidate for 2022.04. Not a regre

[PATCH] arm: apple: Increase RTKit timeout

2022-03-21 Thread Mark Kettenis
From: Hector Martin The firmware on larger NVMe drives needs more than 100ms to come up. Change the timeout to 1s. Signed-off-by: Hector Martin Signed-off-by: Mark Kettenis --- While technically this isn't a regression, it would be nice to have this in the 2022.04 release as without this NVMe

Re: [PATCH 2/5] imx8mm-cl-iot-gate: Retrieve the DDR type from EEPROM

2022-03-21 Thread Paul Liu
Hi Tim, It seems to me the correct logic is. If EEPROM provides information, we use that information directly. Pick a dram setting and test the ram if it works. If it is not working, then that means EEPROM has wrong data or someone clean it wrongly. So we loop the table, try to find the correct se

Re: [EXT] [PATCH] mtd: mxs_nand: default to legacy bch and rename to modern bch option

2022-03-21 Thread Tim Harvey
On Mon, Mar 21, 2022 at 1:34 AM Frieder Schrempf wrote: > > Hi Ye, > > Am 17.03.22 um 14:54 schrieb Frieder Schrempf: > > Hi Han, > > > > Am 17.03.22 um 14:33 schrieb Han Xu: > >> > >> > >> On Thu, Mar 17, 2022 at 8:27 AM Frieder Schrempf > >> mailto:frieder.schre...@kontron.de>> wrote: > >> > >>

[PATCH 3/3] binman: add test for sign option

2022-03-21 Thread Ivan Mikhaylov
Add the test which provides sequence of actions: 1. create the image from binman dts 2. create public and private keys 3. add public key into dtb with fdt_add_pubkey 4. sign image with new sign option 5. check with fit_check_sign Signed-off-by: Ivan Mikhaylov --- tools/binman/ftest.py

[PATCH 2/3] binman: add documentation for binman sign option

2022-03-21 Thread Ivan Mikhaylov
Add the documentation about binman sign option and providing an example. Signed-off-by: Ivan Mikhaylov --- tools/binman/binman.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst index 771645380e..efa3321b95 100644 --- a/tools/bin

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

2022-03-21 Thread Ivan Mikhaylov
Introduce proof of concept for binman's new option which provides sign and replace sections in binary images. Usage as example: from: mkimage -G privateky -r -o sha256,rsa4096 -F fit binman replace -i flash.bin -f fit.fit fit to: binman sign -i flash.bin -k privatekey -a sha256,rsa4096 -f fit.fi

[PATCH 0/3] Introduce new sign binman's option

2022-03-21 Thread Ivan Mikhaylov
From: Ivan Mikhaylov This patch introduces prototype of new sign binman's option. Enhancing the sign procedure, as example: mkimage -G privateky -r -o sha256,rsa4096 -F fit.fit binman replace -i flash.bin -f fit.fit fit into: binman sign -i flash.bin -k privatekey -a sha256,rsa4096 -f fit.fit f

Re: [PATCH v2 1/3] Add valgrind headers to U-Boot

2022-03-21 Thread Simon Glass
Hi Sean, On Mon, 17 May 2021 at 19:39, Tom Rini wrote: > > On Mon, May 17, 2021 at 09:36:10PM -0400, Sean Anderson wrote: > > > > On 5/17/21 5:18 PM, Tom Rini wrote: > > > On Wed, May 05, 2021 at 04:08:18PM -0400, Sean Anderson wrote: > > > > > > > Valgrind uses magic code sequences to define an

Re: [PATCH] Makefile: add drivers/video/u_boot_logo.S to clean

2022-03-21 Thread Simon Glass
On Sat, 19 Mar 2022 at 06:33, Heinrich Schuchardt wrote: > > make sandbox_defconfig > make mrproper > make tests > > fails with > > ../drivers/video/u_boot_logo.S: Assembler messages: > ../drivers/video/u_boot_logo.S:5: Error: file not found: > drivers/video/u_boot_logo.bmp > > We have to delete

Re: [PATCH 2/5] imx8mm-cl-iot-gate: Retrieve the DDR type from EEPROM

2022-03-21 Thread Tim Harvey
On Sat, Mar 19, 2022 at 5:23 AM Fabio Estevam wrote: > > From: Fabio Estevam > > Currently, the DDR type is retrieved by iteracting inside an array > of possible DDR types. > > This may take saveral attempts, which slows the overall U-Boot process > and does not provide a good user experience: >

Re: [EXT] [PATCH] ARM: imx: romapi: Repair FlexSPI NOR boot offset

2022-03-21 Thread Marek Vasut
On 3/21/22 04:35, Ye Li wrote: Hi Marek, Hi, diff --git a/arch/arm/mach-imx/spl_imx_romapi.c b/arch/arm/mach- imx/spl_imx_romapi.c index d827de375a6..c47f5a6bdb4 100644 --- a/arch/arm/mach-imx/spl_imx_romapi.c +++ b/arch/arm/mach-imx/spl_imx_romapi.c @@ -38,14 +38,8 @@ ulong spl_romapi_raw_se

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-21 Thread Fabio Estevam
Hi Heiko, On Mon, Mar 21, 2022 at 11:26 AM Heiko Thiery wrote: > > It was observed that enabling additional DM modules the configured > malloc value is not sufficient. So lets increase the value. > > Signed-off-by: Heiko Thiery > --- > v2: > - add a more proper commit message to explan why the

[PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-21 Thread Heiko Thiery
It was observed that enabling additional DM modules the configured malloc value is not sufficient. So lets increase the value. Signed-off-by: Heiko Thiery --- v2: - add a more proper commit message to explan why the value was increased configs/kontron_pitx_imx8m_defconfig | 1 + 1 file changed

Re: [PATCH] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-21 Thread Fabio Estevam
Hi Heiko, On Mon, Mar 21, 2022 at 11:16 AM Heiko Thiery wrote: > > Signed-off-by: Heiko Thiery Please add a commit log explaining why you are doing this. Thanks

Re: [PATCH 1/2] sunxi: Fix old GMAC pinmux setup

2022-03-21 Thread Petr Štetiar
Andre Przywara [2022-03-16 00:54:42]: > Commit 5bc4cd05d7d4 ("sunxi: move non-essential code out of s_init()") > moved the call to eth_init_board() from s_init() into board_init_f(). > This means it's now only called from the SPL, which makes sense for > most of the other moved low-level function

[PATCH] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-21 Thread Heiko Thiery
Signed-off-by: Heiko Thiery --- configs/kontron_pitx_imx8m_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/kontron_pitx_imx8m_defconfig b/configs/kontron_pitx_imx8m_defconfig index 76430213e3..30c3586937 100644 --- a/configs/kontron_pitx_imx8m_defconfig +++ b/configs/kontro

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-21 Thread Heiko Thiery
Hi Angus, [snip] > > So I'm not sure if the ipg clock is the right one for the boards that > > has different clock for ipg and per. > > So I only looked at imx6qdl.dtsi where the clocks are different > > clocks = <&clks IMX6QDL_CLK_UART_IPG>, > <&clks IMX6QDL_CLK_UART_SERIAL>; > clock-n

[PATCH v3 3/3] efi_loader: Use sysreset instead of reset command

2022-03-21 Thread Masami Hiramatsu
Use sysreset_walk_halt() directly from reset-after-capsule-on-disk feature to reboot (cold reset) machine instead of using reset command interface, since this is not a command. Note that this will make CONFIG_EFI_CAPSULE_ON_DISK depending on the CONFIG_SYSRESET. Signed-off-by: Masami Hiramatsu Re

[PATCH v3 2/3] efi_loader: Make efi_load_capsule_drivers() available even if EFI_CAPSULE_ON_DISK=n

2022-03-21 Thread Masami Hiramatsu
Make efi_load_capsule_drivers() available even if EFI_CAPSULE_ON_DISK is disabled because the caller (efi_init_obj_list()) expects it only relays on EFI_HAVE_CAPSULE_SUPPORT. Signed-off-by: Masami Hiramatsu Suggested-by: Heinrich Schuchardt --- lib/efi_loader/efi_capsule.c | 60 ++

[PATCH v3 1/3] cmd: efidebug: Disable 'capsule disk-update' when CONFIG_EFI_CAPSULE_ON_DISK=n

2022-03-21 Thread Masami Hiramatsu
Disable 'capsule disk-update' option for the efidebug command when CONFIC_EFI_CAPSULE_ON_DISK is disabled, because this option is available only when the EFI capsule update on disk is enabled. Signed-off-by: Masami Hiramatsu Suggested-by: Heinrich Schuchardt --- cmd/efidebug.c |4 1 fi

[PATCH v3 0/3] EFI: Use sysreset instead of reset command

2022-03-21 Thread Masami Hiramatsu
Hi, Here is the 3rd version of the series to use sysreset instead of do_reset command interface for resetting after capsule update on disk. This change requires EFI capsule update on disk to depends on sysreset. This adds two fixes from the previous patch: - [1/3] Disable 'capsule disk-update' of

Re: [PATCH v3 4/4] configs: am64x_evm_r5_defconfig: Add support for ESM

2022-03-21 Thread Christian Gmeiner
Am Mi., 9. März 2022 um 21:43 Uhr schrieb Hari Nagalla : > > Enable ESM driver for AM64x R5 SPL/u-boot builds. > > Signed-off-by: Hari Nagalla Reviewed-by: Christian Gmeiner > --- > configs/am64x_evm_r5_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/configs/am64x_evm_r5_def

Re: [PATCH v3 3/4] arch: arm: mach-k3: am642_init: Probe ESM nodes

2022-03-21 Thread Christian Gmeiner
Am Mi., 9. März 2022 um 21:43 Uhr schrieb Hari Nagalla : > > On AM64x devices, it is possible to route Main ESM0 error events to MCU > ESM. MCU ESM high error output can trigger the reset logic to reset the > device. So, for these devices we expect two ESM device nodes in the > device tree, one for

Re: [PATCH v3 2/4] arm: dts: k3-am64: Add support for ESM device nodes

2022-03-21 Thread Christian Gmeiner
Am Mi., 9. März 2022 um 21:42 Uhr schrieb Hari Nagalla : > > Enable access to ESM0 configuration space and add Main ESM0 and MCU ESM > nodes to the AM64 device tree. > > Signed-off-by: Hari Nagalla Reviewed-by: Christian Gmeiner > --- > arch/arm/dts/k3-am64.dtsi| 1 + > arch/arm/dts/k

Re: [PATCH v3 1/4] misc: k3_esm: Add functionality to set and route error events within K3SoC

2022-03-21 Thread Christian Gmeiner
Am Mi., 9. März 2022 um 21:43 Uhr schrieb Hari Nagalla : > > Add functionality to enable, set priority to the input events and to > route to MCU ESM. On AM64x/AM62x devices, it is possible to route Main > ESM0 error events to MCU ESM. When these error events are routed to MCU > ESM high output, it

Re: [PATCH] arm: kirkwood: Sheevaplug : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-03-21 Thread Tom Rini
On Mon, Mar 21, 2022 at 03:36:50AM -0700, Tony Dinh wrote: > Hi Stefan, > > Perhaps you've missed merging this patch into your tree, or during the > pull request to Tom. > > I saw Tom's recent patch to move the CONFIG_RESET_PHY_R to Kconfig: > https://lists.denx.de/pipermail/u-boot/2022-March/47

Re: A20-OLinuXino-LIME2 network regression [Was: [PATCH v2 1/5] sunxi: move non-essential code out of s_init()]

2022-03-21 Thread Andre Przywara
On Sun, 20 Mar 2022 23:10:31 +0100 Petr Štetiar wrote: Hi Petr, > Andre Przywara [2022-02-01 01:41:12]: > > > Since we have an SPL, which is called right after s_init(), move those > > calls to our board_init_f() function. As we overwrite this only for > > the SPL, this has the added benefit o

Re: [PATCH] arm: kirkwood: Sheevaplug : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-03-21 Thread Stefan Roese
Hi Tony, On 3/21/22 11:36, Tony Dinh wrote: Hi Stefan, Perhaps you've missed merging this patch into your tree, or during the pull request to Tom. No, I've queued this patch and other Kirkwood patches for the next merge window. As we're already in rc4 by now. I saw Tom's recent patch to mov

Re: [PATCH] arm: kirkwood: Sheevaplug : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-03-21 Thread Tony Dinh
Hi Stefan, Perhaps you've missed merging this patch into your tree, or during the pull request to Tom. I saw Tom's recent patch to move the CONFIG_RESET_PHY_R to Kconfig: https://lists.denx.de/pipermail/u-boot/2022-March/478333.html diff --git a/configs/sheevaplug_defconfig b/configs/sheevaplug_

Re: [PATCH 2/5] imx8mm-cl-iot-gate: Retrieve the DDR type from EEPROM

2022-03-21 Thread Harald Seiler
On Sat, 2022-03-19 at 09:22 -0300, Fabio Estevam wrote: > From: Fabio Estevam > > Currently, the DDR type is retrieved by iteracting inside an array > of possible DDR types. > > This may take saveral attempts, which slows the overall U-Boot process > and does not provide a good user experience:

Re: [PATCH v4] wdt: nuvoton: Add support for Nuvoton

2022-03-21 Thread Michael Walle
> On Tue, 15 Mar 2022 10:14:16 +0800 > Jim Liu wrote: > > > Add watchdog controller driver for NPCM7xx/npcm8xx > >=20 > > Signed-off-by: Jim Liu > > Reviewed-by: Stefan Roese > >=20 > > Changes for v4: > >- add a bit of detail about the device in Kconfig > >- lower-case hex change > >

Re: [PATCH v3 0/6] imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-03-21 Thread Michael Nazzareno Trimarchi
Hi Stefano On Tue, Mar 1, 2022 at 4:50 PM Stefano Babic wrote: > > Hi Michael, > > On 28.02.22 20:38, Michael Nazzareno Trimarchi wrote: > > Hi Stefano > > > > Any plan to get those boards in? > > > > Sure, but according how Tom has already set up. Merge window closed at > 31th, January, and late

Re: [EXT] [PATCH] mtd: mxs_nand: default to legacy bch and rename to modern bch option

2022-03-21 Thread Frieder Schrempf
Hi Ye, Am 17.03.22 um 14:54 schrieb Frieder Schrempf: > Hi Han, > > Am 17.03.22 um 14:33 schrieb Han Xu: >> >> >> On Thu, Mar 17, 2022 at 8:27 AM Frieder Schrempf >> mailto:frieder.schre...@kontron.de>> wrote: >> >> Hi Stefano, >> >> this old patch was delegated to you in patchwork. If yo

FIT image with different load addresses

2022-03-21 Thread Chris Packham
Hi, I've got 2 ARM64 boards. The can both use the same kernel and initrd except dram on one starts at 0 and on the other at 0x2. Is it possible to set the loadaddr and entrypoint in a FIT image such that it will work for both boards? If I put 2 kernel entries using the same binary will th

[PATCH v1 2/2] mtd: Update the way partitions are parsed

2022-03-21 Thread Patrice Chotard
In case mtd_info's dev field is not populated (raw nand's case), use the flash_node new field which reference the DT flash node where can be found "partitions" node with "fixed-partitions" compatible. Signed-off-by: Patrice Chotard Cc: Farhan Ali Cc: Heinrich Schuchardt Cc: Jagan Teki Cc: Mar

[PATCH v1 1/2] mtd: Add flash_node in struct mtd_info

2022-03-21 Thread Patrice Chotard
Currently, add_mtd_partitions_of() can be used only if dev field of mtd_info struct is populated. It's the case, for example, for a spi nor flash, which has a DT compatible "jedec,spi-nor" and an associated device. mtd->dev is populated in spi_nor_scan(). But in case of a raw nand node, mtd_info's

[PATCH v1 0/2] mtd: Allow to parse DT partitions for raw nand

2022-03-21 Thread Patrice Chotard
This series is fixing issue where "mtd list" command can't displayed nand raw partitions even if the flash DT node is populated with partitions subnode with "fixed-partitions" compatible. Patrice Chotard (2): mtd: Add flash_node in struct mtd_info mtd: Update the way partitions are parsed

Re: [PATCH v2] efi_loader: Use sysreset instead of reset command

2022-03-21 Thread Masami Hiramatsu
Hi Heinrich, Thanks for finding the issues. 2022年3月19日(土) 18:02 Heinrich Schuchardt : > > On 3/16/22 20:23, Simon Glass wrote: > > On Wed, 16 Mar 2022 at 06:35, Heinrich Schuchardt > > wrote: > >> > >> On 3/16/22 09:03, Masami Hiramatsu wrote: > >>> Use sysreset_walk_halt() directly from reset-

Re: [PATCH v2 1/9] efi_loader: export efi_dp_shorten()

2022-03-21 Thread Ilias Apalodimas
On Sat, 19 Mar 2022 at 11:12, Heinrich Schuchardt wrote: > > From: Heinrich Schuchardt > > Rename function shorten_path() to efi_dp_shorten() and export it. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > new patch split off > --- > include/efi_loader.h | 3 ++- > lib/