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

2023-10-18 Thread Stefan Roese
On 10/18/23 04:09, Jim Liu wrote: 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

Re: [PATCH v2 0/9] ufs: Add a PCI UFS controller support

2023-10-18 Thread Bin Meng
+ Marek, On Wed, Oct 11, 2023 at 9:16 PM Bin Meng wrote: > > This adds a PCI UFS controller support and enables the support on > QEMU RISC-V for testing. > > Requiring QEMU v8.2+. > > This series is avaiable at u-boot-x86/ufs for testing. > > Changes in v2: > - fix a build warning > > Bin Meng

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

2023-10-18 Thread Marek Vasut
On 10/19/23 04:46, Minda Chen wrote: [...] 4024a376 : { 4024a376:   7179    addi    sp,sp,-48 4024a378:   f406    sd  ra,40(sp) 4024a37a:   f022    sd  s0,32(sp) 4024a37c:   ec26    sd 

Re: [PATCH v7 6/9] efi_loader: add CDROM short-form device path

2023-10-18 Thread Masahisa Kojima
Hi Heinrich, On Wed, 18 Oct 2023 at 19:25, Heinrich Schuchardt wrote: > > On 10/16/23 08:45, Masahisa Kojima wrote: > > UEFI specification does not mandate to support the short-form > > of the CDROM media device path. > > Fedora installation ISO image is identified as CDROM media > > device

[PATCH] mtd: spinand: Add support for XTX XT26xxxDxxxxx

2023-10-18 Thread Bruce Suen
Add Support XTX Technology XT26G01DX, XT26G11DX, XT26Q01DX, XT26G02DX, XT26G12DX, XT26Q02DX, XT26G04DX, and XT26Q04DX SPI NAND. These are 3V/1.8V 1G/2G/4Gbit serial SLC NAND flash device with on-die ECC(8bit strength per 512bytes). Datasheet Links: -

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

2023-10-18 Thread Minda Chen
On 2023/10/18 18:55, Marek Vasut wrote: > On 10/18/23 12:16, Minda Chen wrote: >> >> >> On 2023/10/18 18:11, Marek Vasut wrote: >>> On 10/18/23 05:46, Minda Chen wrote: On 2023/10/18 10:35, Marek Vasut wrote: > On 10/18/23 03:22, Minda Chen wrote: >> >> >> On

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

2023-10-18 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 > --- > > Changes in v3: > - Rebase on Tom's LONGHELP series > - Correct 'of' typo > >

Re: [PATCH v2 04/22] pinctrl: sunxi: move pinctrl code

2023-10-18 Thread Andre Przywara
On Thu, 28 Sep 2023 22:54:37 +0100 Andre Przywara wrote: Hi Samuel, > Move the existing sunxi-specific low level pinctrl routines from > arch/arm/mach-sunxi into the existing GPIO code under drivers/gpio, so > that the common code can be shared outside of arch/arm. I was wondering if you would

Re: [PATCH v3 06/32] sifive: Drop an unnecessary #ifdef

2023-10-18 Thread Tom Rini
On Wed, Oct 18, 2023 at 01:23:13PM -0400, Sean Anderson wrote: > On 10/18/23 09:51, Heinrich Schuchardt wrote: > > On 10/17/23 00:27, Simon Glass wrote: > > > This code is normally compiled for sifive, but sandbox can also compile > > > it. We should not use UNIT_TEST as a synonym for SANDBOX,

Re: [PATCH 1/2] configs: rockchip: Use dwc3-generic driver on RK3328 and RK3399

2023-10-18 Thread Marek Vasut
On 10/19/23 00:30, Jonas Karlman wrote: [..] +++ b/configs/rock960-rk3399_defconfig @@ -50,6 +50,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_SYS_MMC_ENV_DEV=1 CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y

Re: [PATCH 5/9] ram: k3-ddrss: Add exit retention support

2023-10-18 Thread Bryan Brattlof
Hi Thomas! On October 16, 2023 thus sayeth Thomas Richard: > Add the exit retention support. > The enter retention is done by DM-Firmware. > A part of the exit retention sequence is specific to the board. > It is done in board_k3_ddrss_lpddr4_release_retention. > > Based on the work of Gregory

[PATCH 1/2] configs: rockchip: Use dwc3-generic driver on RK3328 and RK3399

2023-10-18 Thread Jonas Karlman
Change to use the dwc3-generic driver on all RK3328 and RK3399 boards. MISC, USB_DWC3 and USB_DWC3_GENERIC are enabled on boards that enabled USB_XHCI_DWC3. Also enable DM_USB_GADGET for any board that enable USB_DWC3_GADGET. Signed-off-by: Jonas Karlman --- configs/chromebook_bob_defconfig

[PATCH 2/2] rockchip: board: Remove dwc3 usb init and gadget handler functions

2023-10-18 Thread Jonas Karlman
Remove board_usb_init() and dm_usb_gadget_handle_interrupts() functions related to dwc3, they use e.g. a hard-coded reg address for RK3399 and are obsolete with use of DM_USB_GADGET. Use of DM_USB_GADGET, USB_DWC3_GENERIC and USB_DWC3_GADGET have replaced same feature provided by the removed

[PATCH 0/2] rockchip: Use dwc3-generic driver on RK3328 and RK3399

2023-10-18 Thread Jonas Karlman
This series change to use the dwc3-generic driver on all RK3328 and RK3399 boards. Also switch to use DM_USB_GADGET and remove then obsolete board_usb_init() and dm_usb_gadget_handle_interrupts() functions. First patch change all RK33xx boards to use dwc3-generic driver. Second patch remove

[PATCH] arm: mvebu: AC5/AC5X: use fixed page table size

2023-10-18 Thread Chris Packham
Since commit 6cdf6b7a340d ("arm64: Use FEAT_HAFDBS to track dirty pages when available") the default get_page_table_size() sets some flags for more efficient handling of dirty page table entries. This causes problems on the AC5/AC5X SoC (specifically a lockup when calling __asm_switch_ttbr() via

[PATCH 2/2] imx8mp_evk: Add myself to MAINTAINERS

2023-10-18 Thread Fabio Estevam
From: Fabio Estevam I would like to help maintaining the imx8mp_evk board. Add myself to MAINTAINERS. Signed-off-by: Fabio Estevam --- board/freescale/imx8mp_evk/MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/imx8mp_evk/MAINTAINERS

[PATCH 1/2] imx8mp_evk: Convert to DM_PMIC

2023-10-18 Thread Fabio Estevam
From: Fabio Estevam Currently, the imx8mp_evk uses the non-DM code to initialize the PMIC. Convert to DM_PMIC, which is the recommended way to access the PMIC. While at it, fix multi-line comments style. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx8mp-evk-u-boot.dtsi | 18 ++-

Re: [PATCH v4] imx8mp-dhcom-pdk3-overlay-rev100: Pass #address-cells/size-cells

2023-10-18 Thread Marek Vasut
On 10/18/23 20:55, Fabio Estevam wrote: From: Fabio Estevam Pass #address-cells/size-cells in the mdio node to avoid the following DTC warning: DTCOarch/arm/dts/imx8mp-dhcom-pdk3-overlay-rev100.dtbo Warning (reg_format): /fragment@0/__overlay__:reg: property has invalid length (4

[PATCH v4] imx8mp-dhcom-pdk3-overlay-rev100: Pass #address-cells/size-cells

2023-10-18 Thread Fabio Estevam
From: Fabio Estevam Pass #address-cells/size-cells in the mdio node to avoid the following DTC warning: DTCOarch/arm/dts/imx8mp-dhcom-pdk3-overlay-rev100.dtbo Warning (reg_format): /fragment@0/__overlay__:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

Re: [PATCH v3] imx8mp-dhcom-pdk3-overlay-rev100: Pass #address-cells/size-cells

2023-10-18 Thread Marek Vasut
On 10/18/23 20:52, Fabio Estevam wrote: From: Fabio Estevam Pass #address-cells/size-cells in the mdio node to avoid the following DTC warning: DTCOarch/arm/dts/imx8mp-dhcom-pdk3-overlay-rev100.dtbo Warning (reg_format): /fragment@0/__overlay__:reg: property has invalid length (4

[PATCH v3] imx8mp-dhcom-pdk3-overlay-rev100: Pass #address-cells/size-cells

2023-10-18 Thread Fabio Estevam
From: Fabio Estevam Pass #address-cells/size-cells in the mdio node to avoid the following DTC warning: DTCOarch/arm/dts/imx8mp-dhcom-pdk3-overlay-rev100.dtbo Warning (reg_format): /fragment@0/__overlay__:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

[PATCH v2] arm: mxs: Clear CPSR V bit to activate low vectors

2023-10-18 Thread Marek Vasut
The MXS starts with CPSR V bit set, which makes the CPU jump to high vectors in case of an exception. Those high vectors are located at 0x, which is where the BootROM exception table is located as well. U-Boot should handle exceptions on its own using its own exception handling code, which

[PATCH] arm: dts: imx8mp-venice-gw73xx: add TPM device

2023-10-18 Thread Tim Harvey
Add the TPM device found on the GW73xx revision F PCB. This hangs off of SPI2, uses gpio1_10 as a CS and gpio1_11 as RST#. Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mp-venice-gw73xx-2x-u-boot.dtsi | 9 + arch/arm/dts/imx8mp-venice-gw73xx.dtsi | 9 - 2 files

[PATCH] arm: dts: imx8mm-venice-gw73xx: add TPM device

2023-10-18 Thread Tim Harvey
Add the TPM device found on the GW73xx revision F PCB. This hangs off of SPI2, uses gpio1_10 as a CS and gpio1_11 as RST#. Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mm-venice-gw73xx-0x-u-boot.dtsi | 7 +++ arch/arm/dts/imx8mm-venice-gw73xx.dtsi | 10 +- 2 files

[PATCH] board: gateworks: venice: add fixup for GW73xx-F+

2023-10-18 Thread Tim Harvey
GW73xx-F board revision switched back to the original PCIe switch due to part availability. Signed-off-by: Tim Harvey --- board/gateworks/venice/venice.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c

[PATCH v2 2/4] ARM: imx: Factor out parsing of ROM log

2023-10-18 Thread sbabic
> From: Fedor Ross > Factor out parsing of ROM log in function spl_mmc_emmc_boot_partition(). > This can be helpful to detect a secondary image boot without fiddling > around with MMC partitions. This way for example, U-Boot is able to > detect a secondary image boot and can enter some fallback

[PATCH 2/2] dm: adc: imx93-adc depends on ADC (fix boot)

2023-10-18 Thread sbabic
> The i.MX93 11x11 EVK fails to boot with following error: > Model: NXP i.MX93 11X11 EVK board > DRAM: 2 GiB > Error binding driver 'imx93-adc': -96 > Some drivers failed to bind > Error binding driver 'simple_bus': -96 > Some drivers failed to bind > Error binding driver 'simple_bus': -96

[PATCH 1/2] arm: dts: imx93-11x11-evk: add bootph-some-ram property

2023-10-18 Thread sbabic
> i.MX93 11x11 EVK fails to boot: > U-Boot SPL 2023.10-00558-g65b9b3462bec-dirty (Oct 03 2023 - 17:40:10 +0200) > SOC: 0xa0009300 > LC: 0x40010 > M33 prepare ok > Normal Boot > Trying to boot from BOOTROM > Boot Stage: Primary boot > image offset 0x8000, pagesize 0x200, ivt offset 0x0 > Load image

[PATCH v2 3/4] ARM: imx: Use correct U-Boot offset in case of secondary boot from eMMC

2023-10-18 Thread sbabic
> From: Fedor Ross > In case of a secondary image boot from the user area of an eMMC device, > the correct offset must be calculated. The offset is fused in the fuse > IMG_CNTN_SET1_OFFSET of the i.MX8M Nano and Plus. The calculation of the > offset is described in the reference manual (IMX8MNRM

[PATCH v2 1/4] spl: mmc: Introduce proper layering for spl_mmc_get_uboot_raw_sector()

2023-10-18 Thread sbabic
> Introduce two new weak functions, arch_spl_mmc_get_uboot_raw_sector() and > board_spl_mmc_get_uboot_raw_sector(), each of which can be overridden at > a matching level, that is arch/ and board/ , in addition to the existing > weak function spl_mmc_get_uboot_raw_sector(). > This way, architecture

[PATCH v2 4/4] ARM: imx: Add support for detecting primary/secondary bmode on MX8M

2023-10-18 Thread sbabic
> From: Fedor Ross > Implement the 'getprisec' subcommand of 'bmode' command for i.MX8M by > reading out the ROM log events. This event is set by the BootROM if it > switched to the secondary copy due to primary copy being corrupted. > Signed-off-by: Fedor Ross > Signed-off-by: Marek Vasut

Re: [PATCH v2] imx8mp-dhcom-pdk3-overlay-rev100: Pass #address-cells/size-cells

2023-10-18 Thread Marek Vasut
On 10/18/23 19:54, Fabio Estevam wrote: From: Fabio Estevam Pass #address-cells/size-cells in the mdio node to avoid the following DTC warning: DTCOarch/arm/dts/imx8mp-dhcom-pdk3-overlay-rev100.dtbo Warning (reg_format): /fragment@0/__overlay__:reg: property has invalid length (4

[PATCH v2] imx8mp-dhcom-pdk3-overlay-rev100: Pass #address-cells/size-cells

2023-10-18 Thread Fabio Estevam
From: Fabio Estevam Pass #address-cells/size-cells in the mdio node to avoid the following DTC warning: DTCOarch/arm/dts/imx8mp-dhcom-pdk3-overlay-rev100.dtbo Warning (reg_format): /fragment@0/__overlay__:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

Re: [PATCH] imx8mp-dhcom-pdk3-overlay-rev100: Pass #address-cells/size-cells

2023-10-18 Thread Marek Vasut
On 10/18/23 19:21, Fabio Estevam wrote: From: Fabio Estevam Pass #address-cells/size-cells in the mdio node to avoid the following DTC warning: DTCOarch/arm/dts/imx8mp-dhcom-pdk3-overlay-rev100.dtbo Warning (reg_format): /fragment@0/__overlay__:reg: property has invalid length (4

Re: [PATCH v5 00/11] spl: Use common function for loading/parsing images

2023-10-18 Thread Sean Anderson
On 8/3/23 00:41, Heinrich Schuchardt wrote: On 8/3/23 03:31, Tom Rini wrote: On Wed, Aug 02, 2023 at 09:13:21PM -0400, Sean Anderson wrote: On 8/2/23 16:11, Tom Rini wrote: On Mon, Jul 31, 2023 at 06:42:52PM -0400, Sean Anderson wrote: This series adds support for loading all image types

Re: [PATCH v3 06/32] sifive: Drop an unnecessary #ifdef

2023-10-18 Thread Sean Anderson
On 10/18/23 09:51, Heinrich Schuchardt wrote: On 10/17/23 00:27, Simon Glass wrote: This code is normally compiled for sifive, but sandbox can also compile it. We should not use UNIT_TEST as a synonym for SANDBOX, since it is possible to disable UNIT_TEST for sandbox. Drop the condition since

[PATCH] imx8mp-dhcom-pdk3-overlay-rev100: Pass #address-cells/size-cells

2023-10-18 Thread Fabio Estevam
From: Fabio Estevam Pass #address-cells/size-cells in the mdio node to avoid the following DTC warning: DTCOarch/arm/dts/imx8mp-dhcom-pdk3-overlay-rev100.dtbo Warning (reg_format): /fragment@0/__overlay__:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

Re: [PATCH v5 1/6] sysinfo: Add IDs for board id and revision

2023-10-18 Thread Detlev Casanova
On Monday, October 16, 2023 1:37:40 P.M. EDT Heinrich Schuchardt wrote: > On 10/2/23 17:20, Detlev Casanova wrote: > > These IDs will be used by the sysinfo command. The new IDs are: > > * SYSINFO_ID_BOARD_ID: The board ID as an integer > > * SYSINFO_ID_BOARD_REV_MAJOR: The board major

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

2023-10-18 Thread Simon Glass
Hi Tom, On Wed, 18 Oct 2023 at 09:27, Tom Rini wrote: > > On Wed, Oct 18, 2023 at 09:23:42AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 18 Oct 2023 at 07:37, Tom Rini wrote: > > > > > > On Mon, Oct 16, 2023 at 04:28:13PM -0600, Simon Glass wrote: > > > > > > > Since efi_device_path.c

Re: [PATCH v2 1/1] sunxi: H616: add LPDDR4 DRAM support

2023-10-18 Thread Andre Przywara
On Mon, 16 Oct 2023 08:34:41 +0300 Mikhail Kalashnikov wrote: Hi Mikhail, many thanks for resending this, and particularly for making this work on the OrangePi Zero3! > From: iuncuim > > The H616 SoC family has support for several types of DRAM: DDR3, > LPDDR3, DDR4 and LPDDR4. > At the

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

2023-10-18 Thread Simon Glass
Hi Philip, On Wed, 18 Oct 2023 at 05:00, Philip Oberfichtner wrote: > > Hi Heiko, > > On Wed, Oct 18, 2023 at 06:31:57AM +0200, Heiko Schocher wrote: > > [...] > > > > May Philip can use uclass_get_device_by_phandle and try a list of > > possible UCLASS candidates, like UCLASS_RTC,

Re: [PATCH v5 4/8] rockchip: block: blk-uclass: add bounce buffer flag to blk_desc

2023-10-18 Thread Simon Glass
On Wed, 18 Oct 2023 at 08:01, Johan Jonker wrote: > > Currently bounce buffer support is enabled for all block devices > when available. Add a flag to blk_desc to enable only on demand. > > Signed-off-by: Johan Jonker > --- > > Changed V5: > New patch > --- > drivers/block/blk-uclass.c | 4

Re: [PATCH v5 2/8] rockchip: dm: prepare rkmtd UCLASS

2023-10-18 Thread Simon Glass
On Wed, 18 Oct 2023 at 08:00, Johan Jonker wrote: > > Prepare a rkmtd UCLASS in use for writing Rockchip boot blocks > in combination with existing userspace tools and rockusb command. > > Signed-off-by: Johan Jonker > Reviewed-by: Kever Yang > --- > disk/part.c| 4 >

[PATCH 3/3] power: regulator: add AXP313 support

2023-10-18 Thread Andre Przywara
The X-Powers AXP313a is a small PMIC with just three buck converters and three LDOs, one of which is actually fixed (so not modelled here). Add the compatible string and the respective regulator ranges to allow drivers to adjust voltages. Signed-off-by: Andre Przywara ---

[PATCH 2/3] power: pmic: sunxi: add AXP313 SPL driver

2023-10-18 Thread Andre Przywara
On boards using the AXP313 PMIC, the DRAM rail is often not setup correctly at reset time, so we have to program the PMIC very early in the SPL, before running the DRAM initialisation. Add a simple AXP313 PMIC driver that knows about DCDC2(CPU) and DCDC3(DRAM), so that we can bump up the voltage

[PATCH 1/3] sunxi: board: simplify early PMIC setup conditions

2023-10-18 Thread Andre Przywara
So far we have a convoluted #ifdef mesh that guards the early AXP PMIC setup in board.c. That combination of &&, || and negations is very hard to read, maintain and especially to extend. Fortunately we have those same conditions already modelled in the Kconfig file, so they are actually

[PATCH 0/3] power: add AXP313 PMIC support

2023-10-18 Thread Andre Przywara
The X-Powers AXP313 is a small PMIC that is controlled via I2C and provides just three buck converters and three LDOs, plus a power button. It is used on many newer boards using the Allwinner H616 or H618 SoCs. Mostly all rails need to be always on, since each of them supplies an essential part

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

2023-10-18 Thread Tom Rini
On Wed, Oct 18, 2023 at 09:23:42AM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 18 Oct 2023 at 07:37, 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

Re: [PATCH 30/32] fdt: Allow the devicetree to come from a bloblist

2023-10-18 Thread Simon Glass
Hi Ilias, On Mon, 25 Sept 2023 at 04:19, Ilias Apalodimas wrote: > > Hi Simon, > > [...] > > > > > >> +config OF_BLOBLIST > > > > >> + bool "DTB is provided by a bloblist" > > > > >> + help > > > > >> + Select this to read the devicetree from the >

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

2023-10-18 Thread Simon Glass
Hi Tom, On Wed, 18 Oct 2023 at 08:42, 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 which

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

2023-10-18 Thread Simon Glass
Hi Tom, On Wed, 18 Oct 2023 at 07:37, 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 > > --- > > >

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

2023-10-18 Thread Tom Rini
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 which require CMDLINE are enabled > regardless of whether it is

[PATCH v5 8/8] rockchip: configs: sandbox: enable rkmtd command

2023-10-18 Thread Johan Jonker
Enable rkmtd command for testing with sandbox_defconfig and sandbox64_defconfig. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- Changed V3: New patch --- configs/sandbox64_defconfig | 1 + configs/sandbox_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH v5 7/8] rockchip: doc: add rkmtd.rst

2023-10-18 Thread Johan Jonker
Add documention for Rockchip rkmtd virtual block device. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Reviewed-by: Simon Glass --- Changed V3: New patch --- doc/board/rockchip/index.rst | 1 + doc/board/rockchip/rkmtd.rst | 105 +++ 2 files changed,

[PATCH v5 6/8] rockchip: test: dm: add rkmtd test

2023-10-18 Thread Johan Jonker
Add Rockchip rkmtd test: Create/attach/detach RKMTD device. Send/read data with Rockchip boot block header. Test that reusing the same label should work. Basic test of 'rkmtd' commands. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Reviewed-by: Simon Glass --- Changed V4: sort

[PATCH v5 4/4] board: Add support for Conclusive KSTR-SAMA5D27

2023-10-18 Thread Artur Rojek
Introduce support for Conclusive KSTR-SAMA5D27 Single Board Computer. Co-developed-by: Jakub Klama Signed-off-by: Jakub Klama Co-developed-by: Marcin Jabrzyk Signed-off-by: Marcin Jabrzyk Signed-off-by: Artur Rojek --- v5: - move U-Boot specific props to at91-kstr-sama5d27-u-boot.dtsi file

[PATCH v5 5/8] rockchip: cmd: add rkmtd command

2023-10-18 Thread Johan Jonker
The command rkmtd creates a virtual block device to transfer Rockchip boot block data to and from NAND with block orientated tools like "ums" and "rockusb". It uses the Rockchip MTD driver to scan for boot blocks and copies data from the first block in a GPT formated virtual disk. Data must be

[PATCH v5 3/4] arm: dts: at91: sama5: Add flexcom4 node

2023-10-18 Thread Artur Rojek
Set up flexcom4 for Microchip SAMA5D27 SoC and prepare it for usage in I2C mode. Signed-off-by: Artur Rojek --- v3-v5: no change v2: new patch arch/arm/dts/sama5d2.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/dts/sama5d2.dtsi

[PATCH v5 2/4] event: add new EVT_SETTINGS_R event

2023-10-18 Thread Artur Rojek
Introduce EVT_SETTINGS_R, triggered post-relocation and before console init. This event gives an option to perform any platform-dependent setup, which needs to take place before show_board_info(). Usage examples include readout of EEPROM stored settings. Signed-off-by: Artur Rojek Reviewed-by:

[PATCH v5 1/4] common: add prototype & rename populate_serial_number()

2023-10-18 Thread Artur Rojek
Rename populate_serial_number() to a more descriptive serial_read_from_eeprom() and provide the missing function prototype. This is useful for boards that wish to read their serial number from EEPROM at init. Signed-off-by: Artur Rojek Reviewed-by: Simon Glass --- v5: no change v4: - revert

[PATCH v5 0/4] Conclusive KSTR-SAMA5D27 support

2023-10-18 Thread Artur Rojek
Hi all, this is v5 of the Conclusive KSTR-SAMA5D27 support series. Patches [1/4], [2/4] and [3/4] remain unchanged. In patch [4/4], a new dtsi file has been added in order to keep U-Boot specific properties separate from the main dts. As such, MAINTAINERS has been modified to feature the new

[PATCH v5 4/8] rockchip: block: blk-uclass: add bounce buffer flag to blk_desc

2023-10-18 Thread Johan Jonker
Currently bounce buffer support is enabled for all block devices when available. Add a flag to blk_desc to enable only on demand. Signed-off-by: Johan Jonker --- Changed V5: New patch --- drivers/block/blk-uclass.c | 4 ++-- drivers/scsi/scsi.c| 4 include/blk.h | 1

[PATCH v5 3/8] rockchip: block: add rkmtd class and drivers

2023-10-18 Thread Johan Jonker
Add rkmtd class and drivers to create a virtual block device to transfer Rockchip boot block data to and from NAND with block orientated tools like "ums" and "rockusb". Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- Changed V5: Use devres_alloc in bind Restyle Changed V4: Sort

[PATCH v5 2/8] rockchip: dm: prepare rkmtd UCLASS

2023-10-18 Thread Johan Jonker
Prepare a rkmtd UCLASS in use for writing Rockchip boot blocks in combination with existing userspace tools and rockusb command. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- disk/part.c| 4 drivers/block/blk-uclass.c | 1 + include/dm/uclass-id.h | 1 + 3

[PATCH v5 1/8] mtd: nand: raw: rockchip_nfc: add NAND_SKIP_BBTSCAN option

2023-10-18 Thread Johan Jonker
On Rockchip SoCs the first boot stages are written on NAND with help of manufacturer software that uses a different format then the MTD framework. Skip the automatic BBT scan with the NAND_SKIP_BBTSCAN option to be able to pass the driver probe function and to let the original data unchanged.

[PATCH v5 0/8] Add rkmtd command

2023-10-18 Thread Johan Jonker
The command rkmtd creates a virtual block device to transfer Rockchip boot block data to and from NAND with block orientated tools like "ums" and "rockusb". It uses the Rockchip MTD driver to scan for boot blocks and copies data from the first block in a GPT formatted virtual disk. Data must be

Re: [PATCH v3 06/32] sifive: Drop an unnecessary #ifdef

2023-10-18 Thread Heinrich Schuchardt
On 10/17/23 00:27, Simon Glass wrote: This code is normally compiled for sifive, but sandbox can also compile it. We should not use UNIT_TEST as a synonym for SANDBOX, since it is possible to disable UNIT_TEST for sandbox. Drop the condition since it isn't needed. This is not what the patch

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

2023-10-18 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 Signed-off-by: Milan P. Stanić Reviewed-by: Simon Glass --- changed patch to use log_debug and added forgoten Signed-off-by and and

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

2023-10-18 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

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

2023-10-18 Thread Tom Rini
On Tue, Oct 17, 2023 at 09:30:30PM -0600, Simon Glass wrote: > 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

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

2023-10-18 Thread Heinrich Schuchardt
On 10/17/23 00:27, 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 behind an 'if CMDLINE' Signed-off-by: Simon Glass --- Changes in v3: - Add an explation as to why

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

2023-10-18 Thread Caleb Connolly
On 18/10/2023 04:33, Simon Glass wrote: > 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); >

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

2023-10-18 Thread Tom Rini
On Tue, Oct 17, 2023 at 09:30:46PM -0600, Simon Glass wrote: > 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

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

2023-10-18 Thread Heinrich Schuchardt
On 10/17/23 16: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 --- (no changes since v2) Changes in v2: - Add

Re: [PATCH RESEND] sunxi: add axp313a support

2023-10-18 Thread SASANO Takayoshi
hi, > Yes, we have been looking at this for a while, and there is code out > there. The latest drop is from Mikhail: > https://lore.kernel.org/u-boot/20231016053441.3197087-2-iunc...@gmail.com/ > If you can try this, maybe even review it, that would be great. I got mail from Mikhail and received

Re: [PATCH] sphinx: Bump urllib3 version

2023-10-18 Thread Heinrich Schuchardt
On 10/18/23 14:33, Tom Rini wrote: While unlikely to be a direct issue for us, urllib3 before 2.0.7 is vulnerable to CVE-2023-45803, so bump our version up. Reported-by: GitHub dependabot Signed-off-by: Tom Rini Reviewed-by: Heinrich Schuchardt --- Cc: Heinrich Schuchardt ---

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

2023-10-18 Thread Tom Rini
On Tue, Oct 17, 2023 at 09:31:34PM -0600, Simon Glass wrote: > 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

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

2023-10-18 Thread Tom Rini
On Tue, Oct 17, 2023 at 09:31:29PM -0600, Simon Glass wrote: > 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

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

2023-10-18 Thread Tom Rini
On Tue, Oct 17, 2023 at 09:31:22PM -0600, Simon Glass wrote: > 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

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

2023-10-18 Thread Tom Rini
On Tue, Oct 17, 2023 at 09:31:04PM -0600, Simon Glass wrote: > 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:

[PATCH] sphinx: Bump urllib3 version

2023-10-18 Thread Tom Rini
While unlikely to be a direct issue for us, urllib3 before 2.0.7 is vulnerable to CVE-2023-45803, so bump our version up. Reported-by: GitHub dependabot Signed-off-by: Tom Rini --- Cc: Heinrich Schuchardt --- doc/sphinx/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] spl: mmc: Fix subsequent calls to spl_mmc_load with CONFIG_BLK

2023-10-18 Thread Tom Rini
On Sat, 07 Oct 2023 21:47:48 -0400, Sean Anderson wrote: > MMC devices do not have uclass platdata containing blk_descs, only their > child block devices do. Fortunately, we have a function just for this > purpose. This fixes subsequent calls to spl_mmc_load. > > Applied to u-boot/master,

Re: [PATCH] Revert "fs: ext4: check the minimal partition size to mount"

2023-10-18 Thread Tom Rini
On Sat, 30 Sep 2023 16:42:46 -0400, Sean Anderson wrote: > This check breaks small partitions (under 1024 blocks) because part_length > is in units of part.blksz and not bytes. Given the purpose of this > function, we really want to make sure the partition is SUPERBLOCK_START + > SUPERBLOCK_SIZE

Re: [PATCH v2 00/29] test: spl: Test some load methods

2023-10-18 Thread Tom Rini
On Sat, Oct 14, 2023 at 04:47:36PM -0400, Sean Anderson wrote: > This series adds some tests for various SPL load methods, with the intent of > helping debug v6 of [1]. With that in mind, notable omissions include NAND and > ROMAPI, which both lack sandbox implementations, and OS_BOOT, which I

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

2023-10-18 Thread Piotr Kubik
Hi Simon, Tom Thanks for your feedback > On Tue, 17 Oct 2023 at 10:35, Tom Rini wrote: >> >> Checkpatch will complain that this should be: >> In commit 51bb33846ad2 ("bootm: Support string substitution in >> bootargs") Actually it did not complain, but I'll fix. > On 18.10.2023 05:32, Simon

[PATCH 2/2] vexpress64: Add MMC card to the BOOT_TARGET_DEVICES of FVP

2023-10-18 Thread Qi Feng
From: Wei Chen Add MMC disk to FVP's BOOT_TARGET_DEVICES. This allows the user to boot from MMC devices. Signed-off-by: Wei Chen Signed-off-by: Qi Feng --- include/configs/vexpress_aemv8.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/vexpress_aemv8.h

[PATCH 1/2] misc: vexpress_config: Use member .priv_auto to set the private data

2023-10-18 Thread Qi Feng
From: Wei Chen In current vexpress_config_probe code, it sets the uclass private data directly. This will cause one compilation error: drivers/misc/vexpress_config.c:114:27: error: lvalue required as left operand of assignment 114 | dev_get_uclass_priv(dev) = priv; |

[PATCH 0/2] vexpress64: Add MMC card to the BOOT_TARGET_DEVICES of FVP

2023-10-18 Thread Qi Feng
Add MMC disk to FVP's BOOT_TARGET_DEVICES. This allows the user to boot from MMC devices. While working on that, one compilation error has been observed and fixed. Wei Chen (2): misc: vexpress_config: Use member .priv_auto to set the private data vexpress64: Add MMC card to the

Build failed when CONFIG_TOOLS_LIBCRYPTO is disabled on latest u-boot

2023-10-18 Thread Terry Lv
Hi Experts, We need to disable CONFIG_TOOLS_LIBCRYPTO in our u-boot. But when I disable CONFIG_TOOLS_LIBCRYPTO from menuconfig, my u-boot build fails. Logs: /opt/samba/nxa08304/gcc_cross_toolchain/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/bin/ld: tools/image-host.o: in function

Re: failed to build u-boot mt7621_rfb_defconfig

2023-10-18 Thread Xiaobo Liu
Thank you

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

2023-10-18 Thread Marek Vasut
On 10/18/23 11:00, Rasmus Villemoes wrote: On 18/10/2023 09.43, Rasmus Villemoes wrote: On 17/10/2023 17.33, Marek Vasut wrote: Which string ? The "bcm6753-led" is driver name , so that would have to be parametrized. Exactly. The only difference between the two examples (apart from the

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

2023-10-18 Thread Philip Oberfichtner
Hi Heiko, On Wed, Oct 18, 2023 at 06:31:57AM +0200, Heiko Schocher wrote: > [...] > > May Philip can use uclass_get_device_by_phandle and try a list of > possible UCLASS candidates, like UCLASS_RTC, UCLASS_I2C_EEPROM, > UCLASS_POWER,... and if found, check if parent is UCLASS_I2C... > > may not

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

2023-10-18 Thread Marek Vasut
On 10/18/23 12:16, Minda Chen wrote: On 2023/10/18 18:11, Marek Vasut wrote: On 10/18/23 05:46, Minda Chen wrote: 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:

Re: [PATCH 0/2] MAINTAINERS: Add Mattijs to USB/fastboot maintainers

2023-10-18 Thread Lukasz Majewski
Hi Mattijs, > From discussions with Marek at Kernel Recipes, it seems that the USB > subsystem in U-boot need some help. > > Since I've been asked and I'm willing to help, I've added myself to > the maintainers entry. > > I have also added myself for fastboot since I'm interested in keeping >

Re: [PATCH 0/2] MAINTAINERS: Add Mattijs to USB/fastboot maintainers

2023-10-18 Thread Marek Vasut
On 10/5/23 15:04, Mattijs Korpershoek wrote: From discussions with Marek at Kernel Recipes, it seems that the USB subsystem in U-boot need some help. Since I've been asked and I'm willing to help, I've added myself to the maintainers entry. I have also added myself for fastboot since I'm

Re: [PATCH 1/2] MAINTAINERS: usb gadget: add Mattijs

2023-10-18 Thread Marek Vasut
On 10/5/23 15:04, Mattijs Korpershoek wrote: It seems that Lukasz and Marek could get some help in maintaining the usb gadget drivers. Assign myself as maintainer. Signed-off-by: Mattijs Korpershoek Acked-by: Marek Vasut

Re: [PATCH 2/2] MAINTAINERS: fastboot: add Mattijs

2023-10-18 Thread Marek Vasut
On 10/5/23 15:04, Mattijs Korpershoek wrote: Fastboot has been marked as orphaned since 2021. Since I'm interested in maintaining this, assign myself. Signed-off-by: Mattijs Korpershoek Acked-by: Marek Vasut

Re: [PATCH v7 6/9] efi_loader: add CDROM short-form device path

2023-10-18 Thread Heinrich Schuchardt
On 10/16/23 08:45, Masahisa Kojima wrote: UEFI specification does not mandate to support the short-form of the CDROM media device path. Fedora installation ISO image is identified as CDROM media device path, supporting short-form CDROM media device path is required to automatically add the boot

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

2023-10-18 Thread Minda Chen
On 2023/10/18 18:11, Marek Vasut wrote: > On 10/18/23 05:46, Minda Chen wrote: >> >> >> 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()

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

2023-10-18 Thread Marek Vasut
On 10/18/23 05:46, Minda Chen wrote: 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

  1   2   >