Re: [PATCH] phy: meson-g12a-usb2: fix ret check on power_domain_get

2023-10-17 Thread Mattijs Korpershoek
On mar., oct. 17, 2023 at 20:57, "Guillaume La Roque" wrote: > Patch which add A1 SoC support create a regression on khadas vim3/vim3l > boards when we try to use fastboot command: > > => fastboot usb 0 > failed to get power domain > failed to get power domain > No USB device found > U

RE: [PATCH] timer: starfive: Add Starfive timer support

2023-10-17 Thread KuanLim . Lee
On Tues, 10 Oct 2023 at 21:45, Simon Glass wrote: > On Wed, 4 Oct 2023 at 03:49, KuanLim.Lee > > wrote: > > > > Hi Simon, > > On Wed, 4 Oct 2023 at 10:11, Simon Glass wrote: > > > On Tue, 19 Sept 2023 at 06:08, Kuan Lim Lee > > > > > > wrote: > > > > > > > > Add timer driver in Starfive SoC.

RE: [PATCH] spl: mmc: Resolve emmc not load image after switched hw partition

2023-10-17 Thread KuanLim . Lee
On 10/18/23 13:27, Sean Anderson wrote: > On 10/3/23 00:16, Kuan Lim Lee wrote: > > When selecting MMCSD_MODE_EMMCBOOT as boot_mode, emmc do not > load > > U-boot proper image after switched hardware partition. > > > > Signed-off-by: Kuan Lim Lee > > Reviewed-by: Chee Hong Ang > > Reviewed-by: We

Re: [PATCH] spl: mmc: Resolve emmc not load image after switched hw partition

2023-10-17 Thread Sean Anderson
On 10/3/23 00:16, Kuan Lim Lee wrote: When selecting MMCSD_MODE_EMMCBOOT as boot_mode, emmc do not load U-boot proper image after switched hardware partition. Signed-off-by: Kuan Lim Lee Reviewed-by: Chee Hong Ang Reviewed-by: Wei Liang Lim --- common/spl/spl_mmc.c | 3 +++ 1 file changed,

Re: [PATCH v3 1/2] binman: openssl: x509: ti_secure_rom: Add support for bootcore_opts

2023-10-17 Thread Neha Malcom Francis
Hi Simon On 18/10/23 09:03, Simon Glass wrote: Hi Neha, On Tue, 17 Oct 2023 at 03:58, Neha Malcom Francis wrote: Hi Simon On 08/10/23 04:39, Simon Glass wrote: Hi Neha, On Fri, 6 Oct 2023 at 04:07, Neha Malcom Francis wrote: According to the TRMs of K3 platform of devices, the ROM boot

Re: [PATCH 2/2] bootcount: Add driver model I2C driver

2023-10-17 Thread Heiko Schocher
Hello Simon, On 18.10.23 05:33, Simon Glass wrote: > Hi Philip, > > On Tue, 17 Oct 2023 at 06:57, Philip Oberfichtner wrote: >> >> Hi Simon, >> >> maybe you can give me a hint on how to implement this cleanly in driver >> model? >> >> To sum it up, I'd like to have a phandle pointing to *any* I2

Re: [PATCH v1] usb: xhci: Check return value of wait for TRB_TRANSFER event

2023-10-17 Thread Minda Chen
On 2023/10/18 10:35, Marek Vasut wrote: > On 10/18/23 03:22, Minda Chen wrote: >> >> >> On 2023/10/17 19:20, Marek Vasut wrote: >>> On 10/17/23 08:20, Minda Chen wrote: xhci_wait_for_event() waiting TRB_TRANSFER event may return NULL. Checking the return value to avoid crash.

[PATCH] mtd: spi-nor-ids: add support for xtx XT55Q02G

2023-10-17 Thread Bruce Suen
Add support for XTX XT55Q02G(1.8V,2Gbit). Signed-off-by: Bruce Suen --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 4587215984..9aab913356 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/

Re: [PATCH 3/5] smbios: Use SMBIOS 3.0 to support an address above 4GB

2023-10-17 Thread Simon Glass
Hi Caleb, On Tue, 17 Oct 2023 at 11:59, Caleb Connolly wrote: > > Hi Both, > > [...] > >>> > >>> @@ -513,13 +517,23 @@ ulong write_smbios_table(ulong addr) > >>>*/ > >>> table_addr = (ulong)map_sysmem(tables, 0); > >>> if (sizeof(table_addr) > sizeof(u32) && table_addr > > >>

Re: [PATCH] cros_ec: spi: disable annoying key echo on console

2023-10-17 Thread Simon Glass
On Tue, 17 Oct 2023 at 13:25, Milan P. Stanić wrote: > > on Peach-pi console every key press is echoed with message > 'cros_ec_command: Returned status 1' > > this is not proper fix, just hack to disable this message > --- > drivers/misc/cros_ec_spi.c | 1 - > 1 file changed, 1 deletion(-) Revie

Re: [PATCH v3 1/2] binman: openssl: x509: ti_secure_rom: Add support for bootcore_opts

2023-10-17 Thread Simon Glass
Hi Neha, On Tue, 17 Oct 2023 at 03:58, Neha Malcom Francis wrote: > > Hi Simon > > On 08/10/23 04:39, Simon Glass wrote: > > Hi Neha, > > > > On Fri, 6 Oct 2023 at 04:07, Neha Malcom Francis wrote: > >> > >> According to the TRMs of K3 platform of devices, the ROM boot image > >> format specifie

Re: [PATCH v2 1/1] efi_loader: expose the device-tree file name

2023-10-17 Thread Simon Glass
Hi Heinrich, On Tue, 17 Oct 2023 at 07:50, Heinrich Schuchardt wrote: > > Forward and backward compatibility of Linux kernel device-trees is > sometimes missing. One solution approach is to load a kernel specific > device-tree. This can either be done via a U-Boot scripts (like the one > generate

Re: [RESEND PATCH v1 1/2] spi: add support for Amlogic A1 SPI Flash Controller

2023-10-17 Thread Simon Glass
Hi Igor, On Tue, 17 Oct 2023 at 11:18, Igor Prusov wrote: > > From: Igor Prusov > > Add A1 SPIFC driver from Linux. Slightly modified to use u-boot driver > framework and accommodate to lack of ioread32_rep/iowrite32_rep. Well, you could bring them in! > > Based on Linux version 6.6-rc4 > > Si

Re: [PATCH 2/2] bootcount: Add driver model I2C driver

2023-10-17 Thread Simon Glass
Hi Philip, On Tue, 17 Oct 2023 at 06:57, Philip Oberfichtner wrote: > > Hi Simon, > > maybe you can give me a hint on how to implement this cleanly in driver > model? > > To sum it up, I'd like to have a phandle pointing to *any* I2C device, > not knowing which UCLASS actually fits. Then the devi

Re: [PATCH] bootm: Fix flags used for bootargs string substitution

2023-10-17 Thread Simon Glass
Hi Piotr, On Tue, 17 Oct 2023 at 10:35, Tom Rini wrote: > > On Tue, Oct 17, 2023 at 12:53:05PM +0200, Piotr Kubik wrote: > > > Commit <51bb33846ad2> introduced a feature of bootargs > > Checkpatch will complain that this should be: > In commit 51bb33846ad2 ("bootm: Support string substitution in

Re: [PATCH v3 21/32] efi: Rearrange the Kconfig for CMD_BOOTEFI_BOOTMGR

2023-10-17 Thread Simon Glass
Hi Tom, On Tue, Oct 17, 2023, 07:13 Tom Rini wrote: > > On Mon, Oct 16, 2023 at 04:28:12PM -0600, Simon Glass wrote: > > The command should not be used to enable library functionality. Add a > > new BOOTEFI_BOOTMGR Kconfig for that. Adjust the conditions so that the > > same code is built. > > >

Re: [PATCH v3 22/32] efi: Update EFI_LOADER to depend on DM_ETH

2023-10-17 Thread Simon Glass
Hi, On Tue, 17 Oct 2023 at 08:09, Tom Rini wrote: > > On Mon, Oct 16, 2023 at 04:28:13PM -0600, Simon Glass wrote: > > > Since efi_device_path.c calls eth_get_dev() and assumes that Ethernet is > > available, add it as an explicit dependency. > > > > Signed-off-by: Simon Glass > > --- > > > > (n

Re: [PATCH v3 19/32] video: Dont require the font command

2023-10-17 Thread Simon Glass
Hi Tom, On Tue, 17 Oct 2023 at 08:07, Tom Rini wrote: > > On Mon, Oct 16, 2023 at 04:28:10PM -0600, Simon Glass wrote: > > While it is nice to have the font command, using 'select' makes it > > impossible to build the console code without it. Change this to use > > 'imply' instead. > > > > Signed

Re: [PATCH v3 18/32] video: Allow use without CONFIG_CMDLINE

2023-10-17 Thread Simon Glass
Hi Tom, On Tue, 17 Oct 2023 at 08:07, Tom Rini wrote: > > On Mon, Oct 16, 2023 at 04:28:09PM -0600, Simon Glass wrote: > > > Provide a fallback for when CONFIG_SYS_CBSIZE is not provided, so that > > the console can still be used. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes si

Re: [PATCH v3 16/32] net: Depend on CONFIG_CMDLINE

2023-10-17 Thread Simon Glass
Hi Tom, On Tue, 17 Oct 2023 at 08:04, Tom Rini wrote: > > On Mon, Oct 16, 2023 at 04:28:07PM -0600, Simon Glass wrote: > > > At present it isn't possible to use networking without the command line > > enabled. Add this as a condition. > > > > Signed-off-by: Simon Glass > > Reviewed-by: Ramon Fri

Re: [PATCH v4 4/8] rockchip: block: blk-uclass: disable bounce buffer support for rkmtd

2023-10-17 Thread Simon Glass
Hi Johan, On Tue, 17 Oct 2023 at 06:44, Johan Jonker wrote: > > > > On 10/16/23 23:54, Simon Glass wrote: > > Hi Johan, > > > > On Sun, 15 Oct 2023 at 16:33, Johan Jonker wrote: > >> > >> Disable bounce buffer support for rkmtd. > >> > >> Signed-off-by: Johan Jonker > >> Reviewed-by: Kever Yang

Re: [PATCH v3 14/32] bootm: Allow building when cleanup functions are missing

2023-10-17 Thread Simon Glass
Hi Tom, On Tue, 17 Oct 2023 at 08:02, Tom Rini wrote: > > On Mon, Oct 16, 2023 at 04:28:05PM -0600, Simon Glass wrote: > > > There are two cleanup functions needed during boot which depend on > > CMD_BOOTM: bootm_disable_interrupts() and board_quiesce_devices() > > > > Provide static inline versi

Re: [PATCH v3 12/32] env: Split out non-command code into a new file

2023-10-17 Thread Simon Glass
Hi Tom, On Tue, 17 Oct 2023 at 07:40, Tom Rini wrote: > > On Mon, Oct 16, 2023 at 04:28:03PM -0600, Simon Glass wrote: > > > It is not possible to set environment variables without having > > CONFIG_CMD_NVEDIT enabled. When CONFIG_CMDLINE is disabled, we need a > > way to set variables. > > > > S

Re: [PATCH v3 04/32] cmd: Add a few more dependencies on CMDLINE

2023-10-17 Thread Simon Glass
Hi Tom, On Tue, 17 Oct 2023 at 07:32, Tom Rini wrote: > > On Mon, Oct 16, 2023 at 04:27:55PM -0600, Simon Glass wrote: > > > Add this to some more commands to avoid build errors with sandbox. > > > > Note that this is a temporary solution to expose more problems. A later > > patch puts these behi

Re: [PATCH v3 02/32] bootstd: Correct dependencies on CMDLINE

2023-10-17 Thread Simon Glass
Hi Tom, On Tue, 17 Oct 2023 at 07:32, Tom Rini wrote: > > On Mon, Oct 16, 2023 at 04:27:53PM -0600, Simon Glass wrote: > > > With recent changes over the last few years in boot/Kconfig it is > > no-longer possible to disable CMDLINE. It results in various link > > errors because some options whic

Re: [PATCH] doc: build: update description of build dependencies for Alpine Linux

2023-10-17 Thread Simon Glass
On Tue, 17 Oct 2023 at 13:47, Milan P. Stanić wrote: > > --- > doc/build/gcc.rst | 24 ++-- > 1 file changed, 22 insertions(+), 2 deletions(-) > Reviewed-by: Simon Glass

Re: [PATCH 1/1] config: qemu: relax print and console buffer size

2023-10-17 Thread Simon Glass
On Mon, 16 Oct 2023 at 15:55, Heinrich Schuchardt wrote: > > QEMU print and console buffer sizes have been restricted on QEMU below > their default values. > > One of the side effects of the print buffer size restriction is output > truncation of the 'efidebug dh' command. > > As QEMU does not hav

Re: [PATCH v1] usb: xhci: Check return value of wait for TRB_TRANSFER event

2023-10-17 Thread Marek Vasut
On 10/18/23 03:22, Minda Chen wrote: On 2023/10/17 19:20, Marek Vasut wrote: On 10/17/23 08:20, Minda Chen wrote: xhci_wait_for_event() waiting TRB_TRANSFER event may return NULL. Checking the return value to avoid crash. Signed-off-by: Minda Chen How did you trigger this error ? Is there

[PATCH v3] wdt: nuvoton: Fix reset/expire function error

2023-10-17 Thread Jim Liu
Fix npcm845 watchdog halt for reset function and expire function. Reset function is restart wdt. Signed-off-by: Jim Liu Changes for v3: - Modify start sentences - Remove empty line Changes for v2: - Add commit message - Fix no empty line problem - Remove dts --- drivers/watchdog/

Re: [PATCH 3/5] smbios: Use SMBIOS 3.0 to support an address above 4GB

2023-10-17 Thread Caleb Connolly
Hi Both, [...] >>> >>> @@ -513,13 +517,23 @@ ulong write_smbios_table(ulong addr) >>>*/ >>> table_addr = (ulong)map_sysmem(tables, 0); >>> if (sizeof(table_addr) > sizeof(u32) && table_addr > (ulong)UINT_MAX) >>> { >> >> You have to check the end address of the table not the s

[PATCH v2 2/2] board: rockchip: add Pine64 QuartzPro64 RK3588 board

2023-10-17 Thread Tom Fitzhenry
QuartzPro64 is a Rockchip RK3588 based SBC by Pine64. UART and boot over SD/eMMC/RJ45 are tested to work. Linux commits from next-20231013: 8152d3d070a9 ("arm64: dts: rockchip: Add QuartzPro64 SBC device tree") Signed-off-by: Tom Fitzhenry Cc: Eugen Hristev Cc: Jonas Karlman Cc: Ondrej Jirman

[PATCH v2 1/2] dt-bindings: leds: import common led bindings from linux v6.5

2023-10-17 Thread Tom Fitzhenry
This brings in more colours, e.g. ORANGE needed for the QuartzPro64 DT. Linux commits: 472d7b9e8141 ("dt-bindings: leds: Expand LED_COLOR_ID definitions") Signed-off-by: Tom Fitzhenry --- include/dt-bindings/leds/common.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a

PXE booting Flatcar OS on NXP ARMv8 SoCs with Chassis generation 3.2 LX2160A: fsl-mc: DPL not deployed, DPAA2 ethernet not work

2023-10-17 Thread Adrian Vladu
Hello, While trying to PXE boot Flatcar OS on NXP ARMv8 SoCs with Chassis generation 3.2 LX2160A (https://github.com/u-boot/u-boot/blob/master/arch/arm/cpu/armv8/fsl-layerscape/doc/README.lsch3_2), there is an issue with the DPAA2, error logs seen: >> Moving Image from 0x8110 to 0x8120,

Re: [PATCH v1] usb: xhci: Check return value of wait for TRB_TRANSFER event

2023-10-17 Thread Minda Chen
On 2023/10/17 19:20, Marek Vasut wrote: > On 10/17/23 08:20, Minda Chen wrote: >> xhci_wait_for_event() waiting TRB_TRANSFER event may return >> NULL. Checking the return value to avoid crash. >> >> Signed-off-by: Minda Chen > > How did you trigger this error ? Is there a reproducer ? Details

Re: [PATCH v7 5/9] efi_loader: support boot from URI device path

2023-10-17 Thread Heinrich Schuchardt
On 16.10.23 08:45, Masahisa Kojima wrote: This supports to boot from the URI device path. When user selects the URI device path, bootmgr downloads the file using wget into the address specified by loadaddr env variable. If the file is .iso or .img file, mount the image with blkmap then try to boo

Re: [PATCH 1/1] efi_loader: expose the device-tree file name

2023-10-17 Thread Heinrich Schuchardt
On 17.10.23 17:17, Mark Kettenis wrote: From: Heinrich Schuchardt Date: Tue, 17 Oct 2023 10:55:07 +0200 Forward and backward compatibility of Linux kernel device-trees is sometimes missing. One solution approach is to load a kernel specific device-tree. This can either be done via a U-Boot scri

[PATCH 1/3] mtd: spi-nor: Add support for XMC XM25QU128C

2023-10-17 Thread Jonas Karlman
From: Ricardo Pardini Add support for XMC XM25QU128C (128M-bit) Serial Flash memory. Used on the Xunlong Orange Pi 3B, 5 and 5 Plus boards. Datasheet: https://www.xmcwh.com/uploads/806/XM25QU128C_Ver2.0.pdf Signed-off-by: Ricardo Pardini [jo...@kwiboo.se: update commit message] Signed-off-by:

[PATCH 3/3] board: rockchip: Add Xunlong Orange Pi 5 Plus

2023-10-17 Thread Jonas Karlman
Xunlong Orange Pi 5 Plus is a single-board computer based on the Rockchip RK3588 SoC. The board provides abundant interfaces, including two HDMI output ports, one HDMI input port, two 2.5G Ethernet ports, M.2 M-Key slot, M.2 E-Key slot, two USB 3.0, two USB 2.0, and two Type-C. Features tested on

[PATCH 2/3] board: rockchip: Add Xunlong Orange Pi 5

2023-10-17 Thread Jonas Karlman
Xunlong Orange Pi 5 is a single-board computer based on the Rockchip RK3588S SoC. The board provides abundant interfaces, HDMI output, GPIO interface, M.2 PCIe2.0, Type-C, Gigabit LAN port, 2*USB2.0, 1*USB3.0, etc. Features tested on a Orange Pi 5 4GB v1.2: - SD-card boot - SPI Flash boot - PCIe/N

[PATCH 0/3] rockchip: Add Xunlong Orange Pi 5 and 5 Plus boards

2023-10-17 Thread Jonas Karlman
This series add support for Xunlong Orange Pi 5 and 5 Plus boards. First patch add support for the SPI NOR Flash used on the two boards. Second patch add support for the Xunlong Orange Pi 5 RK3588S board. Third patch add support for the Xunlong Orange Pi 5 Plus RK3588 board. This series depends o

[PATCH v1 2/2] arm: meson-a1: dts: Sync DT with Linux

2023-10-17 Thread Igor Prusov
Import device tree changes from Linux v6.6-rc6 for Amlogic A1 board. Signed-off-by: Igor Prusov --- arch/arm/dts/meson-a1.dtsi | 356 - 1 file changed, 351 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/meson-a1.dtsi b/arch/arm/dts/meson-a1.dtsi inde

[PATCH v1 1/2] serial: amlogic: Add UART compatible for A1 board

2023-10-17 Thread Igor Prusov
Add additional compatible to allow using serial driver with A1 board. After compatible change in DTS [1], serial_meson driver should still be able to work with console device. [1] https://lore.kernel.org/all/20230705181833.16137-8-ddroko...@sberdevices.ru/ Signed-off-by: Igor Prusov --- drivers

[PATCH v1 0/2] arm: dts: meson-a1 Sync DT with Linux

2023-10-17 Thread Igor Prusov
This series syncs Device Tree for Amlogic A1 with Linux. Currently DTS in Linix has different compatible string for serial devices, which is not recognized by serial_meson driver, so new compatible is added to driver as well. Additional driver changes are not required because new compatible only di

Re: Understanding how .config for uboot is generated in buildroot

2023-10-17 Thread Ignatius Rivaldi
On Tue, Oct 17, 2023 at 7:17 PM Paul Barker wrote: > On Tue, Oct 17, 2023 at 04:35:20PM +1100, Ignatius Rivaldi wrote: > > Hi all, > > > > When I edit the config file in BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE in a > > buildroot recipe, how does the config statements from that file got > > converted

[PATCH] arm: dts: imx8mn-var-som: Fix broken EEPROM read

2023-10-17 Thread Hugo Villeneuve
From: Hugo Villeneuve On branch WIP/17Oct2023, the EEPROM can no longer be read: U-Boot 2023.10-latest (Oct 17 2023 - 15:53:43 -0400) CPU: Freescale i.MX8MNano Quad rev1.0 at 1200 MHz Reset cause: POR Model: Variscite VAR-SOM-MX8MN Symphony evaluation board var_read_som_eep

Re: [PATCH] board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board

2023-10-17 Thread Jonas Karlman
Hi Kever, On 2023-10-08 11:09, Kever Yang wrote: > > On 2023/10/8 05:25, John Clark wrote: >> NanoPC-T6 is a Rockchip RK3588 based SBC by FriendlyElec. >> >> There are four variants depending on the DRAM size: 4G/32GB eMMC, 8G/64GB >> eMMC, >> 16G/16MB SPI NOR, and 16G/256GB eMMC/16MB SPI NOR >

Re: [PATCH v7 4/9] efi_loader: create default file boot option

2023-10-17 Thread Heinrich Schuchardt
On 17.10.23 07:32, Masahisa Kojima wrote: Hi Heinrich, On Mon, 16 Oct 2023 at 23:52, Heinrich Schuchardt wrote: On 16.10.23 15:00, Masahisa Kojima wrote: On Mon, 16 Oct 2023 at 21:46, Heinrich Schuchardt wrote: On 16.10.23 14:31, Ilias Apalodimas wrote: Hi Heinrich, On Mon, 16 Oct 2023

Re: [PATCH 1/3] arm: dts: imx8mm: Sync with Linux 6.3

2023-10-17 Thread Stefano Babic
On 17.10.23 21:21, Tim Harvey wrote: On Thu, Jul 13, 2023 at 10:17 PM Stefano Babic wrote: Hi Tim, Fabio, On 14.07.23 02:42, Tim Harvey wrote: On Wed, May 3, 2023 at 9:11 AM Tim Harvey wrote: On Fri, Apr 28, 2023 at 11:19 AM Fabio Estevam wrote: Hi Tim, On Fri, Apr 28, 2023 at 2:59

Re: [PATCH v4 1/1] board: rockchip: add FriendlyElec NanoPC-T6 rk3588 board

2023-10-17 Thread Jonas Karlman
On 2023-10-13 03:19, John Clark wrote: > The NanoPC-T6 is a Rockchip RK3588 based SBC by FriendlyElec. > > There are four variants depending on the DRAM size: 4G/32GB eMMC, > 8G/64GB eMMC, 16G/16MB SPI NOR, and 16G/256GB eMMC/16MB SPI NOR > > Specifications: > CPU: Rockchip RK3588, 4x Cortex-

Re: [PATCH v7 4/9] efi_loader: create default file boot option

2023-10-17 Thread Ilias Apalodimas
Hi all, On Tue, 17 Oct 2023 at 08:33, Masahisa Kojima wrote: > > Hi Heinrich, > > On Mon, 16 Oct 2023 at 23:52, Heinrich Schuchardt wrote: > > > > On 16.10.23 15:00, Masahisa Kojima wrote: > > > On Mon, 16 Oct 2023 at 21:46, Heinrich Schuchardt > > > wrote: > > >> > > >> On 16.10.23 14:31, Ili

[PATCH] doc: build: update description of build dependencies for Alpine Linux

2023-10-17 Thread Milan P . Stanić
--- doc/build/gcc.rst | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst index a0650a51db..e73f24a304 100644 --- a/doc/build/gcc.rst +++ b/doc/build/gcc.rst @@ -60,8 +60,28 @@ For building U-Boot on Alpine Linux at le

Re: [PATCH] efi_loader: fix efi_bootmgr_enumerate_boot_option

2023-10-17 Thread Ilias Apalodimas
Hi Mark, On Tue, 17 Oct 2023 at 22:25, Mark Kettenis wrote: > > > From: Heinrich Schuchardt > > Date: Tue, 17 Oct 2023 19:51:48 +0200 > > > > Only auto-generate boot options for removable media. > > > > For testing the different handling of removable and non-removable devices > > an emulated USB

[PATCH v2 1/1] mtd: spinand: add support for ESMT F50x1G41LB

2023-10-17 Thread Igor Prusov
Adaptation of Linux commit d74c36480a67 This patch adds support for ESMT F50L1G41LB and F50D1G41LB. It seems that ESMT likes to use random JEDEC ID from other vendors. Their 1G chips uses 0xc8 from GigaDevice and 2G/4G chips uses 0x2c from Micron. For this reason, the ESMT entry is named esmt_c8 w

[PATCH v2 0/1] mtd: spinand: add support for ESMT F50x1G41LB

2023-10-17 Thread Igor Prusov
This series ports ESMT NAND support from Linux. Changes in v2: - Dropped detect procedure rework patch, since similar one was already applied to u-boot in commit b20913e3cb. - Updated NAND_MEMORG values, so that they are correct after mbb parameter was added in

Re: [PATCH v7 8/9] cmd: efidebug: add uri device path

2023-10-17 Thread Ilias Apalodimas
Hi Kojima-san, [...] > + id = (int)hextoul(argv[1], &endp); > + if (*endp != '\0' || id > 0x) > + return CMD_RET_USAGE; > + > + efi_create_indexed_name(var_name16, sizeof(var_name16), > +

Re: [PATCH] efi_loader: fix efi_bootmgr_enumerate_boot_option

2023-10-17 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Tue, 17 Oct 2023 19:51:48 +0200 > > Only auto-generate boot options for removable media. > > For testing the different handling of removable and non-removable devices > an emulated USB device can be used: > > make qemu-riscv64_smode_defconfig; make >

[PATCH] cros_ec: spi: disable annoying key echo on console

2023-10-17 Thread Milan P . Stanić
on Peach-pi console every key press is echoed with message 'cros_ec_command: Returned status 1' this is not proper fix, just hack to disable this message --- drivers/misc/cros_ec_spi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/misc/cros_ec_spi.c b/drivers/misc/cros_ec_spi.c index

Re: [PATCH v1 1/2] mtd: spinand: rework detect procedure for different READ_ID operation

2023-10-17 Thread Igor Prusov
Hi Frieder, On Mon, Oct 09, 2023 at 10:23:53AM +0200, Frieder Schrempf wrote: > On 04.10.23 17:07, Igor Prusov wrote: > > Adaptation of Linux commit f1541773af49. > > > > Currently there are 3 different variants of read_id implementation: > > 1. opcode only. Found in GD5FxGQ4xF. > > 2. opcode + 1

Re: [PATCH 1/3] arm: dts: imx8mm: Sync with Linux 6.3

2023-10-17 Thread Tim Harvey
On Thu, Jul 13, 2023 at 10:17 PM Stefano Babic wrote: > > Hi Tim, Fabio, > > On 14.07.23 02:42, Tim Harvey wrote: > > On Wed, May 3, 2023 at 9:11 AM Tim Harvey wrote: > >> > >> On Fri, Apr 28, 2023 at 11:19 AM Fabio Estevam wrote: > >>> > >>> Hi Tim, > >>> > >>> On Fri, Apr 28, 2023 at 2:59 PM T

Re: failed to build u-boot mt7621_rfb_defconfig

2023-10-17 Thread Fabio Estevam
[Please keep the list on Cc] On Mon, Oct 16, 2023 at 11:14 PM Xiaobo Liu wrote: > > Hi > > I found the nand rfb u-boot mt7621_stage_sram.bin, no spi-nor version was > found. > > https://u-boot.readthedocs.io/en/latest/board/mediatek/mt7621.html > > Where can I find a version of the mt7621 spi-no

[PATCH] phy: meson-g12a-usb2: fix ret check on power_domain_get

2023-10-17 Thread Guillaume La Roque
Patch which add A1 SoC support create a regression on khadas vim3/vim3l boards when we try to use fastboot command: => fastboot usb 0 failed to get power domain failed to get power domain No USB device found USB init failed: -19 Add ENOENT check on ret in probe function. Fixes: 5533c88

Re: [PATCH] arm: dts: k3-j721e-mcu-wakeup: Add MCU domain ESM instance

2023-10-17 Thread Nishanth Menon
On 16:35-20231013, Kumar, Udit wrote: > > On 10/13/2023 3:59 PM, Neha Malcom Francis wrote: > > Currently J721E defines only the main_esm in DTS. Add node for mcu_esm > > as well. > > > > According to J721E TRM (12.11.2.2 ESM Environment) [1], we see that the > > interrupt line from ESMi (main_es

[PATCH 3/3] board: rockchip: Add support for RGB30 and RK2023 to RGxx3

2023-10-17 Thread Chris Morgan
From: Chris Morgan Add support for the Powkiddy RK2023 and RGB30 to the Anbernic RGxx3. While these devices are manufactured by Powkiddy instead of Anbernic, the hardware is so similar they can all use the same bootloader. Signed-off-by: Chris Morgan --- board/anbernic/rgxx3_rk3566/rgxx3-rk356

[PATCH 0/3] Add Additional Boards and Features to RGxx3

2023-10-17 Thread Chris Morgan
From: Chris Morgan The RGxx3 is a pseudo-device for U-Boot that works for every Anbernic RGxx3 series device on the market. Add support for another series of very similar devices from Powkiddy. Chris Morgan (3): board: rockchip: Refactor panel auto-detect code board: rockchip: Add Maskrom Mo

[PATCH 2/3] board: rockchip: Add Maskrom Mode for Anbernic RGxx3

2023-10-17 Thread Chris Morgan
From: Chris Morgan Add support for users to enter maskrom mode by holding the function button when they power up the device. Since the device has soldered eMMC and sometimes does not expose a clk pin on the mainboard there is a small chance that a user who flashes a bad bootloader may not be abl

[PATCH 1/3] board: rockchip: Refactor panel auto-detect code

2023-10-17 Thread Chris Morgan
From: Chris Morgan Make the inability to detect a panel using the auto detection code not fail the entire boot process. This means that if the panel ID cannot be read we don't set an environment variable for the panel, and if an environment variable for the panel is not set we don't attempt to up

[PATCH] efi_loader: fix efi_bootmgr_enumerate_boot_option

2023-10-17 Thread Heinrich Schuchardt
Only auto-generate boot options for removable media. For testing the different handling of removable and non-removable devices an emulated USB device can be used: make qemu-riscv64_smode_defconfig; make qemu-system-riscv64 -M virt -kernel u-boot.bin -nographic \ -device qemu-xhci -dri

[RESEND PATCH v1 1/2] spi: add support for Amlogic A1 SPI Flash Controller

2023-10-17 Thread Igor Prusov
From: Igor Prusov Add A1 SPIFC driver from Linux. Slightly modified to use u-boot driver framework and accommodate to lack of ioread32_rep/iowrite32_rep. Based on Linux version 6.6-rc4 Signed-off-by: Igor Prusov Signed-off-by: Martin Kurbanov --- drivers/spi/Kconfig | 8 + drivers

[RESEND PATCH v1 2/2] ARM: amlogic: ad401: enable SPIFC

2023-10-17 Thread Igor Prusov
From: Igor Prusov Enable Amlogic A1 SPI FLash Controller support. Signed-off-by: Igor Prusov Reviewed-by: Neil Armstrong --- configs/ad401_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/ad401_defconfig b/configs/ad401_defconfig index b9aca3ab0d..b44b9c63e8 100644 --- a/

[RESEND PATCH v1 0/2] ARM: amlogic: Add A1 SPIFC support

2023-10-17 Thread Igor Prusov
A1 family boards have new version of SPIFC controller, that is incompatible with meson_spifc driver. This series ports A1 SPIFC driver from Linux and enables it for ad401 board. Igor Prusov (2): spi: add support for Amlogic A1 SPI Flash Controller ARM: amlogic: ad401: enable SPIFC configs/ad

[PATCH v2 4/4] rockchip: rk3588-rock-5b: Sync USB3 nodes from mainline linux patches

2023-10-17 Thread Jonas Karlman
The device tree for rk3588 and rock-5b contain usb3 nodes that have deviated too much from current state of submitted mainline linux usb3 patches, see [1]. Sync usb3 related nodes from latest patches and collaboras rk3588 tree so that dwc3-generic driver can be updated to include support for the r

[PATCH v2 3/4] rockchip: rk3588-rock-5b: Enable support for PCIe SATA cards

2023-10-17 Thread Jonas Karlman
Enable support for PCIe SATA cards and the on-board SATA controller. This also revert use of CONFIG_PCI_INIT_R in order to speed up boot from eMMC or SD-cards. Standard boot will initialize pci after faster boot media have been enumerated. Signed-off-by: Jonas Karlman Reviewed-by: Christopher Ob

[PATCH v2 2/4] rockchip: rk3588-rock-5a: Enable support for USB 2.0 ports

2023-10-17 Thread Jonas Karlman
Enable Kconfig options for the two USB 2.0 ports and bottom USB 3.0 port on ROCK 5 Model A. Signed-off-by: Jonas Karlman --- v2: - New patch configs/rock5a-rk3588s_defconfig | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/configs/rock5a-rk3588s_defconfig b/c

[PATCH v2 1/4] rockchip: rk3588: Sync device tree from v6.7-rockchip-dts64-1 tag

2023-10-17 Thread Jonas Karlman
Sync rk3588 device tree from v6.7-rockchip-dts64-1 tag. Adds PCIe, button and led nodes to rk3588-evb1-v10 and rk3588-rock-5b boards. Also remove includes from u-boot.dtsi-files that is no longer needed. Linux commits: 42145b7a8235 ("arm64: dts: rockchip: add PCIe network controller to rock-5b")

[PATCH v2 0/4] rockchip: rk3588: Sync pcie and usb3 nodes from linux

2023-10-17 Thread Jonas Karlman
This series sync rk3588 device tree nodes from latest mainline linux maintainer tree and also update usb3 nodes with latest submitted patches. Patch 1 sync latest device tree from latest linux maintainer tree to move pcie and spi flash nodes away from -u-boot.dtsi files. Patch 2 enable usb 2.0 su

[PATCH v4 7/8] clk: treewide: switch to clock dump from clk_ops

2023-10-17 Thread Igor Prusov
Switch to using new dump operation in clock provider drivers instead of overriding soc_clk_dump. Signed-off-by: Igor Prusov Tested-by: Patrice Chotard --- arch/mips/mach-pic32/cpu.c | 23 --- drivers/clk/aspeed/clk_ast2600.c | 13 - drivers/clk/clk_k210.c

[PATCH v4 8/8] cmd: clk: Make soc_clk_dump static

2023-10-17 Thread Igor Prusov
After introducing dump to clk_ops there is no need to override or expose this symbol anymore. Signed-off-by: Igor Prusov Reviewed-by: Patrice Chotard Tested-by: Patrice Chotard --- cmd/clk.c | 4 ++-- include/clk.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/

[PATCH v4 6/8] cmd: clk: Use dump function from clk_ops

2023-10-17 Thread Igor Prusov
Add another loop to dump additional info from clock providers that implement dump operation. Signed-off-by: Igor Prusov Reviewed-by: Patrice Chotard Tested-by: Patrice Chotard --- cmd/clk.c | 9 + 1 file changed, 9 insertions(+) diff --git a/cmd/clk.c b/cmd/clk.c index c7c379d7a6..90c

[PATCH v4 5/8] clk: Add dump operation to clk_ops

2023-10-17 Thread Igor Prusov
This adds dump function to struct clk_ops which should replace soc_clk_dump. It allows clock drivers to provide custom dump implementation without overriding generic CCF dump function. Signed-off-by: Igor Prusov Reviewed-by: Patrice Chotard Tested-by: Patrice Chotard --- include/clk-uclass.h |

[PATCH v4 3/8] clk: k210: Move soc_clk_dump function

2023-10-17 Thread Igor Prusov
Move clock dump function to avoid forward declaration after switching to dump in clk_ops. Signed-off-by: Igor Prusov --- drivers/clk/clk_k210.c | 92 +- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/drivers/clk/clk_k210.c b/drivers/clk/cl

[PATCH v4 4/8] clk: amlogic: Move driver and ops structs

2023-10-17 Thread Igor Prusov
Move driver and ops structs to avoid forward declaration after switching to dump in clk_ops. Signed-off-by: Igor Prusov --- drivers/clk/meson/a1.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/clk/meson/a1.c b/drivers/clk/meson/a

[PATCH v4 0/8] clk: Switch from soc_clk_dump to clk_ops function

2023-10-17 Thread Igor Prusov
Currently clock providers may override default implementation of soc_clk_dump function to replace clk dump command output. This causes confusing behaviour when u-boot is built with one of such drivers enabled but still has clocks defined using CCF. For example, enabling CMD_CLK and using clk dump o

[PATCH v4 2/8] clk: ast2600: Move soc_clk_dump function

2023-10-17 Thread Igor Prusov
Move clock dump function to avoid forward declaration after switching to dump in clk_ops. Signed-off-by: Igor Prusov --- drivers/clk/aspeed/clk_ast2600.c | 70 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/clk/aspeed/clk_ast2600.c b/driv

[PATCH v4 1/8] clk: zynq: Move soc_clk_dump to Zynq clock driver

2023-10-17 Thread Igor Prusov
Move clock dump function in preparation for switching to dump function in clk_ops. Signed-off-by: Igor Prusov Acked-by: Michal Simek --- arch/arm/mach-zynq/clk.c | 57 --- drivers/clk/clk_zynq.c | 58 2 files changed

Re: [PATCH] bootm: Fix flags used for bootargs string substitution

2023-10-17 Thread Tom Rini
On Tue, Oct 17, 2023 at 12:53:05PM +0200, Piotr Kubik wrote: > Commit <51bb33846ad2> introduced a feature of bootargs Checkpatch will complain that this should be: In commit 51bb33846ad2 ("bootm: Support string substitution in bootargs") And this is the kind of thing I would fixup on applying if

Re: env: Allow U-Boot scripts to be placed in a .env file

2023-10-17 Thread Tom Rini
On Tue, Oct 17, 2023 at 10:14:13AM +0200, Wojciech Niziński wrote: > Hello. > > Very nice feature was introduced in commit: > >     86b9c3e4e48ba47ef28781d06b97846aca74bc8e| >     env: Allow U-Boot scripts to be placed in a .env file > > This feature works as extension for old CFG_EXTRA_ENV_SETT

Re: [PATCH] riscv: Add Zbb support for building U-Boot

2023-10-17 Thread Tom Rini
On Wed, Aug 09, 2023 at 06:49:30PM +0800, Yu Chien Peter Lin wrote: > This patch adds ISA string to the -march to generate zbb instructions > for U-Boot binaries, along with optimized string functions introduced > from Linux kernel. > > Signed-off-by: Yu Chien Peter Lin [snip] > +config RISCV_IS

Re: commit 83c63f0d118 (led: Move OF "label" property parsing to core)

2023-10-17 Thread Marek Vasut
On 10/17/23 15:29, Rasmus Villemoes wrote: Hi, Hi, I'm trying to resurrect an old submission of a driver for ti,lp5562, so had occasion to dig into drivers/led/. And I think commit 83c63f0d118 is buggy or at least incomplete. Many of the drivers that were subsequently modified to not do that

Re: [PATCH 1/1] efi_loader: expose the device-tree file name

2023-10-17 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Tue, 17 Oct 2023 10:55:07 +0200 > > Forward and backward compatibility of Linux kernel device-trees is > sometimes missing. One solution approach is to load a kernel specific > device-tree. This can either be done via a U-Boot scripts (like the one > generated

Re: [PATCH v2] usb: xhci: Workaround to fix the USB halted endpoint issues

2023-10-17 Thread Marek Vasut
On 10/17/23 16:16, Tom Rini wrote: On Tue, Oct 17, 2023 at 03:48:37PM +0300, Eugen Hristev wrote: On 10/16/23 22:30, Tom Rini wrote: On Mon, Oct 16, 2023 at 08:34:16AM +0200, Michal Simek wrote: On 10/13/23 17:15, Tom Rini wrote: On Fri, Oct 13, 2023 at 11:11:04AM -0400, Da Xue wrote: On F

[PATCH] imx8mn-var-som: add manufacturer to target description

2023-10-17 Thread Hugo Villeneuve
From: Hugo Villeneuve Add Variscite manufacturer to the IMX8MN_VAR_SOM target menu label as the majority of targets include the manufacturer as part of their menu description/label and it helps when looking for a particular manufacturer/board. Signed-off-by: Hugo Villeneuve --- arch/arm/mach-i

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

2023-10-17 Thread Tom Rini
On Tue, Oct 17, 2023 at 04:31:27AM +0200, Marek Vasut wrote: > RZ/G2L part 1, except for two serial port patches which I had to drop as they > broke R2Dplus, they will come later via subsequent PR. > > The following changes since commit 3c3f1626919cd93cbe6c56e3849937de5be18dbb: > > Merge tag '

Re: [PATCH v2 1/1] efi_loader: expose the device-tree file name

2023-10-17 Thread Ilias Apalodimas
On Tue, 17 Oct 2023 at 16:50, Heinrich Schuchardt wrote: > > Forward and backward compatibility of Linux kernel device-trees is > sometimes missing. One solution approach is to load a kernel specific > device-tree. This can either be done via a U-Boot scripts (like the one > generated by Debian pa

Re: [PATCH v2] usb: xhci: Workaround to fix the USB halted endpoint issues

2023-10-17 Thread Tom Rini
On Tue, Oct 17, 2023 at 03:48:37PM +0300, Eugen Hristev wrote: > On 10/16/23 22:30, Tom Rini wrote: > > On Mon, Oct 16, 2023 at 08:34:16AM +0200, Michal Simek wrote: > > > > > > > > > On 10/13/23 17:15, Tom Rini wrote: > > > > On Fri, Oct 13, 2023 at 11:11:04AM -0400, Da Xue wrote: > > > > > On F

Re: [PATCH v3 21/32] efi: Rearrange the Kconfig for CMD_BOOTEFI_BOOTMGR

2023-10-17 Thread Tom Rini
On Mon, Oct 16, 2023 at 04:28:12PM -0600, Simon Glass wrote: > The command should not be used to enable library functionality. Add a > new BOOTEFI_BOOTMGR Kconfig for that. Adjust the conditions so that the > same code is built. > > Signed-off-by: Simon Glass > Suggested-by: AKASHI Takahiro [sni

Re: [PATCH v3 32/32] sandbox: Add a test for disabling CONFIG_CMDLINE

2023-10-17 Thread Tom Rini
On Mon, Oct 16, 2023 at 04:28:23PM -0600, Simon Glass wrote: > Now that everything is working, add a test to make sure that this > builds correctly. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 22/32] efi: Update EFI_LOADER to depend on DM_ETH

2023-10-17 Thread Tom Rini
On Mon, Oct 16, 2023 at 04:28:13PM -0600, Simon Glass wrote: > Since efi_device_path.c calls eth_get_dev() and assumes that Ethernet is > available, add it as an explicit dependency. > > Signed-off-by: Simon Glass > --- > > (no changes since v2) > > Changes in v2: > - Add new patch to update E

Re: [PATCH v3 19/32] video: Dont require the font command

2023-10-17 Thread Tom Rini
On Mon, Oct 16, 2023 at 04:28:10PM -0600, Simon Glass wrote: > While it is nice to have the font command, using 'select' makes it > impossible to build the console code without it. Change this to use > 'imply' instead. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > drivers/

Re: [PATCH v3 18/32] video: Allow use without CONFIG_CMDLINE

2023-10-17 Thread Tom Rini
On Mon, Oct 16, 2023 at 04:28:09PM -0600, Simon Glass wrote: > Provide a fallback for when CONFIG_SYS_CBSIZE is not provided, so that > the console can still be used. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > drivers/video/console_truetype.c | 4 > 1 file changed

Re: [PATCH v3 17/32] log: Allow use without CONFIG_CMDLINE

2023-10-17 Thread Tom Rini
On Mon, Oct 16, 2023 at 04:28:08PM -0600, Simon Glass wrote: > When CONFIG_SYS_CBSIZE is not used we need an alternative. For logging > it seems that CONFIG_SYS_PBSIZE is a better choice anyway, so update > this. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Des

  1   2   >