Re: [PATCH 1/2] EFI: Support CAPSULE_FLAGS_INITIATE_RESET for capsule update

2022-01-25 Thread AKASHI Takahiro
On Wed, Jan 26, 2022 at 11:29:10AM +0900, Masami Hiramatsu wrote: > BTW, the original code comes from EDK2 implementation. What do you mean by "original code"? > It seems that this INITIATE_RESET flag meaning in EDK2 is a bit different > from what we thought here. Yeah, > The flag is only used

Re: [PATCH 05/11] ARM: sunxi: Add support for F1C100s

2022-01-25 Thread Jesse Taube
On 1/25/22 21:05, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:02 -0500 Jesse Taube wrote: Hi, can you please change the subject, to maybe mention clocks? Reads rather generic as is. From: Icenowy Zheng This patch aims to add header files for the F1C100s. The header files included

Re: [PATCH v3 04/11] drivers: misc: Makefile: Enable fs_loader compilation at SPL Level

2022-01-25 Thread Tom Rini
On Tue, Jan 18, 2022 at 11:12:42AM +0100, Amjad Ouled-Ameur wrote: > From: Keerthy > > Enable fs_loader compilation at SPL Level. > > Signed-off-by: Keerthy > [Amjad: fix compilation failures for J721e platform] > Signed-off-by: Amjad Ouled-Ameur This causes j7200_evm_r5 and socfpga_arria10

[PATCH] arm: kirkwood: GoFlex Home : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-01-25 Thread Tony Dinh
The GoFlex Home board has the network chip Marvell 88E1116R. Use uclass mvgbe and the compatible driver M88E1118R to bring up Ethernet. - Currently, CONFIG_RESET_PHY_R symbol is used in arch/arm/mach-kirkwood/include/mach/config.h for all Kirkwood boards with mv8831116 PHY, with each board

Re: [PATCH] scripts: Makefile: also clean subdir dtc

2022-01-25 Thread Simon Glass
On Tue, 25 Jan 2022 at 03:32, Philippe Reynes wrote: > > Since commit 93b196532254 ("Makefile: Only build dtc if needed"), > the sub directory scripts/dtc is never cleaned. > Adds the directory dtc to subdir to always clean it. > > Signed-off-by: Philippe Reynes > --- > scripts/Makefile | 2 +-

Re: Bug#1003490: u-boot: FTBFS on arch:all with qemu-ppce500 target

2022-01-25 Thread Vagrant Cascadian
On 2022-01-25, Vagrant Cascadian wrote: > On 2022-01-15, Aurelien Jarno wrote: >> On 2022-01-11 16:40, Vagrant Cascadian wrote: >>> On 2022-01-11, Lennart Sorensen wrote: >>> > On Mon, Jan 10, 2022 at 05:10:04PM -0800, Vagrant Cascadian wrote: >>> >> Something in the toolchain recently changed

Re: [PATCH 1/2] EFI: Support CAPSULE_FLAGS_INITIATE_RESET for capsule update

2022-01-25 Thread Masami Hiramatsu
BTW, the original code comes from EDK2 implementation. It seems that this INITIATE_RESET flag meaning in EDK2 is a bit different from what we thought here. The flag is only used for resetting system via UpdateCapsule() EFI call. The capsule update process itself will be done at the boot time and

Re: [PATCH 08/11] configs: sunxi: Add common SUNIV header

2022-01-25 Thread Andre Przywara
On Tue, 4 Jan 2022 19:35:05 -0500 Jesse Taube wrote: Hi, > From: Icenowy Zheng > > Adds support for SUNIV and the F1C100s. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Jesse Taube > --- > include/configs/suniv.h| 14 +++ > include/configs/sunxi-common.h | 67

Re: [PATCH 05/11] ARM: sunxi: Add support for F1C100s

2022-01-25 Thread Andre Przywara
On Tue, 4 Jan 2022 19:35:02 -0500 Jesse Taube wrote: Hi, can you please change the subject, to maybe mention clocks? Reads rather generic as is. > From: Icenowy Zheng > > This patch aims to add header files for the F1C100s. > The header files included add support for gpio, dram and clocks.

Re: i.MX8MN (ROMv2) fails to boot over USB

2022-01-25 Thread Tim Harvey
On Tue, Jan 25, 2022 at 3:49 PM Adam Ford wrote: > > I have a flash.bin file that boots over MMC just fine, but when I use > that same flash.bin file, it appears to hang after running ATF. I > dumped some debug info for printing the handling of the FIT file, and > I noticed the fit read sizes

Re: Bug#1003490: u-boot: FTBFS on arch:all with qemu-ppce500 target

2022-01-25 Thread Vagrant Cascadian
A bug in Debian is causing a build failure of the qemu-ppce500 target: https://bugs.debian.org/1003490 I've CCed u-boot in case they're not aware of the issue. Some background follows... On 2022-01-15, Aurelien Jarno wrote: > On 2022-01-11 16:40, Vagrant Cascadian wrote: >> On 2022-01-11,

Re: [PATCH 0/5] sunxi: remove lowlevel_init

2022-01-25 Thread Jesse Taube
On 1/25/22 18:47, Jesse Taube wrote: On 1/24/22 20:15, Andre Przywara wrote: For a long time the Allwinner platform was using the lowlevel_init() routine in U-Boot's boot process, even though there did not seem to be a real need for that. The README file suggests it should only be used for

i.MX8MN (ROMv2) fails to boot over USB

2022-01-25 Thread Adam Ford
I have a flash.bin file that boots over MMC just fine, but when I use that same flash.bin file, it appears to hang after running ATF. I dumped some debug info for printing the handling of the FIT file, and I noticed the fit read sizes are also not consistent between MMC and USB loads with the

Re: [PATCH 0/5] sunxi: remove lowlevel_init

2022-01-25 Thread Jesse Taube
On 1/24/22 20:15, Andre Przywara wrote: For a long time the Allwinner platform was using the lowlevel_init() routine in U-Boot's boot process, even though there did not seem to be a real need for that. The README file suggests it should only be used for "bare minimum" tasks to reach

Re: [PATCH 1/2] EFI: Support CAPSULE_FLAGS_INITIATE_RESET for capsule update

2022-01-25 Thread Masami Hiramatsu
Hi Takahiro, 2022年1月25日(火) 21:49 AKASHI Takahiro : > > Hi Masami, > > Thank you for this enhancement. > > On Tue, Jan 25, 2022 at 08:31:29PM +0900, Masami Hiramatsu wrote: > > Support CAPSULE_FLAGS_INITIATE_RESET for rebooting uboot soon after > > updating firmware. Note that the machine will

Re: [PATCH] arm: kirkwood: Pogoplug V4 : Use Marvel network PHY driver

2022-01-25 Thread Tony Dinh
Hi Stefan, On Tue, Jan 25, 2022 at 7:49 AM Stefan Roese wrote: > > On 1/25/22 10:48, Tony Dinh wrote: > > The Pogoplug V4 board has the network chip Marvell 88E1118R. So to > > properly configure the network, enable CONFIG_PHY_MARVELL to activate > > the driver M88E1118R. > > > > - This patch

Re: Compile only changed files when doing 'make'?

2022-01-25 Thread Tom Rini
On Tue, Jan 25, 2022 at 03:50:43PM -, Grant Edwards wrote: > I'm working on a Renesas supplied port of U-Boot, and it seems that > 'make' always compiles every single (configured) source file instead > compiling only the source files that have been changed since the > previous 'make'. I've

[PATCH u-boot-marvell 14/14] tools: kwboot: Set debug flag to 1

2022-01-25 Thread Marek Behún
From: Pali Rohár This should enable BootROM output on UART. (At least on A385 BootROM this is broken, BootROM ignores this debug flag and does not enable its output on UART if some valid image is available in SPI-NOR.) Signed-off-by: Pali Rohár Signed-off-by: Marek Behún ---

[PATCH u-boot-marvell 13/14] tools: kwboot: Fix usage of -D without -t

2022-01-25 Thread Marek Behún
From: Pali Rohár When -D is specified then both bootmsg and debugmsg are not set, but imgpath is set. Fix this check for valid and required parameters. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún --- tools/kwboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH u-boot-marvell 11/14] tools: kwboot: Handle EINTR in kwboot_write()

2022-01-25 Thread Marek Behún
From: Pali Rohár The write() syscall may be interrupted. Handle EINTR and retry it. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún --- tools/kwboot.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/kwboot.c b/tools/kwboot.c index de433c1b04..8b748f0fdd

[PATCH u-boot-marvell 10/14] tools: kwboot: Remove 2s delay before sending first xmodem packet

2022-01-25 Thread Marek Behún
From: Pali Rohár This delay is not needed anymore since kwboot already handles retrying logic for incomplete xmodem packets and also forces BootROM to flush its input queue. Removing it decreases total transfer time. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún --- tools/kwboot.c | 4

[PATCH u-boot-marvell 12/14] tools: kwboot: Handle EINTR in kwboot_tty_recv()

2022-01-25 Thread Marek Behún
From: Pali Rohár The select() and read() syscalls may be interrupted. Handle EINTR and retry them. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún --- tools/kwboot.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/kwboot.c b/tools/kwboot.c index

[PATCH u-boot-marvell 09/14] tools: kwboot: Force BootROM to flush input queue after boot pattern

2022-01-25 Thread Marek Behún
From: Pali Rohár Force the BootROM to flush its input queue after sending boot pattern. This ensures that after function kwboot_bootmsg() finishes, BootROM is able to start receiving xmodem packets without any specific delay or setup. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún ---

[PATCH u-boot-marvell 08/14] tools: kwboot: Allow to use option -b without image path

2022-01-25 Thread Marek Behún
From: Pali Rohár Allow option -b without image path parameter, to send boot pattern and wait for response but not send any image. This allows to use kwboot just for processing boot pattern and user can use any other xmodem tool for transferring the image itself (e.g. sx). Useful for debugging

[PATCH u-boot-marvell 07/14] tools: kwboot: Show 'E' in progress output when error occurs

2022-01-25 Thread Marek Behún
From: Pali Rohár When kwboot is unable to resend current xmodem packet, show an 'E' in the progress output instead of a '+'. This allows to distinguish between the state when kwboot is retrying sending the packet and when retry is not possible. Signed-off-by: Pali Rohár Signed-off-by: Marek

[PATCH u-boot-marvell 06/14] tools: kwboot: Fix handling of repeated xmodem packets

2022-01-25 Thread Marek Behún
From: Pali Rohár Unfortunately during some stages of xmodem transfer, A385 BootROM is not able to handle repeated xmodem packets. So if an error occurs during that stage, stop the transfer and return failure. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún --- tools/kwboot.c | 28

[PATCH u-boot-marvell 05/14] tools: kwboot: Do not change received character in kwboot_xm_recv_reply()

2022-01-25 Thread Marek Behún
From: Pali Rohár Marvell BootROM expects retransmission of previous xmodem packet only in the case when it sends NAK response to the host. Do not change non-xmodem response (possibly UART transfer error) to NAK in kwboot_xm_recv_reply() function. Allow caller to receive original response from

[PATCH u-boot-marvell 04/14] tools: kwboot: Remove code for handling CAN byte

2022-01-25 Thread Marek Behún
From: Pali Rohár It is unknown why handling of CAN byte was added into kwboot tool as Marvell BootROM does not support CAN byte. It never sends CAN byte to host and if host sends CAN byte BootROM handles it as an unknown byte. Remove code for handling and sending CAN bytes from the kwboot tool.

[PATCH u-boot-marvell 03/14] tools: kwboot: Improve retrying logic for incomplete xmodem packets

2022-01-25 Thread Marek Behún
From: Pali Rohár Sometimes if the first byte of xmodem packet (SOH) is incorrectly transmitted, BootROM sends NAK for every non-SOH received byte, which makes BootROM and the host kwboot tool out of sync. BootROM automatically re-synchronizes after 2s pause by dropping its input queue. So when

[PATCH u-boot-marvell 01/14] tools: kwboot: Increase blk_rsp_timeo to 2s

2022-01-25 Thread Marek Behún
From: Pali Rohár Fix xmodem retry mechanism if some bytes from xmodem packet were lost and BootROM is still waiting for completing previous xmodem packet. It is required to wait at least 1.312s on A385, otherwise BootROM does not accept next xmodem packet if previous one was not completely

[PATCH u-boot-marvell 02/14] tools: kwboot: Wait blk_rsp_timeo when flushing

2022-01-25 Thread Marek Behún
From: Pali Rohár Use the blk_rsp_timeo variable when sleeping before flushing tty. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún --- tools/kwboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kwboot.c b/tools/kwboot.c index 82cfd9a827..1477c0f078

[PATCH u-boot-marvell 00/14] Another set of kwboot improvements

2022-01-25 Thread Marek Behún
From: Marek Behún Hello Stefan, here comes another set of kwboot improvements from Pali, reviewed and signed off by myself. Marek Pali Rohár (14): tools: kwboot: Increase blk_rsp_timeo to 2s tools: kwboot: Wait blk_rsp_timeo when flushing tools: kwboot: Improve retrying logic for

Re: [PATCH 2/4] pci: Extend 'pci regions' command with bus number

2022-01-25 Thread Pali Rohár
On Tuesday 25 January 2022 16:53:05 Stefan Roese wrote: > On 1/17/22 16:38, Pali Rohár wrote: > > 'pci regions' currently prints only region information from bus 0 which > > belongs to controller 0. Parser for 'pci regions' cmdline currently ignores > > any additional arguments and so U-Boot

Compile only changed files when doing 'make'?

2022-01-25 Thread Grant Edwards
I'm working on a Renesas supplied port of U-Boot, and it seems that 'make' always compiles every single (configured) source file instead compiling only the source files that have been changed since the previous 'make'. I've never run into this before on projects that use 'make', and it makes

Re: [PATCH u-boot-pci] pci: iproc: Set all 24 bits of PCI class code

2022-01-25 Thread Tom Rini
On Wed, Jan 05, 2022 at 10:50:20AM +0100, Pali Rohár wrote: > Register 0x43c in its low 24 bits contains PCI class code. > > Update code to set all 24 bits of PCI class code and not only upper 16 bits > of PCI class code. > > Use standard U-Boot macro (PCI_CLASS_BRIDGE_PCI << 8) for

Re: [PATCH 6/6] moveconfig: Fix some pylint errors

2022-01-25 Thread Tom Rini
On Sat, Dec 18, 2021 at 02:54:35PM -0700, Simon Glass wrote: > There are over 200 errors in this file. Fix some of them, starting at the > beginning of the file. Future work can continue this effort. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH 5/6] moveconfig: Use a function to read files

2022-01-25 Thread Tom Rini
On Sat, Dec 18, 2021 at 02:54:34PM -0700, Simon Glass wrote: > At present there is quite a bit of ad-hoc code reading from files. The > most common case is to read the file as lines. Put it in a function and > set the unicode encoding correctly. > > Avoid writing back to a file when there are

Re: [PATCH 4/6] moveconfig: Use a function to write files

2022-01-25 Thread Tom Rini
On Sat, Dec 18, 2021 at 02:54:33PM -0700, Simon Glass wrote: > At present there is quite a bit of ad-hoc code writing to files. The > treatment of newlines is different in some of them. Put it in a function > and set the unicode encoding correctly. > > Signed-off-by: Simon Glass Applied to

Re: [PATCH 3/6] moveconfig: Drop check for old Python

2022-01-25 Thread Tom Rini
On Sat, Dec 18, 2021 at 02:54:32PM -0700, Simon Glass wrote: > Python 2 is not supported anymore and Python 3 has had subprocess.DEVNULL > since version 3.3 which was released in 2012. Drop the unnecessary check. > > Signed-off-by: Simon Glass > Reviewed-by: Heinrich Schuchardt Applied to

Re: [PATCH 2/6] moveconfig: Convert to ArgumentParser

2022-01-25 Thread Tom Rini
On Sat, Dec 18, 2021 at 02:54:31PM -0700, Simon Glass wrote: > This is a newer library and is now preferred for Python scripts. Update > the code to use it instead of optparse > > Use 'args' instead of 'options' throughout, since this is the term used > in that module. Also it helps to avoid

Re: [PATCH 1/6] moveconfig: Use single quotes

2022-01-25 Thread Tom Rini
On Sat, Dec 18, 2021 at 02:54:30PM -0700, Simon Glass wrote: > Quite a few places use double quotes. Fix this to be consistent with > other Python code in U-Boot. > > Signed-off-by: Simon Glass > Reviewed-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH 5/5] moveconfig: Allow querying board configuration

2022-01-25 Thread Tom Rini
On Sat, Dec 18, 2021 at 08:09:46AM -0700, Simon Glass wrote: > It is useful to be able to find out which boards define a particular > option, or combination of options. This is not as easy as grepping the > defconfig files since many options are implied by others. > > Add a -f option to the

Re: [PATCH 4/5] moveconfig: Allow adding unit tests

2022-01-25 Thread Tom Rini
On Sat, Dec 18, 2021 at 08:09:45AM -0700, Simon Glass wrote: > Add a -t option to run unit tests in this program. So far, there is none. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/5] moveconfig: Sort the options

2022-01-25 Thread Tom Rini
On Sat, Dec 18, 2021 at 08:09:44AM -0700, Simon Glass wrote: > Put the options in sorted order by their short name so it is easier to > find an option. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/5] moveconfig: Read the database in a separate function

2022-01-25 Thread Tom Rini
On Sat, Dec 18, 2021 at 08:09:43AM -0700, Simon Glass wrote: > Move this code out into a function so it can be used elsewhere. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/5] moveconfig: Correct operation of the 'imply' feature

2022-01-25 Thread Tom Rini
On Sat, Dec 18, 2021 at 08:09:42AM -0700, Simon Glass wrote: > This doesn't work anymore, since the Kconfig update. The script has no > tests so we did not notice. Fix it. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] test: fix pylint warnings in test_env.py

2022-01-25 Thread Tom Rini
On Fri, Nov 26, 2021 at 11:30:27PM +0100, Heinrich Schuchardt wrote: > * assert does not need parentheses > * add module docstring > * fix misspelled constant True > * limit lines to 100 characters > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 5/6] Makefile: Add a pylint checker to the build

2022-01-25 Thread Tom Rini
On Sun, Nov 21, 2021 at 08:48:40PM -0700, Simon Glass wrote: > At present the Python code in U-Boot is somewhat inconsistent, with some > files passing pylint quite cleanly and others not. > > Add a way to track progress on this clean-up, by checking that no module > has got any worse as a

Re: [PATCH 4/6] tools: Add init files for Python tools

2022-01-25 Thread Tom Rini
On Sun, Nov 21, 2021 at 08:48:39PM -0700, Simon Glass wrote: > Add some empty __init__ files for binman, buildman and dtoc so that > pylint is able to recognise these as Python modules and produce more > useful pylint output. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! --

Re: [PATCH 3/6] patman: Update the list of modules

2022-01-25 Thread Tom Rini
On Sun, Nov 21, 2021 at 08:48:38PM -0700, Simon Glass wrote: > Update the __init__ file to include recently added files. > > Add a license header while we are here. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/6] dtoc: Fix up a code comment that confuses pylint

2022-01-25 Thread Tom Rini
On Sun, Nov 21, 2021 at 08:48:37PM -0700, Simon Glass wrote: > This produces a pylint error at present. Fix it. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/6] .gitignore: Ignore any html coverage directory

2022-01-25 Thread Tom Rini
On Sun, Nov 21, 2021 at 08:48:36PM -0700, Simon Glass wrote: > This is created when checking code coverage of Python tools. Ignore it. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 5/6] Makefile: Add a pylint checker to the build

2022-01-25 Thread Tom Rini
On Sun, Nov 21, 2021 at 08:48:40PM -0700, Simon Glass wrote: > At present the Python code in U-Boot is somewhat inconsistent, with some > files passing pylint quite cleanly and others not. > > Add a way to track progress on this clean-up, by checking that no module > has got any worse as a

Re: [PATCH 4/4] pci: Extend 'pci' command with bus option '*'

2022-01-25 Thread Stefan Roese
On 1/17/22 16:38, Pali Rohár wrote: Allow to call 'pci' and 'pci regions' commands with bus option '*' which cause pci to process all buses. PCIe is point-to-point HW and so on each bus is maximally one physical device. Therefore for PCIe it is common to have multiple buses. This change allows

Re: [PATCH 3/4] pci: Add checks for valid cmdline arguments

2022-01-25 Thread Stefan Roese
On 1/17/22 16:38, Pali Rohár wrote: Currently pci command ignores invalid cmdline arguments and do something. Add checks that all passed arguments were processed. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- cmd/pci.c | 5 + 1 file changed, 5

Re: [PATCH 2/4] pci: Extend 'pci regions' command with bus number

2022-01-25 Thread Stefan Roese
On 1/17/22 16:38, Pali Rohár wrote: 'pci regions' currently prints only region information from bus 0 which belongs to controller 0. Parser for 'pci regions' cmdline currently ignores any additional arguments and so U-Boot always uses bus 0. Regions are stored in controller (not on the bus) and

Re: [PATCH 1/4] pci: Fix setting controller's last_busno

2022-01-25 Thread Stefan Roese
On 1/17/22 16:38, Pali Rohár wrote: Initially it is set to dev_seq but update to the last bus number is missing. Fix it. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- drivers/pci/pci-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] arm: kirkwood: Pogoplug V4 : Use Marvel network PHY driver

2022-01-25 Thread Stefan Roese
On 1/25/22 10:48, Tony Dinh wrote: The Pogoplug V4 board has the network chip Marvell 88E1118R. So to properly configure the network, enable CONFIG_PHY_MARVELL to activate the driver M88E1118R. - This patch depends on the series:

Re: [PATCH 2/5] sunxi: move Cortex SMPEN setting into start.S

2022-01-25 Thread Andre Przywara
On Mon, 24 Jan 2022 20:47:30 -0600 Samuel Holland wrote: Hi Samuel, many thanks for having a look! > On 1/24/22 7:15 PM, Andre Przywara wrote: > > According to their TRMs, Cortex ARMv7 CPUs with SMP support require the > > ACTLR.SMPEN bit to be set as early as possible, before any cache or TLB

Re: [PATCH v3 00/20] J721S2: Add initial support

2022-01-25 Thread Aswath Govindraju
Hi All, On 18/01/22 12:57 pm, Aswath Govindraju wrote: > 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

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

2022-01-25 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 v4 19/20] configs: j721s2_evm_r5_defconfig: Add R5 SPL specific defconfig

2022-01-25 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 v4 17/20] arm: dts: k3-j721s2: Add r5 specific dt support

2022-01-25 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 v4 16/20] arm: dts: Add support for A72 specific J721S2 Common Processor Board

2022-01-25 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 v4 14/20] arm: dts: Add initial support for J721S2 SoC

2022-01-25 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 v4 15/20] arm: dts: Add initial support for J721S2 System on Module

2022-01-25 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 v4 13/20] dt-bindings: pinctrl: k3: Introduce pinmux definitions for J721S2

2022-01-25 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 v4 12/20] dt-bindings: ti-serdes-mux: Add defines for J721S2 SoC

2022-01-25 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 v4 11/20] board: ti: j721s2: Add board support for J721S2

2022-01-25 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 | 16 board/ti/j721s2/Makefile| 8 ++ board/ti/j721s2/evm.c | 180

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

2022-01-25 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 v4 09/20] ram: k3-ddrss: Add support for J721S2 SoC

2022-01-25 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ram/Kconfig b/drivers/ram/Kconfig index a79594d35198..709c916a2a11

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

2022-01-25 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 v4 07/20] clk: clk-k3: Add support for J721S2 SoC

2022-01-25 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 v4 06/20] drivers: dma: Add support for J721S2

2022-01-25 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 v4 05/20] arm: K3: Add basic support for J721S2 SoC definition

2022-01-25 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 | 15 +-

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

2022-01-25 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 v4 03/20] ram: k3-ddrss: Add support for multiple instances of DDR subsystems

2022-01-25 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 v4 00/20] J721S2: Add initial support

2022-01-25 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 v4 02/20] ram: k3-ddrss: lpddr4_structs_if.h: Add a pointer to ddr instance

2022-01-25 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 v4 01/20] remoteproc: k3_system_controller: Support optional boot_notification channel

2022-01-25 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 1/1] efi_loader: clean up uefi secure boot image verification logic

2022-01-25 Thread Ilias Apalodimas
We currently distinguish between signed and non signed PE/COFF executables while trying to authenticate signatures and/or sha256 hashes in db and dbx. That code duplication can be avoided. When checking for sha256 hashes, in db, we don't really care if the image is signed or not. The sequence

Re: [RFC 0/2] A/B firmware update based in eMMC boot partition.

2022-01-25 Thread Wolfgang Denk
Dear Ying-Chun Liu, In message <20220125135535.224061-1-grandp...@gmail.com> you wrote: > > I've implemented A/B firmware update based on eMMC hw partitions. > Normally we have 2 boot partitions on eMMC. One is active and another > is inactive. We can then flash the firmware to the inactive one

[RFC 2/2] drivers: dfu: flash firmware to inactive boot area and active it

2022-01-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This commit implement flash to the inactive boot partition of eMMC when dfu_alt_info set mmcpart to "inactive". After flash to the inactive boot partition. It will switch the active partition to the one that just flashed. Signed-off-by: Ying-Chun Liu (PaulLiu)

[RFC 1/2] drivers: mmc: write protect active boot area after mmc init.

2022-01-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This commit implements write protection for active boot partition for eMMC. The active boot partition is write protected, and it is still able to write to the inactive boot partition. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Peng Fan Cc: Jaehoon Chung ---

[RFC 0/2] A/B firmware update based in eMMC boot partition.

2022-01-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Hi all, I've implemented A/B firmware update based on eMMC hw partitions. Normally we have 2 boot partitions on eMMC. One is active and another is inactive. We can then flash the firmware to the inactive one and make it active. Also when booting we can write

Re: [PATCH 1/1] i2c: mvtwsi: Add compatible string for allwinner, sun4i-a10-i2c

2022-01-25 Thread Jose Torres
I faced the boot failure issue when attempting to bring mainline 2022.01 to our Kettlepop device which is a derivative of Next Thing's C.H.I.P. Pro. Kettlepop has eMMC memory rather than NAND flash as used in C.H.I.P. Pro. This device has a GR8 SiP which contains an R8/A13 die. Without this patch,

Re: [PATCH 1/2] EFI: Support CAPSULE_FLAGS_INITIATE_RESET for capsule update

2022-01-25 Thread AKASHI Takahiro
Hi Masami, Thank you for this enhancement. On Tue, Jan 25, 2022 at 08:31:29PM +0900, Masami Hiramatsu wrote: > Support CAPSULE_FLAGS_INITIATE_RESET for rebooting uboot soon after > updating firmware. Note that the machine will reboot soon after > applying the capsule file which has

Re: [PATCH 3/3] riscv: qemu: Implement is_flash_available() for MTD NOR

2022-01-25 Thread Anup Patel
On Tue, Jan 25, 2022 at 3:16 PM Bin Meng wrote: > > On Tue, Jan 25, 2022 at 2:02 PM Anup Patel wrote: > > > > On Tue, Jan 25, 2022 at 10:33 AM Bin Meng wrote: > > > > > > On Sat, Jan 15, 2022 at 12:20 AM Anup Patel > > > wrote: > > > > > > > > Currently, if MTD NOR is enabled then U-Boot

Re: [PATCH 1/3] serial: Add RISC-V HTIF console driver

2022-01-25 Thread Anup Patel
On Tue, Jan 25, 2022 at 2:46 PM Bin Meng wrote: > > On Tue, Jan 25, 2022 at 2:00 PM Anup Patel wrote: > > > > On Tue, Jan 25, 2022 at 10:22 AM Bin Meng wrote: > > > > > > On Sat, Jan 15, 2022 at 12:20 AM Anup Patel > > > wrote: > > > > > > > > Quite a few RISC-V emulators and ISS (including

[PATCH 2/2] mkeficapsule: Support "--flags reset" option

2022-01-25 Thread Masami Hiramatsu
Support "--flags reset" option to set the CAPSULE_FLAGS_INITIATE_RESET flag to capsule header. Signed-off-by: Masami Hiramatsu --- tools/mkeficapsule.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/tools/mkeficapsule.c b/tools/mkeficapsule.c

[PATCH 1/2] EFI: Support CAPSULE_FLAGS_INITIATE_RESET for capsule update

2022-01-25 Thread Masami Hiramatsu
Support CAPSULE_FLAGS_INITIATE_RESET for rebooting uboot soon after updating firmware. Note that the machine will reboot soon after applying the capsule file which has CAPSULE_FLAGS_INITIATE_RESET flag. If there are multiple capsules and one has this flag, the machine may reboot while scanning the

[PATCH 0/2] EFI: Add CAPSULE_FLAG_INITIATE_RESET support

2022-01-25 Thread Masami Hiramatsu
Hi, This is the patchset for adding CAPSULE_FLAG_INITIATE_RESET support to EFU capsule support, according to Takahiro's comment. The first patch is the core patch to add supporting the CAPSULE_FLAG_INITIATE_RESET. The system reset soon after applying the capsule file which has this flag. The

Re: [PATCH] arm64: dts: imx8mm: Add missing MX8MM_IOMUXC_NAND_READY_B_SD3_RESET_B

2022-01-25 Thread Fabio Estevam
Hi Marek, On Mon, Jan 24, 2022 at 11:49 PM Marek Vasut wrote: > > The i.MX8M Mini Application Processor Reference Manual, Rev. 3, 11/2020 > documents AF MX8MM_IOMUXC_NAND_READY_B_SD3_RESET_B , add it into the > pinmux tables. > > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Stefano

Re: [PATCH] regulator: bd718x7: Bypass bogus warnings

2022-01-25 Thread Vaittinen, Matti
Hi dee Ho peeps! On 1/25/22 04:46, Marek Vasut wrote: > When regulator consumer attempts to set enabled DVS regulator voltage, > the driver aborts with "Only DVS bucks can be changed when enabled". > In case the regulator is already set to specified voltage, do nothing > instead of failing

[PATCH] scripts: Makefile: also clean subdir dtc

2022-01-25 Thread Philippe Reynes
Since commit 93b196532254 ("Makefile: Only build dtc if needed"), the sub directory scripts/dtc is never cleaned. Adds the directory dtc to subdir to always clean it. Signed-off-by: Philippe Reynes --- scripts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[RESEND PATCH] arm: kirkwood: Pogoplug V4 : Use Marvell network PHY driver

2022-01-25 Thread Tony Dinh
The Pogoplug V4 board has the network chip Marvell 88E1116R. So to properly configure the network, enable CONFIG_PHY_MARVELL to activate the compatible driver M88E1118R. - This patch depends on the series: https://patchwork.ozlabs.org/project/uboot/patch/20220124061712.28316-2-mibo...@gmail.com/

[PATCH] arm: kirkwood: Pogoplug V4 : Use Marvel network PHY driver

2022-01-25 Thread Tony Dinh
The Pogoplug V4 board has the network chip Marvell 88E1118R. So to properly configure the network, enable CONFIG_PHY_MARVELL to activate the driver M88E1118R. - This patch depends on the series: https://patchwork.ozlabs.org/project/uboot/patch/20220124061712.28316-2-mibo...@gmail.com/

Re: [PATCH 3/3] riscv: qemu: Implement is_flash_available() for MTD NOR

2022-01-25 Thread Bin Meng
On Tue, Jan 25, 2022 at 2:02 PM Anup Patel wrote: > > On Tue, Jan 25, 2022 at 10:33 AM Bin Meng wrote: > > > > On Sat, Jan 15, 2022 at 12:20 AM Anup Patel wrote: > > > > > > Currently, if MTD NOR is enabled then U-Boot tries to issue flash > > > commands even when CFI flash DT node is not

Re: [PATCH 1/3] serial: Add RISC-V HTIF console driver

2022-01-25 Thread Bin Meng
On Tue, Jan 25, 2022 at 2:00 PM Anup Patel wrote: > > On Tue, Jan 25, 2022 at 10:22 AM Bin Meng wrote: > > > > On Sat, Jan 15, 2022 at 12:20 AM Anup Patel wrote: > > > > > > Quite a few RISC-V emulators and ISS (including Spike) have host > > > transfer interface (HTIF) based console. This

Re: [PATCH V3] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-01-25 Thread Marcel Ziswiler
On Mon, 2022-01-17 at 18:21 -0600, Adam Ford wrote: > The imx8mm and imx8mn appear compatible with imx7d-usb > flags in the OTG driver.  If the dr_mode is defined as > host or peripheral, the device appears to operate correctly, > however the auto host/peripheral detection results in an error. >

  1   2   >