Re: [PATCH] arm: mvebu: turris_omnia: Remove hardcoded spi-nor device tree path

2022-08-01 Thread Stefan Roese
On 01.08.22 23:58, Pali Rohár wrote: Linux kernel DTS files renamed spi-nor@0 node to flash@0 which effectively broke U-Boot to boot new Linux kernel versions correctly. So remove hardcoded spi-nor device tree path from Turris Omnia board code and replace it by searching for mtd node by compatib

Re: [PATCH] timer: bcmbca: Add Broadcom BCMBCA timer support

2022-08-01 Thread Rafał Miłecki
On 2.08.2022 00:03, William Zhang wrote: This driver supports the peripheral block timer found on the Broadcom BCA SoCs. It is 30-bit up-count timer running at 50MHz and can be used as the system clock source such as on BCM63138. Signed-off-by: William Zhang (...) +static const struct udev

Re: [PATCH 0/6] introduce Arm FF-A support

2022-08-01 Thread Simon Glass
Hi Sudeep, On Mon, 1 Aug 2022 at 13:28, Sudeep Holla wrote: > > On Mon, Aug 01, 2022 at 01:13:23PM -0600, Simon Glass wrote: > > On Wed, 13 Apr 2022 at 10:46, Tom Rini wrote: > > > > > > How is it both discoverable and doesn't have a device tree node, in the > > > kernel? > > > > Also, if it is

Re: [PATCH v1 1/2] ARM: configs: npcm7xx: add full function for nuvoton npcm750

2022-08-01 Thread Jim Liu
Hi Tom Thanks for your review. My i2c driver status is Awaiting Upstream. Is this the reason for the failure? What should I do to fix this build error? Any comments are most welcome! Best regards, Jim On Tue, Jul 26, 2022 at 12:59 AM Tom Rini wrote: > > On Tue, Jul 12, 2022 at 05:24:06PM +08

[PATCH] arm: disable FDPIC ABI

2022-08-01 Thread Ben Wolsieffer
When building with an arm-*-uclinuxfdpiceabi toolchain, the FDPIC ABI is enabled by default but should not be used to build U-Boot. Therefore, pass -mno-fdpic if supported by the compiler. Signed-off-by: Ben Wolsieffer --- arch/arm/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/

Re: [PATCH v2 5/5] test: add test for full FAT16 directory

2022-08-01 Thread AKASHI Takahiro
On Mon, Aug 01, 2022 at 08:14:15AM +0200, Heinrich Schuchardt wrote: > > > On 8/1/22 03:50, AKASHI Takahiro wrote: > > On Sun, Jul 31, 2022 at 01:58:37PM +0200, Heinrich Schuchardt wrote: > > > Add a unit test checking that a full FAT16 directory leads to an error > > > when trying to add an addi

Re: [PATCH v2 1/5] fs: fat: finding an empty FAT cluster

2022-08-01 Thread AKASHI Takahiro
On Mon, Aug 01, 2022 at 10:21:20AM +0200, Heinrich Schuchardt wrote: > > > On 8/1/22 03:02, AKASHI Takahiro wrote: > > On Sun, Jul 31, 2022 at 01:58:33PM +0200, Heinrich Schuchardt wrote: > > > Currently we have two functions with redundant coding to find an empty > > > cluster: > > > > > > * fi

Re: [PATCH 2/2] Makefile: Build final mpc85xx non-SPL image in standard file u-boot.bin

2022-08-01 Thread Tom Rini
On Mon, Aug 01, 2022 at 09:39:00PM +0200, Pali Rohár wrote: > On Monday 01 August 2022 13:13:22 Simon Glass wrote: > > Hi Pali, > > > > On Mon, 1 Aug 2022 at 09:43, Pali Rohár wrote: > > > > > > Currently Makefile produces final mpc85xx image when SPL is not used in > > > custom file u-boot-with-

[PATCH] arm: bcmbca: add bcm63138 SoC support

2022-08-01 Thread William Zhang
BCM63138 is an ARM A9 based DSL Broadband SoC. It is part of the BCA (Broadband Carrier Access origin) chipset family so it's added under ARCH_BCMBCA platform. This initial support includes a bare-bone implementation and dts with CPU subsystem, memory, peripheral timer and Broadcom uart. This SoC

[PATCH] timer: bcmbca: Add Broadcom BCMBCA timer support

2022-08-01 Thread William Zhang
This driver supports the peripheral block timer found on the Broadcom BCA SoCs. It is 30-bit up-count timer running at 50MHz and can be used as the system clock source such as on BCM63138. Signed-off-by: William Zhang --- MAINTAINERS | 1 + drivers/timer/Kconfig| 8 +

[PATCH] timer: bcmbca: Add Broadcom BCMBCA timer support

2022-08-01 Thread William Zhang
This driver supports the peripheral block timer found on the Broadcom BCA SoCs. It is 30-bit up-count timer running at 50MHz and can be used as the system clock source such as on BCM63138. Signed-off-by: William Zhang --- MAINTAINERS | 1 + drivers/timer/Kconfig| 8

[PATCH] arm: mvebu: turris_omnia: Remove hardcoded spi-nor device tree path

2022-08-01 Thread Pali Rohár
Linux kernel DTS files renamed spi-nor@0 node to flash@0 which effectively broke U-Boot to boot new Linux kernel versions correctly. So remove hardcoded spi-nor device tree path from Turris Omnia board code and replace it by searching for mtd node by compatible string. Signed-off-by: Pali Rohár

Re: [PATCH 2/2] Makefile: Build final mpc85xx non-SPL image in standard file u-boot.bin

2022-08-01 Thread Pali Rohár
On Monday 01 August 2022 13:13:22 Simon Glass wrote: > Hi Pali, > > On Mon, 1 Aug 2022 at 09:43, Pali Rohár wrote: > > > > Currently Makefile produces final mpc85xx image when SPL is not used in > > custom file u-boot-with-dtb.bin. It is quite confusing name as build > > process produce also inte

Re: [PATCH 0/6] introduce Arm FF-A support

2022-08-01 Thread Sudeep Holla
On Mon, Aug 01, 2022 at 01:13:23PM -0600, Simon Glass wrote: > On Wed, 13 Apr 2022 at 10:46, Tom Rini wrote: > > > > How is it both discoverable and doesn't have a device tree node, in the > > kernel? > > Also, if it is discoverable, we can still use U-Boot to discover it > and then pass the info

Re: [PATCH 2/2] Makefile: Build final mpc85xx non-SPL image in standard file u-boot.bin

2022-08-01 Thread Simon Glass
Hi Pali, On Mon, 1 Aug 2022 at 09:43, Pali Rohár wrote: > > Currently Makefile produces final mpc85xx image when SPL is not used in > custom file u-boot-with-dtb.bin. It is quite confusing name as build > process produce also intermediate file standard file u-boot-dtb.bin (which > is just interme

Re: [PATCH v3 2/8] binman: allow user-defined filenames for mkimage entry

2022-08-01 Thread Simon Glass
Hi Quentin, On Mon, 1 Aug 2022 at 10:06, Quentin Schulz wrote: > > From: Quentin Schulz > > mkimage entry currently creates a file whose name is derived from the > section name containing said entry. > > Let's allow the user to define a filename for the mkimage-generated > binary by using the 'f

Re: [PATCH 0/6] introduce Arm FF-A support

2022-08-01 Thread Simon Glass
Hi, On Wed, 13 Apr 2022 at 10:46, Tom Rini wrote: > > On Wed, Apr 13, 2022 at 03:20:23PM +0100, Abdellatif El Khlifi wrote: > > On Tue, Apr 12, 2022 at 08:28:42AM -0500, Rob Herring wrote: > > > On Tue, Apr 12, 2022 at 7:01 AM Tom Rini wrote: > > > > > > > > On Tue, Apr 12, 2022 at 12:43:15PM +0

Re: [PATCH v3 3/8] rockchip: remove binman temporary files when cleaning

2022-08-01 Thread Simon Glass
Hi Johan, On Mon, 1 Aug 2022 at 12:59, Johan Jonker wrote: > > Hi Quentin, > > Beside removing the "real" annoyance is that these files popup when adding > with "git add ." and are blocking branch changing with "git branch ...". > Maybe add to ".gitignore" as well or delete immediately. What's t

Re: [PATCH v3 5/8] rockchip: generate u-boot-rockchip.bin with binman for ARM64 boards

2022-08-01 Thread Simon Glass
On Mon, 1 Aug 2022 at 10:06, Quentin Schulz wrote: > > From: Quentin Schulz > > This allows to build u-boot-rockchip.bin binary with binman for Rockchip > ARM64 boards instead of the legacy Makefile way. > > Cc: Quentin Schulz > Signed-off-by: Quentin Schulz > --- > Makefile

Re: Replace make-fit-atf.py with binman. Was: migrate u-boot-rockchip.bin to binman and generate an image for SPI

2022-08-01 Thread Simon Glass
Hi Quentin, On Mon, 1 Aug 2022 at 11:05, Quentin Schulz wrote: > > Hi Simon, > > On 7/31/22 03:27, Simon Glass wrote: > > Hi Quentin, > > > > On Wed, 27 Jul 2022 at 04:34, Quentin Schulz > > wrote: > >> > >> Hi Simon, > >> > >> On 7/26/22 21:58, Simon Glass wrote: > >>> Hi Quentin, > >>> > >>> O

Re: [PATCH v3 4/8] rockchip: generate idbloader.img content for u-boot-rockchip.bin with binman for ARM

2022-08-01 Thread Simon Glass
On Mon, 1 Aug 2022 at 10:06, Quentin Schulz wrote: > > From: Quentin Schulz > > idbloader.img content - currently created by way of Makefile - can be > created by binman directly. > > So let's do that for Rockchip ARM platforms. > > Cc: Quentin Schulz > Signed-off-by: Quentin Schulz > --- > > v

Re: [PATCH v2 0/7] Add support for cyclic function execution infrastruture

2022-08-01 Thread Simon Glass
Hi Stefan, On Mon, 1 Aug 2022 at 08:09, Stefan Roese wrote: > > Hi Simon, > > On 01.08.22 15:00, Simon Glass wrote: > > Hi Stefan, > > > > On Mon, 1 Aug 2022 at 06:40, Stefan Roese wrote: > >> > >> Hi Simon, > >> > >> On 01.08.22 14:22, Simon Glass wrote: > >>> Hi Stefan, > >>> > >>> On Mon, 1 A

Re: [PATCH 1/2] Makefile: Fix dependency for u-boot-with-dtb.bin

2022-08-01 Thread Simon Glass
On Mon, 1 Aug 2022 at 09:43, Pali Rohár wrote: > > Makefile uses binman to produce u-boot-with-dtb.bin target. As its input it > takes DTB file and u-boot binary without DTB, which is stored in file > u-boot-nodtb.bin. So fix target dependency. > > Signed-off-by: Pali Rohár > --- > Makefile | 2

Re: [PATCH 5/5] dm: rtc: Try to handle the localtime() race

2022-08-01 Thread Simon Glass
Hi Heinrich, On Mon, 1 Aug 2022 at 09:00, Heinrich Schuchardt wrote: > > On 8/1/22 15:58, Simon Glass wrote: > > At present the sandbox timer uses localtime() which can jump around twice > > a year when daylight-saving time changes. > > > > It would be tricky to make use of gmtime() since we stil

Re: [PATCH] dm: rtc: Avoid a race in the rtc_reset test

2022-08-01 Thread Simon Glass
Hi Heinrich, On Mon, 1 Aug 2022 at 08:58, Heinrich Schuchardt wrote: > > On 8/1/22 15:59, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 1 Aug 2022 at 02:11, Heinrich Schuchardt wrote: > >> > >> On 7/31/22 20:27, Simon Glass wrote: > >>> Since resetting the RTC on sandbox causes it to read

Re: [PATCH 1/1] cmd: inconsistent return type of command_process()

2022-08-01 Thread Simon Glass
On Mon, 1 Aug 2022 at 07:18, Heinrich Schuchardt wrote: > > The declarations in the header and in the implementation must match. > > Reported-by: Sergei Antonov > Signed-off-by: Heinrich Schuchardt > --- > include/command.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed

Re: [PATCH] doc: develop: Add a note about importing code from other projects

2022-08-01 Thread Sudeep Holla
On Mon, Aug 01, 2022 at 02:57:01PM -0400, Tom Rini wrote: > We talk about importing code from other projects in two places. The > first place is in the coding style section, where we explain when to or > not to deviate in terms of white space, etc. In the process > documentation we now add a note a

Re: [PATCH v3 3/8] rockchip: remove binman temporary files when cleaning

2022-08-01 Thread Johan Jonker
Hi Quentin, Beside removing the "real" annoyance is that these files popup when adding with "git add ." and are blocking branch changing with "git branch ...". Maybe add to ".gitignore" as well or delete immediately. What's the use to keep them around? Johan On 8/1/22 18:06, Quentin Schulz wro

[PATCH] doc: develop: Add a note about importing code from other projects

2022-08-01 Thread Tom Rini
We talk about importing code from other projects in two places. The first place is in the coding style section, where we explain when to or not to deviate in terms of white space, etc. In the process documentation we now add a note about saying where the code was imported from and to ensure that yo

Re: [PATCH v3 1/4] arm64: smccc: add Xn registers support used by SMC calls

2022-08-01 Thread Sudeep Holla
On Mon, Aug 01, 2022 at 06:20:50PM +0100, Abdellatif El Khlifi wrote: > use x0-x17 registers in the SMC32/SMC64 calls according to SMCCCv1.2 > > Signed-off-by: Sudeep Holla Please drop my signed-off as I didn't. I am seeing this patch on the list for the first time and AFAIK I haven't posted any

[PATCH v2 5/5] arm: bcmbca: add bcm63148 SoC support

2022-08-01 Thread William Zhang
BCM63148 is an Broadcom B15 based DSL Broadband SoC. It is part of the BCA (Broadband Carrier Access origin) chipset family so it's added under ARCH_BCMBCA platform. This initial support includes a bare-bone implementation and dts with CPU subsystem, memory and Broadcom uart. This SoC is supported

[PATCH v2 4/5] arm: bcmbca: add bcm6756 SoC support

2022-08-01 Thread William Zhang
BCM6756 is an ARM A7 based WLAN Gateway and Access Point Broadband SoC. It is part of the BCA(Broadband Carrier Access origin) chipset family so it's added under ARCH_BCMBCA platform. This initial support includes a bare-bone implementation and dts with CPU subsystem, memory and ARM PL011 uart. Th

[PATCH v2 3/5] arm: bcmbca: add bcm6878 SoC support

2022-08-01 Thread William Zhang
BCM6878 is an ARM A7 based PON Broadband SoC. It is part of the BCA (Broadband Carrier Access origin) chipset family so it's added under ARCH_BCMBCA platform. This initial support includes a bare-bone implementation and dts with CPU subsystem, memory and ARM PL011 uart. This SoC is supported in th

[PATCH v2 2/5] arm: bcmbca: add bcm6846 SoC support

2022-08-01 Thread William Zhang
BCM6846 is an ARM A7 based PON Broadband SoC. It is part of the BCA (Broadband Carrier Access origin) chipset family so it's added under ARCH_BCMBCA platform. This initial support includes a bare-bone implementation and dts with CPU subsystem, memory and Broadcom uart. This SoC is supported in the

[PATCH v2 1/5] arm: bcmbca: add bcm63178 SoC support

2022-08-01 Thread William Zhang
BCM63178 is an ARM A7 based DSL Broadband SoC. It is part of the BCA (Broadband Carrier Access origin) chipset family so it's added under ARCH_BCMBCA platform. This initial support includes a bare-bone implementation and dts with CPU subsystem, memory and ARM PL011 uart. This SoC is supported in t

[PATCH v2 0/5] arm: bcmbca: add basic support for Broadcom BCA SoCs

2022-08-01 Thread William Zhang
Broadcom BCA (Broadband Carrier Access origin) chipset family includes DSL, PON and WLAN access point and gateway SoC. Now that the ARCH_BCMBCA architecture and its first SoC BCM47622 are supported in u-boot 2022.07, this patch series add the basic support for following BCA chips under ARCH_BCMBCA:

Re: [PATCH 2/2] Makefile: Build final mpc85xx non-SPL image in standard file u-boot.bin

2022-08-01 Thread Tom Rini
On Mon, Aug 01, 2022 at 05:42:20PM +0200, Pali Rohár wrote: > Currently Makefile produces final mpc85xx image when SPL is not used in > custom file u-boot-with-dtb.bin. It is quite confusing name as build > process produce also intermediate file standard file u-boot-dtb.bin (which > is just interm

Re: [PATCH 1/2] Makefile: Fix dependency for u-boot-with-dtb.bin

2022-08-01 Thread Tom Rini
On Mon, Aug 01, 2022 at 05:42:19PM +0200, Pali Rohár wrote: > Makefile uses binman to produce u-boot-with-dtb.bin target. As its input it > takes DTB file and u-boot binary without DTB, which is stored in file > u-boot-nodtb.bin. So fix target dependency. > > Signed-off-by: Pali Rohár Reviewed-

Re: [PATCH 1/5] arm: bcmbca: add bcm63178 SoC support

2022-08-01 Thread William Zhang
Hi Tom, On 08/01/2022 07:02 AM, Tom Rini wrote: On Fri, Jul 29, 2022 at 12:48:43PM -0700, William Zhang wrote: BCM63178 is an ARM A7 based DSL Broadband SoC. It is part of the BCA (Broadband Carrier Access origin) chipset family so it's added under ARCH_BCMBCA platform. This initial support in

[PATCH v3 4/4] arm_ffa: introduce armffa command

2022-08-01 Thread Abdellatif El Khlifi
Provide armffa command showcasing the use of the FF-A driver The armffa command allows to query secure partitions data from the secure world and exchanging messages with the partitions. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander --- MAINTAINERS

[PATCH v3 3/4] arm_ffa: introduce Arm FF-A low-level driver

2022-08-01 Thread Abdellatif El Khlifi
Add the driver implementing Arm Firmware Framework for Armv8-A v1.0 The Firmware Framework for Arm A-profile processors (FF-A) describes interfaces (ABIs) that standardize communication between the Secure World and Normal World leveraging TrustZone technology. This driver uses 64-bit registers as

[PATCH v3 2/4] arm64: smccc: clear the Xn registers after SMC calls

2022-08-01 Thread Abdellatif El Khlifi
set to zero the x0-x17 registers As per the SMCCC v1.2 spec, unused result and scratch registers can leak information after an SMC call. We can mitigate against this risk by returning zero in each register. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklande

[PATCH v3 1/4] arm64: smccc: add Xn registers support used by SMC calls

2022-08-01 Thread Abdellatif El Khlifi
use x0-x17 registers in the SMC32/SMC64 calls according to SMCCCv1.2 Signed-off-by: Sudeep Holla Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander --- arch/arm/cpu/armv8/smccc-call.S | 53 + arch/arm/lib/asm-offsets.c

[PATCH v3 0/4] introduce Arm FF-A support

2022-08-01 Thread Abdellatif El Khlifi
This new version of the patchset provides improvements to the FF-A driver design. The FF-A driver is a discoverable bus and brings these new features: * support for the 64-bit x0-x17 registers in SMC arguments passing * align with the FF-A kernel driver interfaces * make the driver EFI independ

Re: Replace make-fit-atf.py with binman. Was: migrate u-boot-rockchip.bin to binman and generate an image for SPI

2022-08-01 Thread Quentin Schulz
Hi Simon, On 7/31/22 03:27, Simon Glass wrote: Hi Quentin, On Wed, 27 Jul 2022 at 04:34, Quentin Schulz wrote: Hi Simon, On 7/26/22 21:58, Simon Glass wrote: Hi Quentin, On Tue, 26 Jul 2022 at 03:08, Quentin Schulz wrote: Hi Xavier, On 7/25/22 19:33, Xavier Drudis Ferran wrote: El Mo

Re: [PATCH v3 6/8] rockchip: simplify binman image dependencies addition to INPUTS

2022-08-01 Thread Quentin Schulz
HI all, On 8/1/22 18:06, Quentin Schulz wrote: From: Quentin Schulz By factoring SPL check in the first condition, this makes the checks a bit less convoluted and more readable. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- Makefile | 9 ++--- 1 file changed, 2 insertions(+),

[PATCH v3 8/8] rockchip: add u-boot-rockchip-spi.bin image for booting from SPI-NOR flash

2022-08-01 Thread Quentin Schulz
From: Quentin Schulz This new image is similar to u-boot-rockchip.bin except that it's destined to be flashed on SPI-NOR flashes. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- v3: - added filename property so that idblaoder-spi.img binary is generated by binman, as per community requ

[PATCH v3 7/8] rockchip: allow to build SPI images even without HAS_ROM option

2022-08-01 Thread Quentin Schulz
From: Quentin Schulz This prepares for the creation of a u-boot-rockchip-spi.bin image similar to u-boot-rockchip.bin to the exception it's destined for SPI-NOR flashes instead of MMC storage medium. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- arch/arm/dts/rk3288-u-boot.dtsi | 2 +-

[PATCH v3 6/8] rockchip: simplify binman image dependencies addition to INPUTS

2022-08-01 Thread Quentin Schulz
From: Quentin Schulz By factoring SPL check in the first condition, this makes the checks a bit less convoluted and more readable. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- Makefile | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile ind

[PATCH v3 5/8] rockchip: generate u-boot-rockchip.bin with binman for ARM64 boards

2022-08-01 Thread Quentin Schulz
From: Quentin Schulz This allows to build u-boot-rockchip.bin binary with binman for Rockchip ARM64 boards instead of the legacy Makefile way. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- Makefile | 26 +- arch/arm/Kconfig

[PATCH v3 4/8] rockchip: generate idbloader.img content for u-boot-rockchip.bin with binman for ARM

2022-08-01 Thread Quentin Schulz
From: Quentin Schulz idbloader.img content - currently created by way of Makefile - can be created by binman directly. So let's do that for Rockchip ARM platforms. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- v3: - moved spl back into mkimage section, - added filename property so t

[PATCH v3 3/8] rockchip: remove binman temporary files when cleaning

2022-08-01 Thread Quentin Schulz
From: Quentin Schulz Binman mkimage entry generates temporary files so let's remove them when calling `make clean`. Fixes: 9b312e26fc77 ("rockchip: Enable building a SPI ROM image on jerry") Cc: Quentin Schulz Reported-by: Johan Jonker Signed-off-by: Quentin Schulz --- added in v3 Makefile

[PATCH v3 2/8] binman: allow user-defined filenames for mkimage entry

2022-08-01 Thread Quentin Schulz
From: Quentin Schulz mkimage entry currently creates a file whose name is derived from the section name containing said entry. Let's allow the user to define a filename for the mkimage-generated binary by using the 'filename' DT property. Cc: Quentin Schulz Signed-off-by: Quentin Schulz ---

[PATCH v3 1/8] binman: add support for skipping file concatenation for mkimage

2022-08-01 Thread Quentin Schulz
From: Quentin Schulz Some image types handled by mkimage require the datafiles to be passed independently (-d data1:data2) for specific handling of each. A concatenation of datafiles prior to passing them to mkimage wouldn't work. That is the case for rkspi for example which requires page alignm

[PATCH v3 0/8] migrate u-boot-rockchip.bin to binman and generate an image for SPI

2022-08-01 Thread Quentin Schulz
From: Quentin Schulz This migrates the generation of u-boot-rockchip.bin from Makefile to binman completely. This also adds support for generating the same kind of image than u-boot-rockchip.bin but for SPI flashes (specifically, a different image type generated by mkimage is necessary, in addit

Re: [PATCH 2/2] arm: mvebu: turris_omnia: Increase fdt size in fixup_mtd_partitions

2022-08-01 Thread Marek Behún
On Mon, 1 Aug 2022 12:02:20 +0200 Pali Rohár wrote: > Sometimes fixup_mtd_partitions() prints during booting kernel error > "Failed fixing SPI NOR partitions!" because it does not have enough space > for creating all paritions nodes. So increase fdt size. > > Fixes: 92f36c8e74c1 ("arm: mvebu: t

Re: [PATCH 1/2] arm: mvebu: turris_omnia: Do not fail in fixup_mtd_partitions when partitions do not exist

2022-08-01 Thread Marek Behún
On Mon, 1 Aug 2022 12:02:19 +0200 Pali Rohár wrote: > All partitions are created by fixup_mtd_partitions() function, so they do > not have to exist just for their removal need. > > Fixes: 92f36c8e74c1 ("arm: mvebu: turris_omnia: fixup MTD partitions in > Linux' DTB") > Signed-off-by: Pali Rohá

Re: [PATCH 2/2] arm: mvebu: turris_omnia: Add support for design with SW reset signals

2022-08-01 Thread Marek Behún
On Fri, 29 Jul 2022 13:29:07 +0200 Pali Rohár wrote: > New Turris Omnia HW board revision requires that software controls > peripheral reset signals, namely PERST# signals on mPCIe slots, ethernet > phy reset and lan switch reset. Those pins are connected to MCU controlled > by MCU i2c API as GPI

Re: [PATCH 1/2] arm: mvebu: turris_omnia: Show MCU type in show_board_info()

2022-08-01 Thread Marek Behún
On Fri, 29 Jul 2022 13:29:06 +0200 Pali Rohár wrote: > Different Turris Omnia HW board revisions contains different MCU. > Show type in show_board_info() to easily identify which MCU is populated. > > Signed-off-by: Pali Rohár Reviewed-by: Marek Behún

[PATCH 2/2] Makefile: Build final mpc85xx non-SPL image in standard file u-boot.bin

2022-08-01 Thread Pali Rohár
Currently Makefile produces final mpc85xx image when SPL is not used in custom file u-boot-with-dtb.bin. It is quite confusing name as build process produce also intermediate file standard file u-boot-dtb.bin (which is just intermediate and not bootable). Other platforms use u-boot.bin (UBOOT_BIN)

[PATCH 1/2] Makefile: Fix dependency for u-boot-with-dtb.bin

2022-08-01 Thread Pali Rohár
Makefile uses binman to produce u-boot-with-dtb.bin target. As its input it takes DTB file and u-boot binary without DTB, which is stored in file u-boot-nodtb.bin. So fix target dependency. Signed-off-by: Pali Rohár --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH v1 2/2] cmd: fru: add product info area parsing support

2022-08-01 Thread Jae Hyun Yoo
On 8/1/2022 5:37 AM, Heinrich Schuchardt wrote: On 7/29/22 23:54, Jae Hyun Yoo wrote: Add product info area parsing support. Custom product info field parsing function 'fru_parse_product_custom' can be replaced with a board specific implementation. Signed-off-by: Jae Hyun Yoo --- Changes from

Re: [PATCH v1 1/2] cmd: fru: move FRU handling support to common region

2022-08-01 Thread Jae Hyun Yoo
On 8/1/2022 5:34 AM, Heinrich Schuchardt wrote: On 7/29/22 23:54, Jae Hyun Yoo wrote: From: Graeme Gregory The FRU handling was added as a Xilinx board dependent support but it would be useful for other boards too, so this commit moves the FRU handling support to the common region so that it c

Re: [PATCH 5/5] dm: rtc: Try to handle the localtime() race

2022-08-01 Thread Heinrich Schuchardt
On 8/1/22 15:58, Simon Glass wrote: At present the sandbox timer uses localtime() which can jump around twice a year when daylight-saving time changes. It would be tricky to make use of gmtime() since we still need to present the time in local time, as seems to be required by U-Boot's RTC interf

Re: [PATCH] dm: rtc: Avoid a race in the rtc_reset test

2022-08-01 Thread Heinrich Schuchardt
On 8/1/22 15:59, Simon Glass wrote: Hi Heinrich, On Mon, 1 Aug 2022 at 02:11, Heinrich Schuchardt wrote: On 7/31/22 20:27, Simon Glass wrote: Since resetting the RTC on sandbox causes it to read the base time from the system, we cannot rely on this being unchanged since it was last read. All

Re: [PATCH v1 0/2] cmd/fru: move FRU handling support to common region

2022-08-01 Thread Jae Hyun Yoo
Hi Michal, On 8/1/2022 3:29 AM, Michal Simek wrote: On 7/29/22 23:54, Jae Hyun Yoo wrote: Hello, The FRU handling was added as a Xilinx board dependent support but it would be useful for other boards too, so this commit moves the FRU handling support to the common region so that it can be en

Re: [PATCH 1/1] fs/erofs: silence erofs_probe()

2022-08-01 Thread Huang Jianan
在 2022年8月1日星期一,Heinrich Schuchardt 写道: > fs_set_blk_dev() probes all file-systems until it finds one that matches > the volume. We do not expect any console output for non-matching > file-systems. > > Convert error messages in erofs_read_superblock() to debug output. > > Fixes: 830613f8f5bb ("fs/

Re: [PATCH] MAINTAINERS: Change POWERPC MPC85XX maintainer to Marek Behún

2022-08-01 Thread Tom Rini
On Mon, Jul 25, 2022 at 05:06:15PM +0200, Marek Behún wrote: > After a discussion with Tom Rini, we've agreed that I am going to take > over custodianship of the MPC85XX platform, since it seems other people > do not have necessary interest or time and getting things done over > there takes too lo

Re: [PATCH v2 0/7] Add support for cyclic function execution infrastruture

2022-08-01 Thread Stefan Roese
Hi Simon, On 01.08.22 15:00, Simon Glass wrote: Hi Stefan, On Mon, 1 Aug 2022 at 06:40, Stefan Roese wrote: Hi Simon, On 01.08.22 14:22, Simon Glass wrote: Hi Stefan, On Mon, 1 Aug 2022 at 01:17, Stefan Roese wrote: Hi Simon, On 31.07.22 03:27, Simon Glass wrote: Hi Stefan, On Thu,

Re: [PATCH 1/5] arm: bcmbca: add bcm63178 SoC support

2022-08-01 Thread Tom Rini
On Fri, Jul 29, 2022 at 12:48:43PM -0700, William Zhang wrote: > BCM63178 is an ARM A7 based DSL Broadband SoC. It is part of the BCA > (Broadband Carrier Access origin) chipset family so it's added under > ARCH_BCMBCA platform. This initial support includes a bare-bone > implementation and dts wi

Re: [PATCH] dm: rtc: Avoid a race in the rtc_reset test

2022-08-01 Thread Simon Glass
Hi Heinrich, On Mon, 1 Aug 2022 at 02:11, Heinrich Schuchardt wrote: > > On 7/31/22 20:27, Simon Glass wrote: > > Since resetting the RTC on sandbox causes it to read the base time from > > the system, we cannot rely on this being unchanged since it was last read. > > Allow for a one-second delay

[PATCH 5/5] dm: rtc: Try to handle the localtime() race

2022-08-01 Thread Simon Glass
At present the sandbox timer uses localtime() which can jump around twice a year when daylight-saving time changes. It would be tricky to make use of gmtime() since we still need to present the time in local time, as seems to be required by U-Boot's RTC interface. The problem can only happen once

[PATCH 4/5] dm: rtc: Try to avoid a race in rtc_set_get test

2022-08-01 Thread Simon Glass
It seems that the time can change in between getting it and reading the offset. Check for this and try again if this happens. Signed-off-by: Simon Glass --- test/dm/rtc.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/test/dm/rtc.c b/test/dm/rtc.c in

[PATCH 3/5] dm: rtc: Avoid a race in the rtc_reset test

2022-08-01 Thread Simon Glass
Since resetting the RTC on sandbox causes it to read the base time from the system, we cannot rely on this being unchanged since it was last read. Allow for a one-second delay. Reviewed-by: Heinrich Schuchardt Fixes: https://source.denx.de/u-boot/u-boot/-/issues/4 Reported-by: Bin Meng Reported-

[PATCH 2/5] test: Allow running tests multiple times

2022-08-01 Thread Simon Glass
Some tests can have race conditions which are hard to detect on a single one. Add a way to run tests more than once, to help with this. Each individual test is run the requested number of times before moving to the next test. If any runs failed, a message is shown. This is most useful when runnin

[PATCH 1/5] dm: rtc: Make use of ut_assertnonnull()

2022-08-01 Thread Simon Glass
Use this (newish) macro since it is designed for the purpose of making sure things are non-NULL. Signed-off-by: Simon Glass --- test/dm/rtc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/dm/rtc.c b/test/dm/rtc.c index c7f9f8f0ce7..a8349756c18 100644 --- a/

[PATCH 0/5] rtc: Work around race conditions

2022-08-01 Thread Simon Glass
This series includes some patches to work around race conditions in the rtc tests, as well as a mechanism to run unit tests more than once. With 1000 runs I normally see three failures in the tests addressed here. With this series no failures are seen. This also includes a work-around for the day

[PATCH v5 1/1] test: Add some tests for kconfig.h

2022-08-01 Thread Simon Glass
The macros in this file are a little confusing and we currently have no tests to check that they work as expected. Add some tests which check the macros in C code. Add a few tests which check that the build errors are generated correctly too, using buildman's -a option. Signed-off-by: Simon Glass

[PATCH] board: freescale: p1_p2_rdb_pc: Delete watchdog max6370 node in load_default mode

2022-08-01 Thread Pali Rohár
CPLD in load_default mode ignores watchdog reset signal. It does not reset board when watchdog triggers reset signal. Detect load_default mode by GPIO7 - LOAD_DEFAULT_N and delete watchdog max6370 node from device to prevent registering driver for non-working watchdog. Signed-off-by: Pali Rohár

[PATCH v2 1/4] board: freescale: p1_p2_rdb_pc: Add workaround for board reset reboot loop

2022-08-01 Thread Pali Rohár
CPLD's system reset register on P1/P2 RDB boards is not autocleared after flipping it. If this register is set to one in 100ms after reset starts then CPLD triggers another CPU reset. This means that trying to reset board via CPLD system reset register cause reboot loop. To prevent this reboot loo

[PATCH v2 3/4] board: freescale: p1_p2_rdb_pc: Avoid usage of CPLD's system reset register

2022-08-01 Thread Pali Rohár
CPLD's system reset register is buggy and requires workaround in U-Boot. So use this kind of board reset only when there is no other reset option. Introduce a new board_reset_last() callback which is last-stage board-specific reset and implement CPLD's system reset in this new board_reset_last() c

[PATCH v2 4/4] board: freescale: p1_p2_rdb_pc: Turn off watchdog before reset

2022-08-01 Thread Pali Rohár
P1/P2 RDB boards have external max6370 watchdog connected to CPLD and this watchdog is not deactivated on board reset. So if it is active during board reset, it can trigger another reset when CPU is booting U-Boot. To prevent possible infinite reset loop caused by external watchdog, turn it off bef

[PATCH v2 2/4] board: freescale: p1_p2_rdb_pc: Add workaround for non-working watchdog

2022-08-01 Thread Pali Rohár
If watchdog timer was already set to non-disabled value then it means that watchdog timer was already activated, has already expired and caused CPU reset. If this happened then due to CPLD firmware bug, writing to wd_cfg register has no effect and therefore it is not possible to reactivate watchdog

[PATCH 1/1] fs/erofs: silence erofs_probe()

2022-08-01 Thread Heinrich Schuchardt
fs_set_blk_dev() probes all file-systems until it finds one that matches the volume. We do not expect any console output for non-matching file-systems. Convert error messages in erofs_read_superblock() to debug output. Fixes: 830613f8f5bb ("fs/erofs: add erofs filesystem support") Signed-off-by:

Re: cmd_process warning

2022-08-01 Thread Heinrich Schuchardt
On 8/1/22 13:58, Sergei Antonov wrote: Hello! There is an annoying warning about conflicting return types: common/command.c:586:20: warning: conflicting types for 'cmd_process' due to enum/integer mismatch; have 'enum command_ret_t(int, int, char * const*, int *, ulong *)' {aka 'enum command_re

[PATCH 1/1] cmd: inconsistent return type of command_process()

2022-08-01 Thread Heinrich Schuchardt
The declarations in the header and in the implementation must match. Reported-by: Sergei Antonov Signed-off-by: Heinrich Schuchardt --- include/command.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/command.h b/include/command.h index 44c91f655d..8917da8b21

Re: [PATCH] Revert "fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ"

2022-08-01 Thread Rasmus Villemoes
On 31/07/2022 15.28, Tom Rini wrote: > On Sat, Jul 30, 2022 at 07:27:26PM -0600, Simon Glass wrote: >> Hi Tom, >> >> Shall I pick it up for the upcoming release? > > I don't think we should pick up the revert as I don't think there's > agreement that reverting this is the right step forward among

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Add env commands norlowerboot, norupperboot, sd2boot and defboot

2022-08-01 Thread Pali Rohár
On Friday 22 July 2022 00:20:21 Pali Rohár wrote: > On Friday 08 July 2022 19:12:10 Tom Rini wrote: > > [resend to the list too this time] > > > > On Sat, Jul 09, 2022 at 12:43:44AM +0200, Pali Rohár wrote: > > > PING > > > > > > I still have not received any response. What is the point? > >

Re: [PATCH v2 0/7] Add support for cyclic function execution infrastruture

2022-08-01 Thread Simon Glass
Hi Stefan, On Mon, 1 Aug 2022 at 06:40, Stefan Roese wrote: > > Hi Simon, > > On 01.08.22 14:22, Simon Glass wrote: > > Hi Stefan, > > > > On Mon, 1 Aug 2022 at 01:17, Stefan Roese wrote: > >> > >> Hi Simon, > >> > >> On 31.07.22 03:27, Simon Glass wrote: > >>> Hi Stefan, > >>> > >>> On Thu, 28

[PATCH v2] board: freescale: p1_p2_rdb_pc: Calculate offsets for eSDHC boot sector

2022-08-01 Thread Pali Rohár
Correctly calculate offsets between SPL and proper U-Boot when new config option CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR for generating eSDHC boot sector is enabled. Otherwise SPL would not be able to boot proper U-Boot. Signed-off-by: Pali Rohár --- Changes in v2: * rebase on top of master branch, c

Re: [PATCH v2 0/7] Add support for cyclic function execution infrastruture

2022-08-01 Thread Stefan Roese
Hi Simon, On 01.08.22 14:22, Simon Glass wrote: Hi Stefan, On Mon, 1 Aug 2022 at 01:17, Stefan Roese wrote: Hi Simon, On 31.07.22 03:27, Simon Glass wrote: Hi Stefan, On Thu, 28 Jul 2022 at 01:09, Stefan Roese wrote: This patchset adds the basic infrastructure to periodically execute c

Re: [PATCH v1 2/2] cmd: fru: add product info area parsing support

2022-08-01 Thread Heinrich Schuchardt
On 7/29/22 23:54, Jae Hyun Yoo wrote: Add product info area parsing support. Custom product info field parsing function 'fru_parse_product_custom' can be replaced with a board specific implementation. Signed-off-by: Jae Hyun Yoo --- Changes from RFC: * Added manufacturer custom product info f

Re: [PATCH v1 1/2] cmd: fru: move FRU handling support to common region

2022-08-01 Thread Heinrich Schuchardt
On 7/29/22 23:54, Jae Hyun Yoo wrote: From: Graeme Gregory The FRU handling was added as a Xilinx board dependent support but it would be useful for other boards too, so this commit moves the FRU handling support to the common region so that it can be enabled by CONFIG_CMD_FRU. To provide manu

Re: [PATCH v2 0/7] Add support for cyclic function execution infrastruture

2022-08-01 Thread Simon Glass
Hi Stefan, On Mon, 1 Aug 2022 at 01:17, Stefan Roese wrote: > > Hi Simon, > > On 31.07.22 03:27, Simon Glass wrote: > > Hi Stefan, > > > > On Thu, 28 Jul 2022 at 01:09, Stefan Roese wrote: > >> > >> This patchset adds the basic infrastructure to periodically execute > >> code, e.g. all 100ms. Ex

[PATCH] power: regulator: Remove i2c header from gpio regulator

2022-08-01 Thread Michal Simek
i2c is not used that's why header is not needed. Signed-off-by: Michal Simek --- drivers/power/regulator/fan53555.c | 1 - drivers/power/regulator/gpio-regulator.c | 1 - drivers/power/regulator/lp873x_regulator.c | 1 - drivers/power/regulator/lp87565_regulator.c | 1 - driver

Re: [PATCH 2/2] arm: mvebu: turris_omnia: Add support for design with SW reset signals

2022-08-01 Thread Pali Rohár
On Monday 01 August 2022 13:58:24 Stefan Roese wrote: > On 29.07.22 13:29, Pali Rohár wrote: > > New Turris Omnia HW board revision requires that software controls > > peripheral reset signals, namely PERST# signals on mPCIe slots, ethernet > > phy reset and lan switch reset. Those pins are connect

Re: [GIT PULL] please pull fsl-qoirq-2022-7-29

2022-08-01 Thread Tom Rini
On Mon, Aug 01, 2022 at 01:00:34AM +, Peng Fan wrote: > Hi Tom, > > Please pull fsl-qoriq-2022-7-29 > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

cmd_process warning

2022-08-01 Thread Sergei Antonov
Hello! There is an annoying warning about conflicting return types: common/command.c:586:20: warning: conflicting types for 'cmd_process' due to enum/integer mismatch; have 'enum command_ret_t(int, int, char * const*, int *, ulong *)' {aka 'enum command_ret_t(int, int, char * const*, int *, long

Re: [PATCH 2/2] arm: mvebu: turris_omnia: Add support for design with SW reset signals

2022-08-01 Thread Stefan Roese
On 29.07.22 13:29, Pali Rohár wrote: New Turris Omnia HW board revision requires that software controls peripheral reset signals, namely PERST# signals on mPCIe slots, ethernet phy reset and lan switch reset. Those pins are connected to MCU controlled by MCU i2c API as GPIOs. On new HW board revi

Re: [PATCH 1/2] arm: mvebu: turris_omnia: Show MCU type in show_board_info()

2022-08-01 Thread Stefan Roese
On 29.07.22 13:29, Pali Rohár wrote: Different Turris Omnia HW board revisions contains different MCU. Show type in show_board_info() to easily identify which MCU is populated. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- board/CZ.NIC/turris_omnia/turris_omnia.

  1   2   >