Re: [PATCH v1 1/7] imx: mkimage_fit_atf: fix legacy image generation

2021-08-22 Thread Marcel Ziswiler
Hi Andrey Long time no see (;-p). On Sun, 2021-08-22 at 10:07 +, ZHIZHIKIN Andrey wrote: > Hello Marcel, > > > -Original Message- > > From: U-Boot On Behalf Of Marcel Ziswiler > > Sent: Friday, August 20, 2021 10:52 PM > > To: u-boot@lists.denx.de > > Cc: Heiko Thiery ; Stefano Babi

Re: [PATCH] arm64: zynqmp: Enable sha1sum command

2021-08-22 Thread Michal Simek
út 17. 8. 2021 v 13:32 odesílatel Michal Simek napsal: > > Enable it for TPM usage. > > Signed-off-by: Michal Simek > --- > > configs/xilinx_zynqmp_virt_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/configs/xilinx_zynqmp_virt_defconfig > b/configs/xilinx_zynqmp_virt_defconf

Re: [PATCH] watchdog: versal: Include header file needed for dev_ functions

2021-08-22 Thread Michal Simek
út 17. 8. 2021 v 13:30 odesílatel Michal Simek napsal: > > From: Ashok Reddy Soma > > dev_dbg, dev_err and dev_warn seems to be moved to different header file. > Include dm/device_compat.h file to compile properly. > > Signed-off-by: Ashok Reddy Soma > Signed-off-by: Michal Simek > --- > > dri

Re: [PATCH] xilinx: zynqmp: Add debug messages for boot mode

2021-08-22 Thread Michal Simek
út 17. 8. 2021 v 9:08 odesílatel Michal Simek napsal: > > Add debug messages to see HW boot mode and also alternative boot mode in > logs directly. > > Signed-off-by: Michal Simek > --- > > board/xilinx/zynqmp/zynqmp.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/board/xilinx/zynq

Re: [PATCH] cmd: boot: Update reset usage message

2021-08-22 Thread Michal Simek
st 11. 8. 2021 v 12:04 odesílatel Michal Simek napsal: > > The commit 573a3811edc8 ("sysreset: psci: support system reset in a generic > way with PSCI") has added support for warm reset via PSCI but this hasn't > been reflected in usage message and user has to look at the code how to run > it. Tha

Re: [PATCH] cmd: pwm: Remove additional pwm description

2021-08-22 Thread Michal Simek
út 10. 8. 2021 v 15:50 odesílatel Michal Simek napsal: > > The first name is taken from command name that's why shouldn't be listed in > help. And commands shouldn't be listed with <> which means value but value > itself is command name. > Also add description for commands to make it clear what it

Re: [PATCH 0/4] xilinx: Add SoC Xilinx driver for zynqmp & versal

2021-08-22 Thread Michal Simek
út 10. 8. 2021 v 15:45 odesílatel Michal Simek napsal: > > Hi, > > This patch series adds support for SoC Xilinx driver to get SoC family > and revision. Print SoC info using print_cpuinfo() at booting stage. > > Thanks, > Michal > > > T Karthik Reddy (4): > soc: xilinx: zynqmp: Add soc_xilinx_z

Re: [PATCH] fdt_support: Add kernel-doc for fdt_fixup_memory_banks()

2021-08-22 Thread Michal Simek
út 10. 8. 2021 v 9:30 odesílatel Michal Simek napsal: > > Add kernel-doc description for fdt_fixup_memory_banks() because it is > implemented in one specific way and this information should be available > for others to decide if their SoC conforms to it. > If you don't want U-Boot to update your m

Re: [PATCH] xilinx: Disable ARCH_FIXUP_FDT_MEMORY

2021-08-22 Thread Michal Simek
pá 6. 8. 2021 v 14:22 odesílatel Michal Simek napsal: > > Based on DT spec you can have one memory node which multiple ranges or > multiple nodes. > fdt_fixup_memory_banks() is not implemented in a correct way when multiple > memory nodes are present because all ranges are put it to the first memo

Re: [PATCH] ARM: zynq: Enable smcc and nor for zc770-xm012

2021-08-22 Thread Michal Simek
pá 6. 8. 2021 v 13:35 odesílatel Michal Simek napsal: > > Enable cfi flash on zc770-xm012 configuration. > > Signed-off-by: Michal Simek > --- > > arch/arm/dts/zynq-zc770-xm012.dts | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm/dts/zynq-zc770-xm012.dts > b/arch/arm/d

Re: [PATCH] ARM: zynq: Wire single qspi on couple of boards

2021-08-22 Thread Michal Simek
pá 6. 8. 2021 v 13:34 odesílatel Michal Simek napsal: > > Single configuration is working fine and no issue to enable it. > > Signed-off-by: Michal Simek > --- > > arch/arm/dts/zynq-zc702.dts | 8 > arch/arm/dts/zynq-zc706.dts | 8 > arch/arm/dts/zynq-zc770-xm010.dt

Re: [PATCH] ARM: zynq: Replace 'io-standard' with 'power-source' property

2021-08-22 Thread Michal Simek
pá 6. 8. 2021 v 13:29 odesílatel Michal Simek napsal: > > From: Sai Krishna Potthuri > > Replace 'io-standard' property with 'power-source' property in all > zynq dts files to be in sync with Zynq Pinctrl driver. > > Signed-off-by: Sai Krishna Potthuri > Signed-off-by: Michal Simek > --- > > a

Re: [PATCH] xilinx: Add jedec compatible string for QSPI (Zynq/ZynqMP)

2021-08-22 Thread Michal Simek
pá 6. 8. 2021 v 13:28 odesílatel Michal Simek napsal: > > From: Raju Kumar Pothuraju > > Add missing "jedec, spi-nor" compatible string for QSPI flash node. > Spi-nor framework uses this compatibility string to probe & > initialize flash. With missing compatibility string we are observing > below

Re: [PATCH] arm64: zynqmp: Update comment style sm-k26

2021-08-22 Thread Michal Simek
pá 6. 8. 2021 v 13:14 odesílatel Michal Simek napsal: > > Trivial style patch. > > Signed-off-by: Michal Simek > --- > > arch/arm/dts/zynqmp-sm-k26-revA.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/dts/zynqmp-sm-k26-revA.dts > b/arch/arm/dts/zynqmp-sm-k2

Re: [PATCH] arm64: zynqmp: Fix header alignment on kv260 boards

2021-08-22 Thread Michal Simek
pá 6. 8. 2021 v 13:12 odesílatel Michal Simek napsal: > > Fix header alignemnt. Applied but with this typo fixed. Michal

Re: [PATCH] arm64: zynqmp: Fix node name for ds35/36 leds

2021-08-22 Thread Michal Simek
pá 6. 8. 2021 v 13:11 odesílatel Michal Simek napsal: > > By dt-binding specs led nodes should have -led suffix that's why add it. > > Signed-off-by: Michal Simek > --- > > arch/arm/dts/zynqmp-sm-k26-revA.dts | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/d

Re: [PATCH v2] xilinx: zynqmp: Initialize usb and scsi via preboot

2021-08-22 Thread Michal Simek
st 11. 8. 2021 v 13:41 odesílatel Michal Simek napsal: > > Based on thread > https://lists.denx.de/pipermail/u-boot/2021-June/451828.html > especially > "Overall we have a deficiency in the UEFI implementation in that we > cannot deal with block devices added or removed after initialization." > th

Re: [PATCH] arm64: zynqmp: Disable WDT_CDNS driver by default

2021-08-22 Thread Michal Simek
pá 6. 8. 2021 v 9:21 odesílatel Michal Simek napsal: > > Do not enable watchdog driver in default zynqmp configuration. The reason > is that not all distributions are handling watchdog properly and then > expires and system resets. If someone needs watchdog in their design please > enable it by ha

Re: [PATCH] ARM: dts: Fix node status to "okay" on TI boards

2021-08-22 Thread Roger Quadros
Hi Lokesh, On 23/08/2021 09:23, Lokesh Vutla wrote: > Hi Roger, > > On 20/08/21 4:11 pm, Roger Quadros wrote: >> As per Device Tree core schema [1], status parameter of nodes can be either >> "okay" or "disabled". >> >> U-boot Driver Model does not recognize status="ok" and treats >> the node as

[PATCH] xilinx: zynqmp: Update descriptions for u-boot.its

2021-08-22 Thread Michal Simek
Use TF-A instead of ATF in description. And update generic description with removing ATF because also configurations without it are supported. Signed-off-by: Michal Simek --- arch/arm/mach-zynqmp/mkimage_fit_atf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm

Re: binman should create a list of output files

2021-08-22 Thread Heiko Thiery
Hi Simon, Am Fr., 20. Aug. 2021 um 20:22 Uhr schrieb Simon Glass : > > Hi Heiko, > > On Fri, 20 Aug 2021 at 00:49, Heiko Thiery wrote: > > > > Hi Simon, > > > > During the discussion on [1] I had the idea if binman could create a > > list of all output files, so that it is possible to do a real c

Re: [PATCH v1 5/7] verdin-imx8mm: switch to use binman to pack images

2021-08-22 Thread Heiko Thiery
Hi Marcel, Am Fr., 20. Aug. 2021 um 22:52 Uhr schrieb Marcel Ziswiler : > > From: Marcel Ziswiler > > Use binman to pack images. > > Signed-off-by: Marcel Ziswiler > --- > > arch/arm/dts/imx8mm-verdin-u-boot.dtsi | 122 ++- > arch/arm/mach-imx/imx8m/Kconfig | 1

Re: [PATCH] ARM: dts: Fix node status to "okay" on TI boards

2021-08-22 Thread Lokesh Vutla
Hi Roger, On 20/08/21 4:11 pm, Roger Quadros wrote: > As per Device Tree core schema [1], status parameter of nodes can be either > "okay" or "disabled". > > U-boot Driver Model does not recognize status="ok" and treats > the node as disabled. > Is Kernel DTS updated? The idea is to not deviate

Re: [PATCH] i2c: i2c-gpio: Support the named GPIO binding

2021-08-22 Thread Heiko Schocher
Hello Samuel, On 22.08.21 02:25, Samuel Holland wrote: > To avoid confusion about the order of the GPIOs, the i2c-gpio binding > was updated to use a separate property for each GPIO instead of an > array. However, the driver only supports the old binding. Add support > for the new binding as well,

Re: [PATCH v2 1/1] bootcount: add a new driver with syscon as backend

2021-08-22 Thread Heiko Schocher
Hello Nandor, On 10.06.21 14:40, Nandor Han wrote: > The driver will use a syscon regmap as backend and supports both > 16 and 32 size value. The value will be stored in the CPU's endianness. > > Signed-off-by: Nandor Han > --- > > Notes: > Description > --- > Add a new driv

Re: [PATCHv2 2/2] gpio: mcp230xx: Introduce new driver

2021-08-22 Thread Heiko Schocher
Hello Sebstian, On 15.07.21 17:40, Sebastian Reichel wrote: > Introduce driver for I2C based MCP230xx GPIO chips, which are > quite common and already well supported by the Linux kernel. > > Reviewed-by: Simon Glass > Signed-off-by: Sebastian Reichel > --- > drivers/gpio/Kconfig | 10

Re: [PATCHv2 1/2] i2c: add dm_i2c_reg_clrset

2021-08-22 Thread Heiko Schocher
Hello Sebstian, On 15.07.21 17:39, Sebastian Reichel wrote: > Add function to apply a bitmask to an i2c register, so > that specific bits can be cleared and/or set. > > Suggested-by: Simon Glass > Signed-off-by: Sebastian Reichel > --- > drivers/i2c/i2c-uclass.c | 15 +++ > include

Re: [PATCH 01/11] i2c: Add a DM_I2C wrapper for the sun6i_p2wi controller

2021-08-22 Thread Heiko Schocher
Hello Samuel, On 22.08.21 19:19, Samuel Holland wrote: > Hi Heiko, > > On 8/22/21 3:38 AM, Heiko Schocher wrote: >> Hello Samuel, >> >> On 22.08.21 01:05, Samuel Holland wrote: >>> This bus controller is used to communicate with an X-Powers AXP PMIC. >>> Currently, various drivers access PMIC reg

Re: [PATCH 1/3] fs/erofs: new filesystem

2021-08-22 Thread Bin Meng
On Mon, Aug 23, 2021 at 12:03 AM Huang Jianan wrote: > > From: Huang Jianan > > Add erofs filesystem support. > > The code is adapted from erofs-utils in order to reduce maintenance > burden and keep with the latest feature. > > This patch mainly deals with uncompressed files. > > Signed-off-by:

RE: [PATCH] configs: Layerscape: Remove the 'fdt_addr' env

2021-08-22 Thread Z.Q. Hou
> -Original Message- > From: Priyanka Jain (OSS) > Sent: 2021年8月18日 18:33 > To: Z.Q. Hou ; u-boot@lists.denx.de > Cc: ykau...@suse.de; feste...@gmail.com; tr...@konsulko.com; Z.Q. Hou > > Subject: RE: [PATCH] configs: Layerscape: Remove the 'fdt_addr' env > > > > >-Original Messa

[PATCH 1/1] arm: imx8m: imx8mm-cl-iot-gate: Add support for detect memory size

2021-08-22 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" When purchasing imx8mm-cl-iot-gate it is able to customize the memory size. It could be 1GB, 2GB and 4GB. We implement board_phys_sdram_size() to detect the memory size for usage. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Fabio Estevam Cc: Frieder Schrempf Cc:

[PATCH 0/1] arm: imx8m: imx8mm-cl-iot-gate: Add support for detect memory size

2021-08-22 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" When purchasing imx8mm-cl-iot-gate it is able to customize the memory size. It could be 1GB, 2GB and 4GB. We implement board_phys_sdram_size() to detect the memory size for usage. This patch was trying to fix the regression on mainline U-boot for imx8mm-cl-iot-gat

[PATCH 1/1] imx8m: Restrict usable memory based on rom_pointer[0]

2021-08-22 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" When TEE is loaded, we need to restrict the memory usage based on rom_pointer[0] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Fabio Estevam Cc: Frieder Schrempf Cc: uboot-imx --- arch/arm/mach-imx/imx8m/soc.c | 16 +--- 1 file changed, 13 insertions

[PATCH 0/1] imx8m: Restrict usable memory based on rom_pointer[0]

2021-08-22 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" When TEE is loaded, we need to restrict the memory usage based on rom_pointer[0] This patch fixes a regression on Compulab IoT gate imx8 hang when OPTEE runs. Ying-Chun Liu (PaulLiu) (1): imx8m: Restrict usable memory based on rom_pointer[0] arch/arm/mach-imx

Re: [PATCH 00/28] Initial implementation of bootmethod/bootflow

2021-08-22 Thread AKASHI Takahiro
On Fri, Aug 20, 2021 at 12:22:17PM -0600, Simon Glass wrote: > Hi Takahiro, > > On Thu, 19 Aug 2021 at 21:15, AKASHI Takahiro > wrote: > > > > Hi Simon, > > > > On Thu, Aug 19, 2021 at 08:25:33AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 19 Aug 2021 at 07:59, Tom Rini wrote: >

[PATCH 2/4] include: axp_pmic: Include headers for all variants

2021-08-22 Thread Samuel Holland
A single DM-based driver should be able to support some feature for several PMIC variants where the interface is the same. For example, all PMIC variants use the same register bit to trigger poweroff. However, currently only definitions for a single PMIC are available at a time. This requires driv

[PATCH 3/4] power: axp: Avoid do_poweroff conflict with sysreset

2021-08-22 Thread Samuel Holland
The sysreset uclass has an option to provide the do_poweroff() function. When that option is enabled, the AXP power drivers should not provide their own definition. For the AXP305, which is paired with 64-bit systems where TF-A provides PSCI, there is another possible conflict with the PSCI firmwa

[PATCH 4/4] power: pmic: axp: Implement poweroff via sysreset

2021-08-22 Thread Samuel Holland
The AXP PMICs have the ability to power off the system. The existing code for this is duplicated for each PMIC variant, and uses the legacy non-DM "pmic_bus" interface. When SYSRESET is enabled, this can all be replaced with a sysreset device using the DM_PMIC interface. Since the trigger bit is t

[PATCH 0/4] power: axp: Move poweroff to DM_PMIC/SYSRESET driver

2021-08-22 Thread Samuel Holland
This series replaces the do_poweroff() implementation from the non-DM AXP PMIC drivers with a sysreset uclass device, if sysreset is providing its own do_poweroff() definition. This depends on the following series, which adds the AXP DM_PMIC driver: https://patchwork.ozlabs.org/project/uboot/list/

[PATCH 1/4] include: axp_pmic: Add missing header guard definition

2021-08-22 Thread Samuel Holland
This header attempted to avoid multiple inclusion using a header guard. But the preprocessor symbol was never defined, so the guard had no effect. Fix this by defining the symbol. Signed-off-by: Samuel Holland --- include/axp_pmic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ax

Re: [PATCH 0/4] sunxi: TOC0 image type support

2021-08-22 Thread Vagrant Cascadian
On 2021-08-22, Tom Rini wrote: > On Sat, Aug 21, 2021 at 09:19:56PM -0500, Samuel Holland wrote: >> On 6/21/21 6:56 PM, Andre Przywara wrote: >> > On Mon, 21 Jun 2021 16:35:37 -0400 >> > Tom Rini wrote: >> >> On Mon, Jun 21, 2021 at 04:43:00PM +0100, Andre Przywara wrote: >> >>> On Sun, 20 Jun 202

Re: [PATCH] display_options: Do not use %llu in print_size

2021-08-22 Thread Tom Rini
On Fri, Aug 06, 2021 at 12:22:58AM +0300, Matwey V. Kornilov wrote: > tiny-printf variant doesn't know how to handle %llu format string, but both > tiny-printf and print_size can meet in SPL when TFTP is used to obtain main > u-boot image. This is known to lead to critical boot issue at AM335x pla

Re: [PATCH v2] tiny-printf: Handle %pM format when CONFIG_SPL_NET_SUPPORT is enabled

2021-08-22 Thread Tom Rini
On Thu, Aug 05, 2021 at 10:06:05PM +0300, Matwey V. Kornilov wrote: > %pM format string is used to print MAC-address and this is required while SPL > network boot. > > This patch fixes the SPL boot issues like the following: > > Trying to boot from USB eth > ## Error: flags type check fa

Re: [PATCH V4] clk: clk_versaclock: Add support for versaclock driver

2021-08-22 Thread Tom Rini
On Fri, Jun 04, 2021 at 12:26:06PM -0500, Adam Ford wrote: > The driver is based on the Versaclock driver from the Linux code, but > due differences in the clock API between them, some pieces had to be > changed. > > This driver creates a mux, pfd, pll, and a series of fod ouputs. > Rate

Re: [PATCH v4] Fix flashing of eMMC user area with Fastboot

2021-08-22 Thread Tom Rini
On Wed, May 19, 2021 at 01:31:31PM +0300, Oleh Kravchenko wrote: > 'gpt' and 'mmc0' fastboot partitions have been treated as the same device, > but it is wrong. > > Fill disk_partition structure with eMMC user partition info > to properly flash data. > > Signed-off-by: Oleh Kravchenko > Cc: Pan

Re: [PATCH v2] Fix flash and erase of eMMC Boot2 with Fastboot

2021-08-22 Thread Tom Rini
On Sat, May 15, 2021 at 12:06:21AM +0300, Oleh Kravchenko wrote: > The current U-Boot version has the next matches for boot partitions: > > mmc0boot0 to EMMC_BOOT1 > > mmc0boot1 to EMMC_BOOT1 (should be EMMC_BOOT2) > This patch fixes a typo for the boot partition number. > > Signed-off-by: Oleh K

[PATCH] sunxi: Avoid duplicate reset_cpu with SYSRESET enabled

2021-08-22 Thread Samuel Holland
The sysreset uclass unconditionally provides a definition of the reset_cpu() function. So does the sunxi board code. Omit our definition when SYSRESET is enabled. This allows the build to succeed, even though sysreset may not yet be functional due to a lack of back-end drivers. Signed-off-by: Samu

[PATCH 4/4] watchdog: Automatically register device with sysreset

2021-08-22 Thread Samuel Holland
Add an option to automatically register the first watchdog device with the wdt_reboot driver for use with sysreset. This allows sysreset to be a drop-in replacement for platform-specific watchdog reset code, without needing any device tree changes. Signed-off-by: Samuel Holland --- drivers/sysr

[PATCH 3/4] sysreset: watchdog: Move watchdog reference to plat data

2021-08-22 Thread Samuel Holland
Currently, the wdt_reboot driver always gets its watchdog device reference from an OF node. This prevents selecting a watchdog at runtime. Move the watchdog device reference to the plat data, so the driver can be bound with the reference pre-provided. The reference will still be acquired from the O

[PATCH 2/4] sysreset: Mark driver probe functions as static

2021-08-22 Thread Samuel Holland
These driver probe functions are not (and should not be) called from outside the respective driver source files. Therefore, the functions should be marked static. Signed-off-by: Samuel Holland --- drivers/sysreset/sysreset_resetctl.c | 2 +- drivers/sysreset/sysreset_syscon.c | 2 +- drivers/

[PATCH 1/4] sysreset: Add uclass Kconfig dependency to drivers

2021-08-22 Thread Samuel Holland
The drivers enabled by SYSRESET_SYSCON, SYSRESET_WATCHDOG, and SYSRESET_RESETCTL do nothing beyond providing sysreset uclass ops. Therefore, they should depend on the sysreset uclass. Signed-off-by: Samuel Holland --- drivers/sysreset/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletio

[PATCH 0/4] Improved sysreset/watchdog uclass integration

2021-08-22 Thread Samuel Holland
This series hooks up the watchdog uclass to automatically register the first watchdog device for use with sysreset, doing a bit of minor cleanup along the way. The goal is for this to replace the sunxi board-level non-DM reset_cpu() function. I was surprised to find that the wdt_reboot driver requ

[PATCH 2/3] sunxi: Enable watchdog timer support by default

2021-08-22 Thread Samuel Holland
A watchdog helps recover from hangs or failure to boot an OS. It can also be used by the sysreset framework to intentionally reset the system. Now that a driver is available, let's enable this functionality on sunxi boards. Signed-off-by: Samuel Holland --- arch/arm/Kconfig | 1 + 1 file change

[PATCH 3/3] sunxi: dts: H616: Enable the watchdog

2021-08-22 Thread Samuel Holland
For some reason, the watchdog was disabled in the H616 device tree. Most likely this is a copy-paste from the H6 device tree: the H6 watchdog is disabled because it is broken in some chips. However, there is no evidence of issues with the H616 watchdog. Enable the watchdog node so it can be used b

[PATCH 1/3] watchdog: Add a driver for the sunxi watchdog

2021-08-22 Thread Samuel Holland
This driver supports the sun4i/sun6i/sun20i watchdog timers. They have a maximum timeout of 16 seconds. Signed-off-by: Samuel Holland --- drivers/watchdog/Kconfig | 8 ++ drivers/watchdog/Makefile| 1 + drivers/watchdog/sunxi_wdt.c | 188 +++ 3 files

[PATCH] sunxi: Select SPL_SEPARATE_BSS

2021-08-22 Thread Samuel Holland
sunxi-common.h defines CONFIG_SPL_BSS_START_ADDR to put SPL's BSS in DRAM. Due to this, we must select SPL_SEPARATE_BSS, or else SPL will attempt to load its DTB from the wrong address (after BSS in DRAM). This change fixes booting with SPL_OF_CONTROL=y. Signed-off-by: Samuel Holland --- arch/

Re: [PATCH v2 2/4] tools: mkimage: Add Allwinner TOC0 support

2021-08-22 Thread Pali Rohár
On Sunday 22 August 2021 12:44:05 Samuel Holland wrote: > >> +struct toc0_main_info { > >> + uint8_t name[8]; > >> + __le32 magic; > >> + __le32 checksum; > >> + __le32 serial; > >> + __le32 status; > >> + __le32 num_items; > >> + __le32 length; > >> + uint8_t platform[4]; > >> + uin

Re: [PATCH v2 2/4] tools: mkimage: Add Allwinner TOC0 support

2021-08-22 Thread Samuel Holland
On 8/22/21 5:07 AM, Pali Rohár wrote: > Hello! > > On Saturday 21 August 2021 23:46:46 Samuel Holland wrote: >> Most Allwinner sunxi SoCs have separate boot ROMs in non-secure and >> secure mode. The "non-secure" or "normal" boot ROM (NBROM) uses the >> existing sunxi_egon image type. The secure b

Re: [PATCH v2 1/4] tools: Separate image types which depend on OpenSSL

2021-08-22 Thread Samuel Holland
On 8/22/21 4:58 AM, Pali Rohár wrote: > Hello! > > On Saturday 21 August 2021 23:46:45 Samuel Holland wrote: >> Some image types always depend on OpenSSL, so they can only be included >> in mkimage when TOOLS_LIBCRYPTO is selected. Instead of using arbitrary >> preprocessor definitions, conditiona

Re: [PATCH 01/11] i2c: Add a DM_I2C wrapper for the sun6i_p2wi controller

2021-08-22 Thread Samuel Holland
Hi Heiko, On 8/22/21 3:38 AM, Heiko Schocher wrote: > Hello Samuel, > > On 22.08.21 01:05, Samuel Holland wrote: >> This bus controller is used to communicate with an X-Powers AXP PMIC. >> Currently, various drivers access PMIC registers through a platform- >> specific non-DM "pmic_bus" interface

[PATCH 3/3] fs/erofs: add lz4 decompression support

2021-08-22 Thread Huang Jianan
From: Huang Jianan Support EROFS lz4 compressed files. Signed-off-by: Huang Jianan --- fs/erofs/Makefile | 4 +- fs/erofs/data.c | 84 ++- fs/erofs/decompress.c | 74 ++ fs/erofs/decompress.h | 29 +++ fs/erofs/namei.c | 2 +- fs/erofs/zmap.c | 517 +

[PATCH 2/3] fs/erofs: add lz4 1.8.3 decompressor

2021-08-22 Thread Huang Jianan
From: Huang Jianan In order to use the newest LZ4_decompress_safe_partial() which can now decode exactly the nb of bytes requested. Signed-off-by: Huang Jianan --- fs/erofs/Makefile | 3 +- fs/erofs/lz4.c| 534 ++ fs/erofs/lz4.h| 4 + 3 f

[PATCH 1/3] fs/erofs: new filesystem

2021-08-22 Thread Huang Jianan
From: Huang Jianan Add erofs filesystem support. The code is adapted from erofs-utils in order to reduce maintenance burden and keep with the latest feature. This patch mainly deals with uncompressed files. Signed-off-by: Huang Jianan --- fs/Kconfig | 1 + fs/Makefile |

Re: SPL SPI boot problem after commit "spi: Update speed/mode on change"

2021-08-22 Thread Marek Vasut
On 8/22/21 4:47 PM, Oskari Lemmelä wrote: On 22.8.2021 14.50, Marek Vasut wrote: On 8/22/21 9:41 AM, Oskari Lemmelä wrote: Hi Marek, I was bisecting SPI flash boot problem in rockpro64 board and commit e2e95e5e25421fb seems to broke it. It seems that after speed and mode change SPL is unable

Re: SPL SPI boot problem after commit "spi: Update speed/mode on change"

2021-08-22 Thread Oskari Lemmelä
On 22.8.2021 14.50, Marek Vasut wrote: > On 8/22/21 9:41 AM, Oskari Lemmelä wrote: >> Hi Marek, >> >> I was bisecting SPI flash boot problem in rockpro64 board and commit >> e2e95e5e25421fb seems to broke it. >> >> It seems that after speed and mode change SPL is unable to load BL31 >> anymore from

[PATCH] rpi: Copy properties from firmware dtb to the loaded dtb

2021-08-22 Thread Sjoerd Simons
The RPI firmware adjusts several property values in the dtb it passes to u-boot depending on the board/SoC revision. Inherit some of these when u-boot loads a dtb itself. Specificaly copy: * /model: The firmware provides a more specific string * /memreserve: The firmware defines a reserved range,

Re: [PATCH 0/4] sunxi: TOC0 image type support

2021-08-22 Thread Tom Rini
On Sat, Aug 21, 2021 at 09:19:56PM -0500, Samuel Holland wrote: > > Hi Andre, > > On 6/21/21 6:56 PM, Andre Przywara wrote: > > On Mon, 21 Jun 2021 16:35:37 -0400 > > Tom Rini wrote: > >> On Mon, Jun 21, 2021 at 04:43:00PM +0100, Andre Przywara wrote: > >>> On Sun, 20 Jun 2021 21:55:51 -0500 > >

Re: SPL SPI boot problem after commit "spi: Update speed/mode on change"

2021-08-22 Thread Marek Vasut
On 8/22/21 9:41 AM, Oskari Lemmelä wrote: Hi Marek, I was bisecting SPI flash boot problem in rockpro64 board and commit e2e95e5e25421fb seems to broke it. It seems that after speed and mode change SPL is unable to load BL31 anymore from SPI flash device. There is no errors it just hangs fo

Re: [PATCH 4/9] mvebu: ddr: Rename CONFIG_DDR_FIXED_SIZE to CONFIG_SYS_SDRAM_SIZE

2021-08-22 Thread Pali Rohár
On Sunday 22 August 2021 13:35:54 Marek Behún wrote: > + pali, who can tell whether this won't break how the code is aligned > with upstream mv-ddr This one change touch only drivers/ddr/marvell/axp/ files which are for Armada XP. Upstream mv-ddr code does not contain Armada XP code. It contains

Re: [PATCH 4/9] mvebu: ddr: Rename CONFIG_DDR_FIXED_SIZE to CONFIG_SYS_SDRAM_SIZE

2021-08-22 Thread Marek Behún
+ pali, who can tell whether this won't break how the code is aligned with upstream mv-ddr On Sat, 21 Aug 2021 13:50:14 -0400 Tom Rini wrote: > We have a number of CONFIG symbols to express the fixed size of system > memory. For now, rename CONFIG_DDR_FIXED_SIZE to CONFIG_SYS_SDRAM_SIZE > and

[PATCH] tools: kwbimage: Remove comment about unimplemented register headers in v1 images

2021-08-22 Thread Pali Rohár
Support for register headers in v1 images was implemented in commit 02ba70ad6822 ("tools: kwbimage: Add support for DATA command also for v1 images"). So remove old comment. Signed-off-by: Pali Rohár Fixes: 02ba70ad6822 ("tools: kwbimage: Add support for DATA command also for v1 images") --- to

RE: [PATCH v1 1/7] imx: mkimage_fit_atf: fix legacy image generation

2021-08-22 Thread ZHIZHIKIN Andrey
Hello Marcel, > -Original Message- > From: U-Boot On Behalf Of Marcel Ziswiler > Sent: Friday, August 20, 2021 10:52 PM > To: u-boot@lists.denx.de > Cc: Heiko Thiery ; Stefano Babic ; > Fabio Estevam ; Frieder Schrempf > ; Marcel Ziswiler > ; NXP i.MX U-Boot Team i...@nxp.com>; Peng Fan

Re: [PATCH v2 2/4] tools: mkimage: Add Allwinner TOC0 support

2021-08-22 Thread Pali Rohár
Hello! On Saturday 21 August 2021 23:46:46 Samuel Holland wrote: > Most Allwinner sunxi SoCs have separate boot ROMs in non-secure and > secure mode. The "non-secure" or "normal" boot ROM (NBROM) uses the > existing sunxi_egon image type. The secure boot ROM (SBROM) uses a > completely different i

Re: [PATCH v2 1/4] tools: Separate image types which depend on OpenSSL

2021-08-22 Thread Pali Rohár
Hello! On Saturday 21 August 2021 23:46:45 Samuel Holland wrote: > Some image types always depend on OpenSSL, so they can only be included > in mkimage when TOOLS_LIBCRYPTO is selected. Instead of using arbitrary > preprocessor definitions, conditionally link the files. > > When building for plat

Re: [PATCH] i2c: i2c-gpio: Support the named GPIO binding

2021-08-22 Thread Heiko Schocher
Hello Samuel, On 22.08.21 02:25, Samuel Holland wrote: > To avoid confusion about the order of the GPIOs, the i2c-gpio binding > was updated to use a separate property for each GPIO instead of an > array. However, the driver only supports the old binding. Add support > for the new binding as well,

Re: [PATCH 11/11] sunxi: Enable DM_I2C for all sunxi boards

2021-08-22 Thread Heiko Schocher
Hello Samuel, On 22.08.21 01:05, Samuel Holland wrote: > Now that the last users of legacy I2C (outside of SPL) have been > resolved, we can enable DM_I2C at the sunxi architecture level. > > Signed-off-by: Samuel Holland > --- > > arch/arm/Kconfig| 1 + > arch/arm/mach-sunxi/Kconf

Re: [PATCH 10/11] sunxi: video: Convert panel I2C to use DM_I2C

2021-08-22 Thread Heiko Schocher
Hello Samuel, On 22.08.21 01:05, Samuel Holland wrote: > Two displays supported by the sunxi display driver (each one used by a > single board) require initialization over I2C. Both previously used > i2c_soft; replace this with the i2c-gpio instance that already exists in > those boards' device tr

Re: [PATCH 02/11] i2c: Add a DM_I2C wrapper for the sun8i_rsb controller

2021-08-22 Thread Heiko Schocher
Hello Samuel, On 22.08.21 01:05, Samuel Holland wrote: > This bus controller is used to communicate with an X-Powers AXP PMIC. > Currently, various drivers access PMIC registers through a platform- > specific non-DM "pmic_bus" interface, which depends on the legacy I2C > framework. In order to con

Re: [PATCH 01/11] i2c: Add a DM_I2C wrapper for the sun6i_p2wi controller

2021-08-22 Thread Heiko Schocher
Hello Samuel, On 22.08.21 01:05, Samuel Holland wrote: > This bus controller is used to communicate with an X-Powers AXP PMIC. > Currently, various drivers access PMIC registers through a platform- > specific non-DM "pmic_bus" interface, which depends on the legacy I2C > framework. In order to con

Re: [PATCH] cmd: ubi: add a command to swap volumes

2021-08-22 Thread Heiko Schocher
Hello Ayoub, Sorry for late reply, but I was not an cc ... so I missed this EMail... On 09.07.21 17:57, Ayoub Zaki wrote: > This commit adds the command ubi swap to swap an ubi volumes. > The format of the command is: ubi swap . > To enable this command, the option CMD_UBI_SWAPVOL must be select