Re: [PATCH v4 00/12] Add imx8mp video support

2025-03-06 Thread Fabio Estevam
On Wed, Mar 5, 2025 at 3:17 PM Tom Rini wrote: > The series is delayed until someone has a chance to look harder at > what's causing the handoff test to now fail. Ok, I marked this series as "Changes Requested" in patchwork. Miquel, please make sure the next version passes CI.

Re: [PATCH RFC/RFT 0/3] omap24xx_i2c: Enable Repeated Start functionality

2025-03-06 Thread Tom Rini
On Thu, Mar 06, 2025 at 06:28:54PM +0530, Aniket Limaye wrote: > Hello Tom, Heiko, > > On 06/03/25 11:15, Heiko Schocher wrote: > > Hello Tom, Aniket, > > > > On 05.03.25 16:50, Tom Rini wrote: > > > On Wed, Mar 05, 2025 at 03:34:08AM +0530, Aniket Limaye wrote: > > > > This series implements Rep

[PATCH 00/10] Improve pytest runtime

2025-03-06 Thread Tom Rini
Hey all, One thing that Simon Glass has noted is that our pytest run time keeps getting longer. Looking at: https://source.denx.de/u-boot/u-boot/-/pipelines/25011/test_report?job_name=sandbox%20test.py%3A%20%5Bfast%20amd64%5D we can see that some of the longest running tests are a little puzzling.

Re: [PATCH] checkpatch.pl: Report an error for CONFIG_xPL_BUILD in device trees

2025-03-06 Thread Simon Glass
Hi Hendrik, On Thu, 6 Mar 2025 at 13:16, Hendrik Donner wrote: > > The defines for the different build phases shouldn't be used in device > trees, currently they aren't even defined for device tree pre processing, > resulting in build errors. > > Link: https://lists.denx.de/pipermail/u-boot/2025-

Re: [PATCH] binman: Fill in most of the imx8mimage and imx8mcst tests

2025-03-06 Thread Simon Glass
Hi Marek, On Sat, 15 Feb 2025 at 08:30, Marek Vasut wrote: > > On 2/15/25 2:38 PM, Simon Glass wrote: > > Hi Marek, > > > > On Sat, 8 Feb 2025 at 14:27, Marek Vasut wrote: > >> > >> On 2/7/25 1:49 AM, Simon Glass wrote: > >>> Hi Marek, > >>> > >>> On Thu, 6 Feb 2025 at 13:52, Marek Vasut wrote:

Re: [PATCH v2 28/28] test: Add a test for booting Ubuntu 24.04

2025-03-06 Thread Simon Glass
Hi Tom, On Thu, 6 Mar 2025 at 09:43, Tom Rini wrote: > > On Thu, Mar 06, 2025 at 09:11:28AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 6 Mar 2025 at 07:32, Tom Rini wrote: > > > > > > On Thu, Mar 06, 2025 at 07:16:08AM -0700, Simon Glass wrote: > > > > Hi Heiko, > > > > > > > > On Thu

[PATCH v4 36/47] x86: Support a 64-bit ramdisk address

2025-03-06 Thread Simon Glass
Add some missing pieces to bootparams so that a 64-bit ramdisk address can be used. Tidy up the logging while we are here. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to support a 64-bit ramdisk address arch/x86/include/asm/bootparam.h | 15

[PATCH 04/10] test/py: Fix two problems with setup_image

2025-03-06 Thread Tom Rini
There are two issues with this function currently. One is that while we can be passed an image size to use, we always called qemu-img with 20M as the size. Fix this by using the size parameter. The second issue is that reserving 2MiB at the end is not enough room to add a GPT (and the backup GPT th

[PATCH 06/10] test/py: Rework test_eficonfig to not use virt-make-fs

2025-03-06 Thread Tom Rini
The problem with using "virt-make-fs" to make a filesystem image is that it is extremely slow. Switch to using the fs_helper functions we have instead from the filesystem tests as these can add files to images and are significantly faster and still do not require root access. As this test already

[PATCH 01/10] test/py: Rework test_cat to not use virt-make-fs

2025-03-06 Thread Tom Rini
The problem with using "virt-make-fs" to make a filesystem image is that it is extremely slow. Switch to using the fs_helper functions we have instead from the filesystem tests as these can add files to images and are significantly faster and still do not require root access. Signed-off-by: Tom Ri

[PATCH 10/10] Dockerfile: Update to drop virt-make-fs packages

2025-03-06 Thread Tom Rini
Now that we do not need nor want people to use virt-make-fs for filesystem tests, remove the related packages from the installation list. Signed-off-by: Tom Rini --- tools/docker/Dockerfile | 5 - 1 file changed, 5 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile

[PATCH 05/10] test/py: Rework test_efi_bootmgr to not use virt-make-fs

2025-03-06 Thread Tom Rini
The problem with using "virt-make-fs" to make a filesystem image is that it is extremely slow. Switch to using the fs_helper functions we have instead from the filesystem tests as these can add files to images and are significantly faster and still do not require root access. Signed-off-by: Tom Ri

[PATCH 09/10] doc/develop/py_testing.rst: Update section on filesystem images

2025-03-06 Thread Tom Rini
Now that we have no users of "virt-make-fs" nor users of "sudo" for creating disk images update the documentation. We remove packages that are no longer required (and related text) as well as be firm in our wording around not using "sudo". Signed-off-by: Tom Rini --- Cc: Heinrich Schuchardt ---

[PATCH 03/10] test/py/tests: Move "setup_image" from test_ut.py to fs_helper.py

2025-03-06 Thread Tom Rini
The generic function in test_ut.py to create a disk image with partition table can be useful outside of test_ut.py so move it to be available more clearly. To make this a bit more easily used library function, make use of check_call directly rather than calling things though u_boot_utils. In turn,

[PATCH 07/10] test/py: Rework test_efi_capsule to not use virt-make-fs

2025-03-06 Thread Tom Rini
The problem with using "virt-make-fs" to make a filesystem image is that it is extremely slow. Switch to using the fs_helper functions we have instead from the filesystem tests as these can add files to images and are significantly faster and still do not require root access. The main change here

[PATCH 08/10] test/py: Rework test_efi_secboot to not use virt-make-fs

2025-03-06 Thread Tom Rini
The problem with using "virt-make-fs" to make a filesystem image is that it is extremely slow. Switch to using the fs_helper functions we have instead from the filesystem tests as these can add files to images and are significantly faster and still do not require root access. Signed-off-by: Tom Ri

Re: [PATCH 09/10] doc/develop/py_testing.rst: Update section on filesystem images

2025-03-06 Thread Heinrich Schuchardt
Am 7. März 2025 00:17:11 MEZ schrieb Tom Rini : >Now that we have no users of "virt-make-fs" nor users of "sudo" for >creating disk images update the documentation. We remove packages that >are no longer required (and related text) as well as be firm in our >wording around not using "sudo". > >Sign

Re: [PATCH] binman: Fill in most of the imx8mimage and imx8mcst tests

2025-03-06 Thread Marek Vasut
On 3/7/25 12:30 AM, Simon Glass wrote: Hi, One of the main goals of binman is to reduce the work needed to create a working image. If people have to go spelunking around the Internet, build it themselves, etc. that is not good. What you are asking me for is not the tool itself, but key materia

Re: [PATCH 01/11] net: miiphybb: Split off struct bb_miiphy_bus_ops

2025-03-06 Thread Marek Vasut
On 3/4/25 11:32 AM, Paul Barker wrote: On 03/03/2025 23:16, Marek Vasut wrote: On 3/3/25 8:29 PM, Paul Barker wrote: On 02/03/2025 01:24, Marek Vasut wrote: Move miiphybb operations into separate struct bb_miiphy_bus_ops structure, add pointer to struct bb_miiphy_bus_ops into the base struct b

[PATCH v7 8/8] MAINTAINERS: Update Starfive visionfive2 maintain files.

2025-03-06 Thread Minda Chen
Add USB related files to Starfive visionfive2 MAINTAINERS. Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- board/starfive/visionfive2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index d

Re: [PATCH] efi_loader: Install the ACPI table from the bloblist

2025-03-06 Thread Patrick Rudolph
Hi Simon, On Thu, Mar 6, 2025 at 5:11 PM Simon Glass wrote: > > Hi Heinrich, > > On Thu, 6 Mar 2025 at 08:16, Heinrich Schuchardt wrote: > > > > On 06.03.25 15:31, Simon Glass wrote: > > > When BLOBLIST_TABLES is used, the ACPI tables are not currently added to > > > the list of EFI tables. While

Re: [PATCH] binman: Fill in most of the imx8mimage and imx8mcst tests

2025-03-06 Thread Marek Vasut
On 3/7/25 3:18 AM, Simon Glass wrote: Hi, One of the main goals of binman is to reduce the work needed to create a working image. If people have to go spelunking around the Internet, build it themselves, etc. that is not good. What you are asking me for is not the tool itself, but key material

Re: [EXTERNAL] Re: [RFC PATCH 1/2 v1] arch: arm: Kconfig: Add config to use subnode's bootph property for binding drivers

2025-03-06 Thread Moteen Shah
On 26/02/25 02:57, Simon Glass wrote: Hi Moteen, On Thu, 13 Feb 2025 at 22: 05, Moteen Shah wrote: > > > On 13/02/25 19: 31, Simon Glass wrote: > > Hi Moteen, On Wed, 12 Feb 2025 at 02: 18, Moteen Shah > > ti. com> wrote: > ZjQcmQRYFpfptBannerStart This message was sent from outside of Texas

Re: [PATCH] binman: Fill in most of the imx8mimage and imx8mcst tests

2025-03-06 Thread Simon Glass
Hi Marek, On Thu, 6 Mar 2025 at 17:19, Marek Vasut wrote: > > On 3/7/25 12:30 AM, Simon Glass wrote: > > Hi, > > >>> One of the main goals of binman is to reduce the work needed to create > >>> a working image. If people have to go spelunking around the Internet, > >>> build it themselves, etc. t

Re: [PATCH] cmd: version: Get information about GCC and LD back

2025-03-06 Thread Michal Simek
On 3/6/25 15:02, Tom Rini wrote: On Thu, Mar 06, 2025 at 11:12:30AM +0100, Michal Simek wrote: U-Boot version command is no longer showing information about GCC and LD. The reason is that version.h has been removed that's why CC_VERSION_STRING and LD_VERSION_STRING are not pass. Values are ge

[PATCH 06/10] mach-k3: add eMMC FS boot support for am62[ap]

2025-03-06 Thread Anshul Dalal
This makes spl_mmc_boot_mode consistent across am62x, 62a and 62p. If MMCSD_MODE_EMMCBOOT is returned, FS boot fails since it checks for FS on the hardware partitions, not the UDA. So to allow FS boot from EMMC, the function should return MMCSD_MODE_FS instead which allows us to read from FS on th

[PATCH 09/10] config: add falcon boot config fragment for am62x

2025-03-06 Thread Anshul Dalal
This fragment enables falcon boot for the am62x, 62a and 62p. To have enough stack and heap space for loading kernel image as FIT, the memory map was modified as shown below, the PRELOADED_BL33_BASE in ATF has to also be updated to 0x8020 since the kernel requires to be loaded at 2MiB aligned

[PATCH 03/10] mach-k3: fix reading size and addr from fdt on R5

2025-03-06 Thread Anshul Dalal
fdtdec_get_addr_size uses architecture dependent datatypes which causes the 32-bit R5 to fail when reading the 64-bit size and addr fields of reg nodes from the fdt. This changes it to a common api for both 64 and 32 bit platforms. Now fdt fixups can be applied to the fdt from R5. Signed-off-by:

[PATCH 04/10] arm: dts: am62a: allow booting from eMMC

2025-03-06 Thread Anshul Dalal
The bootph-all property in u-boot enables driver initialization prior to relocation, this is necessary to use the device as boot media. sdhci0 is the phandle for eMMC on am62a, so this change allows us to use eMMC as a boot media. Signed-off-by: Anshul Dalal --- arch/arm/dts/k3-am62a7-sk-u-boot

[PATCH v4 34/47] x86: qemu: Use the new e820 API

2025-03-06 Thread Simon Glass
Move over to use this API before making the code even more complicated. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to use the new e820 API arch/x86/cpu/qemu/e820.c | 48 ++-- 1 file changed, 12 insertions(+), 36 dele

Re: [PATCH v3 1/8] dt-bindings: clock: rename at91.h to at91-pmc-status.h

2025-03-06 Thread Sumit Garg
On Thu, Mar 06, 2025 at 10:39:28AM +, manikanda...@microchip.com wrote: > Hi Sumit, > > On 06/03/25 12:30 pm, Sumit Garg wrote: > > [Some people who received this message don't often get email from > > sumit.g...@kernel.org. Learn why this is important at > > https://aka.ms/LearnAboutSenderI

Re: [PATCH 09/10] doc/develop/py_testing.rst: Update section on filesystem images

2025-03-06 Thread Tom Rini
On Fri, Mar 07, 2025 at 01:08:33AM +0100, Heinrich Schuchardt wrote: > Am 7. März 2025 00:17:11 MEZ schrieb Tom Rini : > >Now that we have no users of "virt-make-fs" nor users of "sudo" for > >creating disk images update the documentation. We remove packages that > >are no longer required (and rela

[PATCH] xilinx: Allow alternative boot strategies in zynq-common.h

2025-03-06 Thread Mike Looijmans
Allow config headers that include zynq-common.h to provide their own (distro) boot strategies. This is implemented by skipping the section when BOOT_ENV has already been defined. Signed-off-by: Mike Looijmans --- include/configs/zynq-common.h | 6 ++ 1 file changed, 6 insertions(+) diff --

[PATCH] net: miiphybb: Update documentation

2025-03-06 Thread Marek Vasut
Update the miiphybb documentation to match current implementation. The static struct bb_miiphy_bus bb_miiphy_buses[] array is removed. The example is updated to match current Renesas RAVB driver, which is one of the miiphybb users. Signed-off-by: Marek Vasut --- Cc: Jim Liu Cc: Joe Hershberger

Re: [PATCH 2/2] Makefile.lib: Set xPL build related defines for DTB build

2025-03-06 Thread Oliver Graute
On 06/03/25, Quentin Schulz wrote: > Hi Hendrik, > > On 3/5/25 7:35 PM, Hendrik Donner wrote: > > [You don't often get email from h...@os-cillation.de. Learn why this is > > important at https://aka.ms/LearnAboutSenderIdentification ] > > > > The CONFIG_*PL_BUILD defines are currently not define

[PATCH] cmd: version: Get information about GCC and LD back

2025-03-06 Thread Michal Simek
U-Boot version command is no longer showing information about GCC and LD. The reason is that version.h has been removed that's why CC_VERSION_STRING and LD_VERSION_STRING are not pass. Values are generated to generated/version_autogenerated.h which is sourced in version.h. Fixes: 54ecce2cbf90 ("ve

Re: [PATCH 5/5] riscv: select OF_HAS_PRIOR_STAGE by default if SBI is enabled

2025-03-06 Thread Leo Liang
On Thu, Feb 27, 2025 at 02:47:33PM +, Yao Zi wrote: > Availability of RISC-V SBI service implies a prior stage exists. As SBI > firmware usually passes a FDT to the loaded program, let's select > OF_HAS_PRIOR_STAGE if SBI is enabled. > > With previously added fallback version of board_fdt_blob

Re: [PATCH 3/5] pwm: stm32: add driver to support pwm with timer

2025-03-06 Thread Patrice CHOTARD
On 3/6/25 11:56, Cheick Traore wrote: > Add driver to support pwm on STM32MP1X SoCs. The PWM signal is generated > using a multifuntion timer which provide a pwm feature. Clock rate and > addresses are retrieved from the multifunction timer driver. > > Signed-off-by: Cheick Traore > --- > >

Re: [PATCH 5/5] ARM: dts: stm32: Add TIMERS inverted PWM channel 3 on STM32MP135F-DK

2025-03-06 Thread Patrice CHOTARD
On 3/6/25 11:56, Cheick Traore wrote: > The pwm source TIM1_CH3N channel (on PE12) in inverted polarity mode > will be used to manage the brightness of the panel backlight on > STM32MP135F-DK. > > Signed-off-by: Cheick Traore > --- > > arch/arm/dts/stm32mp13-pinctrl.dtsi | 15 +++

[PATCH 1/3] dm: core: add 'netif' field to struct udevice for NET_LWIP

2025-03-06 Thread Jerome Forissier
When NET_LWIP is enabled, the network stack operates on 'struct netif' pointers to represent network interfaces, while U-Boot natively uses struct udevice. Therefore there should be a 1:1 mapping between a (network) udevice and a netif. This association is only implemented in one way by netif::stat

Re: [GIT PULL] amd/xilinx patches for v2025.04-rc4

2025-03-06 Thread Tom Rini
On Wed, 05 Mar 2025 17:52:16 +0100, Michal Simek wrote: > please pull these fixes to your tree. Especially patches from Padmarao are > must > have. One is fixing issue around using BSS section before relocation and > second > is fix connected to switching to LWIP. 4k MTU size never really worked

Re: [PATCH] MAINTAINERS: .mailmap: Update Sumit Garg's email address

2025-03-06 Thread Tom Rini
On Thu, 27 Feb 2025 17:39:04 +0530, Sumit Garg wrote: > Update Sumit Garg's email address to @kernel.org. > > Applied to u-boot/master, thanks! [1/1] MAINTAINERS: .mailmap: Update Sumit Garg's email address commit: 19715a7f031a998f8641949fbbf29a2fd1a58f0f -- Tom

Re: [PATCH v4 00/12] Add imx8mp video support

2025-03-06 Thread Miquel Raynal
Hi Fabio, On 06/03/2025 at 09:38:29 -03, Fabio Estevam wrote: > On Wed, Mar 5, 2025 at 3:17 PM Tom Rini wrote: > >> The series is delayed until someone has a chance to look harder at >> what's causing the handoff test to now fail. > > Ok, I marked this series as "Changes Requested" in patchwork

Re: [PATCH v4 00/12] Add imx8mp video support

2025-03-06 Thread Fabio Estevam
Hi Miquel, On Thu, Mar 6, 2025 at 9:51 AM Miquel Raynal wrote: > Why not just waiting for someone to tackle this issue with the CI? The > handoff test is failing, there is nothing that can go through any tree > at the moment, no? It is not just blocking this series in particular, I > guess? Wit

[PATCH 3/3] net: lwip: remove net_lwip_remove_netif()

2025-03-06 Thread Jerome Forissier
net_lwip_remove_netif() is not used, remove it. Signed-off-by: Jerome Forissier --- include/net-lwip.h | 1 - net/lwip/net-lwip.c | 6 -- 2 files changed, 7 deletions(-) diff --git a/include/net-lwip.h b/include/net-lwip.h index 58ff2bb2d43..36df78d61db 100644 --- a/include/net-lwip.h +++

[PATCH 0/3] net: lwip: map struct udevice to struct netif

2025-03-06 Thread Jerome Forissier
This is a small NET_LWIP cleanup. Instead of re-creating a struct netif from a struct udevice every time a nework operation is requested (dhcp, ping, etc.), store the netif inside the udevice. No functional change is expected, but the behavior of the network stack might change a bit since not remo

[PATCH 2/2] net: lwip: add CONFIG_LWIP_DEBUG_RXTX

2025-03-06 Thread Jerome Forissier
Add Kconfig symbol LWIP_DEBUG_RXTX to dump the incoming and outgoing packets when NET_LWIP=y. Signed-off-by: Jerome Forissier --- net/lwip/Kconfig| 6 ++ net/lwip/net-lwip.c | 14 ++ 2 files changed, 20 insertions(+) diff --git a/net/lwip/Kconfig b/net/lwip/Kconfig index 40

[PATCH 1/2] net: lwip: rename linkoutput() as net_lwip_tx()

2025-03-06 Thread Jerome Forissier
Rename static function linkoutput() as net_lwip_tx() for consistency with net_lwip_rx(). Signed-off-by: Jerome Forissier --- net/lwip/net-lwip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c index cab1dd7d483..5a2a86686f4 100644

Re: [PATCH 2/4] riscv: reset: k1: Add reset driver

2025-03-06 Thread Huan Zhou
On Thu, Mar 06, 2025 at 12:45:14PM +0800, Leo Liang wrote: > Hi Huan, > > Please run scripts/checkpatch.pl against your patchset ok > and respin a v2 after all the warnings & errors are attended to. > > Thanks, > Leo > > On Tue, Mar 04, 2025 at 03:03:28PM +0800, Huan Zhou wrote: > > Add spacemi

RE: [resend v3 00/19] Add Cadence NAND Driver support

2025-03-06 Thread Maniyam, Dinesh
From: Michael Nazzareno Trimarchi Sent: Thursday, 6 March 2025 12:24 pm To: Maniyam, Dinesh Cc: U-Boot-Denx ; Marek ; Simon ; Tom Rini ; Dario Binacchi ; Johan Jonker ; Michal Simek ; Arseniy Krasnov ; Alexander Dahl ; William Zhang ; Igor Prusov ; Meng, Tingting ; Chee, Tien Fong ; Hea,

Re: [PATCH] efi_loader: Install the ACPI table from the bloblist

2025-03-06 Thread Heinrich Schuchardt
On 06.03.25 15:31, Simon Glass wrote: When BLOBLIST_TABLES is used, the ACPI tables are not currently added to the list of EFI tables. While we don't want to create a new memory EFI tables are added by InstallConfigurationTable(). It seems this patch is not about the list of EFI configuration

Re: [PATCH v2 4/4] board/BuR/zynq: initial commit

2025-03-06 Thread Bernhard Messerklinger
From: Michal Simek Sent: Thursday, March 6, 2025 11:35 AM >On 3/6/25 11:20, Bernhard Messerklinger wrote: >> From: Michal Simek >> Sent: Wednesday, February 26, 2025 11:23 AM >>> On 2/11/25 13:49, Bernhard Messerklinger wrote: This commit adds support for the brcp1, brsmarc2, brcp150 and br

Re: [PATCH v3 1/8] dt-bindings: clock: rename at91.h to at91-pmc-status.h

2025-03-06 Thread Manikandan.M
Hi Sumit, On 06/03/25 12:30 pm, Sumit Garg wrote: > [Some people who received this message don't often get email from > sumit.g...@kernel.org. Learn why this is important at > https://aka.ms/LearnAboutSenderIdentification ] > > EXTERNAL EMAIL: Do not click links or open attachments unless you k

Re: Halting auto-boot process in the U-Boot shell https://lore.kernel.org/u-boot/20220614060203.33600-1-heinrich.schucha...@canonical.com/

2025-03-06 Thread Simon Glass
Hi Michal, On Fri, 28 Feb 2025 at 07:42, Michal Simek wrote: > > Hi Simon, > > On 2/27/25 17:25, Simon Glass wrote: > > Hi Michal, > > > > On Wed, 26 Feb 2025 at 02:04, Michal Simek wrote: > >> > >> > >> > >> On 2/26/25 09:59, Heinrich Schuchardt wrote: > >>> On 2/26/25 09:28, Michal Simek wrote

Re: [PATCH v3 1/2] CI: Move default image under global defaults

2025-03-06 Thread Simon Glass
Hi Tom, On Wed, 5 Mar 2025 at 09:06, Tom Rini wrote: > > On Wed, Mar 05, 2025 at 07:18:40AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 4 Mar 2025 at 09:12, Tom Rini wrote: > > > > > > On Tue, Mar 04, 2025 at 08:35:56AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Thu,

Re: [PATCH] cmd: version: Get information about GCC and LD back

2025-03-06 Thread Tom Rini
On Thu, Mar 06, 2025 at 11:12:30AM +0100, Michal Simek wrote: > U-Boot version command is no longer showing information about GCC and LD. > The reason is that version.h has been removed that's why CC_VERSION_STRING > and LD_VERSION_STRING are not pass. > Values are generated to generated/version_au

[PATCH 3/5] pwm: stm32: add driver to support pwm with timer

2025-03-06 Thread Cheick Traore
Add driver to support pwm on STM32MP1X SoCs. The PWM signal is generated using a multifuntion timer which provide a pwm feature. Clock rate and addresses are retrieved from the multifunction timer driver. Signed-off-by: Cheick Traore --- drivers/pwm/Kconfig | 8 ++ drivers/pwm/Makefile

Re: [PATCH v4 00/12] Add imx8mp video support

2025-03-06 Thread Tom Rini
On Thu, Mar 06, 2025 at 10:00:11AM -0300, Fabio Estevam wrote: > Hi Miquel, > > On Thu, Mar 6, 2025 at 9:51 AM Miquel Raynal > wrote: > > > Why not just waiting for someone to tackle this issue with the CI? The > > handoff test is failing, there is nothing that can go through any tree > > at th

Re: [PATCH 1/5] dm: pwm: Check if duty_ns is lower than period_ns

2025-03-06 Thread Patrice CHOTARD
On 3/6/25 11:56, Cheick Traore wrote: > It was possible to provide a duty_ns greater than period_ns to > "pwm config" command. The framework must check the values before > providing them to drivers. > > Signed-off-by: Cheick Traore > --- > > drivers/pwm/pwm-uclass.c | 3 +++ > 1 file changed

Re: [PATCH RFC/RFT 0/3] omap24xx_i2c: Enable Repeated Start functionality

2025-03-06 Thread Aniket Limaye
Hello Tom, Heiko, On 06/03/25 11:15, Heiko Schocher wrote: Hello Tom, Aniket, On 05.03.25 16:50, Tom Rini wrote: On Wed, Mar 05, 2025 at 03:34:08AM +0530, Aniket Limaye wrote: This series implements Repeated Start functionality for the DM_I2C xfer API (omap_i2c_xfer()) First, split out the a

Re: [PATCH v2 28/28] test: Add a test for booting Ubuntu 24.04

2025-03-06 Thread Simon Glass
Hi Heiko, On Thu, 27 Feb 2025 at 22:26, Heiko Schocher wrote: > > Hi Simon, > > On 27.02.25 20:26, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 27 Feb 2025 at 10:20, Tom Rini wrote: > >> > >> On Thu, Feb 27, 2025 at 09:27:33AM -0700, Simon Glass wrote: > >>> Hi Tom, > >>> > >>> On Wed, 26 Feb

[GIT PULL] u-boot-riscv/master

2025-03-06 Thread Leo Liang
Hi Tom, The following changes since commit 409d37e869e91453d94319792e17d1d882259b49: led: Fix next Coverity scan error (2025-03-04 12:07:23 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-riscv.git for you to fetch changes up to 6e71966fa8a5e

Re: [PATCH 5/5] riscv: select OF_HAS_PRIOR_STAGE by default if SBI is enabled

2025-03-06 Thread Yao Zi
On Thu, Mar 06, 2025 at 07:09:06PM +0800, Leo Liang wrote: > On Thu, Feb 27, 2025 at 02:47:33PM +, Yao Zi wrote: > > Availability of RISC-V SBI service implies a prior stage exists. As SBI > > firmware usually passes a FDT to the loaded program, let's select > > OF_HAS_PRIOR_STAGE if SBI is ena

[PATCH 2/5] mach-stm32: add multifunction timer driver support

2025-03-06 Thread Cheick Traore
Add support for STM32MP timer multi-function driver. These timers can be use as counter, trigger or pwm generator. This driver will be used to manage the main resources of the timer to provide them to the functionnalities which need these ones. Signed-off-by: Cheick Traore --- arch/arm/mach-stm

[PATCH 4/5] configs: stm32mp13: Enable MFD timer and PWM for stm32mp13_defconfig

2025-03-06 Thread Cheick Traore
Enable the following configs: * CONFIG_MFD_STM32_TIMERS: enables support for the STM32 multifunction timer * CONFIG_DM_PWM: enables support for pulse-width modulation devices * CONFIG_CMD_PWM: enables 'pwm' command to control PWM channels * CONFIG_PWM_STM32: enables supp

[PATCH 0/5] Add support for STM32 TIMERS and STM32 PWM

2025-03-06 Thread Cheick Traore
This serie adds: * drivers for MFD STM32 TIMERS and STM32 PWM, the driver split is inspired by kernel model * enable these drivers on stm32mp13 for PWM backlight available on stm32mp135f-dk * a check of duty_ns and period_ns parameters in PWM framework Cheick Traore (5): dm: pwm: Check if

Re: [PATCH RFC/RFT 1/3] i2c: omap24xx_i2c: Use new function __omap24_i2c_xfer_msg()

2025-03-06 Thread Aniket Limaye
Hello Heiko, On 06/03/25 11:21, Heiko Schocher wrote: Hello Aniket, On 04.03.25 23:04, Aniket Limaye wrote: Remove __omap24_i2c_read/write() usage from omap_i2c_xfer() in favour of the more flexible __omap24_i2c_xfer_msg(). Consequently, these are also no longer needed when DM_I2C is enabled.

Re: [PATCH 2/5] mach-stm32: add multifunction timer driver support

2025-03-06 Thread Fabrice Gasnier
On 3/6/25 11:56, Cheick Traore wrote: > Add support for STM32MP timer multi-function driver. > These timers can be use as counter, trigger or pwm generator. > This driver will be used to manage the main resources of the timer to > provide them to the functionnalities which need these ones. > > Sig

Re: [PATCH 05/12] arm: Support running U-Boot as a coreboot payload on ARM64

2025-03-06 Thread Simon Glass
Hi Stephen, On Fri, 21 Feb 2025 at 18:04, Tom Rini wrote: > > On Fri, Feb 21, 2025 at 05:03:52PM -0800, Stephen Boyd wrote: > > Quoting Tom Rini (2025-02-20 17:07:11) > > > On Thu, Feb 20, 2025 at 12:58:47PM -0800, Stephen Boyd wrote: > > > > > > > Add a 'coreboot' cpu to armv8 that looks for the

Re: [PATCH 3/5] pwm: stm32: add driver to support pwm with timer

2025-03-06 Thread Fabrice Gasnier
On 3/6/25 11:56, Cheick Traore wrote: > Add driver to support pwm on STM32MP1X SoCs. The PWM signal is generated > using a multifuntion timer which provide a pwm feature. Clock rate and > addresses are retrieved from the multifunction timer driver. > > Signed-off-by: Cheick Traore > --- > > dri

Re: [PATCH 00/17] Various toolchain compatibility fixes/improvements

2025-03-06 Thread Tom Rini
On Wed, Mar 05, 2025 at 07:46:56PM -0800, Sam Edwards wrote: > On Sun, Feb 23, 2025 at 9:55 PM Sam Edwards wrote: > > > > Long time no see, U-Boot folks! > > > > This patchset consists of various bug fixes and correctness improvements > > that > > I discovered while attempting to add first-class

Re: [PATCH 2/5] mach-stm32: add multifunction timer driver support

2025-03-06 Thread Patrice CHOTARD
On 3/6/25 11:56, Cheick Traore wrote: > Add support for STM32MP timer multi-function driver. > These timers can be use as counter, trigger or pwm generator. > This driver will be used to manage the main resources of the timer to > provide them to the functionnalities which need these ones. > >

Re: [PATCH 05/10] serial: mxc: Support bulk enabling clocks

2025-03-06 Thread Fabio Estevam
On Sun, Mar 2, 2025 at 1:53 PM Adam Ford wrote: > @@ -312,7 +313,17 @@ int mxc_serial_setbrg(struct udevice *dev, int baudrate) > static int mxc_serial_probe(struct udevice *dev) > { > struct mxc_serial_plat *plat = dev_get_plat(dev); > + int ret; > > +#if CONFIG_IS_ENABLED(CLK_CC

Re: [PATCH 01/10] clk: imx6q: Properly handle imx6qp ESPI clk_sels

2025-03-06 Thread Fabio Estevam
On Sun, Mar 2, 2025 at 1:53 PM Adam Ford wrote: > > The ECSPI clock has the ability to select between pll3_60m and > osc on the imx6qp, where it's fixed on other variants. Fix this > by adding using a helper function to determine SoC variant and > register the clock accordingly. s/ESPI/ECSPI in

Re: [PATCH] fs/squashfs: Fix memory leak in sqfs_size_nest()

2025-03-06 Thread Tom Rini
On Sun, 02 Mar 2025 19:29:31 +0100, Andrea della Porta wrote: > In case MAX_SYMLINK_NEST is reached while determining the size > on a symlink node, the function returns immediately. > This would not free the resources after the free_strings: label > causing a memory leak. > > Set the ret value an

[PATCH v4 00/47] x86: Improve operation under QEMU

2025-03-06 Thread Simon Glass
U-Boot can start and boot an OS in both qemu-x86 and qemu-x86_64 but it is not perfect. With both builds, executing the VESA ROM causes an intermittent hang, at least on some AMD CPUs. With qemu-x86_64 kvm cannot be used since the move to long mode (64-bit) is done in a way that works on real har

[PATCH] checkpatch.pl: Report an error for CONFIG_xPL_BUILD in device trees

2025-03-06 Thread Hendrik Donner
The defines for the different build phases shouldn't be used in device trees, currently they aren't even defined for device tree pre processing, resulting in build errors. Link: https://lists.denx.de/pipermail/u-boot/2025-March/582787.html Signed-off-by: Hendrik Donner --- scripts/checkpatch.pl

[PATCH v4 17/47] x86: Disable paging before changing to long mode

2025-03-06 Thread Simon Glass
This is required as part of the procedure. The existing code works because it changes the GDT at the same time, but this makes kvm unhappy. Update the algorithm to disable and then re-enable paging. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/i386/call64.S | 8 +++-

[PATCH v4 25/47] x86: Correct msr operation on amd64

2025-03-06 Thread Simon Glass
The CONFIG option is no-longer correct since we can have SPL and PPL with different bitness. Fix this and sync up with Linux 6.13 in this area, since this is where the code came from many years ago. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to correct

[PATCH v4 22/47] x86: Add functions to convert between mtrr size and mask

2025-03-06 Thread Simon Glass
Rather than repeating the same code in several places, add some functions which can do the conversion. Use the cpu_phys_address_size() function to obtain the physical-address size, since it is more reliable with kvm, where the host CPU may have a different value from the emulation CPU. Signed-off

[PATCH v4 26/47] x86: Allow adding non-aligned size for MTRR

2025-03-06 Thread Simon Glass
At present mtrr_add_request() requires that the size is a power of two. This is too limiting for machines with 4GB (or more) of RAM, since they often must take account of a memory hole at 3GB. Update the function to automatically deal with an unaligned size, using more MTRRs as required. The algo

[PATCH v4 23/47] x86: Update mtrr command to support 64-bit values

2025-03-06 Thread Simon Glass
The MTRR registers have 64-bit values. Update the command to use 64-bit values so that memory larger than 4GB can be handled. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to update mtrr command to support 64-bit values cmd/x86/mtrr.c | 6 +++--- 1 file c

Re: [PATCH v3 1/2] CI: Move default image under global defaults

2025-03-06 Thread Simon Glass
Hi Tom, On Thu, 6 Mar 2025 at 07:37, Tom Rini wrote: > > On Thu, Mar 06, 2025 at 06:59:08AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 5 Mar 2025 at 09:06, Tom Rini wrote: > > > > > > On Wed, Mar 05, 2025 at 07:18:40AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue,

Re: [PATCH v2 28/28] test: Add a test for booting Ubuntu 24.04

2025-03-06 Thread Simon Glass
Hi Tom, On Thu, 6 Mar 2025 at 07:32, Tom Rini wrote: > > On Thu, Mar 06, 2025 at 07:16:08AM -0700, Simon Glass wrote: > > Hi Heiko, > > > > On Thu, 27 Feb 2025 at 22:26, Heiko Schocher wrote: > > > > > > Hi Simon, > > > > > > On 27.02.25 20:26, Simon Glass wrote: > > > > Hi Tom, > > > > > > > >

Re: [PATCH RFC] doc: Include pytests directly in documentation

2025-03-06 Thread Heinrich Schuchardt
On 25.02.25 21:50, Tom Rini wrote: As there is support within the Sphinx framework to take Python docstrings and generate documentation from it, we can make use of that to more clearly and consistently document our pytests and how to configure them. To do this we: - Add PYTHONPATH to DOC_TARGETS

[PATCH v4 03/47] x86: Expand x86_64 early memory

2025-03-06 Thread Simon Glass
The SPL and pre-reloc malloc()-space is not large enough to start up with a display. Expand it. Switch the order of SPL_SYS_MALLOC_F_LEN and SPL_TEXT_BASE since this matches what 'savedefconfig' gives us. Signed-off-by: Simon Glass --- (no changes since v1) configs/qemu-x86_64_defconfig | 4 +

[PATCH v4 05/47] x86: qemu: Enable dhrystone

2025-03-06 Thread Simon Glass
Provide the 'dhry' command, which helps to check that kvm is being used properly with QEMU. Signed-off-by: Simon Glass --- (no changes since v1) configs/qemu-x86_64_defconfig | 1 + configs/qemu-x86_defconfig| 1 + 2 files changed, 2 insertions(+) diff --git a/configs/qemu-x86_64_defconfi

[PATCH v4 02/47] sandbox: Correct a typo in mapmem

2025-03-06 Thread Simon Glass
This should say 'cast', not 'case', so fix it. Signed-off-by: Simon Glass --- (no changes since v1) include/mapmem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapmem.h b/include/mapmem.h index f496c96d16c..8ec03d59f0b 100644 --- a/include/mapmem.h +++ b/includ

[PATCH v4 01/47] boot: Correct ramdisk address

2025-03-06 Thread Simon Glass
We must use the ramdisk address for the initrd_addr field, not the kernel address. Fix this. Signed-off-by: Simon Glass Fixes: e05cda3004f ("boot: pxe: Refactor label_run_boot() to avoid") --- (no changes since v1) boot/pxe_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v4 27/47] x86: emulation: Set an MTRR for the RAM

2025-03-06 Thread Simon Glass
QEMU likes to have an MTRR set up, just like real machines. Add an MTRR which covers the total RAM size. This does nothing on machines without MTRRs. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Support memory sizes above 3GB properly Changes in v2: - Add new patch to

[PATCH v4 31/47] test/py: Allow tests to be filtered by role

2025-03-06 Thread Simon Glass
Some test can only be run by a particular board in a lab, e.g. because they are loaded with an OS image used by the test. Add a way to specify this in tests. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch to allow tests to be filtered by role test/py/conft

[PATCH v4 28/47] x86: qemu: Support environment and cat command

2025-03-06 Thread Simon Glass
Add support for an environment stored in the first partition of the disk, which is assumed to hold a FAT filesystem. Support the 'cat' command as it is useful for looking at extlinux.conf files. Signed-off-by: Simon Glass --- (no changes since v1) configs/qemu-x86_64_defconfig | 6 -- con

[PATCH v4 29/47] test/py: Correct sizing of created disks

2025-03-06 Thread Simon Glass
At present the disks end up being 1MB shorter than they should be, since dd truncates by default. Move the code into a function and update it to avoid truncation. This resolves various warnings when running sandbox tests, of the form: mmc_bread() MMC: block number 0x9801 exceeds max(0x9800)

Re: Rate of innovation in the project (Was: Re: Rate of change in the project)

2025-03-06 Thread Simon Glass
Hi Tom, On Wed, 5 Mar 2025 at 09:22, Tom Rini wrote: > > On Wed, Mar 05, 2025 at 07:19:25AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 4 Mar 2025 at 08:29, Tom Rini wrote: > > > > > > On Tue, Mar 04, 2025 at 06:13:36AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > (I chang

[PATCH v4 45/47] acpi: Support checking checksums

2025-03-06 Thread Simon Glass
When the ACPI tables come from an earlier bootloader it is helpful to see whether the checksums are correct or not. Add a -c flag to the 'acpi list' command to support that. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to support checking checksums with AC

Re: [PATCH 0/8] membuff: Add tests and update to support a flag for empty/full

2025-03-06 Thread Simon Glass
Hi Rasmus, On Thu, 6 Mar 2025 at 07:21, Rasmus Villemoes wrote: > > On Wed, Mar 05 2025, Simon Glass wrote: > > > Hi Rasmus, > > > > On Tue, 4 Mar 2025 at 11:55, Rasmus Villemoes wrote: > >> > >> On Tue, Mar 04 2025, Simon Glass wrote: > >> > >> > Hi Rasmus, > >> > > >> > On Fri, 18 Oct 2024 a

[PATCH v4 46/47] RFC: test/py: Deal with timeouts

2025-03-06 Thread Simon Glass
The distro test takes a little longer to shut down and restart, so add more time to this operation. Disable the sleep command for now, as it seems to be unreliable on QEMU with '-cpu host'. More thought will be needed for both of these problems. Signed-off-by: Simon Glass --- (no changes since

[PATCH v4 47/47] test: Add a test for booting Ubuntu 24.04

2025-03-06 Thread Simon Glass
Now that U-Boot can boot this quickly, using kvm, add a test that the installer starts up correctly. Use the qemu-x86_64 board in the SJG lab. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Significantly expanded to correct e820 and other issues Changes in v2: - Add mor

Re: [PATCH v2 0/4] USB-PD TCPM improvements

2025-03-06 Thread Anand Moon
Hi Sebastian, On Tue, 4 Mar 2025 at 20:20, Anand Moon wrote: > > Hi Sebastian, > > On Tue, 4 Mar 2025 at 18:12, Sebastian Reichel > wrote: > > > > Hi, > > > > On Tue, Mar 04, 2025 at 10:35:03AM +0530, Anand Moon wrote: > > > However, I have a question regarding the Type-C controller's > > > conn

[PATCH v4 20/47] x86: Rename the _D dirty flag

2025-03-06 Thread Simon Glass
This value happens to be used by ctype.h so chose a different name. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch to rename the _D dirty flag arch/x86/cpu/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/cpu/i386

  1   2   >