[PATCH v14 5/8] spi: spi-uclass: Read chipselect and restrict capabilities

2024-09-25 Thread Venkatesh Yadav Abbarapu
Read chipselect properties from DT which are populated using 'reg' property and save it in plat->cs[] array for later use. Also read multi chipselect capability which is used for parallel-memories and return errors if they are passed on using DT but driver is not capable of handling it. Signed-of

[PATCH v14 4/8] mtd: spi-nor: Add parallel and stacked memories support in read_bar and write_bar

2024-09-25 Thread Venkatesh Yadav Abbarapu
From: Ashok Reddy Soma Add support for parallel memories and stacked memories configuration in read_bar and write_bar functions. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-core.c | 55 +- 1 file changed,

[PATCH v14 2/8] mtd: spi-nor: Add parallel and stacked memories support

2024-09-25 Thread Venkatesh Yadav Abbarapu
In parallel mode, the current implementation assumes that a maximum of two flashes are connected. The QSPI controller splits the data evenly between both the flashes so, both the flashes that are connected in parallel mode should be identical. During each operation SPI-NOR sets 0th bit for CS0 & 1s

[PATCH v14 0/8] spi-nor: Add parallel and stacked memories support

2024-09-25 Thread Venkatesh Yadav Abbarapu
This series adds support for Xilinx qspi parallel and stacked memeories. In parallel mode, the current implementation assumes that a maximum of two flashes are connected. The QSPI controller splits the data evenly between both the flashes so, both the flashes that are connected in parallel mode sh

[PATCH v14 3/8] mtd: spi-nor: Add parallel memories support for read_sr and read_fsr

2024-09-25 Thread Venkatesh Yadav Abbarapu
From: Ashok Reddy Soma Add support for parallel memories flash configuration in read status register and read flag status register functions. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-core.c | 50 -- 1 f

[PATCH v14 6/8] spi: zynqmp_gqspi: Add parallel memories support in GQSPI driver

2024-09-25 Thread Venkatesh Yadav Abbarapu
Add support for parallel memories in zynqmp_gqspi.c driver. In case of parallel memories STRIPE bit is set and sent to the qspi ip, which will send data bits to both the flashes in parallel. However for few commands we should not use stripe, instead send same data to both the flashes. Those command

[PATCH v14 7/8] spi: zynq_qspi: Add parallel memories support in QSPI driver

2024-09-25 Thread Venkatesh Yadav Abbarapu
Add support for parallel memories in zynq_qspi.c driver. In case of parallel memories STRIPE bit is set and sent to the qspi ip, which will send data bits to both the flashes in parallel. However for few commands we should not use stripe, instead send same data to both the flashes. Those commands a

[PATCH v14 8/8] config: xilinx: Enable the SPI_ADVANCE config option

2024-09-25 Thread Venkatesh Yadav Abbarapu
Enable the SPI_ADVANCE config option for all xilinx platforms, as this is required for parallel-memories. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/xilinx_versal_net_virt_defconfig | 5 +++-- configs/xilinx_versal_virt_defconfig | 5 +++-- configs/xilinx_zynq_virt_defconfig

[PATCH] doc: board: ti: am62x_sk: Add document for Ethernet boot on AM62x SoC.

2024-09-25 Thread Chintan Vankar
Document the procedure to enable Ethernet Boot on AM62x SoC. Signed-off-by: Chintan Vankar --- This patch is based on commit '4386ab9118e7' of origin/next branch of U-Boot. doc/board/ti/am62x_sk.rst | 196 ++ 1 file changed, 196 insertions(+) diff --git a/

[PATCH v14 1/8] config: mx6sabresd: Default don't enable the flash lock

2024-09-25 Thread Venkatesh Yadav Abbarapu
By default flash lock option is enabled, enable this option only when it is required. By disabling the lock config will save some amount of memory. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/mx6sabresd_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sabresd_defc

RE: [PATCH v1 08/20] arm: dts: agilex5: Enable XGMAC

2024-09-25 Thread Chee, Tien Fong
Hi, > -Original Message- > From: Marek Vasut > Sent: Wednesday, September 25, 2024 8:51 PM > To: Chee, Tien Fong ; u-boot@lists.denx.de > Cc: Simon Goldschmidt ; Meng, Tingting > ; Yuslaimi, Alif Zakuan > ; Hea, Kok Kiang > > Subject: Re: [PATCH v1 08/20] arm: dts: agilex5: Enable XGMAC

RE: [PATCH v1 04/20] arm: socfpga: agilex5: Add low level initialization

2024-09-25 Thread Chee, Tien Fong
Hi, > >> arch/arm/cpu/armv7/lowlevel_init.S:.pushsection .text.s_init, "ax" > >> arch/arm/cpu/armv7/lowlevel_init.S:WEAK(s_init) > >> arch/arm/cpu/armv7/lowlevel_init.S:ENDPROC(s_init) > >> arch/arm/cpu/armv7/lowlevel_init.S: bl s_init > >> > >> Maybe such a default lowlevel_init for armv

Re: [PATCH 2/9] ARM: dts: socfpga: add Enclustra Intel AA1

2024-09-25 Thread Marek Vasut
On 9/26/24 12:49 AM, Lothar Rubusch wrote: Hi, First of all a huge thank you for the time you spend in reviewing the patches so far. This is highly appreciate!! On Fri, Sep 13, 2024 at 1:11 AM Marek Vasut wrote: [...] Is there any chance to upstream these DTs to Linux first , and then let t

Re: [PATCH 01/19] spl: Reduce the size of the bl_len field

2024-09-25 Thread Tom Rini
On Wed, Sep 25, 2024 at 02:55:27PM +0200, Simon Glass wrote: > This is a block length, so typicaly 512 bytes. Reduce the size to > 16 bits to save space, before more fields are added in future work. > > Signed-off-by: Simon Glass > --- > > include/spl.h | 2 +- > 1 file changed, 1 insertion(+)

Re: [PATCH 06/19] lib: Mark lz4 as relocation code

2024-09-25 Thread Tom Rini
On Wed, Sep 25, 2024 at 02:55:32PM +0200, Simon Glass wrote: > Mark the lz4 decompression code as needed by relocation. This is used to > decompress the next-phase image. > > Drop the 'safe' versions from SPL as they are not needed. Change the > static array to a local one, to avoid link errors w

Re: [PATCH 04/19] spl: Provide a way to mark code needed for relocation

2024-09-25 Thread Tom Rini
On Wed, Sep 25, 2024 at 02:55:30PM +0200, Simon Glass wrote: > Add a linker symbol which can be used to mark relocation code, so it can > be collected by the linker and copied into a suitable place and executed > when needed. > > Signed-off-by: Simon Glass > --- > > include/asm-generic/section

Re: [PATCH 11/19] spl: Support jumping to VPL from TPL

2024-09-25 Thread Tom Rini
On Wed, Sep 25, 2024 at 02:55:37PM +0200, Simon Glass wrote: > Use spl_get_image_pos() to obtain the image position to jump to. Add > the symbols used for VPL so that the correct image can be loaded. > > Use the functions provided for accessing these symbols and add a few > comments too. > > Sign

Re: [PATCH 2/9] ARM: dts: socfpga: add Enclustra Intel AA1

2024-09-25 Thread Lothar Rubusch
First of all a huge thank you for the time you spend in reviewing the patches so far. This is highly appreciate!! On Fri, Sep 13, 2024 at 1:11 AM Marek Vasut wrote: [...] > Is there any chance to upstream these DTs to Linux first , and then let > them all trickle into U-Boot through dts/upstream

Re: [PATCH 1/4] power: regulator: Trigger probe of regulators which are always-on or boot-on

2024-09-25 Thread Marek Vasut
On 9/25/24 3:04 PM, Svyatoslav Ryhel wrote: ср, 25 вер. 2024 р. о 15:48 Marek Vasut пише: On 9/25/24 12:18 PM, Svyatoslav Ryhel wrote: [...] Hello there! I was digging this when I had some free time and found that with patches from Marek the only difference is that function i2c_get_chip_for

Re: [PATCH 1/4] power: regulator: Trigger probe of regulators which are always-on or boot-on

2024-09-25 Thread Jonas Karlman
On 2024-09-25 12:18, Svyatoslav Ryhel wrote: > Hello there! > I was digging this when I had some free time and found that with > patches from Marek the only difference is that function > i2c_get_chip_for_busnum is not called for PMIC's main i2c address > which results in issues with i2c you have se

Re: [PATCH V2 2/4] board: rockchip: Add vdd_cpu reg fixup for RGXX3 Series

2024-09-25 Thread Chris Morgan
On Tue, Sep 24, 2024 at 12:24:16PM +0200, Quentin Schulz wrote: > Hi Chris, > > On 9/23/24 7:36 PM, Chris Morgan wrote: > > On Mon, Sep 23, 2024 at 01:21:01PM +0200, Quentin Schulz wrote: > > > Hi Chris, > > > > > > On 9/19/24 4:00 PM, Chris Morgan wrote: > > > > From: Chris Morgan > > > > > >

[PATCH] Bitbanging MDIO driver for DM framework.

2024-09-25 Thread Markus Gothe
Linux DTS compatible MDIO bitbanging driver. Both clause 22 and clause 45 MDIO supported and validated. Heavily based on the Linux drivers (more or less the same code base). Signed-off-by: Markus Gothe ---  drivers/net/Kconfig |   6 +  drivers/net/Makefile    |   1 +  drivers/net/mdio_gpi

Re: [PATCH V2 4/4] board: rockchip: Enable PD_VO before driver access

2024-09-25 Thread Chris Morgan
On Tue, Sep 24, 2024 at 11:19:49AM +0200, Quentin Schulz wrote: > Hi Chris, > > On 9/23/24 7:38 PM, Chris Morgan wrote: > > On Mon, Sep 23, 2024 at 01:24:34PM +0200, Quentin Schulz wrote: > > > Hi Chris, > > > > > > On 9/19/24 4:00 PM, Chris Morgan wrote: > > > > From: Chris Morgan > > > > > >

Re: [PATCH] arm: imx: Enable always-on regulators using board specific workaround on DHCOM SoM

2024-09-25 Thread Tom Rini
On Wed, 25 Sep 2024 00:08:23 +0200, Marek Vasut wrote: > U-Boot is currently unable to automatically enable regulators which > contain DT property regulator-always-on or regulator-boot-on. There > is an ongoing work to add this functionality to regulator core code, > but until the proper solution

Re: [PATCH 1/4] power: regulator: Trigger probe of regulators which are always-on or boot-on

2024-09-25 Thread Svyatoslav Ryhel
ср, 25 вер. 2024 р. о 15:48 Marek Vasut пише: > > On 9/25/24 12:18 PM, Svyatoslav Ryhel wrote: > > [...] > > > Hello there! > > I was digging this when I had some free time and found that with > > patches from Marek the only difference is that function > > i2c_get_chip_for_busnum is not called for

[PATCH 00/19] spl: Support a relocating jump between phases (VBE part F)

2024-09-25 Thread Simon Glass
This series includes a way to deal with multiple XPL phases being built to run from the same region of SRAM. This is useful because it may not be possible to fit all the different phases in different parts of the SRAM. Also it is a pain to have to build them with different values for CONFIG_TEXT_

Re: [PATCH] ARM: stm32: Fix TAMP_SMCR BKP..PROT fields on STM32MP15xx

2024-09-25 Thread Marek Vasut
On 6/19/24 8:35 AM, Patrice CHOTARD wrote: On 6/19/24 00:57, Marek Vasut wrote: Update the TAMP_SMCR BKP..PROT fields to put first 10 registers into protection zone 1 and next 5 into zone 2. This fixes use of boot counter which is often in zone 3 and has to be updated from Linux, which runs in

Re: [PATCH] ARM: stm32: Fix secure_waitbits() mask check

2024-09-25 Thread Marek Vasut
On 7/8/24 1:43 PM, Marek Vasut wrote: Do not apply bitwise AND to register value and expected value, only apply bitwise AND to register value and mask, and only then compare the result with expected value that the function polls for. Fixes: b49105320a5b ("stm32mp: psci: Implement PSCI system sus

Re: [PATCH] doc: Move the generic memory-documentation to doc/

2024-09-25 Thread Tom Rini
On Wed, Sep 25, 2024 at 02:50:45PM +0200, Simon Glass wrote: > Hi Heinrich, > > On Sun, 22 Sept 2024 at 11:02, Heinrich Schuchardt wrote: > > > > On 9/19/24 17:14, Simon Glass wrote: > > > Move this section of the README into doc/ with some minor updates to > > > mention SPL and user lower-case h

Re: [PATCH v6 00/19] labgrid: Provide an integration with Labgrid

2024-09-25 Thread Tom Rini
On Wed, Sep 25, 2024 at 02:50:08PM +0200, Simon Glass wrote: > Hi Tom, > > On Mon, 23 Sept 2024 at 22:36, Tom Rini wrote: > > > > On Fri, Sep 20, 2024 at 08:01:35AM +0200, Simon Glass wrote: > > > > > Labgrid provides access to a hardware lab in an automated way. It is > > > possible to boot U-Bo

Re: [PATCH] ARM: stm32: Fix secure_waitbits() mask check

2024-09-25 Thread Patrick DELAUNAY
Hi Marek, On 7/8/24 13:43, Marek Vasut wrote: Do not apply bitwise AND to register value and expected value, only apply bitwise AND to register value and mask, and only then compare the result with expected value that the function polls for. Fixes: b49105320a5b ("stm32mp: psci: Implement PSCI s

Re: [PATCH] ARM: stm32: Fix TAMP_SMCR BKP..PROT fields on STM32MP15xx

2024-09-25 Thread Patrick DELAUNAY
Hi Marek, On 9/25/24 19:04, Marek Vasut wrote: On 6/19/24 8:35 AM, Patrice CHOTARD wrote: On 6/19/24 00:57, Marek Vasut wrote: Update the TAMP_SMCR BKP..PROT fields to put first 10 registers into protection zone 1 and next 5 into zone 2. This fixes use of boot counter which is often in zone

[PATCH v2] arm64: dts: imx8mp: Add DH i.MX8MP DHCOM SoM on DRC02 carrier board

2024-09-25 Thread Marek Vasut
Add support for DH electronics i.MX8MP DHCOM SoM on DRC02 carrier board. This system is populated with two ethernet ports, two CANs, RS485 and RS232, USB, capacitive buttons and an OLED display. Matching Linux kernel patch has been posted: https://lore.kernel.org/imx/20240925160343.84388-2-ma...@d

Re: [PATCH] arm64: dts: imx8mp: Add DH i.MX8MP DHCOM SoM on DRC02 carrier board

2024-09-25 Thread Marek Vasut
On 9/25/24 3:49 PM, Fabio Estevam wrote: Hi Marek, On Tue, Sep 24, 2024 at 9:12 PM Marek Vasut wrote: Add support for DH electronics i.MX8MP DHCOM SoM on DRC02 carrier board. This system is populated with two ethernet ports, two CANs, RS485 and RS232, USB, capacitive buttons and an OLED displ

Re: [PATCH] mtd: spi-nor: Clear Winbond SR3 WPS bit on boot

2024-09-25 Thread Marek Vasut
On 9/11/24 1:05 PM, Marek Vasut wrote: On 8/30/24 3:36 PM, Jagan Teki wrote: On Sun, Aug 25, 2024 at 5:58 AM Marek Vasut wrote: On 5/24/24 6:05 PM, Jagan Teki wrote: On Mon, Mar 4, 2024 at 9:46 PM Marek Vasut wrote: Some Winbond SPI NORs have special SR3 register which is used among other

Re: [PATCH v5 12/14] efi_loader: Avoid using sandbox virtio devices

2024-09-25 Thread Tom Rini
On Wed, Sep 25, 2024 at 02:52:04PM +0200, Simon Glass wrote: > Hi Tom, > > On Fri, 20 Sept 2024 at 16:59, Tom Rini wrote: > > > > On Fri, Sep 20, 2024 at 09:25:29AM +0200, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 19 Sept 2024 at 19:45, Tom Rini wrote: > > > > > > > > On Thu, Sep 19,

Re: [PATCH v6 01/19] test: Allow signaling that U-Boot is ready

2024-09-25 Thread Tom Rini
On Wed, Sep 25, 2024 at 02:49:56PM +0200, Simon Glass wrote: > Hi Tom, > > On Mon, 23 Sept 2024 at 22:35, Tom Rini wrote: > > > > On Fri, Sep 20, 2024 at 08:01:36AM +0200, Simon Glass wrote: > > > > > > > When Labgrid is used, it can get U-Boot ready for running tests. It > > > prints a message w

Re: [PATCH v5 13/14] test: efi: boot: Set up an image suitable for EFI testing

2024-09-25 Thread Tom Rini
On Thu, Sep 19, 2024 at 04:13:01PM +0200, Simon Glass wrote: > Hi Tom, > > On Wed, 18 Sept 2024 at 00:19, Tom Rini wrote: > > > > On Tue, Sep 17, 2024 at 05:52:09AM +0200, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 16 Sept 2024 at 18:34, Tom Rini wrote: > > > > > > > > On Mon, Sep 16,

Re: [u-boot-test-hooks PATCH] qemu_arm64_tpl: Add a new board

2024-09-25 Thread Tom Rini
On Wed, Sep 25, 2024 at 11:47:40AM +0200, Simon Glass wrote: > Add this new board, to support testing the relocating SPL loader. > > Signed-off-by: Simon Glass > --- > > bin/travis-ci/conf.qemu_arm64_tpl_na | 29 > 1 file changed, 29 insertions(+) > create mode 10

Re: [GIT PULL] Please pull u-boot-imx-next-20240925

2024-09-25 Thread Tom Rini
source.denx.de/u-boot/custodians/u-boot-microblaze into next > (2024-09-23 08:11:01 -0600) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-next-20240925 > > for you to fetch changes up to 99abeaa64

Re: [PATCH 1/2] power: regulator: Do not call set_suspend_value with -ENODATA

2024-09-25 Thread Tom Rini
On Wed, 24 Jul 2024 22:47:10 +, Jonas Karlman wrote: > On some boards a PMIC regulator is flagged with regulator-on-in-suspend > and does not define any suspend or max microvolt, e.g. on Radxa ROCK 3A: > > vcc_ddr: DCDC_REG3 { > regulator-name = "vcc_ddr"; > regulator-always-on;

Re: [PATCH] ARM: stm32: Fix TAMP_SMCR BKP..PROT fields on STM32MP15xx

2024-09-25 Thread Marek Vasut
On 9/25/24 7:50 PM, Patrick DELAUNAY wrote: Hi Marek, Hi, diff --git a/arch/arm/mach-stm32mp/stm32mp1/stm32mp15x.c b/arch/arm/ mach-stm32mp/stm32mp1/stm32mp15x.c index f096fe538d8..ca202bec8ee 100644 --- a/arch/arm/mach-stm32mp/stm32mp1/stm32mp15x.c +++ b/arch/arm/mach-stm32mp/stm32mp1/stm32

[PATCH 0/3] Simple-framebuffer node related updates

2024-09-25 Thread Devarsh Thakkar
This series fixes some compilation issues related to FDT_SIMPLEFB and VIDEO and along with that enables support for dynamic simplefb node enablement for AM62x platform. Devarsh Thakkar (3): boot/Kconfig: Add Video Kconfig as dependency for FDT_SIMPLEFB boot: fdt_simplefb: Remove conditional co

[PATCH 2/3] boot: fdt_simplefb: Remove conditional compilation checks for VIDEO Kconfig

2024-09-25 Thread Devarsh Thakkar
CONFIG_VIDEO conditional compilation checks are no longer needed since FDT_SIMPLEFB Kconfig now depends on VIDEO Kconfig. Signed-off-by: Devarsh Thakkar Reviewed-by: Mattijs Korpershoek --- boot/fdt_simplefb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/boot/fdt_simplefb.c b/boot/fdt_s

[PATCH 3/3] board: ti: am62x: evm: Update simple-framebuffer node in device-tree

2024-09-25 Thread Devarsh Thakkar
Update simple-framebuffer device-tree node by enumerating framebuffer related information in existing simple-framebuffer node in Linux device-tree file and enabling it. In case there is no simple-framebuffer stub detected in Linux kernel device-tree and video is still active, then update the devic

[PATCH 1/3] boot/Kconfig: Add Video Kconfig as dependency for FDT_SIMPLEFB

2024-09-25 Thread Devarsh Thakkar
The fdt_simplefb.c APIs rely on video-uclass APIs and structures to fill/update framebuffer information, so compile it only when VIDEO Kconfig is enabled, as otherwise below warning can be seen if VIDEO Kconfig is disabled: "boot/fdt_simplefb.c:96:12: warning: fdt_simplefb_enable_existing_node def

[PATCH] arm64: zynqmp: Add description for SC on vm-p-m1369 board

2024-09-25 Thread Michal Simek
Board is very similar to vn-p-b2197 with subset of functinality. Signed-off-by: Michal Simek --- arch/arm/dts/Makefile | 2 + .../arm/dts/zynqmp-sc-vm-p-m1369-00-revA.dtso | 400 ++ 2 files changed, 402 insertions(+) create mode 100644 arch/arm/dts/zyn

[PATCH] arm64: versal-net: Remove current-speed from mini

2024-09-25 Thread Michal Simek
U-Boot code is not reading this variable that's why remove it from DT. PL011 code is automatically using CONFIG_BAUDRATE instead. Signed-off-by: Michal Simek --- arch/arm/dts/versal-net-mini.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/versal-net-mini.dts b/arch/arm/dts/v

[PATCH] xilinx: Add cap-mmc-hw-reset and no-sd, no-sdio property to eMMC

2024-09-25 Thread Michal Simek
From: Paul Alvin Add "cap-mmc-hw-reset" property to the eMMC DT node to perform the eMMC device hardware reset. Also, add "no-sd", "no-sdio" properties to eMMC DT node to skip unwanted sd, sdio related commands during initialization for eMMC device as this may lead to unnecessary register dump.

[PATCH] amd: Disable LMB, BOOTM, MTD and EFI loader for mini configurations

2024-09-25 Thread Michal Simek
Mini configurations don't need these features that's why disable them. Signed-off-by: Michal Simek --- configs/amd_versal2_mini_defconfig | 3 +++ configs/amd_versal2_mini_ospi_defconfig | 4 +++- configs/amd_versal2_mini_qspi_defconfig | 4 +++- 3 files changed, 9 insertions(+), 2 deletio

[PATCH] arm64: xilinx: Fix file location described in zynqmp-p-a2197-00-revA.dts

2024-09-25 Thread Michal Simek
Fix pointers to incorrect file name described in DT. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202409250603.7achimjs-...@intel.com/ Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-p-a2197-00-revA.dts | 44 - 1 file changed, 22 ins

[u-boot-test-hooks PATCH] qemu_arm64_tpl: Add a new board

2024-09-25 Thread Simon Glass
Add this new board, to support testing the relocating SPL loader. Signed-off-by: Simon Glass --- bin/travis-ci/conf.qemu_arm64_tpl_na | 29 1 file changed, 29 insertions(+) create mode 100644 bin/travis-ci/conf.qemu_arm64_tpl_na diff --git a/bin/travis-ci/conf.qem

Re: [PATCH v3 22/30] board: emulation: Add QEMU sbsa support

2024-09-25 Thread Peter Maydell
On Fri, 20 Sept 2024 at 16:59, Simon Glass wrote: > On Fri, 20 Sept 2024 at 12:29, Patrick Rudolph > wrote: > > On Fri, Sep 20, 2024 at 11:37 AM Simon Glass wrote: > > > On Fri, 20 Sept 2024 at 09:54, Patrick Rudolph > > > wrote: > > > > > > > > On Thu, Sep 19, 2024 at 4:10 PM Simon Glass wrot

Re: [PATCH] sandbox_spl: Restrict use of UPL when not enabled

2024-09-25 Thread Heinrich Schuchardt
On 25.09.24 12:44, Simon Glass wrote: With sandbox_spl we want to use the file-based boot in CI, so that this flow is tested. The recent UPL change enabled booting via that method, thus overriding the file-based boot. Correct this by using UPL only when the --upl flag is given. Signed-off-by: S

Re: [PATCH v2 3/5] power: regulator: Exit from regulator_set_suspend_value on poorly described regulators

2024-09-25 Thread Marek Vasut
On 9/25/24 8:29 AM, Jonas Karlman wrote: Hi Marek, Hi, On 2024-09-25 04:21, Marek Vasut wrote: In case the DT regulator node does not contain 'regulator-max-microvolt' property and does not contain 'regulator-state-mem' subnode (like the test.dts regul1_scmi: reg@1 {} regulator node), then r

[GIT PULL] Please pull u-boot-imx-next-20240925

2024-09-25 Thread Fabio Estevam
in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-next-20240925 for you to fetch changes up to 99abeaa648052e8e99682f046b8dfd3739b4e181: net: fec_mxc: Skip recv packet process when fec is halted (2024-09-24 16:55:14 -0300) u-boot-imx-nex

Re: [PATCH V2 1/2] net: fec_mxc: Fix clk_ref rate on iMX93

2024-09-25 Thread Fabio Estevam
On Tue, Sep 24, 2024 at 3:28 AM Peng Fan (OSS) wrote: > > From: Peng Fan > > i.MX93 FEC ENET port supports two mode: RGMII and RMII. For RGMII, > there is an internal /2 divider, so the freq needs to set with (*2), > otherwise the speed will not reach 1G and cause communication error > in some ne

Re: [PATCH] arm64: dts: imx8m: Always name the generated fitImage u-boot.itb

2024-09-25 Thread Fabio Estevam
On Tue, Sep 24, 2024 at 10:02 AM Marek Vasut wrote: > > Maintain backward compatibility with pre-binman u-boot file naming, > the U-Boot fitImage used to be named u-boot.itb before, restore the > file name after binman conversion. > > Signed-off-by: Marek Vasut Applied to u-boot-imx/next, thanks

Re: [PATCH v3 22/30] board: emulation: Add QEMU sbsa support

2024-09-25 Thread Simon Glass
Hi Tom, On Tue, 24 Sept 2024 at 16:29, Tom Rini wrote: > > On Tue, Sep 24, 2024 at 03:17:15PM +0200, Patrick Rudolph wrote: > > On Fri, Sep 20, 2024 at 5:59 PM Simon Glass wrote: > > > > > > Hi Patrick, > > > > > > On Fri, 20 Sept 2024 at 12:29, Patrick Rudolph > > > wrote: > > > > > > > > On F

Re: [PATCH v2 09/18] armv8: Support not having separate BSS

2024-09-25 Thread Simon Glass
Hi Ilias, On Mon, 23 Sept 2024 at 11:49, Ilias Apalodimas wrote: > > Hi Simon, > > On Fri, 20 Sept 2024 at 10:25, Simon Glass wrote: > > > > Separate BSS is current mandatory on armv8 but this is not useful for > > early boot phases. Add support for the combined BSS. > > > > Use an #ifdef to avo

Re: [PATCH 1/4] power: regulator: Trigger probe of regulators which are always-on or boot-on

2024-09-25 Thread Svyatoslav Ryhel
ср, 25 вер. 2024 р. о 02:44 Tom Rini пише: > > On Fri, Sep 20, 2024 at 10:48:56AM -0600, Tom Rini wrote: > > On Fri, Sep 20, 2024 at 07:40:35PM +0300, Svyatoslav Ryhel wrote: > > > пн, 16 вер. 2024 р. о 19:28 Tom Rini пише: > > > > > > > > On Wed, Sep 11, 2024 at 07:00:56PM -0600, Simon Glass wro

Re: [PATCH v3 2/3] efi: Allow use of malloc() for the EFI pool

2024-09-25 Thread Simon Glass
Hi Heinrich, On Mon, 23 Sept 2024 at 14:36, Heinrich Schuchardt wrote: > > On 12.09.24 02:59, Simon Glass wrote: > > Hi Sughosh, > > > > On Wed, 11 Sept 2024 at 00:50, Sughosh Ganu wrote: > >> > >> On Wed, 11 Sept 2024 at 00:14, Simon Glass wrote: > >>> > >>> Hi Sughosh, > >>> > >>> On Mon, 9 S

Re: [PATCH 1/4] power: regulator: Trigger probe of regulators which are always-on or boot-on

2024-09-25 Thread Simon Glass
Hi, On Fri, 20 Sept 2024 at 18:49, Tom Rini wrote: > > On Fri, Sep 20, 2024 at 07:40:35PM +0300, Svyatoslav Ryhel wrote: > > пн, 16 вер. 2024 р. о 19:28 Tom Rini пише: > > > > > > On Wed, Sep 11, 2024 at 07:00:56PM -0600, Simon Glass wrote: > > > > Hi Marek, > > > > > > > > On Fri, 28 Jun 2024 a

Re: [PATCH 1/4] power: regulator: Trigger probe of regulators which are always-on or boot-on

2024-09-25 Thread Marek Vasut
On 9/25/24 12:18 PM, Svyatoslav Ryhel wrote: [...] Hello there! I was digging this when I had some free time and found that with patches from Marek the only difference is that function i2c_get_chip_for_busnum is not called for PMIC's main i2c address Is it possible this is called earlier, bef

Re: [PATCH v6 01/19] test: Allow signaling that U-Boot is ready

2024-09-25 Thread Simon Glass
Hi Tom, On Mon, 23 Sept 2024 at 22:35, Tom Rini wrote: > > On Fri, Sep 20, 2024 at 08:01:36AM +0200, Simon Glass wrote: > > > > When Labgrid is used, it can get U-Boot ready for running tests. It > > prints a message when it has done so. > > > > Add logic to detect this message and accept it. > >

Re: [PATCH v6 00/19] labgrid: Provide an integration with Labgrid

2024-09-25 Thread Simon Glass
Hi Tom, On Mon, 23 Sept 2024 at 22:36, Tom Rini wrote: > > On Fri, Sep 20, 2024 at 08:01:35AM +0200, Simon Glass wrote: > > > Labgrid provides access to a hardware lab in an automated way. It is > > possible to boot U-Boot on boards in the lab without physically touching > > them. It relies on re

Re: [PATCH 13/14] Update u-boot.cfg to include CFG also

2024-09-25 Thread Simon Glass
Hi Tom, On Mon, 23 Sept 2024 at 22:35, Tom Rini wrote: > > On Thu, Sep 19, 2024 at 04:13:57PM +0200, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 31 Jul 2024 at 19:17, Tom Rini wrote: > > > > > > On Wed, Jul 31, 2024 at 08:39:30AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Mo

Re: [PATCH 00/18] vbe: Series part D

2024-09-25 Thread Simon Glass
Hi Tom, On Fri, 20 Sept 2024 at 18:40, Tom Rini wrote: > > On Fri, Sep 20, 2024 at 06:04:05PM +0200, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 20 Sept 2024 at 17:01, Tom Rini wrote: > > > > > > On Fri, Sep 20, 2024 at 09:25:53AM +0200, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On F

Re: [PATCH 1/1] efi_leader: delete rng-seed if having EFI RNG protocol

2024-09-25 Thread Simon Glass
Hi Heinrich, On Sun, 22 Sept 2024 at 15:43, Heinrich Schuchardt wrote: > > On 20.09.24 17:58, Simon Glass wrote: > > Hi Ilias, > > > > On Fri, 20 Sept 2024 at 09:37, Ilias Apalodimas > > wrote: > >> > >> Hi Simon, > >> > >> On Fri, 20 Sept 2024 at 10:25, Simon Glass wrote: > >>> > >>> Hi Ilias,

Re: [PATCH] doc: Move the generic memory-documentation to doc/

2024-09-25 Thread Simon Glass
Hi Heinrich, On Sun, 22 Sept 2024 at 11:02, Heinrich Schuchardt wrote: > > On 9/19/24 17:14, Simon Glass wrote: > > Move this section of the README into doc/ with some minor updates to > > mention SPL and user lower-case hex. > > > > Signed-off-by: Simon Glass > > --- > > > > README

Re: [PATCH v6 04/19] test: Allow connecting to a running board

2024-09-25 Thread Simon Glass
Hi Tom, On Mon, 23 Sept 2024 at 22:35, Tom Rini wrote: > > On Fri, Sep 20, 2024 at 08:01:39AM +0200, Simon Glass wrote: > > > Sometimes we know that the board is already running the right software, > > so provide an option to allow running of tests directly, without first > > resetting the board.

Re: [PATCH v3 1/3] efi: Drop the memset() from efi_alloc()

2024-09-25 Thread Simon Glass
Hi Heinrich, On Mon, 23 Sept 2024 at 14:15, Heinrich Schuchardt wrote: > > On 19.09.24 16:13, Simon Glass wrote: > > Hi Heinrich, > > > > On Sat, 14 Sept 2024 at 09:40, Heinrich Schuchardt > > wrote: > >> > >> On 02.09.24 00:22, Simon Glass wrote: > >>> From my inspection none of the users ne

Re: [PATCH v5 12/14] efi_loader: Avoid using sandbox virtio devices

2024-09-25 Thread Simon Glass
Hi Tom, On Fri, 20 Sept 2024 at 16:59, Tom Rini wrote: > > On Fri, Sep 20, 2024 at 09:25:29AM +0200, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 19 Sept 2024 at 19:45, Tom Rini wrote: > > > > > > On Thu, Sep 19, 2024 at 04:10:12PM +0200, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On T

Re: [PATCH 04/16] event: add event to notify lmb memory map changes

2024-09-25 Thread Simon Glass
Hi Sughosh, On Fri, 20 Sept 2024 at 13:38, Sughosh Ganu wrote: > > On Fri, 20 Sept 2024 at 14:51, Ilias Apalodimas > wrote: > > > > Hi Sughosh, > > > > On Tue, 17 Sept 2024 at 15:33, Sughosh Ganu wrote: > > > > > > On Sat, 14 Sept 2024 at 20:38, Heinrich Schuchardt > > > wrote: > > > > > > >

Re: [PATCH v3 2/3] efi: Allow use of malloc() for the EFI pool

2024-09-25 Thread Simon Glass
Hi Ilias, On Mon, 23 Sept 2024 at 12:03, Ilias Apalodimas wrote: > > On Fri, 20 Sept 2024 at 19:03, Simon Glass wrote: > > > > Hi Ilias, > > > > On Fri, 20 Sept 2024 at 14:10, Ilias Apalodimas > > wrote: > > > > > > Hi Simon > > > > > > A few more comments after looking into this a bit more > >

Re: [PATCH] sandbox_spl: Restrict use of UPL when not enabled

2024-09-25 Thread Simon Glass
Hi Heinrich, On Wed, 25 Sept 2024 at 13:55, Heinrich Schuchardt wrote: > > On 25.09.24 12:44, Simon Glass wrote: > > With sandbox_spl we want to use the file-based boot in CI, so that this > > flow is tested. The recent UPL change enabled booting via that method, > > thus overriding the file-base

[PATCH 02/19] spl: Provide a way of indicating the phase to load

2024-09-25 Thread Simon Glass
Provide a field in struct spl_load_info to indicate the phase of the image which should be loaded. This is needed by VBE, which can load images in various phases. Set the phase to none by default. Signed-off-by: Simon Glass --- include/spl.h | 23 +++ 1 file changed, 23 ins

[PATCH 01/19] spl: Reduce the size of the bl_len field

2024-09-25 Thread Simon Glass
This is a block length, so typicaly 512 bytes. Reduce the size to 16 bits to save space, before more fields are added in future work. Signed-off-by: Simon Glass --- include/spl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spl.h b/include/spl.h index d90eed956af.

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

2024-09-25 Thread Simon Glass
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 --- lib/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 9478257e

[PATCH 04/19] spl: Provide a way to mark code needed for relocation

2024-09-25 Thread Simon Glass
Add a linker symbol which can be used to mark relocation code, so it can be collected by the linker and copied into a suitable place and executed when needed. Signed-off-by: Simon Glass --- include/asm-generic/sections.h | 16 1 file changed, 16 insertions(+) diff --git a/incl

[PATCH 07/19] lib: Mark memcpy() and memmove() as relocation code

2024-09-25 Thread Simon Glass
Mark these functions as needed by relocation. This is used to copy data while relocating the next-phase image. Drop the 'safe' versions from SPL as they are not needed. Change the static array to a local one, to avoid link errors when trying to access the data. Signed-off-by: Simon Glass --- l

[PATCH 05/19] lib: Mark crc8 as relocation code

2024-09-25 Thread Simon Glass
Mark the crc8 code as needed by relocation. This is used as a simple check against corruption of the code when copying. Signed-off-by: Simon Glass --- lib/crc8.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/crc8.c b/lib/crc8.c index 811e19917b4..bbb229c3892 10064

[PATCH 13/19] spl: Show how to fill in the size of the next image

2024-09-25 Thread Simon Glass
Binman provides the exact size of the SPL image being loaded, so show how to fill this in. The code is not used, since it does provide a size increase. Signed-off-by: Simon Glass --- common/spl/spl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/spl.c b/common/spl/spl.c index 2

[PATCH 09/19] spl: Add support for a relocating jump to the next phase

2024-09-25 Thread Simon Glass
When one XPL phase wants to jump to the next, the next phase must be loaded into its required address. This means that the TEXT_BASE for the two phases must be different and there cannot be any memory overlap between the phases. It also can mean that phases need to be moved around to accommodate an

[PATCH 08/19] spl: Add a type for the jumper function

2024-09-25 Thread Simon Glass
This function will be used by the relocating jumper too, so add a typedef to the header file to avoid mismatches. Signed-off-by: Simon Glass --- common/spl/spl.c | 3 +-- include/spl.h| 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/spl/spl.c b/common/spl/spl.c

[PATCH 10/19] spl: Plumb in the relocating loader

2024-09-25 Thread Simon Glass
This is fairly easy to use. The SPL loader sets up some fields in the spl_image_info struct and calls spl_reloc_prepare(). When SPL is ready to do the jump it must call spl_reloc_jump() instead of jump_to_image(). Add this logic. Signed-off-by: Simon Glass --- common/spl/spl.c | 12 +++

[PATCH 15/19] arm: qemu: Allow SPL and TPL

2024-09-25 Thread Simon Glass
Indicate that these boards can be supported, so a new 'TPL' board can be added. Signed-off-by: Simon Glass --- arch/arm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 656f588a97c..dfc735237aa 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/K

[PATCH 11/19] spl: Support jumping to VPL from TPL

2024-09-25 Thread Simon Glass
Use spl_get_image_pos() to obtain the image position to jump to. Add the symbols used for VPL so that the correct image can be loaded. Use the functions provided for accessing these symbols and add a few comments too. Signed-off-by: Simon Glass --- common/spl/spl.c | 22 --

[PATCH 16/19] arm: Add a new qemu_arm64_tpl board

2024-09-25 Thread Simon Glass
We want to be able to test the relocating XPL loader. Add a new build for ARM QEMU which supports booting from TPL into SPL This builds an image containing TPL, SPL and U-Boot proper. To run it: qemu-system-aarch64 -machine virt -nographic -cpu cortex-a57 \ -bios image.bin Signed-off-by

[PATCH 14/19] spl: Add debugging in spl_set_header_raw_uboot()

2024-09-25 Thread Simon Glass
Add some debugging here so it is easier to see what is going on. Signed-off-by: Simon Glass --- common/spl/spl.c | 5 + 1 file changed, 5 insertions(+) diff --git a/common/spl/spl.c b/common/spl/spl.c index 878036210c4..75fa1a854d9 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -2

[PATCH 12/19] spl: Record the correct name of the next phase

2024-09-25 Thread Simon Glass
This is only "U-Boot" when in SPL. For earlier phases it should use the correct value, so update this. Signed-off-by: Simon Glass --- common/spl/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index 623e486c210..2466b98f5a8 100644 --

[PATCH 06/19] lib: Mark lz4 as relocation code

2024-09-25 Thread Simon Glass
Mark the lz4 decompression code as needed by relocation. This is used to decompress the next-phase image. Drop the 'safe' versions from SPL as they are not needed. Change the static array to a local one, to avoid link errors when trying to access the data. Signed-off-by: Simon Glass --- lib/lz

[PATCH 17/19] arm: Provide an rcode section in ARMv8 link script

2024-09-25 Thread Simon Glass
Collect the relocation code in one place so that it can be used by the SPL relocating-loader. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/u-boot-spl.lds | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/cpu/armv8/u-boot-spl.lds b/arch/arm/cpu/armv8/u-boot-spl.lds index

[PATCH 19/19] CI: Add new test for reloc loader

2024-09-25 Thread Simon Glass
Add this to CI. This relies on a u-boot-test-hooks update Signed-off-by: Simon Glass --- .azure-pipelines.yml | 3 +++ .gitlab-ci.yml | 6 ++ 2 files changed, 9 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 93111eb6127..51c4346ce64 100644 --- a/.azure-p

[PATCH 18/19] arm: qemu_arm64_tpl: Enable the relocating loader

2024-09-25 Thread Simon Glass
Move SPL to start in the RAM region, using the relocating loader to copy it there and run from there. Add a simple test to make sure this works as expected. Signed-off-by: Simon Glass --- arch/arm/dts/qemu-arm64.dts | 1 - board/emulation/qemu-arm/xpl.c | 15 +++ configs/qe

Re: [PATCH v2 09/18] armv8: Support not having separate BSS

2024-09-25 Thread Ilias Apalodimas
Hi Simon, On Wed, 25 Sept 2024 at 15:48, Simon Glass wrote: > > Hi Ilias, > > On Mon, 23 Sept 2024 at 11:49, Ilias Apalodimas > wrote: > > > > Hi Simon, > > > > On Fri, 20 Sept 2024 at 10:25, Simon Glass wrote: > > > > > > Separate BSS is current mandatory on armv8 but this is not useful for >

Re: [PATCH v1 03/20] linker: Add SPL linker script for SoC64 devices

2024-09-25 Thread Marek Vasut
On 9/25/24 8:06 AM, Chee, Tien Fong wrote: Hi, Add a new .data section for preserving the original state of the .data section of SoC64 SPL. This new .data section is required to make SPL reentrant after warm reset. Where is the linker script copied from ? What is the original file name and pat

Re: [PATCH v1 08/20] arm: dts: agilex5: Enable XGMAC

2024-09-25 Thread Marek Vasut
On 9/25/24 8:13 AM, Chee, Tien Fong wrote: Hi, -Original Message- From: Marek Vasut Sent: Wednesday, September 25, 2024 2:36 AM To: Chee, Tien Fong ; u-boot@lists.denx.de Cc: Simon Goldschmidt ; Meng, Tingting ; Yuslaimi, Alif Zakuan ; Hea, Kok Kiang Subject: Re: [PATCH v1 08/20] arm:

Re: [PATCH v1 04/20] arm: socfpga: agilex5: Add low level initialization

2024-09-25 Thread Marek Vasut
On 9/25/24 7:40 AM, Chee, Tien Fong wrote: Hi, arch/arm/cpu/armv7/lowlevel_init.S:.pushsection .text.s_init, "ax" arch/arm/cpu/armv7/lowlevel_init.S:WEAK(s_init) arch/arm/cpu/armv7/lowlevel_init.S:ENDPROC(s_init) arch/arm/cpu/armv7/lowlevel_init.S: bl s_init Maybe such a default lowle

[PATCH] sandbox_spl: Restrict use of UPL when not enabled

2024-09-25 Thread Simon Glass
With sandbox_spl we want to use the file-based boot in CI, so that this flow is tested. The recent UPL change enabled booting via that method, thus overriding the file-based boot. Correct this by using UPL only when the --upl flag is given. Signed-off-by: Simon Glass Fixes: 91fde8e1764 ("sandbox

  1   2   >