Re: [PATCH V2 1/2] mmc: add OpenPiton mmc support

2021-04-21 Thread Jaehoon Chung
Dear Tianrui, On 4/22/21 3:19 PM, Tianrui Wei wrote: > This patch adds mmc support for OpenPiton. > > Signed-off-by: Tianrui Wei > Signed-off-by: Jonathan Balkind > > --- > > drivers/mmc/Kconfig | 6 + > drivers/mmc/Makefile| 1 + > drivers/mmc/pit

Re: [PATCH v2] Makefile: fix generating environment file

2021-04-21 Thread Oleksandr Suvorov
On Wed, Apr 21, 2021 at 11:56 PM Rasmus Villemoes wrote: > > On 21/04/2021 17.21, Oleksandr Suvorov wrote: > > Hi Rasmus, > > > > On Wed, Apr 21, 2021 at 12:34 AM Rasmus Villemoes > > wrote: > >> > >> On 20/04/2021 23.10, Oleksandr Suvorov wrote: > >>> Hi Rasmus, > >>> > >>> Thanks for your feedb

Re: [PATCH V2 0/2] Add OpenPiton board support

2021-04-21 Thread Tianrui Wei
This patch add board support for OpenPiton. Signed-off-by: Tianrui Wei Signed-off-by: Jonathan Balkind --- arch/riscv/Kconfig | 4 + arch/riscv/dts/Makefile | 1 + arch/riscv/dts/openpiton-riscv64.dts| 159 + board/openpiton/riscv/Kconfig

[PATCH V2 1/2] mmc: add OpenPiton mmc support

2021-04-21 Thread Tianrui Wei
This patch adds mmc support for OpenPiton. Signed-off-by: Tianrui Wei Signed-off-by: Jonathan Balkind --- drivers/mmc/Kconfig | 6 + drivers/mmc/Makefile| 1 + drivers/mmc/piton_mmc.c | 177 + 3 files changed, 184 insertions(+)

[PATCH V2 0/2] Add OpenPiton board support

2021-04-21 Thread Tianrui Wei
This patch set is to add OpenPiton board support. Patches are split into several parts: - [PATCH 1/2] add OpenPiton support to mmc driver - [PATCH 2/2] add support for OpenPiton board Description - for mmc driver, it's settings are automatically configured at hardware level. We only need to ex

Re: [PATCH 2/2] drivers: mmc: add OpenPiton MMC support

2021-04-21 Thread Tianrui Wei
Hi Jaehoon, Thanks for taking the time to review our patches. All of your suggestions are fixed in the next version of patch. As for the acked-by, we're acknowledging Jon's many advice and guidance for the project. He was also the lead developer of OpenPiton. Many thanks, Tianrui On 4/

Re: [PATCH 2/2] efi_loader: add PE/COFF image measurement

2021-04-21 Thread Masahisa Kojima
Hi Heinrich, Thank you very much for your review comments. > > + ret = efi_check_pe(efi, efi_size, (void **)&nt); > Why are you calling this function? It is already called in efi_load_pe(). This is for the case that tcg2_hash_pe_image() is called from efi_tcg2_hash_log_extend_event(). Anyway

Re: [PATCH] mips: octeon: octeon_ebb7304_defconfig: Enable USB storage support

2021-04-21 Thread Daniel Schwierzeck
Am Freitag, den 19.02.2021, 14:02 +0100 schrieb Stefan Roese: > This patch enables USB storage support with the necessary partition > support on the MIPS Octeon EBB7304. > > Signed-off-by: Stefan Roese > Cc: Aaron Williams > Cc: Chandrakala Chavva > --- > configs/octeon_ebb7304_defconfig | 5 +

Re: [PATCH] mips: mt7628: fix the displayed DDR type of mt7628

2021-04-21 Thread Daniel Schwierzeck
Am Freitag, den 05.03.2021, 11:13 +0800 schrieb Weijie Gao: > The MT7688KN is a multi-chip package with 8MiB DDR1 KGD. So the DDR > type > from bootstrap register must be ignored, and always be assumed as > DDR1. > > This patch fixes the displayed DDR type of mt7628. > > Signed-off-by: Weijie Gao

Re: [PATCH] mips: mt7628: fix ddr_type for MT7688KN

2021-04-21 Thread Daniel Schwierzeck
Am Dienstag, den 23.02.2021, 15:12 +0800 schrieb Weijie Gao: > The MT7688KN is a multi-chip package with 8MiB DDR1 KGD. So the DDR > type > from bootstrap register must be ignored, and always be assumed as > DDR1. > > This patch fixes an issue that mt7628_ddr_pad_ldo_config() may be > passed > wit

Re: [PATCH 0/2] net: jr2: Fix for jr2 switch

2021-04-21 Thread Daniel Schwierzeck
Am Mittwoch, den 10.03.2021, 09:31 +0100 schrieb Horatiu Vultur: > This patch series contains two patches. The first patch resets the > switch at probe time while the second one fixes an issue with the > serdes6g configuration which is used on jr2_pcb111 board > > Horatiu Vultur (2): > net: jr2:

Re: [PATCH] sunxi: DT: A64: update devicetree files

2021-04-21 Thread Andre Przywara
On Wed, 21 Apr 2021 23:16:48 +0200 Jernej Škrabec wrote: Hi Jernej, thanks for having a look! > Dne sreda, 21. april 2021 ob 11:27:12 CEST je Andre Przywara napisal(a): > > Import updated devicetree file from Linux v5.12-rc8. > > > > Besides some node and audio port renames this changes the PH

[PATCH v3 8/9] video: sunxi: dw-hdmi: read source_id later

2021-04-21 Thread Andre Przywara
From: Jernej Skrabec There is no real need to read source_id at probe time. It also doesn't make sense to store it in driver private data since it's already stored in class platform data. While this looks like cleanup (and it is), it's also important for DE2 driver rework because this info will b

[PATCH v3 7/9] video: sunxi: Remove TV probe from DE2

2021-04-21 Thread Andre Przywara
From: Jernej Skrabec TV driver was never fully implemented. Remove search for it from DE2 driver. Reviewed-by: Andre Przywara Signed-off-by: Jernej Skrabec Signed-off-by: Andre Przywara --- drivers/video/sunxi/sunxi_de2.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-)

[PATCH v3 9/9] video: sunxi: de2: switch to public uclass functions

2021-04-21 Thread Andre Przywara
From: Jernej Skrabec Currently DE2 driver uses functions which are defined in internal headers. They are not meant to be used outside of uclass framework. Switch DE2 driver to public ones. This has additional benefit that device_probe doesn't need to be called manually. Signed-off-by: Jernej Skr

[PATCH v3 6/9] video: sunxi: Remove check for ddc-i2c-bus property

2021-04-21 Thread Andre Przywara
From: Jernej Skrabec No Allwinner board with DW-HDMI controller use separate I2C bus for EDID read. Remove that check. Reviewed-by: Andre Przywara Signed-off-by: Jernej Skrabec Signed-off-by: Andre Przywara --- drivers/video/sunxi/sunxi_dw_hdmi.c | 3 --- 1 file changed, 3 deletions(-) diff

[PATCH v3 3/9] common: edid: extract code for detailed timing search

2021-04-21 Thread Andre Przywara
From: Jernej Skrabec Code which searches for valid detailed timing entry will be used in more places. Extract it. No functional change is made. However, descriptors are casted to edid_detailed_timing instead of edid_monitor_descriptor. Descriptor can be of either type, but since we're interested

[PATCH v3 5/9] video: sunxi: Use DW-HDMI hpd function

2021-04-21 Thread Andre Przywara
From: Jernej Skrabec It turns out that there are two ways how hot plug detection can be done. One is standard way for DW HDMI controller - checking bit 2 in 0x3004 register. Another way is applicable only to Allwinner custom PHY - by checking bit 19 in register 0x10038. Both methods are equally g

[PATCH v3 4/9] common: edid: Search for valid timing in extension block

2021-04-21 Thread Andre Przywara
From: Jernej Skrabec One of my monitors have only 4k@60 timing in base EDID block which is out of range for devices with HDMI 1.4. It turns out that it has additional detailed timings in CTA-861 Extension Block and two of them are appropriate for HDMI 1.4. Add additional search for valid detaile

[PATCH v3 1/9] video: sunxi: Add mode_valid callback to sunxi_dw_hdmi

2021-04-21 Thread Andre Przywara
From: Jernej Skrabec Currently driver accepts all resolution which won't work on 4k screens. Add validation callback which limits acceptable resolutions to 297 MHz. Reviewed-by: Andre Przywara Signed-off-by: Jernej Skrabec Signed-off-by: Andre Przywara --- drivers/video/sunxi/sunxi_dw_hdmi.c

[PATCH v3 2/9] common: edid: check for digital display earlier

2021-04-21 Thread Andre Przywara
From: Jernej Skrabec When searching for detailed timing in EDID, check for digital display earlier. There is no point parsing other parameters if this flag is not present. Reviewed-by: Andre Przywara Signed-off-by: Jernej Skrabec Signed-off-by: Andre Przywara --- common/edid.c | 9 +

[PATCH v3 0/9] video: sunxi: rework DE2 driver

2021-04-21 Thread Andre Przywara
Hi Anatolij, can you please take this series? This is the first part of Jernej's rework, which was checked quite thoroughly. I left out the patches with issues for a later post. I pushed a branch to: https://source.denx.de/u-boot/custodians/u-boot-sunxi/-/commits/de2-fixes-part1/ Thanks, Andre --

Re: [PATCH 2/2] drivers: mmc: add OpenPiton MMC support

2021-04-21 Thread Jaehoon Chung
Hi Tianrui, On 4/20/21 6:41 PM, Bin Meng wrote: > On Tue, Apr 20, 2021 at 1:17 PM Tianrui Wei wrote: >> >> From b8736bf498afc0d250228b0c29f1b402d0d58361 Mon Sep 17 00:00:00 2001 >> From: Tianrui Wei >> Date: Mon, 20 April 2021 13:03:25 +0800 >> Subject: [PATCH 2/2] drivers: mmc: add OpenPiton M

Re: [PATCH 1/1] tpm: missing event types

2021-04-21 Thread Ilias Apalodimas
On Wed, Apr 21, 2021 at 12:24:29PM +0200, Heinrich Schuchardt wrote: > Add a reference for the TPM event types and provide missing constants. > > Signed-off-by: Heinrich Schuchardt > --- > include/tpm-v2.h | 24 > 1 file changed, 16 insertions(+), 8 deletions(-) > > dif

Re: [PATCH] sunxi: DT: A64: update devicetree files

2021-04-21 Thread Jernej Škrabec
Hi Andre! Dne sreda, 21. april 2021 ob 11:27:12 CEST je Andre Przywara napisal(a): > Import updated devicetree file from Linux v5.12-rc8. > > Besides some node and audio port renames this changes the PHY modes to > either rgmii-id or rgmii-txid. From the board files the Pinephone sees > a lot of

Re: [PATCH v2] Makefile: fix generating environment file

2021-04-21 Thread Rasmus Villemoes
On 21/04/2021 17.21, Oleksandr Suvorov wrote: > Hi Rasmus, > > On Wed, Apr 21, 2021 at 12:34 AM Rasmus Villemoes > wrote: >> >> On 20/04/2021 23.10, Oleksandr Suvorov wrote: >>> Hi Rasmus, >>> >>> Thanks for your feedback! >>> Yes, I noted that there were no possible situations with the trailing

[PATCH v8 1/2] arm: dts: add imx8mm-cl-iot-gate dts file

2021-04-21 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add board dts for imx8mm-cl-iot-gate Signed-off-by: Kirill Kapranov Signed-off-by: Uri Mashiach Signed-off-by: Valentin Raevsky Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Peter Robinson --- v2: Rename iot-gate-imx8 -> imx8mm-cl-iot-gate v4: Re-sent for adding

[PATCH v8 0/2] arm: imx8m: add support for Compulab iot-gate-imx8 (imx8mm-cl-iot-gate)

2021-04-21 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Compulab iot-gate-imx8 board (imx8mm-cl-iot-gate). The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Ying-Chun Liu (PaulLiu) (2): arm: dts: add imx8mm-cl-iot-gate dts file arm: imx8m: add support for Compulab

[PATCH 3/3] DM: DM_MMC migration is now mandatory for non-SPL

2021-04-21 Thread Tom Rini
As it has been now two years past the migration deadline, it is required to have migrated. Remove the check from the Makefile and rework some of the Kconfig logic slightly to get the functional dependencies of DM_MMC / BLK right in both the SPL and non-SPL case. Signed-off-by: Tom Rini --- Make

[PATCH 2/3] ata: Make LIBATA means AHCI is enabled mandatory.

2021-04-21 Thread Tom Rini
The migration deadline for having LIBATA mean that AHCI is also enabled was v2019.07. As that has long since passed, adjust the Kconfig dependencies. Signed-off-by: Tom Rini --- Makefile| 1 - drivers/ata/Kconfig | 6 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --g

[PATCH 1/3] boards: Disable CMD_SATA on platforms that no longer have a SATA driver enabled

2021-04-21 Thread Tom Rini
There are a number of platforms that depend on a SATA driver that has been converted to require AHCI but the platforms themselves are behind on other migrations that would make it trivial to enable AHCI. Disable SATA in these cases. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc85xx/Kconfig

Re: [PATCH v4 2/6] lib: ecdsa: Add skeleton to implement ecdsa verification in u-boot

2021-04-21 Thread Alex G.
On 4/21/21 2:15 AM, Simon Glass wrote: Hi Alexandru, On Fri, 16 Apr 2021 at 08:07, Alexandru Gagniuc wrote: Prepare the source tree for accepting implementations of the ECDSA algorithm. This patch deals with the boring aspects of Makefiles and Kconfig files. Signed-off-by: Alexandru Gagniuc

[PATCH 1/2] MIPS: remove deprecated qemu_mips board

2021-04-21 Thread Daniel Schwierzeck
Remove qemu_mips boards because DM migration doesn't make sense. The board support for qemu_mips is already marked as deprecated in Qemu in favour of the Malta board. Also qemu_mips support has been removed from Linux a long time ago. The official replacement is the Malta board. The same Malta U-B

[PATCH 2/2] doc: update and fix Qemu MIPS documentation

2021-04-21 Thread Daniel Schwierzeck
Update description to use the MIPS Malta board for Qemu. Signed-off-by: Daniel Schwierzeck --- doc/board/emulation/qemu-mips.rst | 273 +- 1 file changed, 78 insertions(+), 195 deletions(-) diff --git a/doc/board/emulation/qemu-mips.rst b/doc/board/emulation/qemu-

[PATCH] ppc: Remove some SECURE_BOOT defconfigs

2021-04-21 Thread Tom Rini
These specific configs are missing a number of migrations. In addition, they are blocking completion of the now-expired DM_MMC migration as it requires enabling BLK. Cc: Priyanka Jain Cc: Ruchika Gupta Cc: Sumit Garg Signed-off-by: Tom Rini --- Note that what I think happened before was that

Re: [PATCH v2 1/2] env: allow environment to be amended from control dtb

2021-04-21 Thread Joe Hershberger
On Wed, Apr 21, 2021 at 4:07 AM Rasmus Villemoes wrote: > > It can be useful to use the same U-Boot binary for multiple purposes, > say the normal one, one for developers that allow breaking into the > U-Boot shell, and one for use during bootstrapping which runs a > special-purpose bootcmd. Or on

Re: [PATCH v2 2/2] sandbox: add test of CONFIG_ENV_IMPORT_FDT

2021-04-21 Thread Joe Hershberger
On Wed, Apr 21, 2021 at 4:07 AM Rasmus Villemoes wrote: > > Check that a variable defined in /config/environment is found in the > run-time environment, and that clearing fdt_env_path from within that > node works. > > Reviewed-by: Simon Glass > Signed-off-by: Rasmus Villemoes Acked-by: Joe Her

Re: [PATCH v2] Makefile: fix generating environment file

2021-04-21 Thread Oleksandr Suvorov
Hi Rasmus, On Wed, Apr 21, 2021 at 12:34 AM Rasmus Villemoes wrote: > > On 20/04/2021 23.10, Oleksandr Suvorov wrote: > > Hi Rasmus, > > > > Thanks for your feedback! > > Yes, I noted that there were no possible situations with the trailing > > code != 0x00, but simply removing the additional tra

Re: [PATCH v2 2/4] usb: xhci-pci: Move reset logic out of XHCI core

2021-04-21 Thread Andre Przywara
On Wed, 21 Apr 2021 08:36:26 -0500 Samuel Holland wrote: Hi, > On 4/21/21 5:36 AM, Andre Przywara wrote: > > On Sat, 17 Apr 2021 09:20:57 -0500 > > Samuel Holland wrote: > > > > Hi, > > > >> Resetting an XHCI controller inside xhci_register undoes any register > >> setup performed by the pl

Re: [PATCH 4/5] cmd: allow disabling of timeout for password entry

2021-04-21 Thread Steffen Jaeckel
On 4/21/21 9:14 AM, Simon Glass wrote: > On Tue, 13 Apr 2021 at 10:16, Steffen Jaeckel > wrote: >> >> In case a user has to enter a complicated password it is sometimes >> desireable to give the user more time than the default timeout. >> Enabling this feature will disable the timeout entirely in

[PATCH] cmd: pxe_utils: sysboot: fix crash if either board or soc are not set.

2021-04-21 Thread Dimitri John Ledkov
If the environment does not have "soc" or "board" set, and fdtdir option is specified in extlinux.conf, the bootloader will crash whilst dereferencing a null pointer. Add a guard against null soc or board. Fixes a crash of qemu-riscv64_smode configuration, which does not have CONFIG_SYS_SOC defined

Re: test: py: CVE-2020-29651 Regular expression deinal of service in py

2021-04-21 Thread Tom Rini
On Wed, Apr 21, 2021 at 02:53:26AM +, Tan, Ley Foon wrote: > Hi Tom > > FYI, there is a CVE from the following file in U-Boot, CVE-2020-29651 Regular > expression deinal of service in py. > > test/py/requirements.txt Thanks. -- Tom signature.asc Description: PGP signature

[PATCH] test/py: Bump py to 1.10.0 for CVE-2020-29651

2021-04-21 Thread Tom Rini
Bump our py version to 1.10.0 to address CVE-2020-29651. Reported-by: GitHub dependabot Reported-by: Ley Foon Tan Signed-off-by: Tom Rini --- test/py/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/requirements.txt b/test/py/requirements.txt index 9c

Re: [PATCH v2 2/4] usb: xhci-pci: Move reset logic out of XHCI core

2021-04-21 Thread Samuel Holland
On 4/21/21 5:36 AM, Andre Przywara wrote: > On Sat, 17 Apr 2021 09:20:57 -0500 > Samuel Holland wrote: > > Hi, > >> Resetting an XHCI controller inside xhci_register undoes any register >> setup performed by the platform driver. And at least on the Allwinner >> H6, resetting the XHCI controller

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

2021-04-21 Thread Nandor Han
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 driver for bootcount feature that supports `syscon` device as backend.

Re: [PATCH v2 05/13] mtd: spi-nor-ids: add support for Macronix mx25u51245g and mx66u1g45g flash

2021-04-21 Thread Pratyush Yadav
On 21/04/21 11:39AM, Masami Hiramatsu wrote: > Hello Pratyush, > > 2021年4月19日(月) 17:41 Pratyush Yadav : > > > > On 17/04/21 08:38AM, Masami Hiramatsu wrote: > > > From: Jassi Brar > > > > > > Signed-off-by: Jassi Brar > > > --- > > > drivers/mtd/spi/spi-nor-ids.c |2 ++ > > > 1 file changed

Re: [PATCH 2/5] common: integrate crypt-based passwords

2021-04-21 Thread Steffen Jaeckel
On 4/21/21 9:14 AM, Simon Glass wrote: > Hi Steffen, > > On Tue, 13 Apr 2021 at 10:16, Steffen Jaeckel > wrote: >> >> Hook into the autoboot flow as an alternative to the existing >> mechanisms. >> >> Signed-off-by: Steffen Jaeckel >> --- >> >> common/Kconfig.boot | 23 +--- >> comm

Re: [PATCH 1/5] lib: add crypt subsystem

2021-04-21 Thread Steffen Jaeckel
Hi Simon, thanks for taking the time to review. On 4/21/21 9:14 AM, Simon Glass wrote: > On Tue, 13 Apr 2021 at 10:16, Steffen Jaeckel > wrote: >> >> Add the basic functionality required to support the standard crypt >> format. >> The files crypt-sha256.c and crypt-sha512.c originate from libxcr

Re: [PATCH 2/2] Rename CONFIG_DM_RESET to CONFIG_RESET

2021-04-21 Thread Simon Glass
Hi Marek, On Fri, 16 Apr 2021 at 04:36, Marek Vasut wrote: > > On 3/26/21 4:13 AM, Simon Glass wrote: > > This config was misnamed at birth since there has never been a > > CONFIG_RESET option used before driver model. Rename it so that it is > > clear that driver model is the only option here. >

[PATCH] armv8: layerscape: add PSCI support for cpu release

2021-04-21 Thread Jiafei Pan
For cpu release command, check whether PSCI is supported firstly, if supported, use PSCI to kick off secondary cores, otherwise still use spin table. Signed-off-by: Jiafei Pan --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 +- arch/arm/cpu/armv8/fsl-layerscape/cpu.h | 1 + arch/arm/cpu/armv8/

[PATCH] env: Load env when ENV_IS_NOWHERE is only location selected

2021-04-21 Thread Felix . Vietmeyer
This patch prevent u-boot from hanging on a UltraZed EG board (zynqmp). Without the patch, (drv = env_driver_lookup(ENVOP_INIT, prio)) evaluates to 0, causing prio = 0 Then, (!prio) is hit, returning -ENODEV causing a stall. With the patch, instead of returning -ENODEV and causing a stall, we set

Re: [PATCH 2/2] efi_loader: add PE/COFF image measurement

2021-04-21 Thread Heinrich Schuchardt
On 4/16/21 10:42 PM, Ilias Apalodimas wrote: Hi Heinrich, On Thu, Apr 15, 2021 at 04:08:55PM +0200, Heinrich Schuchardt wrote: On 15.04.21 15:30, Masahisa Kojima wrote: "TCG PC Client Platform Firmware Profile Specification" requires to measure every attempt to load and execute a OS Loader(a U

Re: [PATCH] MAINTAINERS: Add allwinner/sunxi driver directories

2021-04-21 Thread Andre Przywara
On Sun, 18 Apr 2021 22:13:36 -0500 Samuel Holland wrote: > These drivers are sunxi platform-specific, and so are of interest to the > sunxi maintainers. Thanks, that seems to be in line with what other platforms do. CC:ing Lukasz for the clock tree and Anatolij for video. > In fact, as there is

Re: [PATCH 2/2] efi_loader: add PE/COFF image measurement

2021-04-21 Thread Heinrich Schuchardt
On 4/15/21 3:30 PM, Masahisa Kojima wrote: "TCG PC Client Platform Firmware Profile Specification" requires to measure every attempt to load and execute a OS Loader(a UEFI application) into PCR[4]. This commit adds the PE/COFF image measurement, extends PCR, and appends measurement into Event Log

Re: [PATCH v2 0/4] Allwinner H6 USB3 support

2021-04-21 Thread Marek Vasut
On 4/21/21 12:43 PM, Andre Przywara wrote: On Sat, 17 Apr 2021 09:20:55 -0500 Samuel Holland wrote: Hi, This series adds PHY and XHCI driver support for the USB3 controller found in the Allwinner H6 SoC. Thanks for the update! It has been tested and working on both boards enabled in patch

Re: [PATCH] board:pm9263 - Enable DM_ETH

2021-04-21 Thread Eugen.Hristev
On 4/19/21 4:37 PM, Ilko Iliev wrote: > Signed-off-by: Ilko Iliev > --- Hi, Could you please add a commit message explaining what you are changing and why ? Also take into consideration the comments from your other patch about pm9261 which also apply here. Eugen > board/ronetix/pm9263/pm926

Re: [PATCH v2] board:pm9261 - Enable DM_ETH

2021-04-21 Thread Eugen.Hristev
On 4/19/21 4:37 PM, Ilko Iliev wrote: > This patch remove the network support for PM9261 because > currently there is no DM suport for Davicom D9000. > > Signed-off-by: Ilko Iliev > --- Hi, If I look at the commit message, I would expect something is enabled, but in fact something is removed.

Re: [PATCH v2 0/4] Allwinner H6 USB3 support

2021-04-21 Thread Andre Przywara
On Sat, 17 Apr 2021 09:20:55 -0500 Samuel Holland wrote: Hi, > This series adds PHY and XHCI driver support for the USB3 controller > found in the Allwinner H6 SoC. Thanks for the update! > It has been tested and working on both > boards enabled in patch 4, although some users experience issue

Re: [PATCH v2 4/4] configs: Enable USB3 on Allwinner H6 boards

2021-04-21 Thread Andre Przywara
On Sat, 17 Apr 2021 09:20:59 -0500 Samuel Holland wrote: > Pine H64 and Orange Pi 3 both provide a USB3 type A port. > Enable it in U-Boot. Any reason to enable it only for those two boards? Just because those are the H6 devices you have access to? I wonder if we should enable this in Kconfig f

Re: [PATCH v2 3/4] usb: xhci-dwc3: Add support for clocks/resets

2021-04-21 Thread Andre Przywara
On Sat, 17 Apr 2021 09:20:58 -0500 Samuel Holland wrote: > Some platforms, like the Allwinner H6, do not have a separate glue layer > around the dwc3. Instead, they rely on the clocks/resets/phys referenced > from the dwc3 DT node itself. Add support for enabling the clocks/resets > referenced fr

[PATCH 3/4] board: fsl: lx2160ardb: add dts fixup function for RevC

2021-04-21 Thread Ioana Ciornei
From: Florin Chiculita Since the new RevC LX2160A-RDB board has its 10G Aquantia PHYs at different MDIO bus addresses, we must update both the kernel DTS and u-boot's DTS (in case of DM_ETH) in case the board is indeed RevC. Use the newly introduced get_board_rev() function to trigger a fixup of

[PATCH 0/4] board: fsl: lx2160ardb: add networking support for RevC

2021-04-21 Thread Ioana Ciornei
This patch set adds networking support for the LX2160A-RDB revC board. The main difference is that the 10G Aquantia PHYs are at different MDIO bus addresses. To address this, the u-boot's DTS (in case of DM_ETH) and the kernel's DTS need to undergo a fixup. This patch set applies cleanly on top of

[PATCH 4/4] board: fsl: lx2160ardb: add dts fixup for RevC

2021-04-21 Thread Ioana Ciornei
Use the newly fdt_fixup_board_phy_revc() function introduced to updated both kernel's DTS and u-boot's DTS in case we are running with DM_ETH. Signed-off-by: Ioana Ciornei Signed-off-by: Florin Chiculita --- board/freescale/lx2160a/eth_lx2160ardb.c | 2 +- board/freescale/lx2160a/lx2160a.c

[PATCH 2/4] board: fsl: lx2160ardb: add support for lx2160ardb revC board

2021-04-21 Thread Ioana Ciornei
From: Florin Chiculita New RevC LX2160A-RDB board doesn't have any 40G PHY and the 10G Aquantia PHYs have different MDIO bus addresses, thus a different init is required. This patch adds support for the non-DM_ETH use of the LX2160ARDB RevC board. Signed-off-by: Florin Chiculita Signed-off-by:

[PATCH 1/4] board: fsl: lx2160ardb: add api for obtaining board revision

2021-04-21 Thread Ioana Ciornei
From: Florin Chiculita Add new API for obtaining board revision and trigger the i2c node fixup with this new API. Signed-off-by: Florin Chiculita Signed-off-by: Ioana Ciornei --- board/freescale/lx2160a/lx2160a.c | 13 ++--- board/freescale/lx2160a/lx2160a.h | 4 2 files changed

Re: [PATCH v2 2/4] usb: xhci-pci: Move reset logic out of XHCI core

2021-04-21 Thread Andre Przywara
On Sat, 17 Apr 2021 09:20:57 -0500 Samuel Holland wrote: Hi, > Resetting an XHCI controller inside xhci_register undoes any register > setup performed by the platform driver. And at least on the Allwinner > H6, resetting the XHCI controller also resets the PHY, which prevents > the controller fr

[PATCH 1/1] tpm: missing event types

2021-04-21 Thread Heinrich Schuchardt
Add a reference for the TPM event types and provide missing constants. Signed-off-by: Heinrich Schuchardt --- include/tpm-v2.h | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/include/tpm-v2.h b/include/tpm-v2.h index df67a196cf..7de7d6a57d 100644 ---

Re: Bugfix for nanopi A64 dts

2021-04-21 Thread André Przywara
On 15/04/2021 07:02, Dietmar Kling wrote: > Hi Guys, Hi Dietmar,   > I have created a branch on github regarding two bugfixes which allow my 5 > nanpoi a64 to connect to network again and also again use the second usb > port, when booting, when using the latest (v2021.04) u-boot. Thanks for sh

[PATCH] sunxi: DT: A64: update devicetree files

2021-04-21 Thread Andre Przywara
Import updated devicetree file from Linux v5.12-rc8. Besides some node and audio port renames this changes the PHY modes to either rgmii-id or rgmii-txid. From the board files the Pinephone sees a lot of updates. This also adds the long missing USB PHY property for controller 0, which allows the

[PATCH 8/8] ARM: meson: add Beelink GS-King X board

2021-04-21 Thread Neil Armstrong
The Beelink GS-King X is a variant of the GS King boards but with an internal USB to SATA bridge and advanced audio features. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-g12b-gsking-x-u-boot.dtsi | 7 ++ configs/beelink-gsking-x_defconfig | 72 2 files ch

[PATCH 6/8] ARM: amlogic: add support for Odroid-HC4 device

2021-04-21 Thread Neil Armstrong
The Odroid-HC4 is a variant of the Odroid-C4 board but with an PCIe-SATA bridge instead of the USB3 ports. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-sm1-odroid-hc4-u-boot.dtsi | 23 + configs/odroid-hc4_defconfig | 86 +++ 2 files changed, 109 inse

[PATCH 7/8] doc: boards: amlogic: update for Odroid HC4

2021-04-21 Thread Neil Armstrong
Add documentation bits for the Odroid-HC4. Signed-off-by: Neil Armstrong --- doc/board/amlogic/index.rst | 2 +- doc/board/amlogic/odroid-c4.rst | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/board/amlogic/index.rst b/doc/board/amlogic/index.rst index 8da7afddb4..

[PATCH 5/8] distro_bootcmd: run pci enum for scsi_boot just like it is done for nvme_boot

2021-04-21 Thread Neil Armstrong
The SCSI device can be a PCIe adapter, so run pcie enum if enabled. Signed-off-by: Mark Kettenis Signed-off-by: Neil Armstrong --- include/config_distro_bootcmd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index 2627c2a6

[PATCH 1/8] ARM: meson: Sync Amlogic DT from Linux 5.12-rc2

2021-04-21 Thread Neil Armstrong
Import Amlogic DT changes from Linux commit a38fd8748464 ("Linux 5.12-rc2"), dt-bindings clock changes and new meson-g12b-gsking-x.dts & odroid-hc4 boards. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 2 + arch/arm/dts/meson-axg-s400.dts | 16

[PATCH 4/8] configs: meson64: add SCSI boot target

2021-04-21 Thread Neil Armstrong
Add SCSI target to be able to boot from the SATA disks on the Odroid HC4 using an on-board AHCI PCIe controller. Signed-off-by: Neil Armstrong Signed-off-by: Mark Kettenis --- include/configs/meson64.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/meson64.h b/includ

[PATCH 3/8] ARM: meson-axg: remove local USB nodes

2021-04-21 Thread Neil Armstrong
Drop the local USB nodes after Linux 5.12 sync. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-axg-s400-u-boot.dtsi | 8 arch/arm/dts/meson-axg-u-boot.dtsi | 62 - 2 files changed, 70 deletions(-) delete mode 100644 arch/arm/dts/meson-axg-u-boot.dtsi di

[PATCH 2/8] net: designware: meson8b: add g12a compatible

2021-04-21 Thread Neil Armstrong
Add support for the Meson G12A dwmac glue compatible needed after Linux 5.12 sync. Signed-off-by: Neil Armstrong --- drivers/net/dwmac_meson8b.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dwmac_meson8b.c b/drivers/net/dwmac_meson8b.c index c0b6ef4994..069bf1724d 100644 ---

[PATCH v3 2/2] powerpc: introduce CONFIG_CACHE_FLUSH_WATCHDOG_THRESHOLD

2021-04-21 Thread Rasmus Villemoes
When flush_cache() is called during boot on our ~7M kernel image, the hundreds of thousands of WATCHDOG_RESET calls end up adding significantly to boottime. Flushing a single cache line doesn't take many microseconds, so doing these calls for every cache line is complete overkill. The generic watc

[PATCH v3 1/2] powerpc: lib: remove leftover CONFIG_5xx

2021-04-21 Thread Rasmus Villemoes
CONFIG_5xx hasn't existed since commit 502589777416 (powerpc, 5xx: remove support for 5xx). Remove this last mention of it. Reviewed-by: Stefan Roese Signed-off-by: Rasmus Villemoes --- arch/powerpc/lib/cache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/lib/cache.c b/arch

[PATCH v3 0/2] powerpc: introduce CONFIG_CACHE_FLUSH_WATCHDOG_THRESHOLD

2021-04-21 Thread Rasmus Villemoes
v3: Introduce a little helper function as suggested by Stefan. gcc generates the same code before and after that refactoring - in particular, the code is still the same as before these patches when the config option is left at its default. Include Stefan's Reviewed-bys. v2 cover letter: Back in

[PATCH v2 2/2] sandbox: add test of CONFIG_ENV_IMPORT_FDT

2021-04-21 Thread Rasmus Villemoes
Check that a variable defined in /config/environment is found in the run-time environment, and that clearing fdt_env_path from within that node works. Reviewed-by: Simon Glass Signed-off-by: Rasmus Villemoes --- arch/sandbox/dts/test.dts | 7 +++ configs/sandbox64_defconfig | 1 + confi

[PATCH v2 1/2] env: allow environment to be amended from control dtb

2021-04-21 Thread Rasmus Villemoes
It can be useful to use the same U-Boot binary for multiple purposes, say the normal one, one for developers that allow breaking into the U-Boot shell, and one for use during bootstrapping which runs a special-purpose bootcmd. Or one can have several board variants that can share almost all boot lo

[PATCH v2 0/2] allow environment to be updated from dtb

2021-04-21 Thread Rasmus Villemoes
Patch 1 adds a config option for updating the environment, after it has been loaded from its persistent location, with a set of key/value pairs from a node in the control DTB. This is useful to create a few different images based on the same U-Boot binary, e.g. one for normal use, one for developm

[PATCH] net: designware: fix PHY reset with DM_MDIO

2021-04-21 Thread Neil Armstrong
The dw_eth_pdata is not accessible from the mdio device, it gets the mdio bus plat leading to random sleeps (-10174464 on Odroid-HC4). This moves the dw_mdio_reset function to a common one taking the ethernet device as parameter and use it from the dw_mdio_reset and dm_mdio variant functions. F

Re: [PATCH 1/2] env: allow environment to be amended from control dtb

2021-04-21 Thread Rasmus Villemoes
On 21/04/2021 10.02, Rasmus Villemoes wrote: > On 21/04/2021 09.14, Simon Glass wrote: >> Hi Rasmus, >> >> On Wed, 14 Apr 2021 at 10:43, Rasmus Villemoes >> wrote: >>> >>> It can be useful to use the same U-Boot binary for multiple purposes, >>> say the normal one, one for developers that allow br

Re: [PATCH 1/2] env: allow environment to be amended from control dtb

2021-04-21 Thread Rasmus Villemoes
On 21/04/2021 09.14, Simon Glass wrote: > Hi Rasmus, > > On Wed, 14 Apr 2021 at 10:43, Rasmus Villemoes > wrote: >> >> It can be useful to use the same U-Boot binary for multiple purposes, >> say the normal one, one for developers that allow breaking into the >> U-Boot shell, and one for use duri

Re: [BUG] sandbox error handling broken on origin/next

2021-04-21 Thread Simon Glass
Hi Heinrich, On Tue, 23 Mar 2021 at 14:22, Heinrich Schuchardt wrote: > > Am 23. März 2021 01:57:00 MEZ schrieb Simon Glass : > >Hi Heinrich, > > > >On Tue, 23 Mar 2021 at 08:45, Heinrich Schuchardt > >wrote: > >> > >> On 3/22/21 7:16 PM, Simon Glass wrote: > >> > Hi Heinrich, > >> > > >> > On T

Re: [PATCH v4 6/6] test: dm: Add test for ECDSA UCLASS support

2021-04-21 Thread Simon Glass
On Fri, 16 Apr 2021 at 08:07, Alexandru Gagniuc wrote: > > This test verifies that ECDSA_UCLASS is implemented, and that > ecdsa_verify() works as expected. The definition of "expected" is > "does not find a device, and returns -ENODEV". > > The lack of a hardware-independent ECDSA implementation

Re: [PATCH v4 2/6] lib: ecdsa: Add skeleton to implement ecdsa verification in u-boot

2021-04-21 Thread Simon Glass
Hi Alexandru, On Fri, 16 Apr 2021 at 08:07, Alexandru Gagniuc wrote: > > Prepare the source tree for accepting implementations of the ECDSA > algorithm. This patch deals with the boring aspects of Makefiles and > Kconfig files. > > Signed-off-by: Alexandru Gagniuc > --- > include/image.h

Re: [PATCH v4 0/6] nable ECDSA FIT verification for stm32mp

2021-04-21 Thread Simon Glass
On Fri, 16 Apr 2021 at 08:07, Alexandru Gagniuc wrote: > > This series is Part II of the ECDSA saga. It applies on top of [1]: > * [PATCH v7 00/11] Add support for ECDSA image signing > > Changes since v3: > - Remove unused ecdsa_check_key() function > > Changes since v2: > - Spell out "ellip

Re: [PATCH 2/2] sandbox: add test of CONFIG_ENV_IMPORT_FDT

2021-04-21 Thread Simon Glass
On Wed, 14 Apr 2021 at 10:43, Rasmus Villemoes wrote: > > Check that a variable defined in /config/environment is found in the > run-time environment, and that clearing fdt_env_path from within that > node works. > > Signed-off-by: Rasmus Villemoes > --- > arch/sandbox/dts/test.dts | 7 ++

Re: [PATCH v4 1/6] dm: crypto: Define UCLASS API for ECDSA signature verification

2021-04-21 Thread Simon Glass
Hi Alexandru, On Fri, 16 Apr 2021 at 08:07, Alexandru Gagniuc wrote: > > Define a UCLASS API for verifying ECDSA signatures. Unlike > UCLASS_MOD_EXP, which focuses strictly on modular exponentiation, > the ECDSA class focuses on verification. This is done so that it > better aligns with mach-spec

Re: [PATCH 1/2] env: allow environment to be amended from control dtb

2021-04-21 Thread Simon Glass
Hi Rasmus, On Wed, 14 Apr 2021 at 10:43, Rasmus Villemoes wrote: > > It can be useful to use the same U-Boot binary for multiple purposes, > say the normal one, one for developers that allow breaking into the > U-Boot shell, and one for use during bootstrapping which runs a > special-purpose boot

Re: [PATCH 4/5] cmd: allow disabling of timeout for password entry

2021-04-21 Thread Simon Glass
On Tue, 13 Apr 2021 at 10:16, Steffen Jaeckel wrote: > > In case a user has to enter a complicated password it is sometimes > desireable to give the user more time than the default timeout. > Enabling this feature will disable the timeout entirely in case the user > presses the key before enterin

Re: [PATCH 2/5] common: integrate crypt-based passwords

2021-04-21 Thread Simon Glass
Hi Steffen, On Tue, 13 Apr 2021 at 10:16, Steffen Jaeckel wrote: > > Hook into the autoboot flow as an alternative to the existing > mechanisms. > > Signed-off-by: Steffen Jaeckel > --- > > common/Kconfig.boot | 23 +--- > common/autoboot.c | 67 +++

Re: [PATCH v2 3/3] test: Add test for partitions

2021-04-21 Thread Simon Glass
Hi Sean, On Fri, 16 Apr 2021 at 02:36, Sean Anderson wrote: > > > > On 4/14/21 3:37 PM, Simon Glass wrote: > > Hi Sean, > > > > On Mon, 12 Apr 2021 at 23:53, Sean Anderson wrote: > >> > >> This is technically a library function, but we use MMCs for testing, so > >> it is easier to do it wi

Re: [PATCH v3 01/28] linker_lists: Fix alignment issue

2021-04-21 Thread Simon Glass
Hi Heinrich, On Thu, 15 Apr 2021 at 19:39, Heinrich Schuchardt wrote: > > On 17.12.20 05:20, Simon Glass wrote: > > The linker script uses alphabetic sorting to group the different linker > > lists together. Each group has its own struct and potentially its own > > alignment. But when the linker

Re: [PATCH 1/5] lib: add crypt subsystem

2021-04-21 Thread Simon Glass
On Tue, 13 Apr 2021 at 10:16, Steffen Jaeckel wrote: > > Add the basic functionality required to support the standard crypt > format. > The files crypt-sha256.c and crypt-sha512.c originate from libxcrypt and > their formatting is therefor retained. > The integration is done via a crypt_compare()

Re: [RFC][PATCH 2/2] configs: sandbox: enable stage pre-load for bootm

2021-04-21 Thread Simon Glass
On Wed, 31 Mar 2021 at 05:26, Philippe Reynes wrote: > > This commit enables the stage pre-load in the bootm command. > > Signed-off-by: Philippe Reynes > --- > configs/sandbox_defconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass