Please pull u-boot-marvell/next

2022-09-20 Thread Stefan Roese
Hi Tom, please pull these Marvell patches into next: - Enable CONFIG_TIMER for all Kirkwood / MVEBU boards (Stefan) - u-boot-spl.kwb/SPL: Add / improve size limit setup / detection (Pali) - mvebu: theadorable: Misc updates in defco

Re: [PATCH v10 08/15] event: Add an event for main_loop

2022-09-20 Thread Ilias Apalodimas
On Thu, Sep 15, 2022 at 01:44:44PM +0530, Sughosh Ganu wrote: > Add an event type EVT_MAIN_LOOP that can be used for registering > events that need to be run after the platform has been initialised and > before the main_loop function is called. > > Signed-off-by: Sughosh Ganu > Reviewed-by: Simon

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-20 Thread Patrick DELAUNAY
Hi, On 9/19/22 21:45, Marek Vasut wrote: 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:

Re: [PATCH v10 10/15] FWU: Add support for the FWU Multi Bank Update feature

2022-09-20 Thread Takahiro Akashi
On Fri, Sep 16, 2022 at 04:24:35PM +0530, Sughosh Ganu wrote: > hi Takahiro, > > On Fri, 16 Sept 2022 at 12:20, Takahiro Akashi > wrote: > > > > On Fri, Sep 16, 2022 at 10:52:11AM +0530, Sughosh Ganu wrote: > > > () hi Takahiro, > > > > > > On Fri, 16 Sept 2022 at 07:17, Takahiro Akashi > > > wr

[PATCH v2 0/6] arm: mvebu: Support for 98DX25xx/98DX35xx (AlleyCat5)

2022-09-20 Thread Chris Packham
These patches are based on Marvell's bootloader for the AlleyCat5/5X which was based on u-boot 2018.03. I've split that code into consumable chunks and dropped as much unnecessary stuff as I can. I've also tried to sync the device trees as much as possible with the support that will land in Linux

[PATCH v2 1/6] net: mvneta: Add support for AlleyCat5

2022-09-20 Thread Chris Packham
Add support for the AlleyCat5 SoC. This lacks the mbus from the other users of the mvneta.c driver so a new compatible string is needed to allow for a different window configuration. Signed-off-by: Chris Packham --- (no changes since v1) drivers/net/Kconfig | 2 +- drivers/net/mvneta.c | 66

[PATCH v2 2/6] usb: ehci: ehci-marvell: Support for marvell,ac5-ehci

2022-09-20 Thread Chris Packham
Unlike the other 64-bit mvebu SoCs the AlleyCat5 uses the older ehci block from the 32-bit SoCs. Adapt the ehci-marvell.c driver to cope with the fact that the ac5 does not have the mbus infrastructure the 32-bit SoCs have and ensure USB_EHCI_IS_TDI is selected. Signed-off-by: Chris Packham ---

[PATCH v2 3/6] pinctrl: mvebu: Add AlleyCat5 support

2022-09-20 Thread Chris Packham
This uses the same IP block as the Armada-8K SoCs. Signed-off-by: Chris Packham --- (no changes since v1) drivers/pinctrl/mvebu/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/mvebu/Kconfig b/drivers/pinctrl/mvebu/Kconfig index 574fb4dfb0..7c51d138c8

[PATCH v2 4/6] misc: mvebu: Add sample at reset driver

2022-09-20 Thread Chris Packham
Add a new UCLASS_SAR, the generic SAR code and an Alleycat5 driver. This has been adapted from the Marvell SDK but only the AC5 driver has been brought through (other drivers exist for the ap806, ap807 and cp110 IP blocks). Signed-off-by: Chris Packham --- (no changes since v1) drivers/misc/Kc

[PATCH v2 5/6] arm: mvebu: Support for 98DX25xx/98DX35xx SoC

2022-09-20 Thread Chris Packham
Add support for the Allecat5/Alleycat5X SoC. These are L3 switches with an integrated CPU (referred to as the CnM block in Marvell's documentation). These have dual ARMv8.2 CPUs (Cortex-A55). This support has been ported from Marvell's SDK which is based on a much older version of U-Boot. Signed-o

[PATCH v2 6/6] arm: mvebu: Add RD-AC5X board

2022-09-20 Thread Chris Packham
The RD-AC5X-32G16HVG6HLG-A0 development board main components and features include: * Main 12V/54V power supply * 270 Gbps throughput packet processor on the main board * DDR4: * SR1: 2GB DDR4 2400MT/S(1GB x 2 pcs ) with ECC(1GB x 1 pcs) * SR2: 4GB DDR4 2400MT/S(2GB x 2 pcs ) with ECC(2GB x 1

[PATCH] ARM: dts: at91: sam9x60ek: fix indentation for pinctrl sub-nodes

2022-09-20 Thread Dario Binacchi
The indentation went far on the right due to an extra tab for each pinctrl sub-nodes. Signed-off-by: Dario Binacchi --- arch/arm/dts/sam9x60ek.dts | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/arch/arm/dts/sam9x60ek.dts b/arch/arm/dts

Re: [PATCH v2 8/9] ARM: dts: at91: sam9x60ek: Enable NAND support

2022-09-20 Thread Dario Binacchi
Hi Eugen, On Thu, Sep 1, 2022 at 7:57 AM wrote: > > On 8/31/22 5:19 PM, Michael Nazzareno Trimarchi wrote: > > Hi > > > > On Wed, Aug 31, 2022 at 3:31 PM wrote: > >> > >> On 8/31/22 4:14 PM, Michael Nazzareno Trimarchi wrote: > >>> Hi > >>> > >>> On Mon, Aug 29, 2022 at 8:20 AM Balamanikandan Gu

Re: [PATCH] ARM: dts: at91: sam9x60ek: fix indentation for pinctrl sub-nodes

2022-09-20 Thread Michael Nazzareno Trimarchi
Hi On Tue, Sep 20, 2022 at 10:33 AM Dario Binacchi wrote: > > The indentation went far on the right due to an extra tab for > each pinctrl sub-nodes. > > Signed-off-by: Dario Binacchi > --- > > arch/arm/dts/sam9x60ek.dts | 36 ++-- > 1 file changed, 18 insertions

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

2022-09-20 Thread Patrice CHOTARD
Hi Waldemar On 9/19/22 23:03, Waldemar Brodkorb wrote: > 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=318

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-20 Thread Quentin Schulz
Hi Marek, On 9/19/22 21:45, Marek Vasut wrote: 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-o

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

2022-09-20 Thread Patrice CHOTARD
Hi Waldemar On 9/20/22 01:12, Waldemar Brodkorb wrote: > Hi Simon, > Simon Glass wrote, > >> 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

Re: [PATCH v2 2/6] usb: ehci: ehci-marvell: Support for marvell,ac5-ehci

2022-09-20 Thread Pali Rohár
On Tuesday 20 September 2022 20:31:49 Chris Packham wrote: > Unlike the other 64-bit mvebu SoCs the AlleyCat5 uses the older ehci > block from the 32-bit SoCs. Adapt the ehci-marvell.c driver to cope with > the fact that the ac5 does not have the mbus infrastructure the 32-bit > SoCs have and ensur

Re: [PATCH v2 1/6] net: mvneta: Add support for AlleyCat5

2022-09-20 Thread Stefan Roese
On 20.09.22 10:31, Chris Packham wrote: Add support for the AlleyCat5 SoC. This lacks the mbus from the other users of the mvneta.c driver so a new compatible string is needed to allow for a different window configuration. Signed-off-by: Chris Packham --- (no changes since v1) drivers/net/K

Re: [PATCH v2 5/6] arm: mvebu: Support for 98DX25xx/98DX35xx SoC

2022-09-20 Thread Pali Rohár
On Tuesday 20 September 2022 20:31:52 Chris Packham wrote: > Add support for the Allecat5/Alleycat5X SoC. These are L3 switches with > an integrated CPU (referred to as the CnM block in Marvell's > documentation). These have dual ARMv8.2 CPUs (Cortex-A55). This support > has been ported from Marvel

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-20 Thread Marek Vasut
On 9/20/22 11:00, Quentin Schulz wrote: Hi Marek, Hi, On 9/19/22 21:45, Marek Vasut wrote: 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

Re: [PATCH 1/2] smbios: Simplify reporting of unknown values

2022-09-20 Thread Peter Robinson
Hi Simon, Adding Rob for information around putting things in device tree. > > If a value is not valid during the DT or SYSINFO parsing, we explicitly > > set that to "Unknown Product" and "Unknown" for the product and > > manufacturer respectively. It's cleaner if we move the checks insisde >

Re: [PATCH] mtd: nand: pxa3xx: simplify ECC hardware parameters

2022-09-20 Thread Dario Binacchi
Hi Chris, On Thu, Aug 25, 2022 at 7:00 AM Chris Packham wrote: > > Replace the if/else chain in pxa_ecc_init() with a lookup table. This > makes the code more concise and hopefully easier to follow. Remove the > unused ecc_layout tables and replace it with a single dummy one (the > pxa3xx driver

Re: [PATCH v2 4/6] misc: mvebu: Add sample at reset driver

2022-09-20 Thread Pali Rohár
On Tuesday 20 September 2022 20:31:51 Chris Packham wrote: > diff --git a/lib/fdtdec.c b/lib/fdtdec.c > index 96b6b71a60..26e5c82bcd 100644 > --- a/lib/fdtdec.c > +++ b/lib/fdtdec.c > @@ -74,7 +74,11 @@ static const char * const compat_names[COMPAT_COUNT] = { > COMPAT(ALTERA_SOCFPGA_F2SDR2, "

Re: [PATCH v2 1/6] net: mvneta: Add support for AlleyCat5

2022-09-20 Thread Pali Rohár
On Tuesday 20 September 2022 20:31:48 Chris Packham wrote: > diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c > index d2c42c4396..07919d6d35 100644 > --- a/drivers/net/mvneta.c > +++ b/drivers/net/mvneta.c > @@ -91,6 +91,8 @@ DECLARE_GLOBAL_DATA_PTR; > #define MVNETA_WIN_SIZE_MASK

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

2022-09-20 Thread Waldemar Brodkorb
Hi Patrice, Patrice CHOTARD wrote, > Hi Waldemar > > On 9/19/22 23:03, Waldemar Brodkorb wrote: > > Hi Patrice, > > Patrice CHOTARD wrote, > > > >> Waldemar, > >> > >> You can applied the following series on current U-Boot master > >> branch (a0759684e015bd7252be3af508c0fcfdbb8ec5dc): > >> > >>

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

2022-09-20 Thread Waldemar Brodkorb
Hi Patrice, Hi Simon, Patrice CHOTARD wrote, > Hi Waldemar > > On 9/20/22 01:12, Waldemar Brodkorb wrote: > > Hi Simon, > > Simon Glass wrote, > > > >> Hi Waldemar, > >> > >> On Mon, 19 Sept 2022 at 13:48, Waldemar Brodkorb wrote: > >>> > >>> Hi again, > >>> > >>> Waldemar Brodkorb wrote, > >>>

Re: [PATCH 1/2] smbios: Simplify reporting of unknown values

2022-09-20 Thread Peter Robinson
On Tue, Sep 6, 2022 at 2:44 PM Ilias Apalodimas wrote: > > If a value is not valid during the DT or SYSINFO parsing, we explicitly > set that to "Unknown Product" and "Unknown" for the product and > manufacturer respectively. It's cleaner if we move the checks insisde > smbios_add_string() and a

Re: [PATCH v2 6/6] arm: mvebu: Add RD-AC5X board

2022-09-20 Thread Pali Rohár
On Tuesday 20 September 2022 20:31:53 Chris Packham wrote: > The RD-AC5X-32G16HVG6HLG-A0 development board main components and features > include: > * Main 12V/54V power supply > * 270 Gbps throughput packet processor on the main board > * DDR4: > * SR1: 2GB DDR4 2400MT/S(1GB x 2 pcs ) with ECC(

Re: [PATCH 2/2] smbios: Fallback to the default DT if sysinfo nodes are missing

2022-09-20 Thread Peter Robinson
On Tue, Sep 6, 2022 at 2:44 PM Ilias Apalodimas wrote: > > In order to fill in the SMBIOS tables U-Boot currently relies on a > "u-boot,sysinfo-smbios" compatible node. This is fine for the boards > that already include such nodes. However with some recent EFI changes, > the majority of boards c

Re: [PATCH 2/2] imx8mm_evk: Add Serial Download Protocol support

2022-09-20 Thread Fabio Estevam
Hi Peng, On Tue, Sep 20, 2022 at 3:56 AM Peng Fan wrote: > > Hi Fabio, > > Just have a question, the tcpci driver is not supported, so how > do you manage to make SDP work? I understand that the tcpci driver is required when a USB role switch is needed. I am only using the usbotg1 as a peripher

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

2022-09-20 Thread Edoardo Tomelleri
Hello Neil, > Concerning the alias name, can you specify in the patch the link to the > Boot Loader Specification ? And probably update the PXE doc but reusing > the same wording. I'm not sure I understand what you mean about the PXE doc, is it better if the devicetree and devicetree-overlay keywo

[PATCH] phy: usbphyc: use regulator_set_enable_if_allowed for disabling vbus supply

2022-09-20 Thread Patrick Delaunay
Use regulator_set_enable_if_allowed() api instead of regulator_set_enable() while disabling vbus supply. This way the driver doesn't see an error when it disable an always-on regulator for VBUS. This patch is needed for STM32MP157C-DK2 board when the regulator v3v3: buck4 used as the phy vbus supp

Re: [PATCH] gpio: uclass: Introduce gpio-hog-optional property

2022-09-20 Thread Fabio Estevam
Hi Nate, On Wed, Sep 14, 2022 at 11:31 AM Nate Drude wrote: > Thanks for the discussion and feedback. I prefer to avoid changing the > bindings in Linux if possible. > > Would it be acceptable if I rework gpio_hog_probe_all so that it prints > an error "Failed to probe device..." if any device_p

Re: [PATCH] rockchip: puma-rk3399: remove dead code

2022-09-20 Thread Kever Yang
On 2022/9/16 00:25, Quentin Schulz wrote: From: Quentin Schulz CONFIG_SERIAL_TAG is not selectable for ARM64 machines. While get_board_serial is weakly defined if ENV_VARS_UBOOT_RUNTIME_CONFIG is defined, it is only called when CONFIG_SUPPORT_PASSING_ATAGS is defined, which also is not select

Re: [PATCH] rockchip: rk3399: Add EAIDK-610 support

2022-09-20 Thread Kever Yang
On 2022/9/18 19:30, andys...@163.com wrote: From: Andy Yan Specification - Rockchip RK3399 - LPDDR3 4GB - TF sd scard slot - eMMC - AP6255 for WiFi + BT - Gigabit ethernet - HDMI out - 40 pin header - USB 2.0 x 2 - USB 3.0 x 1 - USB 3.0 Type-C x 1 work in otg mode - 12V DC Power supply The d

Re: [PATCH v3] configs:rockchip:roc-rk3399-pc:Enable more configs

2022-09-20 Thread Kever Yang
On 2022/9/15 15:23, Manoj Sai wrote: This patch enables the following: 1) use preboot configuration to enable usb devices. 2) Enable USB configs so keyboards and other USB devices work, update the number of ports of the usb root hub. - with this addition the updated USB device Tree:

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-20 Thread Quentin Schulz
Hi all, Just so there's a written summary on the ML rather than only on IRC. On 9/20/22 11:53, Marek Vasut wrote: On 9/20/22 11:00, Quentin Schulz wrote: Hi Marek, Hi, On 9/19/22 21:45, Marek Vasut wrote: The gpio_hog_probe_all() functionality can be perfectly well replaced by DM_FLAG_PRO

Re: [PATCH 07/12] rockchip: puma-rk3399: load environment from same medium as one used to load U-Boot proper

2022-09-20 Thread Kever Yang
Hi Patrick, Quentin, Here is the definition about the ENV_IS_NOWHERE: config ENV_IS_NOWHERE     bool "Environment is not stored" help   Define this if you don't want to or can't have an environment stored   on a storage medium. In this case the environemnt will still exist

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

2022-09-20 Thread Patrice CHOTARD
Hi Waldemar On 9/20/22 12:53, Waldemar Brodkorb wrote: > Hi Patrice, > Patrice CHOTARD wrote, > >> Hi Waldemar >> >> On 9/19/22 23:03, Waldemar Brodkorb wrote: >>> Hi Patrice, >>> Patrice CHOTARD wrote, >>> Waldemar, You can applied the following series on current U-Boot master >>

Re: [PATCH 2/3] net: emaclite: fix xemaclite_alignedread/write functions

2022-09-20 Thread Jan Remes
On Mon, Aug 8, 2022 at 10:05 AM Michal Simek wrote: > > > > On 8/6/22 19:33, Ramon Fried wrote: > > On Wed, Jul 13, 2022 at 5:02 PM Samuel Obuch > > wrote: > >> > >> Use __raw_read* and __raw_write* functions to ensure read/write > >> is passed to the memory-mapped regions, as non-volatile acces

[PATCH] rkspi: only enable padding quirk on SoCs which need it

2022-09-20 Thread Lorenz Brun
The workaround for the Mask ROM bug in a lot of Rockchip SoCs is applied unconditionally, but at least on the RK3328 it is not needed and causes a boot failure if applied. Make a new column in the SoC feature description and skip the workaround if the SoC doesn't need it. Signed-off-by: Lorenz Br

[PATCH] dma: ti: k3-udma: Fix 'SZ_64K’ undeclared error

2022-09-20 Thread Dhruva Gole
Include linux/sizes.h because it defines SZ_64K which is used in many places inside k3-udma.c This fixes the error: ‘SZ_64K’ undeclared which appears during build time Signed-off-by: Dhruva Gole --- I came across this error while trying to build upstream u-boot for the AM62x. I needed to enable

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

2022-09-20 Thread Neil Armstrong
Hi, On 19/09/2022 20:50, Edoardo Tomelleri wrote: 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

Re: [PATCH v10 10/15] FWU: Add support for the FWU Multi Bank Update feature

2022-09-20 Thread Sughosh Ganu
On Tue, 20 Sept 2022 at 13:46, Takahiro Akashi wrote: > > On Fri, Sep 16, 2022 at 04:24:35PM +0530, Sughosh Ganu wrote: > > hi Takahiro, > > > > On Fri, 16 Sept 2022 at 12:20, Takahiro Akashi > > wrote: > > > > > > On Fri, Sep 16, 2022 at 10:52:11AM +0530, Sughosh Ganu wrote: > > > > () hi Takahi

Re: [PATCH v2 03/28] tools: rkcommon: Correct SPL size for px30

2022-09-20 Thread Kever Yang
Hi Jagan, On 2022/9/2 14:43, Jagan Teki wrote: On Fri, 2 Sept 2022 at 08:36, Kever Yang wrote: On 2022/8/18 22:52, Jagan Teki wrote: Rockchip PX30 has 16KB sram, bootrom reserved 4KB as stack. NAK, the origin code is correct, do not modify this. SPL size increment due to updating high row

Re: [PATCH 07/12] rockchip: puma-rk3399: load environment from same medium as one used to load U-Boot proper

2022-09-20 Thread Quentin Schulz
Hi Kever, On 9/20/22 14:28, Kever Yang wrote: Hi Patrick, Quentin, Here is the definition about the ENV_IS_NOWHERE: config ENV_IS_NOWHERE     bool "Environment is not stored" help   Define this if you don't want to or can't have an environment stored   on a storage med

Re: [PATCH 2/3] net: emaclite: fix xemaclite_alignedread/write functions

2022-09-20 Thread Michal Simek
On 9/19/22 19:03, Jan Remes wrote: On Mon, Aug 8, 2022 at 10:05 AM Michal Simek wrote: On 8/6/22 19:33, Ramon Fried wrote: On Wed, Jul 13, 2022 at 5:02 PM Samuel Obuch wrote: Use __raw_read* and __raw_write* functions to ensure read/write is passed to the memory-mapped regions, as non

[PATCH] configs: imx8mm*: Enable CONFIG_ARMV8_CRYPTO support

2022-09-20 Thread Loic Poulain
Which speed up sha1/sha256 operations, about 10x faster with a imx8mm evk for a 20MiB kernel hash verification (12ms vs 165ms). Signed-off-by: Loic Poulain --- configs/imx8mm-cl-iot-gate-optee_defconfig| 1 + configs/imx8mm-cl-iot-gate_defconfig | 1 + configs/imx8mm-icore-mx8mm-cto

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

2022-09-20 Thread Simon Glass
On Mon, 19 Sept 2022 at 21:52, Marek Vasut wrote: > > 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 wit

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

2022-09-20 Thread Marek Vasut
On 9/20/22 17:43, Simon Glass wrote: On Mon, 19 Sept 2022 at 21:52, Marek Vasut wrote: 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 whic

[PATCH v2 0/7] SPL fixes for STM32F7 MCUs

2022-09-20 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 Changes in v2: - Remov

[PATCH v2 1/7] configs: stm32f746-disco: Fix SPL boot

2022-09-20 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 v2 2/7] configs: stm32f769-disco: Fix SPL boot

2022-09-20 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 v2 3/7] configs: stm32746g-eval: Fix SPL boot

2022-09-20 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 v2 4/7] configs: stm32f746-disco: Fix CONFIG_SYS_SPL_ARGS_ADDR

2022-09-20 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 --- (no changes since v1) configs/stm32f746-disco_spl_defconfig | 2 +- 1 file changed, 1 insertion(+),

[PATCH v2 5/7] configs: stm32746g-eval: Fix CONFIG_SYS_SPL_ARGS_ADDR

2022-09-20 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 --- (no changes since v1) configs/stm32746g-eval_spl_defconfig | 2 +- 1 file changed, 1 insertion(+),

[PATCH v2 7/7] configs: stm32f746-disco: Remove CONFIG_SYS_UBOOT_START flag

2022-09-20 Thread Patrice Chotard
By pressing "c" key during SPL execution, we force U-boot execution instead of a kernel XIP image. This fixes a hard fault when booting stm32f746-disco in SPL with "c" key pressed during SPL execution. U-Boot SPL 2022.10-rc5-9-g40d02baa91 (Sep 20 2022 - 17:21:21 +0200) Trying to boot from XIP

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

2022-09-20 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

[PATCH 1/2] board: tbs2910: Set all board dts files as maintained

2022-09-20 Thread Soeren Moch
This also includes the imx6q-tbs2910-u-boot.dtsi file now. Signed-off-by: Soeren Moch --- Cc: Stefano Babic Cc: Fabio Estevam Cc: "NXP i.MX U-Boot Team" Cc: u-boot@lists.denx.de --- board/tbs/tbs2910/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/tbs/tbs

[PATCH 2/2] board: tbs2910: Add serial rx buffer in defconfig

2022-09-20 Thread Soeren Moch
... to avoid loosing characters when pasting text into the serial console. This allows to remove the workaround to disable the vidconsole output when no HDMI device is detected. This workaround only was there to speed-up serial console processing. Signed-off-by: Soeren Moch --- Cc: Stefano Babic

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

2022-09-20 Thread Tim Harvey
On Mon, Sep 19, 2022 at 5:35 AM Stefano Babic wrote: > > Hi Tom, > > please pull from u-boot-imx, thanks! > > The following changes since commit 1977d72a69f3c8d97bd25a86a6be4da27cde3724: > >Merge https://source.denx.de/u-boot/custodians/u-boot-marvell > (2022-09-18 08:27:23 -0400) > > are avai

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

2022-09-20 Thread Tom Rini
On Mon, Sep 19, 2022 at 08:29:58AM +, eugen.hris...@microchip.com wrote: > 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

Re: Please pull u-boot-marvell/next

2022-09-20 Thread Tom Rini
On Tue, Sep 20, 2022 at 08:59:43AM +0200, Stefan Roese wrote: > Hi Tom, > > please pull these Marvell patches into next: > Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] dma: ti: k3-udma: Fix 'SZ_64K’ undeclared error

2022-09-20 Thread Tom Rini
On Tue, Sep 20, 2022 at 10:56:02AM +0530, Dhruva Gole wrote: > Include linux/sizes.h because it defines SZ_64K which is used in many > places inside k3-udma.c > This fixes the error: ‘SZ_64K’ undeclared which appears during build > time > > Signed-off-by: Dhruva Gole Reviewed-by: Tom Rini --

Re: [PATCH 1/2] board: tbs2910: Set all board dts files as maintained

2022-09-20 Thread Fabio Estevam
On Tue, Sep 20, 2022 at 1:05 PM Soeren Moch wrote: > > This also includes the imx6q-tbs2910-u-boot.dtsi file now. > > Signed-off-by: Soeren Moch Reviewed-by: Fabio Estevam

Re: [PATCH 2/2] board: tbs2910: Add serial rx buffer in defconfig

2022-09-20 Thread Fabio Estevam
On Tue, Sep 20, 2022 at 1:05 PM Soeren Moch wrote: > > ... to avoid loosing characters when pasting text into the serial console. > This allows to remove the workaround to disable the vidconsole output > when no HDMI device is detected. This workaround only was there to speed-up > serial console p

Re: [PATCH] mx8m: csf.sh: Fix the calculation of fit_block_size

2022-09-20 Thread Fabio Estevam
Hi Stefano and Tom, On Sun, Aug 14, 2022 at 2:25 PM Marek Vasut wrote: > > On 8/13/22 14:03, Fabio Estevam wrote: > > From: Fabio Estevam > > > > When running the script to sign SPL/U-Boot on a kontron-sl-mx8mm board, > > the fit_block_size was calculated as 0x1000 instead of 0x1020. > > > > Add

Re: [PATCH] kontron-sl-mx8mm: Let CONFIG_SPL_FIT_IMAGE_TINY be selected

2022-09-20 Thread Fabio Estevam
Hi Stefano and Tom, On Wed, Aug 24, 2022 at 7:09 AM Frieder Schrempf wrote: > > Hi Fabio, > > Am 24.08.22 um 03:09 schrieb Fabio Estevam: > > When CONFIG_IMX_HAB is selected the 'hab_status' command reports several > > error events, indicating that the BootROM failed to authenticate the SPL. > >

Re: [PATCH 2/2] board: tbs2910: Add serial rx buffer in defconfig

2022-09-20 Thread Soeren Moch
On 20.09.22 20:44, Fabio Estevam wrote: On Tue, Sep 20, 2022 at 1:05 PM Soeren Moch wrote: ... to avoid loosing characters when pasting text into the serial console. This allows to remove the workaround to disable the vidconsole output when no HDMI device is detected. This workaround only wa

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

2022-09-20 Thread Tom Rini
On Tue, Sep 20, 2022 at 05:56:50PM +0200, Marek Vasut wrote: > On 9/20/22 17:43, Simon Glass wrote: > > On Mon, 19 Sept 2022 at 21:52, Marek Vasut wrote: > > > > > > Make spl_board_init() a weak symbol and get rid of Kconfig symbols > > > and ifdeffery guarding this function. Since the spl_board_

Re: [PATCH v2 0/7] SPL fixes for STM32F7 MCUs

2022-09-20 Thread Waldemar Brodkorb
Hi Patrice, Patrice Chotard wrote, > > 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-DIS

Re: [PATCH v3 4/6] serial: Implement serial_flush() function for console flush() fallback

2022-09-20 Thread Tom Rini
On Mon, Sep 05, 2022 at 11:31:19AM +0200, Pali Rohár wrote: > Like in all other console functions, implement also serial_flush() function > as a fallback int console flush() function. > > Flush support is available only when config option CONSOLE_FLUSH_SUPPORT is > enabled. So when it is disabled

Re: [PATCH v3 4/6] serial: Implement serial_flush() function for console flush() fallback

2022-09-20 Thread Pali Rohár
On Tuesday 20 September 2022 17:40:39 Tom Rini wrote: > On Mon, Sep 05, 2022 at 11:31:19AM +0200, Pali Rohár wrote: > > > Like in all other console functions, implement also serial_flush() function > > as a fallback int console flush() function. > > > > Flush support is available only when config

Re: [PATCH v3 4/6] serial: Implement serial_flush() function for console flush() fallback

2022-09-20 Thread Tom Rini
On Wed, Sep 21, 2022 at 12:18:57AM +0200, Pali Rohár wrote: > On Tuesday 20 September 2022 17:40:39 Tom Rini wrote: > > On Mon, Sep 05, 2022 at 11:31:19AM +0200, Pali Rohár wrote: > > > > > Like in all other console functions, implement also serial_flush() > > > function > > > as a fallback int c

Re: [PATCH v3 4/6] serial: Implement serial_flush() function for console flush() fallback

2022-09-20 Thread Pali Rohár
On Tuesday 20 September 2022 18:29:02 Tom Rini wrote: > On Wed, Sep 21, 2022 at 12:18:57AM +0200, Pali Rohár wrote: > > On Tuesday 20 September 2022 17:40:39 Tom Rini wrote: > > > On Mon, Sep 05, 2022 at 11:31:19AM +0200, Pali Rohár wrote: > > > > > > > Like in all other console functions, impleme

Re: [PATCH v3 4/6] serial: Implement serial_flush() function for console flush() fallback

2022-09-20 Thread Tom Rini
On Wed, Sep 21, 2022 at 12:32:33AM +0200, Pali Rohár wrote: > On Tuesday 20 September 2022 18:29:02 Tom Rini wrote: > > On Wed, Sep 21, 2022 at 12:18:57AM +0200, Pali Rohár wrote: > > > On Tuesday 20 September 2022 17:40:39 Tom Rini wrote: > > > > On Mon, Sep 05, 2022 at 11:31:19AM +0200, Pali Rohá

Re: [PATCH] configs: imx8mm*: Enable CONFIG_ARMV8_CRYPTO support

2022-09-20 Thread Peng Fan
Hi Loic, On 9/20/2022 11:32 PM, Loic Poulain wrote: Which speed up sha1/sha256 operations, about 10x faster with a imx8mm evk for a 20MiB kernel hash verification (12ms vs 165ms). wow! this looks great. Signed-off-by: Loic Poulain --- configs/imx8mm-cl-iot-gate-optee_defconfig| 1 +

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-20 Thread Marek Vasut
On 9/20/22 14:26, Quentin Schulz wrote: Hi all, Hi, Just so there's a written summary on the ML rather than only on IRC. Thanks [...] Something like: diff --git a/drivers/core/device.c b/drivers/core/device.c index d9ce546c0c..103ec47b88 100644 --- a/drivers/core/device.c +++ b/drivers/

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

2022-09-20 Thread Marek Vasut
On 9/20/22 21:04, Tom Rini wrote: On Tue, Sep 20, 2022 at 05:56:50PM +0200, Marek Vasut wrote: On 9/20/22 17:43, Simon Glass wrote: On Mon, 19 Sept 2022 at 21:52, Marek Vasut wrote: Make spl_board_init() a weak symbol and get rid of Kconfig symbols and ifdeffery guarding this function. Since

Re: [PATCH v2 1/6] net: mvneta: Add support for AlleyCat5

2022-09-20 Thread Chris Packham
On Tue, Sep 20, 2022 at 9:17 PM Stefan Roese wrote: > > On 20.09.22 10:31, Chris Packham wrote: > > Add support for the AlleyCat5 SoC. This lacks the mbus from the other > > users of the mvneta.c driver so a new compatible string is needed to > > allow for a different window configuration. > > > >

Re: [PATCH v2 1/6] net: mvneta: Add support for AlleyCat5

2022-09-20 Thread Chris Packham
On Tue, Sep 20, 2022 at 10:48 PM Pali Rohár wrote: > > On Tuesday 20 September 2022 20:31:48 Chris Packham wrote: > > diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c > > index d2c42c4396..07919d6d35 100644 > > --- a/drivers/net/mvneta.c > > +++ b/drivers/net/mvneta.c > > @@ -91,6 +91,8 @@

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

2022-09-20 Thread Art Nikpal
On Tue, Sep 20, 2022 at 7:30 PM Edoardo Tomelleri wrote: > > Hello Neil, > > > Concerning the alias name, can you specify in the patch the link to the > > Boot Loader Specification ? And probably update the PXE doc but reusing > > the same wording. > I'm not sure I understand what you mean about t

Re: [PATCH v2 5/6] arm: mvebu: Support for 98DX25xx/98DX35xx SoC

2022-09-20 Thread Chris Packham
On Tue, Sep 20, 2022 at 9:22 PM Pali Rohár wrote: > > On Tuesday 20 September 2022 20:31:52 Chris Packham wrote: > > Add support for the Allecat5/Alleycat5X SoC. These are L3 switches with > > an integrated CPU (referred to as the CnM block in Marvell's > > documentation). These have dual ARMv8.2

[PATCH v3 0/6] arm: mvebu: Support for 98DX25xx/98DX35xx (AlleyCat5)

2022-09-20 Thread Chris Packham
These patches are based on Marvell's bootloader for the AlleyCat5/5X which was based on u-boot 2018.03. I've split that code into consumable chunks and dropped as much unnecessary stuff as I can. I've also tried to sync the device trees as much as possible with the support that will land in Linux

[PATCH v3 1/6] net: mvneta: Add support for AlleyCat5

2022-09-20 Thread Chris Packham
Add support for the AlleyCat5 SoC. This lacks the mbus from the other users of the mvneta.c driver so a new compatible string is needed to allow for a different window configuration. Signed-off-by: Chris Packham Reviewed-by: Stefan Roese --- Changes in v3: - Remove unnecessary changes to RX des

[PATCH v3 2/6] usb: ehci: ehci-marvell: Support for marvell,ac5-ehci

2022-09-20 Thread Chris Packham
Unlike the other 64-bit mvebu SoCs the AlleyCat5 uses the older ehci block from the 32-bit SoCs. Adapt the ehci-marvell.c driver to cope with the fact that the ac5 does not have the mbus infrastructure the 32-bit SoCs have and ensure USB_EHCI_IS_TDI is selected. Signed-off-by: Chris Packham ---

[PATCH v3 3/6] pinctrl: mvebu: Add AlleyCat5 support

2022-09-20 Thread Chris Packham
This uses the same IP block as the Armada-8K SoCs. Signed-off-by: Chris Packham --- (no changes since v1) drivers/pinctrl/mvebu/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/mvebu/Kconfig b/drivers/pinctrl/mvebu/Kconfig index 574fb4dfb0..7c51d138c8

[PATCH v3 4/6] misc: mvebu: Add sample at reset driver

2022-09-20 Thread Chris Packham
Add a new UCLASS_SAR, the generic SAR code and an Alleycat5 driver. This has been adapted from the Marvell SDK but only the AC5 driver has been brought through (other drivers exist for the ap806, ap807 and cp110 IP blocks). Signed-off-by: Chris Packham --- Changes in v3: - None. Note some change

[PATCH v3 5/6] arm: mvebu: Support for 98DX25xx/98DX35xx SoC

2022-09-20 Thread Chris Packham
Add support for the Allecat5/Alleycat5X SoC. These are L3 switches with an integrated CPU (referred to as the CnM block in Marvell's documentation). These have dual ARMv8.2 CPUs (Cortex-A55). This support has been ported from Marvell's SDK which is based on a much older version of U-Boot. Signed-o

[PATCH v3 6/6] arm: mvebu: Add RD-AC5X board

2022-09-20 Thread Chris Packham
The RD-AC5X-32G16HVG6HLG-A0 development board main components and features include: * Main 12V/54V power supply * 270 Gbps throughput packet processor on the main board * DDR4: * SR1: 2GB DDR4 2400MT/S(1GB x 2 pcs ) with ECC(1GB x 1 pcs) * SR2: 4GB DDR4 2400MT/S(2GB x 2 pcs ) with ECC(2GB x 1

Re: [PATCH 2/2] imx8mm_evk: Add Serial Download Protocol support

2022-09-20 Thread Peng Fan
On 9/20/2022 7:13 PM, Fabio Estevam wrote: Hi Peng, On Tue, Sep 20, 2022 at 3:56 AM Peng Fan wrote: Hi Fabio, Just have a question, the tcpci driver is not supported, so how do you manage to make SDP work? I understand that the tcpci driver is required when a USB role switch is needed.

Re: [PATCH 1/2] imx8mm_evk: Add an entry for USB boot

2022-09-20 Thread Peng Fan
On 9/20/2022 8:20 AM, Fabio Estevam wrote: Add an entry for USB boot so that U-Boot could be loaded via the Serial Download Protocol. Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan --- board/freescale/imx8mm_evk/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/fr

Re: [PATCH 2/2] imx8mm_evk: Add Serial Download Protocol support

2022-09-20 Thread Peng Fan
On 9/20/2022 8:20 AM, Fabio Estevam wrote: Add Serial Download Protocol support as it is a useful method to load flash.bin to RAM and run it via 'uuu'. With this patch, it is possible to start both U-Boot SPL and U-Boot proper using the following 'uuu'command: $ uuu -brun spl flash.bin Base

Re: [PATCH v10 10/15] FWU: Add support for the FWU Multi Bank Update feature

2022-09-20 Thread Takahiro Akashi
Sughosh, On Tue, Sep 20, 2022 at 06:34:12PM +0530, Sughosh Ganu wrote: > On Tue, 20 Sept 2022 at 13:46, Takahiro Akashi > wrote: > > > > On Fri, Sep 16, 2022 at 04:24:35PM +0530, Sughosh Ganu wrote: > > > hi Takahiro, > > > > > > On Fri, 16 Sept 2022 at 12:20, Takahiro Akashi > > > wrote: > > >

Re: [PATCH v3 6/6] arm: mvebu: Add RD-AC5X board

2022-09-20 Thread Stefan Roese
On 21.09.22 06:59, Chris Packham wrote: The RD-AC5X-32G16HVG6HLG-A0 development board main components and features include: * Main 12V/54V power supply * 270 Gbps throughput packet processor on the main board * DDR4: * SR1: 2GB DDR4 2400MT/S(1GB x 2 pcs ) with ECC(1GB x 1 pcs) * SR2: 4GB D

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

2022-09-20 Thread Peng Fan
On 9/20/2022 3:41 AM, Marek Vasut wrote: 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

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

2022-09-20 Thread Peng Fan
On 9/20/2022 3:41 AM, Marek Vasut wrote: 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

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

2022-09-20 Thread Peng Fan
On 9/20/2022 3:41 AM, Marek Vasut wrote: 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 imp

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

2022-09-20 Thread Peng Fan
On 9/20/2022 3:41 AM, Marek Vasut wrote: 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 an

  1   2   >