[PATCH v2 20/20] configs: j721s2_evm_a72_defconfig: Add A72 specific defconfig

2022-01-10 Thread Aswath Govindraju
From: David Huang Enable A72 specific configs for J721S2 Signed-off-by: David Huang Signed-off-by: Aswath Govindraju Signed-off-by: Vignesh Raghavendra Signed-off-by: Hari Nagalla --- configs/j721s2_evm_a72_defconfig | 207 +++ 1 file changed, 207 insertions(+)

[PATCH v2 19/20] configs: j721s2_evm_r5_defconfig: Add R5 SPL specific defconfig

2022-01-10 Thread Aswath Govindraju
From: David Huang Enable R5 SPL specific configs for J721S2. Signed-off-by: David Huang Signed-off-by: Aswath Govindraju Signed-off-by: Vignesh Raghavendra Signed-off-by: Hari Nagalla --- configs/j721s2_evm_r5_defconfig | 171 1 file changed, 171

[PATCH v2 17/20] arm: dts: k3-j721s2: Add r5 specific dt support

2022-01-10 Thread Aswath Govindraju
Add initial support for device tree that runs on R5. Signed-off-by: Aswath Govindraju --- arch/arm/dts/Makefile | 3 +- .../dts/k3-j721s2-r5-common-proc-board.dts| 196 ++ 2 files changed, 198 insertions(+), 1 deletion(-) create mode 100644

[PATCH v2 16/20] arm: dts: Add support for A72 specific J721S2 Common Processor Board

2022-01-10 Thread Aswath Govindraju
The EVM architecture for J721S2 is similar to that of J721E and J7200. It is as follows, +--+ | +---+ | | | | | | |Add-on Card 1 Options

[PATCH v2 15/20] arm: dts: Add initial support for J721S2 System on Module

2022-01-10 Thread Aswath Govindraju
A System on Module (SoM) contains the SoC, PMIC, DDR and basic high speed components necessary for functionality. Therefore, add support for the components present on the SoM. Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j721s2-som-p0.dtsi | 173 + 1 file

[PATCH v2 14/20] arm: dts: Add initial support for J721S2 SoC

2022-01-10 Thread Aswath Govindraju
The J721S2 SoC belongs to the K3 Multicore SoC architecture platform, providing advanced system integration in automotive ADAS applications and industrial applications requiring AI at the network edge. This SoC extends the Jacinto 7 family of SoCs with focus on lowering system costs and power

[PATCH v2 13/20] dt-bindings: pinctrl: k3: Introduce pinmux definitions for J721S2

2022-01-10 Thread Aswath Govindraju
Add pinctrl macros for J721S2 SoC. These macro definitions are similar to that of J721E, but adding new definitions to avoid any naming confusions in the soc dts files. checkpatch insists the following error exists: ERROR: Macros with complex values should be enclosed in parentheses However, we

[PATCH v2 12/20] dt-bindings: ti-serdes-mux: Add defines for J721S2 SoC

2022-01-10 Thread Aswath Govindraju
There are 4 lanes in the single instance of J721S2 SERDES. Each SERDES lane mux can select upto 4 different IPs. Define all the possible functions. Signed-off-by: Aswath Govindraju --- include/dt-bindings/mux/ti-serdes.h | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH v2 11/20] board: ti: j721s2: Add board support for J721S2

2022-01-10 Thread Aswath Govindraju
From: David Huang Add board support for J721S2 SoC. Signed-off-by: David Huang Signed-off-by: Aswath Govindraju --- board/ti/j721s2/Kconfig | 63 + board/ti/j721s2/MAINTAINERS | 7 ++ board/ti/j721s2/Makefile| 8 ++ board/ti/j721s2/evm.c | 180

[PATCH v2 10/20] soc: ti: k3-socinfo: Add entry for J721S2 SoC

2022-01-10 Thread Aswath Govindraju
From: David Huang Add support for J721S2 SoC identification. Signed-off-by: David Huang Signed-off-by: Aswath Govindraju --- drivers/soc/soc_ti_k3.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c index 9abed7d490a2..c8f7a5768775

[PATCH v2 09/20] ram: k3-ddrss: Add support for J721S2 SoC

2022-01-10 Thread Aswath Govindraju
From: David Huang Add support for DDR subsystem in J721S2 SoC. Signed-off-by: David Huang Signed-off-by: Aswath Govindraju --- drivers/ram/Kconfig | 12 drivers/ram/k3-ddrss/Makefile | 4 2 files changed, 16 insertions(+) diff --git a/drivers/ram/Kconfig

[PATCH v2 08/20] power: domain: ti: Add support for J721S2 SoC

2022-01-10 Thread Aswath Govindraju
From: David Huang Add support for J721S2 SoC. Signed-off-by: David Huang Signed-off-by: Aswath Govindraju --- drivers/power/domain/ti-power-domain.c | 5 + include/k3-dev.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/power/domain/ti-power-domain.c

[PATCH v2 07/20] clk: clk-k3: Add support for J721S2 SoC

2022-01-10 Thread Aswath Govindraju
From: David Huang Add support for J721S2 SoC. Signed-off-by: David Huang Signed-off-by: Aswath Govindraju --- drivers/clk/ti/clk-k3.c | 5 + include/k3-clk.h| 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/clk/ti/clk-k3.c b/drivers/clk/ti/clk-k3.c index

[PATCH v2 05/20] arm: K3: Add basic support for J721S2 SoC definition

2022-01-10 Thread Aswath Govindraju
From: David Huang Add basic support for J721S2 SoC definition Signed-off-by: David Huang Signed-off-by: Aswath Govindraju Signed-off-by: Dave Gerlach Signed-off-by: Nishanth Menon Signed-off-by: Hari Nagalla --- arch/arm/mach-k3/Kconfig | 11 +-

[PATCH v2 06/20] drivers: dma: Add support for J721S2

2022-01-10 Thread Aswath Govindraju
From: David Huang Add support for DMA in J721S2 SoC. Signed-off-by: David Huang Signed-off-by: Aswath Govindraju --- drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-j721s2.c | 167 ++ drivers/dma/ti/k3-psil-priv.h | 1 +

[PATCH v2 04/20] ram: k3-ddrss: Add support for configuring MSMC subsystem in case of Multiple DDR subsystems

2022-01-10 Thread Aswath Govindraju
In Multi DDR subystems with interleaving support, the following needs to configured, - interleaving granular size and region - EMIFs to be enabled - EMIFs with ecc to be enabled - EMIF separated or interleaved - number of cycles of unsuccessful EMIF arbitration to wait before arbitrating for a

[PATCH v2 03/20] ram: k3-ddrss: Add support for multiple instances of DDR subsystems

2022-01-10 Thread Aswath Govindraju
The current driver only supports single instance of DRR subsystem. Add support for probing multiple instances of DDR subsystem. Signed-off-by: Aswath Govindraju --- drivers/ram/k3-ddrss/k3-ddrss.c | 138 1 file changed, 87 insertions(+), 51 deletions(-) diff

[PATCH v2 02/20] ram: k3-ddrss: lpddr4_structs_if.h: Add a pointer to ddr instance

2022-01-10 Thread Aswath Govindraju
Add a pointer to ddr instance int the lpddr4_privatedata_s structure for supporting mutliple instances of DDR in the drivers. Signed-off-by: Aswath Govindraju --- drivers/ram/k3-ddrss/lpddr4_structs_if.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 01/20] remoteproc: k3_system_controller: Support optional boot_notification channel

2022-01-10 Thread Aswath Govindraju
From: Nishanth Menon If there is an optional boot notification channel that an SoC uses separate from the rx path, use the same. Signed-off-by: Nishanth Menon --- .../remoteproc/k3-system-controller.txt | 3 +++ drivers/remoteproc/k3_system_controller.c | 20 ++- 2

[PATCH v2 00/20] J721S2: Add initial support

2022-01-10 Thread Aswath Govindraju
The J721S2 SoC belongs to the K3 Multicore SoC architecture platform, providing advanced system integration in automotive ADAS applications and industrial applications requiring AI at the network edge. This SoC extends the Jacinto 7 family of SoCs with focus on lowering system costs and power

Re: [EXT] Re: [PATCH v8 12/15] Layerscape: Enable Job ring driver model.

2022-01-10 Thread Michael Walle
Hi Guarav, Am 2022-01-11 06:41, schrieb Gaurav Jain: > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index > 7ce2bbc954..30a34bdd08 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -1504,6 +1504,8 @@ config TARGET_LS1028AQDS > select ARCH_SUPPORT_TFABOOT > select

imx: imx8mm: imx8mm-kontron-n801x-s: does not start work

2022-01-10 Thread Heiko Thiery
Hi all, I wanted to test the newly introduced kontron-sl-mx8mm_defconfig but it does not work. I already found two converted config options that are missing in that defconfig: +CONFIG_SPL_MMC=y +CONFIG_SPL_SERIAL=y With that the output appears but the u-boot hangs when trying to find the

Re: [PATCH] omap: timer: implement timer_get_boot_us

2022-01-10 Thread Christian Gmeiner
Hi Gentle ping. > > To make the OMAP DM timer driver useful for the timing of > bootstages, we need to implement timer_get_boot_us(..). > > Signed-off-by: Christian Gmeiner > --- > drivers/timer/omap-timer.c | 21 + > 1 file changed, 21 insertions(+) > > diff --git

Re: [PATCH 0/4] Apple M1 watchdog timer

2022-01-10 Thread Stefan Roese
Hi Marc, On 1/10/22 21:25, Mark Kettenis wrote: From: Mark Kettenis Date: Sun, 14 Nov 2021 12:19:39 +0100 This series adds a driver for the watchdog timer found on Apple's M1 SoC and replaces the reset_cpu() function in the board file with sysreset. The driver is based on the Linux binding

Re: [PATCH 2/2] ARM: mvebu: x530: Add option for ECC

2022-01-10 Thread Stefan Roese
On 1/11/22 02:37, Chris Packham wrote: On Mon, Jan 10, 2022 at 9:10 PM Chris Packham wrote: On Mon, 10 Jan 2022, 8:37 PM Stefan Roese, wrote: On 1/6/22 04:08, Chris Packham wrote: Some older x530 boards have layout issues that cause problems for DDR. These are usually seen as

RE: [EXT] RE: [PATCH v8 10/15] crypto/fsl: Improve hwrng performance in kernel

2022-01-10 Thread Gaurav Jain
Hi Andrey For now I will remove this particular patch from my series and will send a separate patch addressing your comments. Regards Gaurav Jain > -Original Message- > From: ZHIZHIKIN Andrey > Sent: Monday, January 10, 2022 7:31 PM > To: Gaurav Jain ; u-boot@lists.denx.de > Cc:

RE: [EXT] Re: [PATCH v8 12/15] Layerscape: Enable Job ring driver model.

2022-01-10 Thread Gaurav Jain
Hi Michael > -Original Message- > From: Michael Walle > Sent: Monday, January 10, 2022 6:13 PM > To: Gaurav Jain > Cc: Shengzhou Liu ; Varun Sethi ; > Adrian Alonso ; Alison Wang > ; Andy Tang ; > feste...@gmail.com; Franck Lenormand ; Horia > Geanta ; Ji Luo ; Meenakshi > Aggarwal ;

[RESEND PATCH v2] board: gateworks: venice: add imx8mn-gw7902 support

2022-01-10 Thread Tim Harvey
The GW7902 is based on the i.MX 8M Mini / Nano SoC featuring: - LPDDR4 DRAM - eMMC FLASH - Gateworks System Controller - LTE CAT M1 modem - USB 2.0 HUB - M.2 Socket with USB2.0, PCIe, and dual-SIM - IMX8M FEC - PCIe based GbE - RS232/RS485/RS422 serial transceiver - GPS - CAN bus -

[PATCH 2/2] fw_env: simplify logic & code paths in the fw_env_open()

2022-01-10 Thread Rafał Miłecki
From: Rafał Miłecki Environment variables can be stored in two formats: 1. Single entry with header containing CRC32 2. Two entries with extra flags field in each entry header For that reason fw_env_open() has two main code paths and there are pointers for CRC32/flags/data. Previous

[PATCH 1/2] fw_env: make flash_io() take buffer as an argument

2022-01-10 Thread Rafał Miłecki
From: Rafał Miłecki It's usually easier to understand code & follow it if all arguments are passed explicitly. Many coding styles also discourage using global variables. Behaviour of flash_io() was a bit unintuitive as it was writing to a buffer referenced in a global struct. That required

[PATCH 0/2] fw_env: two minor code cleanups

2022-01-10 Thread Rafał Miłecki
From: Rafał Miłecki Hi, I'm a long time OpenWrt developer and just recently I started working with some devices using U-Boot. I was trying to understand how environment variables are read in user space and I had some problems understanding fw_env_open() logic. I eventually got it but I thought

[PATCH v2] ARM: mvebu: x530: Add option for ECC

2022-01-10 Thread Chris Packham
Some older x530 boards have layout issues that cause problems for DDR. These are usually seen as training failures but can also cause problems after training has completed. Add an option to enable ECC leaving the default as N which will work with both old and new boards. Signed-off-by: Chris

[PATCH V8] arm: add initial support for the Phytium Pomelo Board

2022-01-10 Thread nicholas_zheng
From: weichangzheng This adds platform code and the device tree for the Phytium Pomelo Board. The initial support comprises the UART and the PCIE. Signed-off-by: weichangzheng Changes since v1: updated to DT Changes since v2: Modify some explicit types and macro Changes since

Re: [PATCH 2/2] ARM: mvebu: x530: Add option for ECC

2022-01-10 Thread Tom Rini
On Tue, Jan 11, 2022 at 02:37:53PM +1300, Chris Packham wrote: > On Mon, Jan 10, 2022 at 9:10 PM Chris Packham wrote: > > > > > > > > On Mon, 10 Jan 2022, 8:37 PM Stefan Roese, wrote: > >> > >> On 1/6/22 04:08, Chris Packham wrote: > >> > Some older x530 boards have layout issues that cause

Re: [PATCH 2/2] ARM: mvebu: x530: Add option for ECC

2022-01-10 Thread Chris Packham
On Mon, Jan 10, 2022 at 9:10 PM Chris Packham wrote: > > > > On Mon, 10 Jan 2022, 8:37 PM Stefan Roese, wrote: >> >> On 1/6/22 04:08, Chris Packham wrote: >> > Some older x530 boards have layout issues that cause problems for DDR. >> > These are usually seen as training failures but can also

Re: [RESEND PATCH v3 01/12] mmc: fsl_esdhc_imx: make BLK as hard requirement of DM_MMC

2022-01-10 Thread Jaehoon Chung
Dear Sean, On 1/5/22 1:16 AM, Sean Anderson wrote: > [ fsl_esdhc commit 41dec2fe99512e941261594f522b2e7d485c314b ] > > U-boot prefers DM_MMC + BLK for MMC. Now eSDHC driver has already > support it, so let's force to use it. > > - Drop non-BLK support for DM_MMC introduced by below patch. >  

[PATCH 1/1] sandbox: compatibility of os_get_filesize()

2022-01-10 Thread Heinrich Schuchardt
U-Boot define loff_t as long long. But the header /usr/include/linux/types.h may not define it. This has lead to a build error on Alpine Linux. So let's use long long instead of loff_t for the size parameter of function os_get_filesize(). Reported-by: Milan P. Stanić Signed-off-by: Heinrich

[PATCH 1/1] doc: Building on Alpine Linux

2022-01-10 Thread Heinrich Schuchardt
Describe the required packages for building U-Boot on Alpine Linux Signed-off-by: Heinrich Schuchardt --- doc/build/gcc.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst index cdd7970032..5299b8a18a 100644 --- a/doc/build/gcc.rst +++

[BUG] sandbox: NO_SDL=1 gcc: error: arch/sandbox/cpu/sdl.o: No such file or directory

2022-01-10 Thread Heinrich Schuchardt
Hello Simon, compiling with SDL fails on Alpine Linux: https://gitlab.alpinelinux.org/alpine/aports/-/issues/13411 So I tried NO_SDL: make sandbox_defconfig NO_SDL=1 make menuconfig # CONFIG_ETH_SANDBOX_RAW=n make -j4 NO_SDL=1 But I got an error gcc: error: arch/sandbox/cpu/sdl.o: No such

Re: [PATCH 1/6] cmd: exception: arm64: fix undefined, add faults

2022-01-10 Thread Mark Kettenis
> Date: Sun, 9 Jan 2022 23:19:10 + > From: Andre Przywara > > On Sun, 9 Jan 2022 23:47:32 +0100 (CET) > Mark Kettenis wrote: > > Hi Mark, > > (I knew I forgot to CC: one person ...) > > > > Date: Sun, 9 Jan 2022 22:35:27 + > > > From: Andre Przywara > > > > > > Hi Heinrich, > > >

Re: [PATCH 0/4] Apple M1 watchdog timer

2022-01-10 Thread Mark Kettenis
> From: Mark Kettenis > Date: Sun, 14 Nov 2021 12:19:39 +0100 > > This series adds a driver for the watchdog timer found on Apple's > M1 SoC and replaces the reset_cpu() function in the board file > with sysreset. The driver is based on the Linux binding proposed > in [1]. > > [1] >

[PATCH v3 3/3] power: domain: Add Apple pmgr driver

2022-01-10 Thread Mark Kettenis
This driver supports power domains for the power management controller found on Apple SoCs. Signed-off-by: Mark Kettenis Reviewed-by: Jaehoon Chung Reviewed-by: Simon Glass --- ChangeLog: v3: - Extend Kconfig description - Add comment on driver priv struct member arch/arm/Kconfig

[PATCH v3 1/3] arm: dts: apple: Update Apple M1 device trees

2022-01-10 Thread Mark Kettenis
This synchronizes the device trees with those that are in the process of being upstreamed into Linux. This is mostly the current state of the device trees on the asahilinux branch with a few extra bits used by OpenBSD. This includes device trees for machines that were still missing. There are

[PATCH v3 2/3] arm: dts: apple: Add u-boot,dm-pre-reloc properties

2022-01-10 Thread Mark Kettenis
These are necessary to make sure the power domains needed for the serial console are availble in the pre-relocation phase. Signed-off-by: Mark Kettenis Reviewed-by: Jaehoon Chung Reviewed-by: Simon Glass --- arch/arm/dts/t8103-j274-u-boot.dtsi | 1 + arch/arm/dts/t8103-j293-u-boot.dtsi | 1

[PATCH v3 0/3] Apple M1 power management controller support

2022-01-10 Thread Mark Kettenis
This series adds support for the power management controller found on Apple SoCs based on the device tree bindings submitted to upstream Linux. This is needed to enable power domains for devices that haven't been enabled by earlier boot stages. ChangeLog: v3: - Extend Kconfig description -

[ANN] U-Boot v2022.01 released

2022-01-10 Thread Tom Rini
Hey all, It is release day and here is v2022.01. With this release we are now at the fourth of our 2 years past a number of DM migration deadlines. We're now at the point where conversion to CONFIG_DM itself must have been done, and I think nothing is tripping up on that deadline anymore,

Re: [PATCH] lib/rsa: avoid -Wdiscarded-qualifiers

2022-01-10 Thread Tom Rini
On Sun, Jan 09, 2022 at 03:39:40PM +0100, Heinrich Schuchardt wrote: > The return type of EVP_PKEY_get0_RSA() is const struct rsa_st *. > Our code drops the const qualifier leading to > > In file included from tools/lib/rsa/rsa-sign.c:1: > ./tools/../lib/rsa/rsa-sign.c: In function

Re: [PATCH] .mailmap: add Atish Patra, Anup Patel

2022-01-10 Thread Tom Rini
On Sun, Jan 09, 2022 at 06:51:27PM +0100, Heinrich Schuchardt wrote: > Both have left Western Digital. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH 2/2] tools/fitimage: make sure dumpimage still works when "@" are detected

2022-01-10 Thread Stefan Eichenberger
fit_verify_header fails if it detects unit addresses "@". However, this will break tools like dumpimage on fit images which worked with previous versions of the tool (e.g. 2020.04 vs 2021.07). As an example the output of: dumpimage -l is: FIT description: U-Boot fitImage for Linux Distribution

[PATCH 1/2] tools/fitimage: remove redundant format check

2022-01-10 Thread Stefan Eichenberger
fit_extract_contents does a fit_check_format even thought it was already checked during imagetool_verify_print_header. Therefore, this check is not necessary. This commit removes the redundancy. Signed-off-by: Stefan Eichenberger --- tools/fit_image.c | 5 - 1 file changed, 5 deletions(-)

[PATCH 0/2] fix dumpimage for fit images

2022-01-10 Thread Stefan Eichenberger
dumpimage does not work properly when an image includes "@" because signing would fail. However, this should be supported because it is enabled by default (even when signing is disabled). This patch series tries to fix this by just printing a warning instead of failing completely. Stefan

RE: [PATCH v2] net: fsl_mdio: Fix busy flag polling register

2022-01-10 Thread Camelia Alexandra Groza (OSS)
> -Original Message- > From: Markus Koch > Sent: Friday, January 7, 2022 19:49 > To: Camelia Alexandra Groza (OSS) ; > joe.hershber...@ni.com; rfried@gmail.com; Ioana Ciornei > > Cc: Madalin Bucur (OSS) ; u- > b...@lists.denx.de > Subject: Re: [PATCH v2] net: fsl_mdio: Fix busy flag

[PATCH v6 2/2] arm: imx8m: add support for Advantech RSB-3720

2022-01-10 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Advantech RSB-3720 board. The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Signed-off-by: Darren Huang Signed-off-by: Kevin12.Chen Signed-off-by: Phill.Liu Signed-off-by: Tim Liang Signed-off-by: wei.zeng

Re: [PATCH] lib/rsa: avoid -Wdiscarded-qualifiers

2022-01-10 Thread Heinrich Schuchardt
On 1/10/22 17:48, Simon Glass wrote: Hi, On Mon, 10 Jan 2022 at 08:00, Alex G. wrote: On 1/9/22 8:39 AM, Heinrich Schuchardt wrote: The return type of EVP_PKEY_get0_RSA() is const struct rsa_st *. Our code drops the const qualifier leading to In file included from

Re: [PATCH] lib/rsa: avoid -Wdiscarded-qualifiers

2022-01-10 Thread Simon Glass
Hi, On Mon, 10 Jan 2022 at 08:00, Alex G. wrote: > > > > On 1/9/22 8:39 AM, Heinrich Schuchardt wrote: > > The return type of EVP_PKEY_get0_RSA() is const struct rsa_st *. > > Our code drops the const qualifier leading to > > > > In file included from tools/lib/rsa/rsa-sign.c:1: > >

Re: [PATCH] lib/rsa: avoid -Wdiscarded-qualifiers

2022-01-10 Thread Heinrich Schuchardt
On 1/10/22 17:29, Tom Rini wrote: On Mon, Jan 10, 2022 at 05:22:15PM +0100, Heinrich Schuchardt wrote: On 1/10/22 17:12, Tom Rini wrote: On Mon, Jan 10, 2022 at 05:11:29PM +0100, Heinrich Schuchardt wrote: On 1/10/22 16:06, Tom Rini wrote: On Mon, Jan 10, 2022 at 09:00:29AM -0600, Alex G.

Re: [RFC] imx: imx8qm-rom7720: switch to binman

2022-01-10 Thread Adam Ford
On Mon, Jan 10, 2022 at 9:34 AM Marcel Ziswiler wrote: > Hi Oliver > > On Mon, 2022-01-10 at 14:29 +, ZHIZHIKIN Andrey wrote: > > Hello Oliver, > > > > > -Original Message- > > > From: Oliver Graute > > > Sent: Monday, January 10, 2022 11:31 AM > > > To: Oliver Graute ; Stefano

Re: [PATCH] lib/rsa: avoid -Wdiscarded-qualifiers

2022-01-10 Thread Tom Rini
On Mon, Jan 10, 2022 at 05:22:15PM +0100, Heinrich Schuchardt wrote: > On 1/10/22 17:12, Tom Rini wrote: > > On Mon, Jan 10, 2022 at 05:11:29PM +0100, Heinrich Schuchardt wrote: > > > On 1/10/22 16:06, Tom Rini wrote: > > > > On Mon, Jan 10, 2022 at 09:00:29AM -0600, Alex G. wrote: > > > > > > >

Re: [PATCH] lib/rsa: avoid -Wdiscarded-qualifiers

2022-01-10 Thread Heinrich Schuchardt
On 1/10/22 17:12, Tom Rini wrote: On Mon, Jan 10, 2022 at 05:11:29PM +0100, Heinrich Schuchardt wrote: On 1/10/22 16:06, Tom Rini wrote: On Mon, Jan 10, 2022 at 09:00:29AM -0600, Alex G. wrote: On 1/9/22 8:39 AM, Heinrich Schuchardt wrote: The return type of EVP_PKEY_get0_RSA() is const

Re: [PATCH] lib/rsa: avoid -Wdiscarded-qualifiers

2022-01-10 Thread Tom Rini
On Mon, Jan 10, 2022 at 05:11:29PM +0100, Heinrich Schuchardt wrote: > On 1/10/22 16:06, Tom Rini wrote: > > On Mon, Jan 10, 2022 at 09:00:29AM -0600, Alex G. wrote: > > > > > > > > > On 1/9/22 8:39 AM, Heinrich Schuchardt wrote: > > > > The return type of EVP_PKEY_get0_RSA() is const struct

Re: [PATCH] lib/rsa: avoid -Wdiscarded-qualifiers

2022-01-10 Thread Heinrich Schuchardt
On 1/10/22 16:06, Tom Rini wrote: On Mon, Jan 10, 2022 at 09:00:29AM -0600, Alex G. wrote: On 1/9/22 8:39 AM, Heinrich Schuchardt wrote: The return type of EVP_PKEY_get0_RSA() is const struct rsa_st *. Our code drops the const qualifier leading to In file included from

Re: [RFC] imx: imx8qm-rom7720: switch to binman

2022-01-10 Thread Marcel Ziswiler
Hi Oliver On Mon, 2022-01-10 at 14:29 +, ZHIZHIKIN Andrey wrote: > Hello Oliver, > > > -Original Message- > > From: Oliver Graute > > Sent: Monday, January 10, 2022 11:31 AM > > To: Oliver Graute ; Stefano Babic > > ; Fabio Estevam ; NXP i.MX U-Boot Team > > > > Cc:

Re: [RFC] imx: imx8qm-rom7720: switch to binman

2022-01-10 Thread Oliver Graute
On 10/01/22, ZHIZHIKIN Andrey wrote: > Hello Oliver, > > > -Original Message- > > From: Oliver Graute > > Sent: Monday, January 10, 2022 11:31 AM > > To: Oliver Graute ; Stefano Babic > > ; Fabio Estevam ; NXP i.MX U-Boot Team > > > > Cc: aford...@gmail.com; peng@nxp.com;

Re: Save bootargs from 1st stage bootloader like linux does

2022-01-10 Thread Dzmitry Sankouski
Seems like this is already supported with save_boot_params function пн, 10 янв. 2022 г. в 18:01, Dzmitry Sankouski : > I'm working on a project to bring mainline linux kernels to android phones. > I'm planning to use u-boot as a secondary stage bootloader packed in > android boot image, > so

Re: [PATCH] lib/rsa: avoid -Wdiscarded-qualifiers

2022-01-10 Thread Tom Rini
On Mon, Jan 10, 2022 at 09:00:29AM -0600, Alex G. wrote: > > > On 1/9/22 8:39 AM, Heinrich Schuchardt wrote: > > The return type of EVP_PKEY_get0_RSA() is const struct rsa_st *. > > Our code drops the const qualifier leading to > > > > In file included from tools/lib/rsa/rsa-sign.c:1: > >

[PATCH v6 1/2] arm: dts: add imx8mp-rsb3720-a1 dts file

2022-01-10 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add board dts for Advantech's imx8mp-rsb3720-a1 Signed-off-by: Darren Huang Signed-off-by: Kevin12.Chen Signed-off-by: Phill.Liu Signed-off-by: Tim Liang Signed-off-by: wei.zeng Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: uboot-imx --- v2: update dts v4:

[PATCH v6 0/2] arm: imx8m: add support for Advantech RSB-3720

2022-01-10 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Advantech RSB-3720 board. The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Ying-Chun Liu (PaulLiu) (2): arm: dts: add imx8mp-rsb3720-a1 dts file arm: imx8m: add support for Advantech RSB-3720 v2: update dts

[PATCH 2/2] board: sl28: use fit image generator

2022-01-10 Thread Michael Walle
Simplify the binman config and fdt nodes by using the "@..-SEQ" substitutions and CONFIG_OF_LIST. Signed-off-by: Michael Walle --- .../dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 128 ++ configs/kontron_sl28_defconfig| 2 +- 2 files changed, 10 insertions(+),

[PATCH 1/2] board: sl28: disable random MAC address generation

2022-01-10 Thread Michael Walle
Nowadays, u-boot (when CONFIG_NET_RANDOM_ETHADDR is set) will set enetaddr to a random value if not set and then pass the randomly generated MAC address to linux. This is bad for the following reasons: (1) it makes it impossible for linux to detect this error (2) linux won't trigger any

Save bootargs from 1st stage bootloader like linux does

2022-01-10 Thread Dzmitry Sankouski
I'm working on a project to bring mainline linux kernels to android phones. I'm planning to use u-boot as a secondary stage bootloader packed in android boot image, so that linux kernel is replaced with u-boot, and initramfs is replaced with FIT image. This approach allows to use u-boot on a

Re: [PATCH] lib/rsa: avoid -Wdiscarded-qualifiers

2022-01-10 Thread Alex G.
On 1/9/22 8:39 AM, Heinrich Schuchardt wrote: The return type of EVP_PKEY_get0_RSA() is const struct rsa_st *. Our code drops the const qualifier leading to In file included from tools/lib/rsa/rsa-sign.c:1: ./tools/../lib/rsa/rsa-sign.c: In function ‘rsa_add_verify_data’:

RE: [RFC] imx: imx8qm-rom7720: switch to binman

2022-01-10 Thread ZHIZHIKIN Andrey
Hello Oliver, > -Original Message- > From: Oliver Graute > Sent: Monday, January 10, 2022 11:31 AM > To: Oliver Graute ; Stefano Babic > ; Fabio Estevam ; NXP i.MX U-Boot Team > > Cc: aford...@gmail.com; peng@nxp.com; marcel.ziswi...@toradex.com; > thar...@gateworks.com; ZHIZHIKIN

Re: [PATCHv3] net: uclass: Save generated ethernet MAC addresses to the environment

2022-01-10 Thread Michal Simek
On 1/10/22 15:03, Tom Rini wrote: On Fri, Jan 07, 2022 at 04:08:34PM +0100, Michal Simek wrote: so 27. 11. 2021 v 20:37 odesílatel Ramon Fried napsal: On Mon, Nov 22, 2021 at 3:45 PM Tom Rini wrote: From: Michal Simek When a MAC address is randomly generated we currently only update

Re: [PATCHv3] net: uclass: Save generated ethernet MAC addresses to the environment

2022-01-10 Thread Tom Rini
On Fri, Jan 07, 2022 at 04:08:34PM +0100, Michal Simek wrote: > so 27. 11. 2021 v 20:37 odesílatel Ramon Fried napsal: > > > > On Mon, Nov 22, 2021 at 3:45 PM Tom Rini wrote: > > > > > > From: Michal Simek > > > > > > When a MAC address is randomly generated we currently only update the > > >

Re: SYS_MMC_ENV_DEV wrong depend?

2022-01-10 Thread Tom Rini
On Sun, Jan 09, 2022 at 10:20:03PM +, Nuno Gonçalves wrote: > Hi Tom, > > With 7d080773347c1f6e0e896d9284134a2a411155d6 you committed that > config SYS_MMC_ENV_DEV depends on ENV_IS_IN_FAT (in addition to > others). I don't see how they are related. Maybe this was a bad copy > and paste? >

RE: [PATCH v8 10/15] crypto/fsl: Improve hwrng performance in kernel

2022-01-10 Thread ZHIZHIKIN Andrey
Hello Gaurav, Cc: Michael Walle > -Original Message- > From: U-Boot On Behalf Of Gaurav Jain > Sent: Monday, January 10, 2022 1:27 PM > To: u-boot@lists.denx.de > Cc: Stefano Babic ; Fabio Estevam ; Peng > Fan > ; Simon Glass ; Priyanka Jain > ; Ye Li ; Horia Geanta > ; Ji Luo ; Franck

[RESEND PATCH v1] net: emaclite: fix underflow bug

2022-01-10 Thread Tianrui Wei
This commit fixes a corner case when length < first_read. which would cause the last argument of xemaclite_alignedread to be a very large unsigned integer, resulting in an underflow Signed-off-by: Tianrui Wei --- drivers/net/xilinx_emaclite.c | 2 +- 1 file changed, 1 insertion(+), 1

[RFC PATCH] dts: automatically build necessary .dtb files

2022-01-10 Thread Rasmus Villemoes
When building for a custom board, it is quite common to maintain a private branch which include some defconfig and .dts files. But to hook up those .dts files requires modifying a file "belonging" to upstream U-Boot, the arch/*/dts/Makefile. Forward-porting that branch to a newer upstream then

[PATCH v7 2/2] board: kontron: pitx-imx8m: Add Kontron pitx-imx8m board support

2022-01-10 Thread Heiko Thiery
The Kontron pitx-imx8m is an NXP i.MX8MQ based board in the pITX form factor. Signed-off-by: Heiko Thiery --- v7: - add external blob entry for HDMI firmware v6: - increase PHY_ANEG_TIMEOUT - spl: print boot source on startup - spl: remove PMIC output - enable CONFIG_CMD_TIME v5: - save

Re: [PATCH 00/11] Add support for SUNIV and F1C100s.

2022-01-10 Thread Tnze Jdao
I tested this patch and tried to run it on my LicheePi Nano. It works, but I found there is WARNINGs when compile the code: --- include/configs/sunxi-common.h:128:0: warning: "CONFIG_ENV_SECT_SIZE" redefined #define CONFIG_ENV_SECT_SIZE 0x1000 In file included from

Re: [PATCH v8 12/15] Layerscape: Enable Job ring driver model.

2022-01-10 Thread Michael Walle
Hi, please keep me on CC for these series, as there were comments from me on previous versions. Thanks. .. > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 7ce2bbc954..30a34bdd08 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -1504,6 +1504,8 @@ config TARGET_LS1028AQDS

[PATCH v8 15/15] update CAAM MAINTAINER

2022-01-10 Thread Gaurav Jain
updated CAAM driver files maintainer. Signed-off-by: Gaurav Jain --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 90666ce376..622725aa64 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1312,3 +1312,9 @@ T:git

[PATCH v8 14/15] PPC: Enable Job ring driver model.

2022-01-10 Thread Gaurav Jain
removed sec_init() call and CONFIG_FSL_CAAM from defconfig. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 33 +++

[PATCH v8 13/15] PPC: Add crypto node in device tree

2022-01-10 Thread Gaurav Jain
device tree imported from linux kernel. c500bee1c5b2 (tag: v5.14-rc4) Linux 5.14-rc4 Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/powerpc/dts/p2041si-post.dtsi | 1 + arch/powerpc/dts/p3041si-post.dtsi | 1 + arch/powerpc/dts/p4080si-post.dtsi | 1 +

[PATCH v8 12/15] Layerscape: Enable Job ring driver model.

2022-01-10 Thread Gaurav Jain
LS(1021/1012/1028/1043/1046/1088/2088), LX2160, LX2162 platforms are enabled with JR driver model. removed sec_init() call from board files. removed CONFIG_FSL_CAAM from defconfig files. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain

[PATCH v8 11/15] Layerscape: Add crypto node in device tree

2022-01-10 Thread Gaurav Jain
LS(1021/1012/1028/1043/1046/1088/2088), LX2160 - updated device tree Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/arm/dts/fsl-ls1012a.dtsi | 46 ++- arch/arm/dts/fsl-ls1043a.dtsi | 45 +-

[PATCH v8 10/15] crypto/fsl: Improve hwrng performance in kernel

2022-01-10 Thread Gaurav Jain
From: Ye Li RNG parameters are reconfigured. - For TRNG to generate 256 bits of entropy, RNG TRNG Seed Control register is configured to have reduced SAMP_SIZE from default 2500 to 512. it is number of entropy samples that will be taken during Entropy generation. - self-test

[PATCH v8 09/15] crypto/fsl: i.MX8: Enable Job ring driver model.

2022-01-10 Thread Gaurav Jain
i.MX8(QM/QXP) - added support for JR driver model. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Signed-off-by: Horia Geantă Reviewed-by: Ye Li --- arch/arm/Kconfig | 3 ++

[PATCH v8 08/15] i.MX8: Add crypto node in device tree

2022-01-10 Thread Gaurav Jain
i.MX8(QM/QXP) - updated device tree for supporting DM in SPL. disabled use of JR1 in SPL and uboot, as JR1 is reserved for SECO FW. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/dts/fsl-imx8dx.dtsi | 61 +++- arch/arm/dts/fsl-imx8qm-mek-u-boot.dtsi

[PATCH v8 07/15] i.MX7ULP: Enable Job ring driver model.

2022-01-10 Thread Gaurav Jain
added crypto node in device tree. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/dts/imx7ulp.dtsi| 24

[PATCH v8 06/15] i.MX7: Enable Job ring driver model.

2022-01-10 Thread Gaurav Jain
i.MX7D - added support for JR driver model. removed sec_init() call, sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/mach-imx/mx7/Kconfig | 2 ++

[PATCH v8 05/15] i.MX6: Enable Job ring driver model.

2022-01-10 Thread Gaurav Jain
i.MX6,i.MX6SX,i.MX6UL - added support for JR driver model. removed sec_init() call, sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/mach-imx/mx6/Kconfig | 15 +++ arch/arm/mach-imx/mx6/soc.c

[PATCH v8 04/15] mx6sabre: Remove unnecessary SPL configs

2022-01-10 Thread Gaurav Jain
From: Ye Li Because we don't use SPL_DM on mx6sabresd and mx6sabreauto, so it is unnecessary to have SPL DTB related configs and SPL_OF_CONTROL enabled. Signed-off-by: Ye Li Reviewed-by: Fabio Estevam Reviewed-by: Gaurav Jain --- configs/mx6sabreauto_defconfig | 2 --

[PATCH v8 03/15] crypto/fsl: i.MX8M: Enable Job ring driver model.

2022-01-10 Thread Gaurav Jain
i.MX8MM/MN/MP/MQ - added support for JR driver model. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/include/asm/arch-imx8m/imx-regs.h | 1 +

[PATCH v8 02/15] i.MX8M: crypto: updated device tree for supporting DM in SPL

2022-01-10 Thread Gaurav Jain
disabled use of JR0 in SPL and uboot, as JR0 is reserved for secure boot. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 19 ++- arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 19 ++- arch/arm/dts/imx8mp-evk-u-boot.dtsi

[PATCH v8 01/15] crypto/fsl: Add support for CAAM Job ring driver model

2022-01-10 Thread Gaurav Jain
added device tree support for job ring driver. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- drivers/crypto/fsl/jr.c | 323 ++-- drivers/crypto/fsl/jr.h | 31 +++- 2 files

[PATCH v8 00/15] Add CAAM driver model support

2022-01-10 Thread Gaurav Jain
This patchset adds the support for following: 1) CAAM Driver model for all i.MX, layerscape, PPC platforms. 2) Added crypto node in device tree files. 3) fix build issue for mx6sabre: Remove SPL DTB related configs and SPL_OF_CONTROL. 4) improve hwrng performance in kernel. i.MX platforms:

Re: [PATCH 1/8] video: Add cursor support for DM_VIDEO consoles

2022-01-10 Thread Andre Przywara
On Mon, 10 Jan 2022 10:41:14 +0100 Heinrich Schuchardt wrote: Hi, > On 1/10/22 01:56, Andre Przywara wrote: > > So far the DM_VIDEO console is completely lacking any cursor, which makes > > typing and correcting quite irritating. > > > > Add a simple cursor display by writing a SPACE glyph in

Re: [PATCH v7 1/2] arm: dts: imx8mq: Add Kontron pitx-imx8m

2022-01-10 Thread Fabio Estevam
On Mon, Jan 10, 2022 at 4:50 AM Heiko Thiery wrote: > > This adds the device tree for the Kontron pitx-imx8m Board. It is a copy > of the device tree from the linux kernel sources. It is also good to mention the Linux kernel version that was used. Reviewed-by: Fabio Estevam

Re: [PATCH v7 2/2] board: kontron: pitx-imx8m: Add Kontron pitx-imx8m board support

2022-01-10 Thread Fabio Estevam
Hi Heiko, On Mon, Jan 10, 2022 at 4:50 AM Heiko Thiery wrote: > > The Kontron pitx-imx8m is an NXP i.MX8MQ based board in the pITX form factor. > > Signed-off-by: Heiko Thiery Reviewed-by: Fabio Estevam

  1   2   >