Re: [PATCH] Fix fastboot handling of partitions when no slots are supported

2025-01-30 Thread Mattijs Korpershoek
Hi Federico, On jeu., janv. 30, 2025 at 16:03, Federico Fuga wrote: > Hi Mattijs, > > thanks for your kind response and suggestions. Happy to help! > > We are actually suspending the development on this board, because it > seems the support for our hardware (sunxi A33) requires too much work

Re: [PATCH 4/8] pinctrl: mediatek: mt7988: rename reg-names to upstream linux format

2025-01-30 Thread Weijie Gao
On Mon, 2025-01-27 at 14:40 +0100, Christian Marangi wrote: > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > > Rename reg-names to upstream linux format. Upstream linux drop the > "_base". To make use of upstream DTSI, align

Re: [PATCH 3/8] mediatek: mt7986: move gpio-controller up and rename pinctrl to pio

2025-01-30 Thread Weijie Gao
On Mon, 2025-01-27 at 14:40 +0100, Christian Marangi wrote: > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > > Move gpio-controller up to pinctrl node and rename label to "pio" to > match the label used in upstream kernel li

Re: [PATCH 1/8] pinctrl: mediatek: mt7981: rename reg-names to upstream linux format

2025-01-30 Thread Weijie Gao
On Mon, 2025-01-27 at 14:40 +0100, Christian Marangi wrote: > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > > Rename reg-names to upstream linux format. Upstream linux drop the > "_base". To make use of upstream DTSI, align

Re: [PATCH 2/8] pinctrl: mediatek: mt7986: rename reg-names to upstream linux format

2025-01-30 Thread Weijie Gao
On Mon, 2025-01-27 at 14:40 +0100, Christian Marangi wrote: > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > > Rename reg-names to upstream linux format. Upstream linux drop the > "_base". To make use of upstream DTSI, align

Re: [PATCH v5 5/9] usb: dwc3-generic: Add STih407 support

2025-01-30 Thread Mattijs Korpershoek
Hi Patrice, Thank you for the patch. On jeu., janv. 30, 2025 at 17:35, Patrice Chotard wrote: > Add STi glue logic to manage the DWC3 HC on STiH407 > SoC family. It configures the internal glue logic and > syscfg registers. > > Signed-off-by: Patrice Chotard > Cc: Marek Vasut Reviewed-by: M

Re: [PATCH 7/8] arm: dts: mediatek: add USB nodes for MT7981

2025-01-30 Thread Weijie Gao
On Mon, 2025-01-27 at 14:40 +0100, Christian Marangi wrote: > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > > From: John Crispin > > Add USB PHY nodes for MT7981. These are needed for USB support and > also > for PCIe sup

Re: [PATCH 6/8] mediatek: mt7981: move gpio-controller up and rename pinctrl to pio

2025-01-30 Thread 高惟杰
On Mon, 2025-01-27 at 14:40 +0100, Christian Marangi wrote: > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > > Move gpio-controller up to pinctrl node and rename label to "pio" to > match the label used in upstream kernel li

Re: [PATCH 5/8] mediatek: mt7988: move gpio-controller up and rename pinctrl to pio

2025-01-30 Thread 高惟杰
On Mon, 2025-01-27 at 14:40 +0100, Christian Marangi wrote: > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > > Move gpio-controller up to pinctrl node and rename label to "pio" to > match the label used in upstream kernel li

Re: [PATCH 8/8] arm: dts: mediatek: add PCIe node for MT7981

2025-01-30 Thread Weijie Gao
On Mon, 2025-01-27 at 14:40 +0100, Christian Marangi wrote: > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > > Add PCIe node for MT7981 with all the required properties to make > PCIe > work. > > Signed-off-by: Christian Ma

Re: [Uboot-stm32] [PATCH] stm32: remove dt-binding headers that are available upstream

2025-01-30 Thread Patrice CHOTARD
On 12/16/24 11:08, Patrice CHOTARD wrote: > > > On 11/27/24 17:23, Patrick Delaunay wrote: >> Some dt-binding headers mask the upstream ones which can lead to build >> failures, or worse: super weird bugs, if they get out of sync. >> >> Remove these headers so our devicetree and binding header

Re: make tests skips the DM tests

2025-01-30 Thread Simon Glass
Hi Heinrich, On Thu, 30 Jan 2025 at 01:32, Heinrich Schuchardt wrote: > > On 1/30/25 08:08, Heinrich Schuchardt wrote: > > Hello Simon, > > > > when running 'make tests' locally I get: > > > > test/py/tests/test_dm.py . > > > > =

Re: [PATCH v4 0/5] rpi: Tidy up booting

2025-01-30 Thread Simon Glass
Hi, On Thu, 19 Dec 2024 at 17:34, Simon Glass wrote: > > This series allows rpi to boot a compressed Ubuntu kernel with ~100MB > ramdisk, by expanding the available space. > > It also tidies up some strange behaviour with the provided FDT, where a > separate pointer is maintained to it, even thou

Re: [PATCH 01/19] mbedtls: Add SHA symbols for VPL

2025-01-30 Thread Tom Rini
On Mon, Jan 27, 2025 at 10:23:12AM -0500, Raymond Mao wrote: > Hi Simon, > > > On Sun, 26 Jan 2025 at 13:43, Simon Glass wrote: > > > > Add some symbols for supporting SHA1 etc. for VPL. > > > > Signed-off-by: Simon Glass > > --- > > > > lib/mbedtls/Kconfig | 40 +++

Re: [PATCH 01/19] mbedtls: Add SHA symbols for VPL

2025-01-30 Thread Simon Glass
Hi Tom, On Thu, 30 Jan 2025 at 12:55, Tom Rini wrote: > > On Mon, Jan 27, 2025 at 10:23:12AM -0500, Raymond Mao wrote: > > Hi Simon, > > > > > > On Sun, 26 Jan 2025 at 13:43, Simon Glass wrote: > > > > > > Add some symbols for supporting SHA1 etc. for VPL. > > > > > > Signed-off-by: Simon Glass

Re: [PATCH 0/5] Add support for MediaTek MT7987 SoC

2025-01-30 Thread Tom Rini
On Thu, 23 Jan 2025 16:54:42 +0800, Weijie Gao wrote: > This patch series add support for MediaTek MT7987 SoC with its reference > boards and related drivers. > > This patch series add basic boot support on eMMC/SD/SPI-NOR/SPI-NAND for these > boards. The clock, pinctrl drivers and the SoC initia

Re: [PATCH v3] test/py: Add a report show test durations

2025-01-30 Thread Tom Rini
On Mon, 27 Jan 2025 07:52:54 -0700, Simon Glass wrote: > Execution time varies widely with the existing tests. Provides a way to > produce a summary of the time taken for each test, along with a > histogram. > > This is enabled with the --timing flag. > > Enable it for sandbox in CI. > > [...]

Re: [PATCH 11/20] arm: rockchip: Add RK3576 arch core support

2025-01-30 Thread Jonas Karlman
Hi Heiko, On 2024-11-21 15:27, Heiko Stuebner wrote: > From: Xuhui Lin > > The Rockchip RK3588 is a ARM-based SoC with quad-core Cortex-A72 > and quad-core Cortex-A53 including 6TOPS NPU, Mali-G52 MC3, HDMI Out, > DP, eDP, MIPI DSI, MIPI CSI2, LPDDR4/4X/5, eMMC5.1, SD3.0/MMC4.5, UFS, > USB OTG 3

Re: [PATCH 15/20] ram: rockchip: Add rk3576 ddr driver support

2025-01-30 Thread Jonas Karlman
Hi Heiko, On 2024-11-21 15:27, Heiko Stuebner wrote: > Add ddr driver for rk3576 to get the ram capacity. > > Signed-off-by: Heiko Stuebner > --- > drivers/ram/rockchip/Makefile | 1 + > drivers/ram/rockchip/sdram_rk3576.c | 65 + > 2 files changed, 66 inserti

Re: [PATCH 20/20] rockchip: rk3576: Add support for ROC-RK3576-PC board

2025-01-30 Thread Jonas Karlman
Hi Heiko, On 2024-11-21 15:27, Heiko Stuebner wrote: > The ROC-RK3576-PC is a SBC made by Firefly, designed around the RK3576 > SoC. This adds the needed board infrastructure and config for it. > > Signed-off-by: Heiko Stuebner > --- > arch/arm/dts/rk3576-roc-pc-u-boot.dtsi | 12 > arch/a

[PATCH v2 0/1] spi: soft_spi: Add support for SPI_3WIRE

2025-01-30 Thread Hironori KIKUCHI
Add support for SPI_3WIRE on soft_spi driver. v2: - Remove the wrong patch - Add `GPIOD_PULL_UP` to prevent the bus from floating Hironori KIKUCHI (1): spi: soft_spi: Add support for SPI_3WIRE drivers/spi/soft_spi.c | 19 --- 1 file changed, 16 insertions(+), 3

[PATCH v2 1/1] spi: soft_spi: Add support for SPI_3WIRE

2025-01-30 Thread Hironori KIKUCHI
When 3-wire mode is claimed on the bus, use the MOSI (output) pin to receive data. In this mode, since the transfer can only be either TX or RX, return -EINVAL if both are required at the same time. Signed-off-by: Hironori KIKUCHI --- drivers/spi/soft_spi.c | 19 --- 1 file chang

Re: [PATCH 2/5] rockchip: Improve ARMv7 support for ROCKCHIP_COMMON_STACK_ADDR

2025-01-30 Thread Jonas Karlman
Hi Alex, On 2025-01-27 19:59, Alex Bee wrote: > Hi Jonas, > > thanks for working on this.  Please see one comment below. > > Am 27.01.25 um 00:48 schrieb Jonas Karlman: >> A few Rockchip ARMv7 SoCs use 0x6000 as DRAM base address instead of >> the more common 0x0 DRAM base address used on AA

Re: [PATCH 12/20] pinctrl: rockchip: support rk3576 pinctrl

2025-01-30 Thread Jonas Karlman
Hi Heiko, On 2024-11-21 15:27, Heiko Stuebner wrote: > From: Steven Liu > > Add support for the rk3576 variant of pinctrl. > > Signed-off-by: Steven Liu > [adapted to mainline u-boot] > Signed-off-by: Heiko Stuebner > --- > drivers/pinctrl/rockchip/Makefile | 1 + > drivers/pinct

Re: [PATCH 17/20] mmc: rockchip_sdhci: Add support for RK3576

2025-01-30 Thread Jonas Karlman
Hi Heiko, On 2024-11-21 15:27, Heiko Stuebner wrote: > Add support for RK3576 to the rockchip sdhci driver. > > It's pretty similar to its cousins found in the RK3568 and RK3588 and the > specific hs400-tx-tap number was taken from the vendor-u-boot. > > Signed-off-by: Heiko Stuebner > --- > d

Re: [PATCH 13/20] clk: rockchip: Add rk3576 clk support

2025-01-30 Thread Jonas Karlman
Hi Heiko, On 2024-11-21 15:27, Heiko Stuebner wrote: > From: Elaine Zhang > > Add clock driver support for Rockchip RK3576 SoC. > > Signed-off-by: Elaine Zhang > [adapted to mainline u-boot] > Signed-off-by: Heiko Stuebner > --- > .../include/asm/arch-rockchip/cru_rk3576.h| 486 >

Re: [PATCH 19/20] net: dwc_eth_qos_rockchip: Add support for RK3576

2025-01-30 Thread Jonas Karlman
Hi Heiko, On 2024-11-21 15:27, Heiko Stuebner wrote: > Add rk_gmac_ops and other special handling that is needed for GMAC to > work on RK3576. > > Signed-off-by: Heiko Stuebner > --- > drivers/net/dwc_eth_qos.c | 4 + > drivers/net/dwc_eth_qos_rockchip.c | 141 +++

Re: [PATCH v2] siemens: common: Make DDR_SI_TEST depend on TARGET_CAPRICORN

2025-01-30 Thread Heiko Schocher
Hello Liya, On 31.01.25 01:52, 1425075...@qq.com wrote: From: Liya Huang <1425075...@qq.com> The DDR_SI_TEST config option is only relevant to the i.MX8 Capricorn board. Make DDR_SI_TEST depend on DDR_SI_TEST so that it does not show up on other targets. Signed-off-by: Liya Huang <1425075...@q

[PATCH] zynqmp: Dynamic setting mmcdev and mmcroot

2025-01-30 Thread egyszeregy
From: Benjamin Szőke Dynamic setting mmcdev and mmcroot. Then when boot linux, we can have correct "root=/dev/mmcblk[x]p2" ref: board/freescale/common/mmc.c https://github.com/u-boot/u-boot/blob/master/board/freescale/common/mmc.c Signed-off-by: Benjamin Szőke --- board/xilinx/zynqmp/zynqmp.c

Re: [PATCH 0/2] spi: soft_spi: Add support for SPI_3WIRE

2025-01-30 Thread Hironori KIKUCHI
Hello Tom, Thank you for the feedback! I don't know why but the issue I had has been gone now... Maybe it was some mistake, I'm so sorry. I'll post v2 patch, without touching `dm_spi_claim_bus`. Regards, kikuchan. On Thu, Jan 30, 2025 at 5:01 AM Tom Rini wrote: > > On Tue, Jan 07, 2025 at 06

[PATCH v3 1/3] rockchip: sdram: Allow the first bank to extend beyond 4 GiB

2025-01-30 Thread Jonas Karlman
Allow the first bank to extend beyond 4 GiB when the blob of space for peripheral is located before start of DRAM, e.g. when start of DRAM is 0x4000 and continue beyond the 4 GiB mark. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v3: No change v2: Collect r-b tag --- arch/arm/ma

[PATCH v3 0/3] rockchip: sdram: Fix issues observed on RK3576

2025-01-30 Thread Jonas Karlman
Most Rockchip AArch64 SoCs have start of DRAM at 0x0. However, the RK3576 instead has start of DRAM at 0x4000 and can extend continuous beyond the 4 GiB mark. This series fixes issues observed on a Rockchip RK3576 board testing Heiko's RK3576 series [1]. Changes in v3: - Fix 32-bit overflow l

[PATCH v3 3/3] rockchip: sdram: Ensure ram_base is correct in SPL

2025-01-30 Thread Jonas Karlman
Most Rockchip SoCs use 0x0 as DRAM base address, however some SoCs use 0x6000 and RK3576 use 0x4000 as DRAM base address. CFG_SYS_SDRAM_BASE is defined with correct address for each SoC and U-Boot proper use this to set correct gd->ram_base in setup_dest_addr(). SPL never assign any value

[PATCH v3 2/3] rockchip: sdram: Limit usable ram_top to max 4G

2025-01-30 Thread Jonas Karlman
U-Boot only works correctly when it uses RAM below the 4G address boundary on Rockchip SoCs. Limit usable gd->ram_top to max 4G. Signed-off-by: Jonas Karlman --- v3: Use u64 to fix 32-bit overflow v2: New patch --- arch/arm/mach-rockchip/sdram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deleti

[PATCH v3 0/4] Introduce K3 remoteproc driver for M4 subsystem

2025-01-30 Thread Judith Mendez
Some K3 devices like am62x and am64x have a M4 processor in the MCU voltage domain. This patch series introduces remoteproc M4 driver which will be used to load firmware into and start the M4 remote core. This series also adds support for R5F cores on am64x SoCs in patch 2/4, sets up environment t

[PATCH v3 1/4] remoteproc: k3-m4: Introduce K3 remote proc driver for M4 subsystem

2025-01-30 Thread Judith Mendez
From: Hari Nagalla Some K3 devices like AM64, AM62 devices have a M4 processor in MCU voltage domain. Add a remote proc driver to support this subsystem to be able to load and boot the M4 core. Signed-off-by: Hari Nagalla [Judith: Fixed comments, cleanup driver by removing uses_lreset which i

[PATCH v3 4/4] configs: am64x_evm_a53_defconfig: Enable R5F and M4 remote proc support

2025-01-30 Thread Judith Mendez
From: Hari Nagalla Add support for R5F and M4 remoteproc drivers. Signed-off-by: Hari Nagalla --- Changes since v2: - No change --- configs/am64x_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am64x_evm_a53_defconfig b/configs/am64x_evm_a53_defconfig index a501

[PATCH v3 2/4] remoteproc: k3-r5: Add support for R5F cores on AM64x SoCs

2025-01-30 Thread Judith Mendez
From: Hari Nagalla AM64x SoCs have two R5F clusters in the main power domain. Extend support for R5F remote proc driver on AM64x with compatible strings. Signed-off-by: Hari Nagalla Reviewed-by: Daniel Schultz --- Changes since v2: - No change --- drivers/remoteproc/ti_k3_r5f_rproc.c | 2 ++

[PATCH v3 3/4] env: ti: am64x: set rproc_fw_binaries

2025-01-30 Thread Judith Mendez
From: Hari Nagalla Set remote proc FW binaries for u-boot loading of remote cores. Signed-off-by: Hari Nagalla --- Changes since v2: - No change --- board/ti/am64x/am64x.env | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/ti/am64x/am64x.env b/board/ti/am64x/am64x.env index 8ad8

Re: [PATCH v2] siemens: common: Make DDR_SI_TEST depend on TARGET_CAPRICORN

2025-01-30 Thread Fabio Estevam
On Thu, Jan 30, 2025 at 9:53 PM <1425075...@qq.com> wrote: > > From: Liya Huang <1425075...@qq.com> > > The DDR_SI_TEST config option is only relevant to the i.MX8 Capricorn > board. > Make DDR_SI_TEST depend on DDR_SI_TEST so that it does not show up > on other targets. > > Signed-off-by: Liya Hua

Re: [PATCH 01/19] mbedtls: Add SHA symbols for VPL

2025-01-30 Thread Tom Rini
On Thu, Jan 30, 2025 at 04:49:36PM -0500, Raymond Mao wrote: > Hi Tom, > > On Thu, 30 Jan 2025 at 14:55, Tom Rini wrote: > > > > On Mon, Jan 27, 2025 at 10:23:12AM -0500, Raymond Mao wrote: > > > Hi Simon, > > > > > > > > > On Sun, 26 Jan 2025 at 13:43, Simon Glass wrote: > > > > > > > > Add som

[PATCH v2] siemens: common: Make DDR_SI_TEST depend on TARGET_CAPRICORN

2025-01-30 Thread 1425075683
From: Liya Huang <1425075...@qq.com> The DDR_SI_TEST config option is only relevant to the i.MX8 Capricorn board. Make DDR_SI_TEST depend on DDR_SI_TEST so that it does not show up on other targets. Signed-off-by: Liya Huang <1425075...@qq.com> --- Changes in v2: - Replace depends on ARCH_IMX8 w

Re: [PATCH 0/8] efi_loader: Complete the bootflow_efi() test

2025-01-30 Thread Simon Glass
-Ilias On Mon, 6 Jan 2025 at 07:48, Simon Glass wrote: > > This test was hamstrung in code review so this series is an attempt to > complete the intended functionality: > > - Check memory allocations look correct > - Check that exit-boot-services removes active-DMA devices > - Check that the boot

Re: [PATCH v2 3/4] bloblist: add support for CONFIG_BLOBLIST_PASSAGE

2025-01-30 Thread Tom Rini
On Mon, Jan 27, 2025 at 12:42:30PM +, Harrison Mutai wrote: > Hi Tom, > > Thanks for the additional details, that helped! > > On 23/01/2025 17:12, Tom Rini wrote: > > On Thu, Jan 23, 2025 at 05:03:40PM +, Harrison Mutai wrote: > > > On 22/01/2025 17:21, Tom Rini wrote: > > > > On Wed, Jan

[PATCH v1] sunxi: kconfig : Make CHIP_DIP_SCAN depend on ARCH_SUNXI

2025-01-30 Thread 1425075683
From: Liya Huang <1425075...@qq.com> The CHIP_DIP_SCAN configuration option is relevant only to ARCH_SUNXI. Make CHIP_DIP_SCAN dependent on ARCH_SUNXI so that it does not show up on other goals. Signed-off-by: Liya Huang <1425075...@qq.com> --- Changes in v1: - Modify the if ARCH_SUNXI endif ran

[PATCH v3] arm64: renesas: Add R-Car S4 Starter Kit support

2025-01-30 Thread Marek Vasut
Add support for the R-Car S4 Starter Kit with R8A779F4 SoC support. This implementation natively uses OF_UPSTREAM to pull in most recent DT. The defconfig is derived from S4 Spider, with reduced UART baud rate to 921600 Bdps. The DT alias to rswitch is removed as the alias should point to rswitch p

Re: [PATCH v4 4/9] usb: dwc3-generic: Add STih407 support

2025-01-30 Thread Patrice CHOTARD
On 1/30/25 14:18, Patrick DELAUNAY wrote: > Hi, > > few minor remarks > > On 1/23/25 15:47, Patrice Chotard wrote: >> Add STi glue logic to manage the DWC3 HC on STiH407 >> SoC family. It configures the internal glue logic and >> syscfg registers. >> >> Signed-off-by: Patrice Chotard >> Cc: M

Re: [PATCH 0/7] [U-Boot] spi: atmel-quadspi: Refresh and add classic mode support

2025-01-30 Thread Tom Rini
On Thu, Jan 30, 2025 at 04:53:14PM +0200, Eugen Hristev wrote: > > > On 1/30/25 16:49, Tom Rini wrote: > > On Thu, Jan 30, 2025 at 04:07:27PM +0200, Eugen Hristev wrote: > >> > >> > >> On 1/23/25 14:12, Alexander Dahl wrote: > >>> Hello everyone, > >>> > >>> this patch series is for U-Boot, altho

Re: [PATCH v4 5/9] configs: stih410-b2260: Enable USB_DWC3_GENERIC and USB_DWC3_STI flags

2025-01-30 Thread Patrice CHOTARD
On 1/30/25 14:25, Patrick DELAUNAY wrote: > Hi, > > On 1/23/25 15:47, Patrice Chotard wrote: >> Enable USB_DWC3_GENERIC and USB_DWC3_STI flags. >> >> Signed-off-by: Patrice Chotard >> Cc: Marek Vasut >> --- >> >> (no changes since v1) >> >>   configs/stih410-b2260_defconfig | 2 ++ >>   1 file

Re: [RFC PATCH 1/4] meminfo: add memory details for armv8

2025-01-30 Thread Tom Rini
On Thu, Jan 30, 2025 at 02:36:40PM +0100, Heinrich Schuchardt wrote: > On 1/30/25 10:35, Ilias Apalodimas wrote: > > HI Heinrich > > > > On Thu, 30 Jan 2025 at 12:01, Heinrich Schuchardt > > wrote: > > > > > > On 1/30/25 07:20, Ilias Apalodimas wrote: > > > > Upcoming patches are mapping memory

u-boot in restricted environment: networking over serial

2025-01-30 Thread Ferenc Fejes
Hi, Is it possible to use the serial port for u-boot networking? For example, given a restricted environment where the FIT image is available with ethernet firmware and drivers, so it is not possible to boot it with DHCP boot since there is no networking. Or simply the ethernet NIC has no u-boot d

[PATCH] tools: fix NULL_AFTER_DEREF in image-host.c

2025-01-30 Thread Anton Moryakov
Report of the static analyzer: 1. NULL_AFTER_DEREF Pointer 'str', which is dereferenced at image-host.c:688 by calling function 'strdup', is compared to a NULL value at image-host.c:691. 2. NULL_AFTER_DEREF Pointer 'list', which is dereferenced at image-host.c:689, is compared to a NULL value at

Re: [PATCH] Fix fastboot handling of partitions when no slots are supported

2025-01-30 Thread Federico Fuga
Hi Mattijs, thanks for your kind response and suggestions. We are actually suspending the development on this board, because it seems the support for our hardware (sunxi A33) requires too much work than expected. We were trying to update our 2018-flavoured bootloader but it seems we did a lot

[PATCH] Add Kconfig option for altbootcmd when using CONFIG_BOOTCOUNT_LIMIT

2025-01-30 Thread Tomáš Peterka
Hello u-boot maintainers, I would like to merge a simple patch for user-friendliness when configuring u-boot with Yocto. The problem is missing option for altbootcmd when using the feature CONFIG_BOOTCOUNT_LIMIT. Simply adding the option CONFIG_BOOTCOUNT_ALTBOOTCMD into Kconfig shouldn't be a

[PATCH v5 6/9] configs: stih410-b2260: Enable USB_DWC3_GENERIC and USB_DWC3_STI flags

2025-01-30 Thread Patrice Chotard
Enable USB_DWC3_GENERIC and USB_DWC3_STI flags. Signed-off-by: Patrice Chotard Cc: Marek Vasut --- (no changes since v1) configs/stih410-b2260_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/stih410-b2260_defconfig b/configs/stih410-b2260_defconfig index e312ca492d2..4

[PATCH v5 7/9] configs: stih410-b2260: Enable DM_USB_GADGET flag

2025-01-30 Thread Patrice Chotard
Enable DM_USB_GADGET flag. Signed-off-by: Patrice Chotard Cc: Marek Vasut Reviewed-by: Patrick Delaunay --- (no changes since v1) configs/stih410-b2260_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stih410-b2260_defconfig b/configs/stih410-b2260_defconfig index 4fcbf7

[PATCH v5 9/9] configs: stih410-b2260: Enable CMD_USB_MASS_STORAGE flag

2025-01-30 Thread Patrice Chotard
Enable CMD_USB_MASS_STORAGE flag. Signed-off-by: Patrice Chotard Cc: Marek Vasut Reviewed-by: Patrick Delaunay --- (no changes since v1) configs/stih410-b2260_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stih410-b2260_defconfig b/configs/stih410-b2260_defconfig ind

[PATCH v5 4/9] usb: dwc3-generic: Reorder include

2025-01-30 Thread Patrice Chotard
Reorder include following rules available here : https://docs.u-boot.org/en/latest/develop/codingstyle.html#include-files Remove useless include files. Signed-off-by: Patrice Chotard Cc: Marek Vasut Reviewed-by: Mattijs Korpershoek Reviewed-by: Patrick Delaunay --- (no changes since v3) Ch

[PATCH v5 8/9] board: stih410-b2260: Remove board_usb_init/cleanup()

2025-01-30 Thread Patrice Chotard
Since DM_USB_GADGET is enable for this board, board_usb_init() and board_usb_cleanup() can be removed. Signed-off-by: Patrice Chotard Reviewed-by: Mattijs Korpershoek Reviewed-by: Patrick Delaunay --- (no changes since v3) Changes in v3: - add RB Mattijs Korpershoek board/st/stih410-b226

[PATCH v5 2/9] configs: stih410-b2260: Enable DM_REGULATOR flag

2025-01-30 Thread Patrice Chotard
Since commit 6aa8bde8786d ("usb: host: ehci-generic: Remove DM_REGULATOR flag") device_get_supply_regulator() returns -ENOSYS which is not handle by ehci_enable_vbus_supply() and thus, ehci_usb_probe() return an error. By enabling DM_REGULATOR flag, device_get_supply_regulator() return -ENOENT whi

[PATCH v5 1/9] ARM: dts: sti: Add fixed clock for ehci and ohci nodes in stih410-b2260.dtsi

2025-01-30 Thread Patrice Chotard
On STi platforms, all clocks are enabled by BOOTROM, so CONFIG_CLK is not set as no clock driver for STI exists. As ehci-generic and ohci-generic drivers are used on platforms where CONFIG_CLK is set, clk_get_bulk() returns-ENOSYS in case of stih410-b2260. To avoid this error, add fixed clocks for

[PATCH v5 3/9] usb: dwc3: Remove dwc3 glue driver support for STi

2025-01-30 Thread Patrice Chotard
STi will migrate to dwc3-generic driver, dwc3-sti-glue driver can be removed. Signed-off-by: Patrice Chotard Cc: Marek Vasut Reviewed-by: Mattijs Korpershoek --- Changes in v5: - move this patch from 6/9 to 3/9 position to avoid to have 2 drivers with identical compatible string simulta

[PATCH v5 5/9] usb: dwc3-generic: Add STih407 support

2025-01-30 Thread Patrice Chotard
Add STi glue logic to manage the DWC3 HC on STiH407 SoC family. It configures the internal glue logic and syscfg registers. Signed-off-by: Patrice Chotard Cc: Marek Vasut --- Changes in v5: - reorder files entry for ARM STI in MAINTAINERS file - add #define LOG_CATEGORY UCLASS_NOP - use

[PATCH v5 0/9] Restore USB and add UMS support for STiH407-B2260

2025-01-30 Thread Patrice Chotard
This series is : _ restoring USB on STiH410-B2260 which hasn't been tested since a while. _ migrating STi DWC3 glue from proprietary driver to dwc3-generic driver. _ adding UMS support for STiH410-B2260. Changes in v5: - move this patch from 6/9 to 3/9 position to avoid to have 2

Re: [PATCH v4 1/9] ARM: dts: sti: Add fixed clock for ehci and ohci nodes in stih410-b2260.dtsi

2025-01-30 Thread Patrick DELAUNAY
Hi, On 1/23/25 15:47, Patrice Chotard wrote: On STi platforms, all clocks are enabled by BOOTROM, so CONFIG_CLK is not set as no clock driver for STI exists. As ehci-generic and ohci-generic drivers are used on platforms where CONFIG_CLK is set, clk_get_bulk() returns-ENOSYS in case of stih410

Re: [PATCH v4 2/9] configs: stih410-b2260: Enable DM_REGULATOR flag

2025-01-30 Thread Patrick DELAUNAY
Hi, On 1/23/25 15:47, Patrice Chotard wrote: Since commit 6aa8bde8786d ("usb: host: ehci-generic: Remove DM_REGULATOR flag") device_get_supply_regulator() returns -ENOSYS which is not handle by ehci_enable_vbus_supply() and thus, ehci_usb_probe() return an error. By enabling DM_REGULATOR flag,

Re: [PATCH v4 3/9] usb: dwc3-generic: Reorder include

2025-01-30 Thread Patrick DELAUNAY
Hi, On 1/23/25 15:47, Patrice Chotard wrote: Reorder include following rules available here : https://docs.u-boot.org/en/latest/develop/codingstyle.html#include-files Remove useless include files. Signed-off-by: Patrice Chotard Cc: Marek Vasut Reviewed-by: Mattijs Korpershoek --- (no chan

Re: [PATCH] Add Kconfig option for altbootcmd when using CONFIG_BOOTCOUNT_LIMIT

2025-01-30 Thread Tom Rini
On Thu, Jan 30, 2025 at 03:44:11PM +, Tomáš Peterka wrote: > Hello u-boot maintainers, > > I would like to merge a simple patch for user-friendliness when configuring > u-boot with Yocto. The problem is missing option for altbootcmd when using > the feature CONFIG_BOOTCOUNT_LIMIT. Simply a

Re: make tests skips the DM tests

2025-01-30 Thread Tom Rini
On Thu, Jan 30, 2025 at 08:32:28AM +, Heinrich Schuchardt wrote: > On 1/30/25 08:08, Heinrich Schuchardt wrote: > > Hello Simon, > > > > when running 'make tests' locally I get: > > > > test/py/tests/test_dm.py . > > > > ===

Re: [EXTERNAL] Re: Proposal for a New Command to U-Boot Fuse Programming

2025-01-30 Thread Tom Rini
On Thu, Jan 30, 2025 at 02:06:07PM +0530, Harsha Vardhan V M wrote: > > > On 29/01/25 03:52, Tom Rini wrote: > > On Mon, Jan 27, 2025 at 04:22:36PM +0530, Harsha Vardhan V M wrote: > > > > > > > > > On 25/01/25 00:59, Tom Rini wrote: > > > > On Fri, Jan 24, 2025 at 02:31:15PM +0530, Harsha Vard

Re: [PATCH 0/7] [U-Boot] spi: atmel-quadspi: Refresh and add classic mode support

2025-01-30 Thread Eugen Hristev
On 1/23/25 14:12, Alexander Dahl wrote: > Hello everyone, > > this patch series is for U-Boot, although Linux might be affected. > > The quadspi controller on microchip (former atmel) sama5d2, sam9x60 and > other soc variants of the at91 family is usually used in hardware > accelerated spi-mem

Re: [PATCH 00/14] pinctrl: rockchip: fix editing const struct + constify rockchip_pin_ctrl

2025-01-30 Thread Quentin Schulz
Hi Jonas, On 1/29/25 3:20 PM, Jonas Karlman wrote: Hi Quentin, On 2025-01-29 13:42, Quentin Schulz wrote: While testing some WIP work done by Ilias Apalodimas on guaranteeing read-only memory areas truly are handled as read-only[1], my RK3588 Tiger couldn't reach U-Boot CLI anymore because of

[PATCH] serial: stm32: restrict _debug_uart_init() usage

2025-01-30 Thread Patrice Chotard
Since commit 948da7773e34 ("arm: Add new config option ARCH_VERY_EARLY_INIT") debug_uart_init() is called respectively in crt0.S and crt0_64.S. That means that _debug_uart_init() is called for all STM32MP platforms even for those which doesn't support SPL_BUILD. So restrict _debug_uart_init() exec

Re: [PATCH] bootcount: zynqmp: Extend ZynqMP specific bootcount support

2025-01-30 Thread Michal Simek
On 1/30/25 11:36, Marek Vasut wrote: On 1/30/25 6:24 AM, Heiko Schocher wrote: Hello Marek, On 30.01.25 02:37, Marek Vasut wrote: The PGGS area contains four registers, each of which can hold up to 32bit of data. Extend the boot counter to support storing boot count in either of the four re

Re: [PATCH] serial: stm32: restrict _debug_uart_init() usage

2025-01-30 Thread Patrick DELAUNAY
Hi, On 1/30/25 12:57, Patrice Chotard wrote: Since commit 948da7773e34 ("arm: Add new config option ARCH_VERY_EARLY_INIT") debug_uart_init() is called respectively in crt0.S and crt0_64.S. That means that _debug_uart_init() is called for all STM32MP platforms even for those which doesn't support

[PATCH] env: fat: Avoid writing to read-only location

2025-01-30 Thread Andre Przywara
The env_fat_get_dev_part() function mostly returns a fixed string, set via some Kconfig variable. However when the first character is a colon, that means that the boot device number is determined at runtime, and patched in. This requires altering the string. So far this was done via some ugly and

Re: [RFC PATCH 1/4] meminfo: add memory details for armv8

2025-01-30 Thread Heinrich Schuchardt
On 1/30/25 10:35, Ilias Apalodimas wrote: HI Heinrich On Thu, 30 Jan 2025 at 12:01, Heinrich Schuchardt wrote: On 1/30/25 07:20, Ilias Apalodimas wrote: Upcoming patches are mapping memory with RO, RW^X etc permsissions. Fix the meminfo command to display them properly Signed-off-by: Ilias

Re: [PATCH] xilinx: Enable MBEDTLS/LWIP/WGET and WGET_HTTPS

2025-01-30 Thread Ilias Apalodimas
On Wed, Jan 29, 2025 at 04:31:25PM +0100, Michal Simek wrote: > Enable lwip and https on our platforms to be able to use it in a boot. > > Signed-off-by: Michal Simek > --- > > configs/amd_versal2_virt_defconfig | 11 --- > configs/microblaze-generic_defconfig | 8 > c

Re: [PATCH] serial: stm32: restrict _debug_uart_init() usage

2025-01-30 Thread Gianluca Renzi
This is awesome! It should be great if the same approach should be done in OPTEE and TF-A too. All that stuff is using the device-tree mechanism, but the LOW LEVEL CONFIGURATION (early_init and other functions) is not linear and all register base and pin configuration must be done at Makefile

Re: [PATCH] Fix fastboot handling of partitions when no slots are supported

2025-01-30 Thread Mattijs Korpershoek
Hi Federico, Thank you for the patch. On mar., janv. 28, 2025 at 12:18, Federico Fuga via B4 Relay wrote: > From: Federico Fuga > > The fastboot module has a bug that prevents some command to work > properly on devices that haven't an Android-like partition scheme, that > is, just one spl and

Re: [PATCH v4 4/9] usb: dwc3-generic: Add STih407 support

2025-01-30 Thread Patrick DELAUNAY
Hi, few minor remarks On 1/23/25 15:47, Patrice Chotard wrote: Add STi glue logic to manage the DWC3 HC on STiH407 SoC family. It configures the internal glue logic and syscfg registers. Signed-off-by: Patrice Chotard Cc: Marek Vasut Reviewed-by: Mattijs Korpershoek --- Changes in v4:

Re: [RFC PATCH 4/4] arm64: Change mapping for data/rodata/text

2025-01-30 Thread Heinrich Schuchardt
On 1/30/25 10:29, Ilias Apalodimas wrote: Hi Heinrich, On Thu, 30 Jan 2025 at 12:24, Heinrich Schuchardt wrote: On 1/30/25 07:20, Ilias Apalodimas wrote: Now that we have everything in place switch the page permissions for .rodata, .text and .data just after we relocate everything in top of

Re: [PATCH v4 7/9] configs: stih410-b2260: Enable DM_USB_GADGET flag

2025-01-30 Thread Patrick DELAUNAY
Hi, On 1/23/25 15:47, Patrice Chotard wrote: Enable DM_USB_GADGET flag. Signed-off-by: Patrice Chotard Cc: Marek Vasut --- (no changes since v1) configs/stih410-b2260_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stih410-b2260_defconfig b/configs/stih410-b2260_def

Re: [PATCH v4 5/9] configs: stih410-b2260: Enable USB_DWC3_GENERIC and USB_DWC3_STI flags

2025-01-30 Thread Patrick DELAUNAY
Hi, On 1/23/25 15:47, Patrice Chotard wrote: Enable USB_DWC3_GENERIC and USB_DWC3_STI flags. Signed-off-by: Patrice Chotard Cc: Marek Vasut --- (no changes since v1) configs/stih410-b2260_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/stih410-b2260_defconfig b/co

Re: [PATCH v4 9/9] configs: stih410-b2260: Enable CMD_USB_MASS_STORAGE flag

2025-01-30 Thread Patrick DELAUNAY
Hi, On 1/23/25 15:47, Patrice Chotard wrote: Enable CMD_USB_MASS_STORAGE flag. Signed-off-by: Patrice Chotard Cc: Marek Vasut --- (no changes since v1) configs/stih410-b2260_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stih410-b2260_defconfig b/configs/stih410-

Re: [PATCH v4 8/9] board: stih410-b2260: Remove board_usb_init/cleanup()

2025-01-30 Thread Patrick DELAUNAY
Hi, On 1/23/25 15:47, Patrice Chotard wrote: Since DM_USB_GADGET is enable for this board, board_usb_init() and board_usb_cleanup() can be removed. Signed-off-by: Patrice Chotard Reviewed-by: Mattijs Korpershoek Changes in v3: - add RB Mattijs Korpershoek --- (no changes since v1) b

Re: [PATCH 1/2] bootstd: Add implementation for bootmeth rauc

2025-01-30 Thread Tom Rini
On Thu, Jan 30, 2025 at 09:48:19AM +, Martin Schwan wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On Wed, 2025-01-29 at 10:03 -0600, Tom Rini wrote: > > On Wed, Jan 29, 2025 at 03:25:25PM +0100, Martin Schwan wrote: > > > Add a bootmeth driver which supports booting A/B system

Re: [PULL] u-boot-sh/master

2025-01-30 Thread Tom Rini
On Thu, 30 Jan 2025 01:18:42 +0100, Marek Vasut wrote: > The following changes since commit 021baf7b08cceb58bb850859dba1614424e16a83: > > Merge tag 'tpm-master-28012025' of > https://source.denx.de/u-boot/custodians/u-boot-tpm (2025-01-29 08:12:21 > -0600) > > are available in the Git reposi

Re: [PATCH 0/7] [U-Boot] spi: atmel-quadspi: Refresh and add classic mode support

2025-01-30 Thread Tom Rini
On Thu, Jan 30, 2025 at 04:07:27PM +0200, Eugen Hristev wrote: > > > On 1/23/25 14:12, Alexander Dahl wrote: > > Hello everyone, > > > > this patch series is for U-Boot, although Linux might be affected. > > > > The quadspi controller on microchip (former atmel) sama5d2, sam9x60 and > > other s

Re: [PATCH] net: lwip: move eth_init() out of new_netif()

2025-01-30 Thread Tom Rini
On Thu, Jan 30, 2025 at 09:22:20AM +0100, Jerome Forissier wrote: > Move the initialization of the ethernet devices out of the new_netif() > function. Indeed, new_netif() accepts a struct device argument, which > is expected to be valid and active. The activation and selection of > this device are

Re: [PATCH 0/7] [U-Boot] spi: atmel-quadspi: Refresh and add classic mode support

2025-01-30 Thread Eugen Hristev
On 1/30/25 16:49, Tom Rini wrote: > On Thu, Jan 30, 2025 at 04:07:27PM +0200, Eugen Hristev wrote: >> >> >> On 1/23/25 14:12, Alexander Dahl wrote: >>> Hello everyone, >>> >>> this patch series is for U-Boot, although Linux might be affected. >>> >>> The quadspi controller on microchip (former a

Re: [PATCH 15/19] vbe: Support providing a linker script

2025-01-30 Thread Tom Rini
On Sun, Jan 26, 2025 at 11:43:25AM -0700, Simon Glass wrote: > Allow a linker script to be provided for VPL as it is for other U-Boot > phases. [snip] > +config VPL_LDSCRIPT > + string "Linker script for the VPL stage" > + default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64 > + defaul

Re: [PATCH 04/19] lib: Allow crc16 code to be dropped

2025-01-30 Thread Tom Rini
On Sun, Jan 26, 2025 at 11:43:14AM -0700, Simon Glass wrote: > This code is not necessarily needed in VPL, even if SPL uses it, so > adjust the rules to allow it to be dropped. > > Do the same for the hash API. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Desc

Re: [PATCH 03/19] mmc: Allow controlling DM_MMC for VPL builds

2025-01-30 Thread Tom Rini
On Sun, Jan 26, 2025 at 11:43:13AM -0700, Simon Glass wrote: > VPL may want to use driver model for MMC even if TPL does not. Update > the rule in this driver to support that. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: u-boot in restricted environment: networking over serial

2025-01-30 Thread Tom Rini
On Thu, Jan 30, 2025 at 02:55:53PM +0100, Ferenc Fejes wrote: > Hi, > > Is it possible to use the serial port for u-boot networking? For example, > given > a restricted environment where the FIT image is available with ethernet > firmware > and drivers, so it is not possible to boot it with DHC

Re: [PATCH 06/19] spl: Avoid including hash algorithms which are not wanted

2025-01-30 Thread Tom Rini
On Sun, Jan 26, 2025 at 11:43:16AM -0700, Simon Glass wrote: > Update the build rule so that hash algorithms are only included in an > SPL build if they are requested. This helps to reduce code size. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP

Re: [PATCH 05/19] spl: Adjust debugging and xPL symbols

2025-01-30 Thread Tom Rini
On Sun, Jan 26, 2025 at 11:43:15AM -0700, Simon Glass wrote: > The size of some malloc() fields has reduced on 64-bit machines, but > the spl_reloc code was not updated. Fix this to avoid a compiler > warning. > > Also update for the new xPL naming. There's no naming change made, otherwise: Rev

Re: [PATCH v2 2/7] ARM: dts: at91: sam9x60: Define pinctrl node with its label

2025-01-30 Thread Eugen Hristev
On 1/30/25 05:51, Manikandan Muralidharan wrote: > From: Balamanikandan Gunasundar > > Define the pinctrl nodes with its label to align with the Linux DT. > Without this change the pinmux nodes are grouped under an additional > 'pinctrl' child node which is not identified by the pinctrl driver

Re: [PATCH 00/14] pinctrl: rockchip: fix editing const struct + constify rockchip_pin_ctrl

2025-01-30 Thread Jonas Karlman
Hi Quentin, On 2025-01-30 15:16, Quentin Schulz wrote: > Hi Jonas, > > On 1/29/25 3:20 PM, Jonas Karlman wrote: >> Hi Quentin, >> >> On 2025-01-29 13:42, Quentin Schulz wrote: >>> While testing some WIP work done by Ilias Apalodimas on guaranteeing >>> read-only memory areas truly are handled as

Re: [PATCH 08/20] rockchip: sdram: honor CFG_SYS_SDRAM_BASE when defining ram regions

2025-01-30 Thread Jonas Karlman
Hi Heiko, On 2024-11-21 15:27, Heiko Stuebner wrote: > Currently the sdram code for arm64 expects CFG_SYS_SDRAM_BASE to be 0. > The ram being in front and the device-area behind it. > > The upcoming RK3576 uses a different layout, with the device area > in front the ram, which then also extends p

  1   2   >