Re: [PATCH 3/5] FWU: mtd: Add helper functions for accessing FWU metadata

2022-09-01 Thread Heinrich Schuchardt
On 7/22/22 19:43, jassisinghb...@gmail.com wrote: From: Sughosh Ganu Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. Signed-off-by: Sughosh Ganu Signed-off-by: Jassi Brar --- lib/fwu_updates/Makefile | 1 + lib/fwu_updates/

Re: [PATCH 5/5] fwu: DeveloperBox: add support for FWU

2022-09-01 Thread Heinrich Schuchardt
On 7/22/22 19:43, jassisinghb...@gmail.com wrote: From: Jassi Brar Add code to support FWU_MULTI_BANK_UPDATE. The platform does not have gpt-partition storage for Banks and MetaData, rather it used SPI-NOR backed mtd regions for the purpose. Signed-off-by: Masami Hiramatsu Signed-off-by: Jass

Re: [PATCH 08/21] dm: core: Allow adding ofnode subnodes

2022-09-01 Thread Rasmus Villemoes
On 31/08/2022 05.08, Simon Glass wrote: > Add this feature to the ofnode interface, supporting both livetree and > flattree. > > Signed-off-by: Simon Glass > --- > > drivers/core/of_access.c | 50 > drivers/core/ofnode.c| 30

Re: [PATCH 5/5] fwu: DeveloperBox: add support for FWU

2022-09-01 Thread Heinrich Schuchardt
On 9/1/22 09:07, Heinrich Schuchardt wrote: On 7/22/22 19:43, jassisinghb...@gmail.com wrote: From: Jassi Brar Add code to support FWU_MULTI_BANK_UPDATE. The platform does not have gpt-partition storage for Banks and MetaData, rather it used SPI-NOR backed mtd regions for the purpose. Signed-

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-09-01 Thread Tony Dinh
Hi Simon, On Wed, Aug 31, 2022 at 7:27 PM Simon Glass wrote: > > Hi Tony, > > On Wed, 31 Aug 2022 at 19:39, Tony Dinh wrote: > > > > Hi Stefan, > > > > On Wed, Aug 31, 2022 at 2:53 PM Tony Dinh wrote: > > > > > > Hi Stefan, > > > > > > On Wed, Aug 31, 2022 at 8:08 AM Tony Dinh wrote: > > > > >

[PATCH] arm: orion5: Completely remove Orion5 platform support

2022-09-01 Thread Stefan Roese
As there is no Orion5 based target in mainline U-Boot any more, let's completely remove the support for this pretty old Marvell platform. Signed-off-by: Stefan Roese Cc: Tony Dinh Cc: Pali Rohár Cc: Michael Walle --- arch/arm/Kconfig | 9 - arch/arm/Makefile

Re: [PATCH] arm: orion5: Completely remove Orion5 platform support

2022-09-01 Thread Michael Walle
Am 2022-09-01 10:53, schrieb Stefan Roese: As there is no Orion5 based target in mainline U-Boot any more, let's completely remove the support for this pretty old Marvell platform. Signed-off-by: Stefan Roese Cc: Tony Dinh Cc: Pali Rohár Cc: Michael Walle --- a/drivers/net/Kconfig +++ b/

Re: [PATCH] arm: orion5: Completely remove Orion5 platform support

2022-09-01 Thread Pali Rohár
+ Mauri I think that we could wait a bit as Mauri is interested in Orion support and in last weeks we have been debugging and adding Orion support for pci-mvebu.c kernel driver. On Thursday 01 September 2022 10:53:28 Stefan Roese wrote: > As there is no Orion5 based target in mainline U-Boot any

Re: [PATCH] arm: orion5: Completely remove Orion5 platform support

2022-09-01 Thread Stefan Roese
On 01.09.22 11:00, Michael Walle wrote: Am 2022-09-01 10:53, schrieb Stefan Roese: As there is no Orion5 based target in mainline U-Boot any more, let's completely remove the support for this pretty old Marvell platform. Signed-off-by: Stefan Roese Cc: Tony Dinh Cc: Pali Rohár Cc: Michael Wa

Re: [PATCH] arm: orion5: Completely remove Orion5 platform support

2022-09-01 Thread Stefan Roese
Hi Mauri, On 01.09.22 11:03, Pali Rohár wrote: + Mauri I think that we could wait a bit as Mauri is interested in Orion support and in last weeks we have been debugging and adding Orion support for pci-mvebu.c kernel driver. Ah, thanks Pali. Mauri, please let us know what your plans are with

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-09-01 Thread Stefan Roese
Hi Tony, On 01.09.22 09:39, Tony Dinh wrote: Some ideas. The get_timer() function looks wrong assigning an uint64_t to ulong. lib/time.c static uint64_t notrace tick_to_time(uint64_t tick) uint64_t notrace get_ticks(void) uint64_t __weak notrace get_ticks(void) ulo

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-09-01 Thread Stefan Herbrechtsmeier
Hi, Am 01.09.2022 um 11:27 schrieb Stefan Roese: Hi Tony, On 01.09.22 09:39, Tony Dinh wrote: Some ideas. The get_timer() function looks wrong assigning an uint64_t to ulong. lib/time.c   static uint64_t notrace tick_to_time(uint64_t tick)   uint64_t notrace get_ticks(void)  

How can I change the LPDDR4x configuration on U-boot

2022-09-01 Thread Byungkook Kim
Dear Geniuses, I'm a beginner in the embedded world, so naturally I have a few questions. ^^;; I will ask the most curious thing among them. It is a very difficult problem for me, but I think it is a simple for you. Please teach me. I bought SBC(Single Board Computer) to study embedded Linux &

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

2022-09-01 Thread Kever Yang
On 2022/8/26 23:36, Quentin Schulz wrote: 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-b

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

2022-09-01 Thread Kever Yang
On 2022/8/26 23:36, 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 Reviewed-by: Simon Glass Signed-off-by: Quentin Schulz Review

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

2022-09-01 Thread Kever Yang
On 2022/8/26 23:36, 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 Reviewed-by: Simon Glass Signed-off-by: Quentin Schulz The Reviewed-by Tag usually

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

2022-09-01 Thread Kever Yang
On 2022/8/26 23:36, 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 Reviewed-by: Kever Yang Thanks, - Kever --- v4: - fixed wron

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

2022-09-01 Thread Kever Yang
On 2022/8/26 23:36, Quentin Schulz wrote: 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

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

2022-09-01 Thread Kever Yang
On 2022/8/26 23:36, Quentin Schulz wrote: 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 Reviewed-by: Kever Yang Thanks, - Kever --- v3: - added filen

Re: [PATCH] arm: rockchip: rk3399: Program PLL clock for DDR at 50 MHz in documented range

2022-09-01 Thread Kever Yang
Hi Xavier,     Thanks for your patch. On 2022/7/16 18:31, Xavier Drudis Ferran wrote: The original code set up the DDR clock to 48 MHz, not 50MHz as requested, and did it in a way that didn't satisfy the Application Notes in RK3399 TRM [1]. 2.9.2.B says: PLL frequency range requirement

Re: [PATCH v3 3/4] spi-nor: Adapt soft reset to XTX25F32B in Rock Pi 4 rev 1.4

2022-09-01 Thread Kever Yang
Hi Jagan,     This patchset goes into my todo list, but I'm not very good at SPI module, how do you think about this patchset?     I will happy to merge this if there is no regression for other SPI NOR device. Thanks,  - Kever On 2022/7/20 23:42, Xavier Drudis Ferran wrote: XTX25F32B do

Re: [PATCH v3 1/2] rockchip: rk3399: fix incorrect ifdef check on SPL_DM_REGULATOR

2022-09-01 Thread Kever Yang
On 2022/7/22 17:30, Quentin Schulz wrote: From: Quentin Schulz The check to perform is on CONFIG_SPL_DM_REGULATOR and not SPL_DM_REGULATOR. Also switch to in-code check instead of ifdefs. Fixes: 07586ee4322a ("rockchip: rk3399: Support common spl_board_init") Cc: Quentin Schulz Signed-off-b

Re: [PATCH v3 2/2] rockchip: rk3399: fix incorrect ifdef check on SPL_GPIO

2022-09-01 Thread Kever Yang
On 2022/7/22 17:30, Quentin Schulz wrote: From: Quentin Schulz The check to perform is on CONFIG_SPL_GPIO and not SPL_GPIO. Because this was never compiled in, it missed an include of cru.h that was not detected before. Let's include it too. Also switch to IS_ENABLED in-code check as it is t

Re: [PATCH v2 1/2] spl: enable regulator-boot-on and disable regulator-force-boot-off

2022-09-01 Thread Kever Yang
Hi Quentin,     I don't think we need to add regulators_enable_boot_on/off callback in SPL framework, the rk3399-puma/Qseven is the only board need to do this in the SPL right now.     The hardware design for SPI/eMMC should always power on the storage which need by very early which shou

Re: [PATCH v2 1/2] spl: enable regulator-boot-on and disable regulator-force-boot-off

2022-09-01 Thread Michal Suchánek
Hello, On Thu, Sep 01, 2022 at 08:36:23PM +0800, Kever Yang wrote: > Hi Quentin, > >     I don't think we need to add regulators_enable_boot_on/off callback in > SPL framework, > > the rk3399-puma/Qseven is the only board need to do this in the SPL right > now. > >     The hardware design for S

Re: [PATCH 07/12] rockchip: puma-rk3399: load environment from same medium as one used to load U-Boot proper

2022-09-01 Thread Kever Yang
Hi Quentin, On 2022/7/23 00:06, Quentin Schulz wrote: From: Quentin Schulz Chances are when one boots U-Boot proper from a given storage medium, they want the same medium to be used to load and store the environment. This basically allows to have completely separate U-Boot (TPL/SPL/U-Boot pro

Re: [PATCH 02/12] rockchip: puma-rk3399: use gpio-hog instead of fixed-regulator for enabling eMMC/SPI-NOR

2022-09-01 Thread Kever Yang
On 2022/7/23 00:06, Quentin Schulz wrote: From: Quentin Schulz On Haikou devkit, it is possible to disable eMMC and SPI-NOR to force booting from SD card or USB via rkdeveloptool by toggling a switch. This switch needs to be overridden in software to be able to access eMMC and SPI-NOR once th

Re: [PATCH 03/12] rockchip: puma-rk3399: allow non-SD-Card-loaded SPL to load U-Boot proper from SD-Card

2022-09-01 Thread Kever Yang
On 2022/7/23 00:06, Quentin Schulz wrote: From: Quentin Schulz Trying to load U-Boot proper from SPL when SPL was not loaded from SD-Card is currently not working because the SDMMC pins aren't muxed correctly. It is assumed the BootROM is doing this for us when booting from SD-Card hence why

Re: [PATCH 04/12] rockchip: puma-rk3399: remove unused default ENV_OFFSET for SPI flashes

2022-09-01 Thread Kever Yang
On 2022/7/23 00:06, Quentin Schulz wrote: From: Quentin Schulz CONFIG_ENV_OFFSET is set in the defconfig to a different value already so this isn't used. Let's remove it as to not confuse users. Cc: Quentin Schulz Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever -

Re: [PATCH 05/12] rockchip: puma-rk3399: load environment from same MMC as used for loading U-Boot proper

2022-09-01 Thread Kever Yang
On 2022/7/23 00:06, Quentin Schulz wrote: From: Quentin Schulz Automatically detect which MMC device (SD-Card or eMMC) was used to load U-Boot proper and load the environment from that MMC device instead of a hardcoded one. Cc: Quentin Schulz Signed-off-by: Quentin Schulz Reviewed-by: Ke

Re: [PATCH 06/12] rockchip: puma-rk3399: allow loading environment from SPI-NOR flash

2022-09-01 Thread Kever Yang
On 2022/7/23 00:06, Quentin Schulz wrote: From: Quentin Schulz There's a SPI-NOR flash available from which SPL and U-Boot proper can be booted, it makes sense to also allow this medium to store U-Boot environment so let's enable it. The Device Tree advertises a max frequency of 50MHz so let

Re: [PATCH 08/12] rockchip: puma-rk3399: remove useless CONFIG_SYS_SPI_U_BOOT_OFFS

2022-09-01 Thread Kever Yang
On 2022/7/23 00:06, Quentin Schulz wrote: From: Quentin Schulz The SPL payload offset when booting from SPI defaults to CONFIG_SYS_SPI_U_BOOT_OFFS but can be overridden by u-boot,spl-payload-offset. The Device Tree for Puma Haikou has this property so there's no need to have this one option i

Re: [PATCH 09/12] rockchip: puma-rk3399: migrate to TPL

2022-09-01 Thread Kever Yang
On 2022/7/23 00:06, Quentin Schulz wrote: From: Quentin Schulz Depending on the toolchain used to compile the SPL for Puma RK3399-Q7 module, the board does not boot because the resulting binary is too big to fit in SRAM. Let's add a TPL so that there's no need to fiddle with or hack the defc

Re: [PATCH 10/12] rockchip: puma-rk3399: migrate to u-boot-rockchip.bin

2022-09-01 Thread Kever Yang
On 2022/7/23 00:06, Quentin Schulz wrote: From: Quentin Schulz Now that the offset for u-boot.itb in the u-boot-rockchip.bin matches the one required for Puma, let's tell users to use it instead of flashing the TPL/SPL and U-Boot proper separately. Cc: Quentin Schulz Signed-off-by: Quentin

Re: [PATCH 12/12] rockchip: puma-rk3399: migrate to u-boot-rockchip-spi.bin

2022-09-01 Thread Kever Yang
On 2022/7/23 00:06, Quentin Schulz wrote: From: Quentin Schulz Now that a single binary containing TPL/SPL correctly formatted for SPI flashes and U-Boot proper, can be generated by binman, let's do it. Also update the documentation to tell the user to use this newly generated file instead o

Re: [PATCH v1 1/3] arm: dts: rockchip: rk3288: move thermal sub nodes to dtsi

2022-09-01 Thread Kever Yang
On 2022/7/30 07:48, Johan Jonker wrote: In order to better compare the Linux rk3288.dtsi version with the u-boot version move thermal sub nodes to the dtsi file and remove rk3288-thermal.dtsi Changed: replace underscore in nodename remove comments about sensor and ID use gpu phandle

Re: [PATCH v1 2/3] arm: dts: rockchip: update cpu and gpu nodes

2022-09-01 Thread Kever Yang
On 2022/7/30 07:49, Johan Jonker wrote: In order to better compare the Linux rk3288.dtsi version with the u-boot version update the cpu and gpu nodes. Changed: use operating-points-v2 update thermal for all cpus add labels to all cpus change gpu compatible change gpu interrupt n

Re: [PATCH v1 3/3] arm: dts: rockchip: rk3288: partial sync from Linux

2022-09-01 Thread Kever Yang
On 2022/7/30 07:49, Johan Jonker wrote: Partial sync of rk3288.dtsi from Linux version 5.18 Changed: only properties and functions that are not yet included swap some clocks positions fix some irq numbers style and sort nodes Signed-off-by: Johan Jonker Reviewed-by: Kever Yang

Re: [PATCH 07/12] rockchip: puma-rk3399: load environment from same medium as one used to load U-Boot proper

2022-09-01 Thread Quentin Schulz
Hi Kever On 9/1/22 15:03, Kever Yang wrote: Hi Quentin, On 2022/7/23 00:06, Quentin Schulz wrote: From: Quentin Schulz Chances are when one boots U-Boot proper from a given storage medium, they want the same medium to be used to load and store the environment. This basically allows to have

Re: [PATCH v2 20/28] ARM: dts: rockchip: Add Rockchip RV1126 SoC

2022-09-01 Thread Kever Yang
Hi Jagan,     Does this dtsi already merge in kernel? Thanks, - Kever On 2022/8/18 22:52, Jagan Teki wrote: RV1126 is a high-performance vision processor SoC for IPC/CVR, especially for AI related application. It is based on quad-core ARM Cortex-A7 32-bit core which integrates NEON and FPU.

Re: [PATCH v2 20/28] ARM: dts: rockchip: Add Rockchip RV1126 SoC

2022-09-01 Thread Jagan Teki
On Thu, 1 Sept 2022 at 18:46, Kever Yang wrote: > > Hi Jagan, > > Does this dtsi already merge in kernel? Nothing yet. If you apply I can send rebased dts version once Heiko is picked or will send it to complete the next version once Linux is merged. Jagan.

Re: [PATCH] binman: btool: gzip: fix packer name so that binary can be found

2022-09-01 Thread Quentin Schulz
Hi Stefan, On 9/1/22 08:12, Stefan Herbrechtsmeier wrote: Hi Quentin, Am 31.08.2022 um 19:44 schrieb Simon Glass: On Wed, 31 Aug 2022 at 09:55, Quentin Schulz wrote: From: Quentin Schulz The binary is looked on the system by the suffix of the packer class. This means binman was looking fo

Re: [PATCH] binman: btool: gzip: fix packer name so that binary can be found

2022-09-01 Thread Simon Glass
Hi Stefan, On Thu, 1 Sept 2022 at 00:12, Stefan Herbrechtsmeier wrote: > > Hi Quentin, > > Am 31.08.2022 um 19:44 schrieb Simon Glass: > > On Wed, 31 Aug 2022 at 09:55, Quentin Schulz wrote: > >> > >> From: Quentin Schulz > >> > >> The binary is looked on the system by the suffix of the packer

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-09-01 Thread Simon Glass
Hi, On Thu, 1 Sept 2022 at 03:27, Stefan Roese wrote: > > Hi Tony, > > On 01.09.22 09:39, Tony Dinh wrote: > > > > >>> Some ideas. > >>> > >>> The get_timer() function looks wrong assigning an uint64_t to ulong. > >>> > >>> lib/time.c > >>> > >>> static uint64_t notrace tick_to_time(uint64

[PATCH v2] binman: bintool: remove btool_ prefix from btool names

2022-09-01 Thread Quentin Schulz
From: Quentin Schulz The binary is looked on the system by the suffix of the packer class. This means binman was looking for btool_gzip on the system and not gzip. Since a btool can have its btool_ prefix missing but its module and binary presence on the system appropriately found, there's no ne

Re: [PATCH] binman: btool: gzip: fix packer name so that binary can be found

2022-09-01 Thread Stefan Herbrechtsmeier
Hi Quentin, Am 01.09.2022 um 16:34 schrieb Quentin Schulz: Hi Stefan, On 9/1/22 08:12, Stefan Herbrechtsmeier wrote: Hi Quentin, Am 31.08.2022 um 19:44 schrieb Simon Glass: On Wed, 31 Aug 2022 at 09:55, Quentin Schulz wrote: From: Quentin Schulz The binary is looked on the system by the

[PATCH v3 1/7] binman: bintool: move version check implementation into bintool class

2022-09-01 Thread Quentin Schulz
From: Quentin Schulz Version checking has nothing specific to compression/decompression tools so let's move it to the Bintool class. Signed-off-by: Quentin Schulz Reviewed-by: Simon Glass --- v3: - removed superfluous version_regex assignment in BintoolPacker, - added Rb, - kept original d

[PATCH v3 2/7] binman: btool: lz4: use Bintool.version

2022-09-01 Thread Quentin Schulz
From: Quentin Schulz Bintool.version already contains everything required to get the version out of lz4 binary so let's not override it with its own implementation. Signed-off-by: Quentin Schulz Reviewed-by: Simon Glass --- v3: - added Rb, added in v2 tools/binman/btool/lz4.py | 14 +-

[PATCH v3 3/7] binman: btool: mkimage: use Bintool.version

2022-09-01 Thread Quentin Schulz
From: Quentin Schulz Bintool.version already contains everything required to get the version out of mkimage binary so let's not override it with its own implementation. Signed-off-by: Quentin Schulz Reviewed-by: Simon Glass --- v3: - added Rb, - removed version positional parameter for run(

[PATCH v3 4/7] binman: bintool: parametrize args to pass to binary for returning version

2022-09-01 Thread Quentin Schulz
From: Quentin Schulz The code to check the version is very similar between binaries, the most likely only needed variables are the regex to find the version (already supported) and the args to pass to the binary so that it prints this version (e.g. --version, -V or similar). Let's make it a para

[PATCH v3 5/7] binman: btool: fiptool: use Bintool.version

2022-09-01 Thread Quentin Schulz
From: Quentin Schulz Bintool.version can now be passed the binary argument to return the version text, so there's no need to override it in fiptool anymore. Signed-off-by: Quentin Schulz Reviewed-by: Simon Glass --- v3: - added Rb, added in v2 tools/binman/btool/fiptool.py | 11 +-

[PATCH v3 6/7] binman: btool: futility: use Bintool.version

2022-09-01 Thread Quentin Schulz
From: Quentin Schulz Bintool.version can now be passed the binary argument to return the version text, so there's no need to override it in futility anymore. Signed-off-by: Quentin Schulz Reviewed-by: Simon Glass --- v3: - added Rb, added in v2 tools/binman/btool/futility.py | 13 +---

[PATCH v3 7/7] binman: bintool: bzip2: fix version function on non-Debian-based systems

2022-09-01 Thread Quentin Schulz
From: Quentin Schulz Upstream bzip2 1.0.x actually is stuck when running bzip2 -V and redirecting the output. This is fixed in Debian for about a decade already in https://git.launchpad.net/ubuntu/+source/bzip2/tree/debian/patches/20-legacy.patch?h=ubuntu/jammy and in bzip2 1.1.x (no release yet,

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

2022-09-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

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

2022-09-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 v6 2/8] binman: allow user-defined filenames for mkimage entry

2022-09-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 Revie

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

2022-09-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 Reviewed-by: Simon Glass R

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

2022-09-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 Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- v6: - added Rb, v4: -

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

2022-09-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 Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- v6: - added Rb, v4: - added Reviewed-by,

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

2022-09-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 Reviewed-by: Kever Yang Reviewed-by: Simon Glass --- v6: - added Rb, v4: - fixed wrong place for endif for A

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

2022-09-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 Reviewed-by: Simon Glass Reviewed-by: Kever

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

2022-09-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 Reviewed-by: Kever Yang Reviewed-by: Simon Glass --- v6: - added Rb, v3: - added filename property so that id

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

2022-09-01 Thread Simon Glass
On Thu, 1 Sept 2022 at 10:39, Quentin Schulz wrote: > > 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.

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

2022-09-01 Thread Simon Glass
On Thu, 1 Sept 2022 at 10:39, 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 'filename' DT

Re: [PATCH v3 4/7] binman: bintool: parametrize args to pass to binary for returning version

2022-09-01 Thread Simon Glass
On Thu, 1 Sept 2022 at 09:52, Quentin Schulz wrote: > > From: Quentin Schulz > > The code to check the version is very similar between binaries, the most > likely only needed variables are the regex to find the version (already > supported) and the args to pass to the binary so that it prints thi

Re: [PATCH] arm: orion5: Completely remove Orion5 platform support

2022-09-01 Thread Mauri Sandberg
Hi Stefan! On 1.9.2022 12.06, Stefan Roese wrote: > Hi Mauri, > > On 01.09.22 11:03, Pali Rohár wrote: >> + Mauri >> >> I think that we could wait a bit as Mauri is interested in Orion >> support and in last weeks we have been debugging and adding Orion >> support for pci-mvebu.c kernel driver. >

[PATCH 0/4] Align sama5 and sama7 DT's with Linux

2022-09-01 Thread Sergiu Moga
This has been done in order to align the DT of U-Boot with the DT of Linux. In Linux, a phandle from a '-gpio' DT property is linked to the pinctrl driver, a single driver that handles both pinctrl settings and offers GPIO API to callers. On the other hand, U-Boot redirects such phandle to a corres

[PATCH 1/4] ARM: dts: at91: sama5: Align with Linux Devicetree

2022-09-01 Thread Sergiu Moga
This patch makes sure that the Devicetree for the sama5 boards are aligned with the Devicetree from Linux. This implies removing the GPIO compatible and replacing it with the PINCTRL one, as well as unifying the SDMMC pinctrl related subnodes under one single subnode. Signed-off-by: Sergiu Moga -

[PATCH 4/4] pinctrl: at91-pio4: Add support for pinctrl config subnodes

2022-09-01 Thread Sergiu Moga
Previously, in order for the `pinctrl-*` DT node properties to be properly processed, the pinctrl's subnodes were limited to only having the `pinmux` property as well as other additional properties (slew-rate, bias-disable, etc.). Now, with this patch the pinctrl driver is made to work similarly to

[PATCH 3/4] pinctrl: at91-pio4: Bind GPIO driver to the pinctrl DT node

2022-09-01 Thread Sergiu Moga
This has been done in order to align the DT of U-Boot with the DT of Linux. In Linux, a phandle from a '-gpio' DT property is linked to the pinctrl driver, a single driver that handles both pinctrl settings and offers GPIO API to callers. On the other hand, U-Boot redirects such phandle to a corres

[PATCH 2/4] ARM: dts: at91: sama7: Align with Linux Devicetree

2022-09-01 Thread Sergiu Moga
This patch makes sure that the Devicetree for the sama7 boards are aligned with the Devicetree from Linux. This implies removing the GPIO compatible and replacing it with the PINCTRL one, as well as unifying the SDMMC pinctrl related subnodes under one single subnode. Signed-off-by: Sergiu Moga -

[PATCH] board: altera: arria10: Add default U-Boot fitImage for Arria10 SoCDK

2022-09-01 Thread sieu . mun . tang
From: Tien Fong Chee Add default U-Boot fitImage file so that fit features can be supported and loaded by SPL. Signed-off-by: Tien Fong Chee Signed-off-by: Sieu Mun Tang --- board/altera/arria10-socdk/fit_uboot.its | 43 1 file changed, 43 insertions(+) create mode 1

[PATCH] arch: arm: dts: socfpga: Add dts support for QSPI Arria 10 SoCDK

2022-09-01 Thread sieu . mun . tang
From: Sieu Mun Tang Enable dtb build for QSPI Arria 10 SoCDK. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan Signed-off-by: Sieu Mun Tang --- arch/arm/dts/Makefile | 1 + arch/arm/dts/socfpga_arria10_socdk_qspi.dts | 63 +++ .../socfpga_arria10_socdk_q

[PATCH] board: altera: arria10: Add default kernel fitImage for Arria10 QSPI SoCDK

2022-09-01 Thread sieu . mun . tang
From: Tien Fong Chee Add default fitImage file bundling kernel and dtb images for Arria10 QSPI. Signed-off-by: Tien Fong Chee Signed-off-by: Sieu Mun Tang --- board/altera/arria10-socdk/fit_kernel.its | 44 +++ 1 file changed, 44 insertions(+) create mode 100644 board/alt

[PATCH 1/1] efi_loader: printing UEFI revision in helloworld.efi

2022-09-01 Thread Heinrich Schuchardt
We need to support multiple digits in the parts of the UEFI verision number. E.g. EFI_SPECIFICATION_VERSION = (123 << 16) | 456 must be printed as 123.45.6 Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/helloworld.c | 66 ++--- 1 file changed, 54

Re: [PATCH] board_init: Convert CONFIG_MALLOC_F_ADDR to Kconfig

2022-09-01 Thread Tom Rini
On Sat, Jul 09, 2022 at 03:08:04AM +0200, Marek Vasut wrote: > Convert CONFIG_MALLOC_F_ADDR to Kconfig. > > The CL IoT gate board used MALLOC_F_ADDR 0x912000 on i.MX8M Mini unlike > all the other platforms which use 0x93 . This has been aligned with > the other i.MX8M Mini platforms. > > Sig

[PATCH 1/1] efi_loader: compliance Simple Text Input Ex Protocol

2022-09-01 Thread Heinrich Schuchardt
We cannot expect the buffers passed to the input protocols to be zero filled. If only modifier keys are pressed, we have to return EFI_NOT_READY but we still have to fill the key structure. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 1 + 1 file changed, 1 insertion(+)

[PATCH 1/1] efi_loader: support CTRL+\ - CTRL+_

2022-09-01 Thread Heinrich Schuchardt
In the extended text input protocol support input of control letters 0x1c - 0x1f. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c index 1fcaabe1c4..eab315cbd4 10

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-09-01 Thread Tony Dinh
Hi Stefan R, On Thu, Sep 1, 2022 at 7:35 AM Simon Glass wrote: > > Hi, > > On Thu, 1 Sept 2022 at 03:27, Stefan Roese wrote: > > > > Hi Tony, > > > > On 01.09.22 09:39, Tony Dinh wrote: > > > > > > > > >>> Some ideas. > > >>> > > >>> The get_timer() function looks wrong assigning an uint64_t to

Re: [PATCH 1/1] efi_loader: printing UEFI revision in helloworld.efi

2022-09-01 Thread Simon Glass
Hi Heinrich, On Thu, 1 Sept 2022 at 14:44, Heinrich Schuchardt wrote: > > We need to support multiple digits in the parts of the UEFI verision > number. E.g. > > EFI_SPECIFICATION_VERSION = (123 << 16) | 456 > > must be printed as > > 123.45.6 > > Signed-off-by: Heinrich Schuchardt > --

Re: [PATCH 1/1] efi_loader: support CTRL+\ - CTRL+_

2022-09-01 Thread Simon Glass
On Thu, 1 Sept 2022 at 16:59, Heinrich Schuchardt wrote: > > In the extended text input protocol support input of control letters > 0x1c - 0x1f. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_loader/efi_console.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Simon Glass > >

Re: [PATCH 1/1] efi_loader: compliance Simple Text Input Ex Protocol

2022-09-01 Thread Simon Glass
On Thu, 1 Sept 2022 at 16:07, Heinrich Schuchardt wrote: > > We cannot expect the buffers passed to the input protocols to be zero > filled. If only modifier keys are pressed, we have to return EFI_NOT_READY > but we still have to fill the key structure. > > Signed-off-by: Heinrich Schuchardt > -

Re: [PATCH] fdt_support: add optional board_rng_seed() hook

2022-09-01 Thread Simon Glass
Hi Rasmus, On Sat, 27 Aug 2022 at 19:52, Simon Glass wrote: > > Hi Rasmus, > > On Wed, 24 Aug 2022 at 19:25, Simon Glass wrote: > > > > Hi Rasmus, > > > > On Tue, 23 Aug 2022 at 23:57, Rasmus Villemoes > > wrote: > > > > > > On 23/08/2022 16.35, Simon Glass wrote: > > > > Hi Rasmus, > > > > > >

[PATCH 1/1] sandbox: unblock signal before calling execv()

2022-09-01 Thread Heinrich Schuchardt
The following faulty behavior was observed. The sandbox configured with CONFIG_SANDBOX_CRASH_RESET=y was invoked with ./u-boot -T -S After executing `exception undefined' the sandbox reboots. When executing `exception undefined' the sandbox exits with SIGSEGV. The expected behavior is that t

Re: [PATCH 1/1] efi_loader: support CTRL+\ - CTRL+_

2022-09-01 Thread Heinrich Schuchardt
On 9/2/22 01:52, Simon Glass wrote: On Thu, 1 Sept 2022 at 16:59, Heinrich Schuchardt wrote: In the extended text input protocol support input of control letters 0x1c - 0x1f. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 3 +++ 1 file changed, 3 insertions(+)

Re: [PATCH 1/1] efi_loader: compliance Simple Text Input Ex Protocol

2022-09-01 Thread Heinrich Schuchardt
On 9/2/22 01:52, Simon Glass wrote: On Thu, 1 Sept 2022 at 16:07, Heinrich Schuchardt wrote: We cannot expect the buffers passed to the input protocols to be zero filled. If only modifier keys are pressed, we have to return EFI_NOT_READY but we still have to fill the key structure. Signed-

[PATCH v2 1/1] efi_loader: support CTRL+\ - CTRL+_

2022-09-01 Thread Heinrich Schuchardt
In the extended text input protocol support input of control letters 0x1c - 0x1f. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- v2: add missing break --- lib/efi_loader/efi_console.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/efi_loader/efi_console.c b

[PATCH 1/1] efi_selftest: on sandbox use host specific assembly

2022-09-01 Thread Heinrich Schuchardt
The selftest checking the handling of exceptions in UEFI binaries is using assembly to provide an undefined instruction. On the sandbox the correct form of the instruction depends on the host architecture. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/efi_selftest_miniapp_exception.c |

Re: [PATCH 1/1] efi_loader: printing UEFI revision in helloworld.efi

2022-09-01 Thread Heinrich Schuchardt
On 9/2/22 01:52, Simon Glass wrote: Hi Heinrich, On Thu, 1 Sept 2022 at 14:44, Heinrich Schuchardt wrote: We need to support multiple digits in the parts of the UEFI verision number. E.g. EFI_SPECIFICATION_VERSION = (123 << 16) | 456 must be printed as 123.45.6 Signed-off-by

[PATCH] reset: socfpga: release more A10 peripherals out of reset

2022-09-01 Thread Jit Loon Lim
From: Tien Fong Chee Current implementation almost release all peripherals out of reset for gen5, but A10 has more peripherals than gen5, hence this patch is required to release the rest of peripherals to support old kernels. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drive

[PATCH] driver: fpga: Add support for loading FPGA bitstream from RAW partition

2022-09-01 Thread sieu . mun . tang
From: Tien Fong Chee Removed checking on filename, so that FPGA bitstream can be loaded from pre-defined bitstream offset of RAW partition to program FPGA. Signed-off-by: Tien Fong Chee Signed-off-by: Sieu Mun Tang --- drivers/fpga/socfpga_arria10.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 0/2] *** SUBJECT HERE ***

2022-09-01 Thread sieu . mun . tang
From: Sieu Mun Tang *** BLURB HERE *** Tien Fong Chee (2): arch: arm: mach-socfpga: Use custom header target buffer in SPL arch: arm: mach-socfpga: Add SPL fitImage config match arch/arm/mach-socfpga/spl_a10.c | 20 1 file changed, 20 insertions(+) -- 2.25.1

[PATCH 1/2] arch: arm: mach-socfpga: Use custom header target buffer in SPL

2022-09-01 Thread sieu . mun . tang
From: Tien Fong Chee Allocate buffer from bottom half of DDR for the image headers in SPL on Arria10. This allows SPL to load the fitImage header, parse it, extract the FPGA core bitstream section from it, and program the FPGA. Signed-off-by: Tien Fong Chee Signed-off-by: Sieu Mun Tang --- ar

[PATCH 2/2] arch: arm: mach-socfpga: Add SPL fitImage config match

2022-09-01 Thread sieu . mun . tang
From: Tien Fong Chee Add empty SPL fitImage configuration match. This can be extended if there is ever need to support multiple boards with single SFP image. Signed-off-by: Tien Fong Chee Signed-off-by: Sieu Mun Tang --- arch/arm/mach-socfpga/spl_a10.c | 8 1 file changed, 8 insertio

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-09-01 Thread Tony Dinh
Hello, On Thu, Sep 1, 2022 at 4:46 PM Tony Dinh wrote: > > Hi Stefan R, > > On Thu, Sep 1, 2022 at 7:35 AM Simon Glass wrote: > > > > Hi, > > > > On Thu, 1 Sept 2022 at 03:27, Stefan Roese wrote: > > > > > > Hi Tony, > > > > > > On 01.09.22 09:39, Tony Dinh wrote: > > > > > > > > > > > > >>> S

[PATCH] arm: socfpga: soc64: Enable ARM SMCCC

2022-09-01 Thread Jit Loon Lim
From: Chee Hong Ang Enable ARM Secure Monitor Call Calling Convention (SMCCC) Signed-off-by: Chee Hong Ang Signed-off-by: Siew Chin Lim --- configs/socfpga_agilex_defconfig| 1 + configs/socfpga_stratix10_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/socfpga_agil

Re: [PATCH v2 03/28] tools: rkcommon: Correct SPL size for px30

2022-09-01 Thread Kever Yang
On 2022/8/18 22:52, Jagan Teki wrote: Rockchip PX30 has 16KB sram, bootrom reserved 4KB as stack. NAK, the origin code is correct, do not modify this. Thanks, - Kever Correct it. Signed-off-by: Jagan Teki --- Changes for v2: - none tools/rkcommon.c | 2 +- 1 file changed, 1 insertio

[PATCH] arm: socfpga: Ensure the DTS QSPI clock is set correctly

2022-09-01 Thread Jit Loon Lim
From: Tien Fong Chee The clocking section of Linux device tree was changed between 4.9.78-ltsi and 4.14.73-ltsi. This patch ensures that QSPI clock can be set correctly despite of different clocking section location in both Linux 4.9.78-ltsi and 4.14.73-ltsi. Signed-off-by: Tien Fong Chee Signe

[PATCH] Kconfig: distro: Use imply instead of select for CMD_FAT

2022-09-01 Thread Jit Loon Lim
From: Tien Fong Chee Using imply instead of select for CMD_FAT so overwritten is allowed in later configuration. Signed-off-by: Tien Fong Chee --- Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kconfig b/Kconfig index 991b260182..71374980e9 100644 --- a/Kconfig +++

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-09-01 Thread Tony Dinh
Hi Stefan, On Thu, Sep 1, 2022 at 7:51 PM Tony Dinh wrote: > > Hello, > > On Thu, Sep 1, 2022 at 4:46 PM Tony Dinh wrote: > > > > Hi Stefan R, > > > > On Thu, Sep 1, 2022 at 7:35 AM Simon Glass wrote: > > > > > > Hi, > > > > > > On Thu, 1 Sept 2022 at 03:27, Stefan Roese wrote: > > > > > > > >

  1   2   >