Re: [PATCH] arm64: explicitly disable pointer authentication instructions

2022-08-09 Thread Rasmus Villemoes
On 10/08/2022 04.38, Peng Fan wrote: > > > On 8/8/2022 10:12 PM, Rasmus Villemoes wrote: >> The Yocto project builds their aarch64 cross-compiler with the >> configure knob --enable-standard-branch-protection, which means that >> their gcc behaves as if -mbranch-protection=standard is passed; the

Re: [PATCH v2 2/2] patman: Add documentation to doc/

2022-08-09 Thread Heinrich Schuchardt
On 8/9/22 21:49, Simon Glass wrote: Link to patman's documentation from the doc/ directory so that it appears in the 'make htmldocs' output. Signed-off-by: Simon Glass --- Changes in v2: - Fix up access to help from patman tool doc/develop/index.rst | 1 + doc/develop/patma

Re: [PATCH] cmd: efidebug: Add missing \n at the end of message

2022-08-09 Thread Ilias Apalodimas
On Wed, 10 Aug 2022 at 08:28, Heinrich Schuchardt wrote: > > On 8/9/22 16:31, Michal Simek wrote: > > Currently message is not intended that prompt end up at the end of debug > > line. For example like this: > > > > DFU alt info setting: done > > DFU entities configuration failed! > > (partition t

Re: [PATCH] cmd: efidebug: Add missing \n at the end of message

2022-08-09 Thread Heinrich Schuchardt
On 8/9/22 16:31, Michal Simek wrote: Currently message is not intended that prompt end up at the end of debug line. For example like this: DFU alt info setting: done DFU entities configuration failed! (partition table does not match dfu_alt_info?) Firmware update failed: Cannot handle a capsule

Re: [PATCH 1/1] git-mailrc: remove invalid entry 'efi'

2022-08-09 Thread Heinrich Schuchardt
On 8/9/22 21:51, Simon Glass wrote: Hi Heinrich, On Mon, 8 Aug 2022 at 13:51, Heinrich Schuchardt wrote: Remove alias 'efi' with invalid data. Signed-off-by: Heinrich Schuchardt --- doc/git-mailrc | 1 - 1 file changed, 1 deletion(-) Sorry for the dumb questions, but what is invalid

[PATCH] liteeth: LiteX Ethernet device

2022-08-09 Thread Joel Stanley
LiteX is a soft system-on-chip that targets FPGAs. LiteETH is a basic network device that is commonly used in LiteX designs. Signed-off-by: Joel Stanley --- include/linux/litex.h | 83 drivers/net/liteeth.c | 214 ++ drivers/net/Kconfig

Re: [PATCH] arm64: explicitly disable pointer authentication instructions

2022-08-09 Thread Peng Fan
On 8/8/2022 10:12 PM, Rasmus Villemoes wrote: The Yocto project builds their aarch64 cross-compiler with the configure knob --enable-standard-branch-protection, which means that their gcc behaves as if -mbranch-protection=standard is passed; the default (lacking that configure knob) is -mbranc

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Andrew Lunn
> Is something like the following really that crazy of an idea? > diff --git a/net/core/dev.c b/net/core/dev.c > index e0878a500aa9..a679c74a63c6 100644 > --- a/net/core/dev.c > +++ b/net/core/dev.c > @@ -1151,6 +1151,15 @@ static int dev_alloc_name_ns(struct net *net, > int ret; > >

[PATCH 3/3] CI: Move to Ubuntu 2022.04 "Jammy" for CI base

2022-08-09 Thread Tom Rini
- We now have a new enough sbsigntools in the distro, stop building. - Use the 20220801 tag for Jammy. - Move to pygit2 1.9.2 (current version) as the old one doesn't build on "Jammy". - Add the working directory to the list of safe directories for git. - Move to pytest 6.2.5 to address other issu

[PATCH 2/3] CI: Azure: Further condense jobs

2022-08-09 Thread Tom Rini
We have a maximum of 10 parallel build jobs, and each job must complete in less than 60 minutes. The overall run time must also be less than 6 hours. Condense a number of jobs so that we have less potential bottlenecks in terms of waiting for a parallel slot to open up for a job to be run. Signed-

[PATCH 1/3] CI: Azure: Merge PowerPC jobs in to one

2022-08-09 Thread Tom Rini
At this point given the number of PowerPC platforms we have, a single job to build them all fits within the time limit we have in Azure. Signed-off-by: Tom Rini --- This reduces the overall build time marginally due to freeing up some parallel build slots. However, it needs the DM_ETH series to b

Re: [PATCH v2 3/5] DFU: Check the number of arguments and argument string strictly

2022-08-09 Thread AKASHI Takahiro
On Tue, Aug 09, 2022 at 04:11:40PM +0200, Michal Simek wrote: > Hi Masami, > > po 31. 1. 2022 v 3:53 odesílatel Masami Hiramatsu > napsal: > > > > When parsing the dfu_alt_info, check the number of arguments > > and argument string strictly. If there is any garbage data > > (which is not able to

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Tim Harvey
On Tue, Aug 9, 2022 at 3:45 PM Pali Rohár wrote: > > On Tuesday 09 August 2022 18:41:25 Sean Anderson wrote: > > > > > > On 8/9/22 5:42 PM, Pali Rohár wrote: > > > On Tuesday 09 August 2022 17:36:52 Sean Anderson wrote: > > >> On 8/9/22 5:31 PM, Pali Rohár wrote: > > >> > On Tuesday 09 August 2022

Please pull u-boot-dm

2022-08-09 Thread Simon Glass
Hi Tom, https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/13097 The following changes since commit 3dd4e916324efc825a7ee8e412f5cf1ded839021: Merge https://source.denx.de/u-boot/custodians/u-boot-marvell (2022-08-09 08:16:14 -0400) are available in the Git repository at: git:/

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Pali Rohár
On Tuesday 09 August 2022 18:41:25 Sean Anderson wrote: > > > On 8/9/22 5:42 PM, Pali Rohár wrote: > > On Tuesday 09 August 2022 17:36:52 Sean Anderson wrote: > >> On 8/9/22 5:31 PM, Pali Rohár wrote: > >> > On Tuesday 09 August 2022 16:48:23 Sean Anderson wrote: > >> >> On 8/8/22 5:45 PM, Michal

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Tim Harvey
On Tue, Aug 9, 2022 at 3:41 PM Sean Anderson wrote: > > > > On 8/9/22 5:42 PM, Pali Rohár wrote: > > On Tuesday 09 August 2022 17:36:52 Sean Anderson wrote: > >> On 8/9/22 5:31 PM, Pali Rohár wrote: > >> > On Tuesday 09 August 2022 16:48:23 Sean Anderson wrote: > >> >> On 8/8/22 5:45 PM, Michal Su

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Sean Anderson
On 8/9/22 5:42 PM, Pali Rohár wrote: > On Tuesday 09 August 2022 17:36:52 Sean Anderson wrote: >> On 8/9/22 5:31 PM, Pali Rohár wrote: >> > On Tuesday 09 August 2022 16:48:23 Sean Anderson wrote: >> >> On 8/8/22 5:45 PM, Michal Suchánek wrote: >> >> > On Mon, Aug 08, 2022 at 02:38:35PM -0700, St

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Pali Rohár
On Tuesday 09 August 2022 14:39:05 Tim Harvey wrote: > I've been wondering the same as well which made me wonder what the > history of the 'aliases' node is and why its not used in most cases in > Linux. I know for the SOC's I work with we've always defined aliases > for ethernet, gpio, serial, spi

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Pali Rohár
On Tuesday 09 August 2022 17:36:52 Sean Anderson wrote: > On 8/9/22 5:31 PM, Pali Rohár wrote: > > On Tuesday 09 August 2022 16:48:23 Sean Anderson wrote: > >> On 8/8/22 5:45 PM, Michal Suchánek wrote: > >> > On Mon, Aug 08, 2022 at 02:38:35PM -0700, Stephen Hemminger wrote: > >> >> On Mon, 8 Aug 2

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Sean Anderson
On 8/9/22 5:35 PM, Tim Harvey wrote: > On Tue, Aug 9, 2022 at 1:48 PM Sean Anderson wrote: >> >> >> >> On 8/8/22 5:45 PM, Michal Suchánek wrote: >> > On Mon, Aug 08, 2022 at 02:38:35PM -0700, Stephen Hemminger wrote: >> >> On Mon, 8 Aug 2022 23:09:45 +0200 >> >> Michal Suchánek wrote: >> >> >>

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Tim Harvey
On Tue, Aug 9, 2022 at 2:31 PM Pali Rohár wrote: > > On Tuesday 09 August 2022 16:48:23 Sean Anderson wrote: > > On 8/8/22 5:45 PM, Michal Suchánek wrote: > > > On Mon, Aug 08, 2022 at 02:38:35PM -0700, Stephen Hemminger wrote: > > >> On Mon, 8 Aug 2022 23:09:45 +0200 > > >> Michal Suchánek wrote

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Sean Anderson
On 8/9/22 5:31 PM, Pali Rohár wrote: > On Tuesday 09 August 2022 16:48:23 Sean Anderson wrote: >> On 8/8/22 5:45 PM, Michal Suchánek wrote: >> > On Mon, Aug 08, 2022 at 02:38:35PM -0700, Stephen Hemminger wrote: >> >> On Mon, 8 Aug 2022 23:09:45 +0200 >> >> Michal Suchánek wrote: >> >> >> >> >

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Tim Harvey
On Tue, Aug 9, 2022 at 1:48 PM Sean Anderson wrote: > > > > On 8/8/22 5:45 PM, Michal Suchánek wrote: > > On Mon, Aug 08, 2022 at 02:38:35PM -0700, Stephen Hemminger wrote: > >> On Mon, 8 Aug 2022 23:09:45 +0200 > >> Michal Suchánek wrote: > >> > >> > On Mon, Aug 08, 2022 at 03:57:55PM -0400, Sea

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Pali Rohár
On Tuesday 09 August 2022 16:48:23 Sean Anderson wrote: > On 8/8/22 5:45 PM, Michal Suchánek wrote: > > On Mon, Aug 08, 2022 at 02:38:35PM -0700, Stephen Hemminger wrote: > >> On Mon, 8 Aug 2022 23:09:45 +0200 > >> Michal Suchánek wrote: > >> > >> > On Mon, Aug 08, 2022 at 03:57:55PM -0400, Sean

Re: ethernet dt aliases implications in U-Boot and Linux

2022-08-09 Thread Sean Anderson
On 8/8/22 5:45 PM, Michal Suchánek wrote: > On Mon, Aug 08, 2022 at 02:38:35PM -0700, Stephen Hemminger wrote: >> On Mon, 8 Aug 2022 23:09:45 +0200 >> Michal Suchánek wrote: >> >> > On Mon, Aug 08, 2022 at 03:57:55PM -0400, Sean Anderson wrote: >> > > Hi Tim, >> > > >> > > On 8/8/22 3:18 PM,

Re: [PATCH 7/7] fdt: Move to setuptools

2022-08-09 Thread Tom Rini
On Tue, Aug 09, 2022 at 01:51:15PM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 9 Aug 2022 at 11:56, Tom Rini wrote: > > > > On Sat, Jul 30, 2022 at 08:57:11PM -0600, Simon Glass wrote: > > > > > The distutils package is deprecated. The upstream libfdt repo uses > > > setuptools for building t

Re: [PATCH v3 2/2] ci: Add a test for a non-LTO build

2022-08-09 Thread Tom Rini
On Tue, Aug 09, 2022 at 01:51:13PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 8 Aug 2022 at 10:09, Tom Rini wrote: > > > > On Sun, Aug 07, 2022 at 09:48:01AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 3 Aug 2022 at 12:13, Simon Glass wrote: > > > > > > > > Check that sandbo

Re: [PATCH v2 1/2] doc: Drop a reference to travis

2022-08-09 Thread Simon Glass
Hi Heinrich, On Tue, 9 Aug 2022 at 13:50, Simon Glass wrote: > > This was widely used by U-Boot for a long time, but is not used anymore, > with Gitlab and Azure taking over. > > Drop the text. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > doc/develop/codingstyle.rst | 4 ++

Re: [PATCH 7/7] fdt: Move to setuptools

2022-08-09 Thread Simon Glass
Hi Tom, On Tue, 9 Aug 2022 at 11:56, Tom Rini wrote: > > On Sat, Jul 30, 2022 at 08:57:11PM -0600, Simon Glass wrote: > > > The distutils package is deprecated. The upstream libfdt repo uses > > setuptools for building the pylibfdt module, so bring in that code, > > suitably modified for U-Boot.

Re: [PATCH v3 2/2] ci: Add a test for a non-LTO build

2022-08-09 Thread Simon Glass
Hi Tom, On Mon, 8 Aug 2022 at 10:09, Tom Rini wrote: > > On Sun, Aug 07, 2022 at 09:48:01AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 3 Aug 2022 at 12:13, Simon Glass wrote: > > > > > > Check that sandbox builds and runs tests OK with LTO disabled. > > > > > > Signed-off-by: Simon Gl

Re: [PATCH] power: pmic: rk8xx: Workaround pmic failure when probed before relocation

2022-08-09 Thread Simon Glass
Hi Michal, On Mon, 8 Aug 2022 at 14:27, Michal Suchánek wrote: > > On Mon, Aug 08, 2022 at 01:26:23PM -0600, Simon Glass wrote: > > Hi Michal, > > > > On Sat, 6 Aug 2022 at 13:54, Michal Suchánek wrote: > > > > > > On Sat, Aug 06, 2022 at 12:21:29PM -0600, Simon Glass wrote: > > > > Hi Michal, >

Re: [PATCH] CI: Azure: Move to Ubuntu 22.04 image

2022-08-09 Thread Simon Glass
On Mon, 8 Aug 2022 at 20:44, Tom Rini wrote: > > As per https://github.com/actions/runner-images/issues/6002 the Ubuntu > 18.04 image is deprecated and will be removed by December 1, 2022. > Move to the Ubuntu 22.04 image as our base for launching our containers > from. > > Signed-off-by: Tom Rini

Re: [PATCH v2 4/4] gpio: sandbox: Add GPIOD_IS_AF for gpio configured in alternate function

2022-08-09 Thread Simon Glass
On Tue, 9 Aug 2022 at 01:14, Patrice Chotard wrote: > > This allows to test if a pin's label if displayed using gpio_get_status() > when this pin is configured in alternate function. > > Signed-off-by: Patrice Chotard > --- > > (no changes since v1) > > drivers/gpio/sandbox.c |

Re: [PATCH v2 01/10] binman: Skip elf tests if python elftools is not available

2022-08-09 Thread Simon Glass
On Mon, 8 Aug 2022 at 04:51, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Skip tests which requires python elftools if the tool is not available. > > Signed-off-by: Stefan Herbrechtsmeier > > --- > > Changes in v2: > - Added > > tools/binman/elf_test.py | 14 ++

Re: [PATCH 1/1] git-mailrc: remove invalid entry 'efi'

2022-08-09 Thread Simon Glass
Hi Heinrich, On Mon, 8 Aug 2022 at 13:51, Heinrich Schuchardt wrote: > > Remove alias 'efi' with invalid data. > > Signed-off-by: Heinrich Schuchardt > --- > doc/git-mailrc | 1 - > 1 file changed, 1 deletion(-) Sorry for the dumb questions, but what is invalid about it? > > diff --git a/doc/

[PATCH v2 2/2] patman: Add documentation to doc/

2022-08-09 Thread Simon Glass
Link to patman's documentation from the doc/ directory so that it appears in the 'make htmldocs' output. Signed-off-by: Simon Glass --- Changes in v2: - Fix up access to help from patman tool doc/develop/index.rst | 1 + doc/develop/patman.rst | 1 + doc/develop/

[PATCH v2 1/2] doc: Drop a reference to travis

2022-08-09 Thread Simon Glass
This was widely used by U-Boot for a long time, but is not used anymore, with Gitlab and Azure taking over. Drop the text. Signed-off-by: Simon Glass --- (no changes since v1) doc/develop/codingstyle.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/develop/codin

[PATCH v2 2/2] cmd: mvebu/bubt: Check for A38x/A37xx OTP secure bits and secure boot

2022-08-09 Thread Pali Rohár
For obvious reasons BootROMS rejects unsigned images when secure boot is enabled in OTP secure bits. So check for OPT secure bits and do not allow flashing unsigned images when secure boot is enabled. Access to OTP via U-Boot fuse API is currently implemented only for A38x and A37xx SoCs. Addition

[PATCH v2 1/2] cmd: mvebu/bubt: Check for A38x image data checksum

2022-08-09 Thread Pali Rohár
Currently for A38x image is checked only header checksum. So check also for image data checksum to prevent flashing broken image. Signed-off-by: Pali Rohár --- Changes in v2: * Compile fix (move code chunk from patch 2/2 to 1/2) --- cmd/mvebu/bubt.c | 45

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Marek Vasut
On 8/9/22 18:36, Tom Rini wrote: [...] It's tricky to say when to "select" or just "default y if .." or "imply" a given option. It's not only a matter of "can you disable X and the system is functional" but "would you normally want to". There are certainly system bring-up cases and similar wher

Re: [PATCH 7/7] fdt: Move to setuptools

2022-08-09 Thread Tom Rini
On Sat, Jul 30, 2022 at 08:57:11PM -0600, Simon Glass wrote: > The distutils package is deprecated. The upstream libfdt repo uses > setuptools for building the pylibfdt module, so bring in that code, > suitably modified for U-Boot. Also bring in the README. > > The modifications include setting t

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Phil Sutter
On Tue, Aug 09, 2022 at 01:21:51PM +0200, Pali Rohár wrote: > On Tuesday 09 August 2022 13:16:41 Marek Vasut wrote: > > On 8/9/22 12:58, Pali Rohár wrote: > > > On Tuesday 09 August 2022 12:07:00 Philip Oberfichtner wrote: > > > > This converts CONFIG_SYS_L2_PL310 to Kconfig. > > > ... > > > > diff

Re: [RFC PATCH v1 9/9] tools: Add tool to create Renesas SPKG images

2022-08-09 Thread Sean Anderson
Hi Ralph, On 8/9/22 11:54 AM, Ralph Siemsen wrote: > Hi Pali, > > On Tuesday 09 August 2022 15:03:48 Pali Rohár wrote: >> >> Hello! You can use for example config file, like it has kwbimage.c which >> is integrated into mkimage and has support for NAND ECC settings. > > Thank you, I was unaware

Re: [RFC PATCH v1 9/9] tools: Add tool to create Renesas SPKG images

2022-08-09 Thread Ralph Siemsen
On Tue, Aug 9, 2022 at 12:07 PM Pali Rohár wrote: > > This documentation is not probably up-to-date. List of all kwbimage > config options can be visible in kwbimage_generate_config() function. I will check the code as well. > > 1) mkimage already has far too many options > > I know. But for nan

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Tom Rini
On Tue, Aug 09, 2022 at 06:03:15PM +0200, Marek Vasut wrote: > On 8/9/22 15:46, Tom Rini wrote: > > On Tue, Aug 09, 2022 at 01:32:24PM +0200, Pali Rohár wrote: > > > On Tuesday 09 August 2022 13:27:38 Marek Vasut wrote: > > > > On 8/9/22 13:21, Pali Rohár wrote: > > > > > > > > (reducing the CC li

Re: Please pull u-boot-marvell/master

2022-08-09 Thread Tom Rini
On Tue, Aug 09, 2022 at 01:43:35PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull this next batch of mostly Marvell related patches: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [GIT PULL] Please pull u-boot-amlogic-20220809

2022-08-09 Thread Tom Rini
re available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-amlogic.git > tags/u-boot-amlogic-20220809 > > for you to fetch changes up to 3145e0d0ff0837647351f2ca261b4cde779f83e0: > > ARM: meson: fixup error on efuse commands return (2022-

Re: [RFC PATCH v1 9/9] tools: Add tool to create Renesas SPKG images

2022-08-09 Thread Pali Rohár
Hello! On Tuesday 09 August 2022 11:54:30 Ralph Siemsen wrote: > Hi Pali, > > On Tuesday 09 August 2022 15:03:48 Pali Rohár wrote: > > > > Hello! You can use for example config file, like it has kwbimage.c which > > is integrated into mkimage and has support for NAND ECC settings. > > Thank you,

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Marek Vasut
On 8/9/22 15:46, Tom Rini wrote: On Tue, Aug 09, 2022 at 01:32:24PM +0200, Pali Rohár wrote: On Tuesday 09 August 2022 13:27:38 Marek Vasut wrote: On 8/9/22 13:21, Pali Rohár wrote: (reducing the CC list) On Tuesday 09 August 2022 13:16:41 Marek Vasut wrote: On 8/9/22 12:58, Pali Rohár wrot

Re: [RFC PATCH v1 9/9] tools: Add tool to create Renesas SPKG images

2022-08-09 Thread Ralph Siemsen
Hi Pali, On Tuesday 09 August 2022 15:03:48 Pali Rohár wrote: > > Hello! You can use for example config file, like it has kwbimage.c which > is integrated into mkimage and has support for NAND ECC settings. Thank you, I was unaware of this config file approach. From a quick look at doc/README.kwb

[PATCH] distro_bootcmd: Introduce support for extension command

2022-08-09 Thread Matwey V. Kornilov
Try to load required DTB overlays if the board supports extensions and CONFIG_CMD_EXTENSION is enabled. Signed-off-by: Matwey V. Kornilov --- include/config_distro_bootcmd.h | 32 1 file changed, 32 insertions(+) diff --git a/include/config_distro_bootcmd.h b/in

[PATCH 4/4] xilinx: Define only mmc devnum not partition

2022-08-09 Thread Michal Simek
The commit 53b406369e9d ("DFU: Check the number of arguments and argument string strictly") added strict control over string that 0:1 partition definition is not valid anymore that's why use only device number without partition ID. Device is specified by 2nd parameter and partition by 3rd. Signed-

[PATCH 2/4] xilinx: Fix logic when dfu_alt_info is generated

2022-08-09 Thread Michal Simek
Generate dfu_alt_info only when it is not defined. Signed-off-by: Michal Simek --- board/xilinx/zynq/board.c| 3 +-- board/xilinx/zynqmp/zynqmp.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 63aff0474bea.

[PATCH 3/4] xilinx: zynq: Use CONFIG_SPL_FS_LOAD_PAYLOAD_NAME for dfu_alt_info

2022-08-09 Thread Michal Simek
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME stores the name of firmware file to be loaded by SPL. Name can be selected via Kconfig that's why use the macro. Signed-off-by: Michal Simek --- board/xilinx/zynq/board.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/xilinx/zynq/b

[PATCH 1/4] xilinx: zynq: Enable mkeficapsule tools compilation

2022-08-09 Thread Michal Simek
Zynq can use efi capsule infrastructure that's why enable it by default. For capsule generation for zynq you can use: pushd spl ../tools/mkeficapsule -g "1ba29a15-9969-40aa-b424-e86121618664" boot.bin \ --index 1 ../capsule1.bin popd ./tools/mkeficapsule -g "1a5178f0-87d3-4f36-ac63-3b31a23be305" u

[PATCH 0/4] xilinx: Update capsule update support for Zynq and ZynqMP SD

2022-08-09 Thread Michal Simek
Hi, I am sending some patches to fix SD capsule support for Zynq and ZynqMP. And also improving logic around it. Thanks, Michal Michal Simek (4): xilinx: zynq: Enable mkeficapsule tools compilation xilinx: Fix logic when dfu_alt_info is generated xilinx: zynq: Use CONFIG_SPL_FS_LOAD_PAYLO

[PATCH] cmd: efidebug: Add missing \n at the end of message

2022-08-09 Thread Michal Simek
Currently message is not intended that prompt end up at the end of debug line. For example like this: DFU alt info setting: done DFU entities configuration failed! (partition table does not match dfu_alt_info?) Firmware update failed: Cannot handle a capsule at 1000Zynq> Signed-off-by: Micha

[PATCHv2 12a/21] ppc: Remove corenet_ds boards

2022-08-09 Thread Tom Rini
These boards have been orphaned for some time and are behind on various DM migrations. Remove them. Cc: Priyanka Jain Cc: Peng Fan Signed-off-by: Tom Rini --- Changes in v2: - New patch .azure-pipelines.yml | 4 +- arch/powerpc/cpu/mpc85xx/Kconfig | 1

Re: [PATCH] fpga: zynq: Remove post config info message for SPL

2022-08-09 Thread Michal Simek
On 8/8/22 16:53, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier The drivers informs the user that a post config was not run after FPGA configuration. This message is unnecessary in SPL because the ps7_post_config function is called via spl_board_prepare_for_boot function before j

[PATCHv2 12b/21] layerscape: Disable CONFIG_FMAN_ENET on *aqds* platforms

2022-08-09 Thread Tom Rini
The *aqds* platforms have not been migrated to be able to enable CONFIG_DM_ETH with CONFIG_FMAN_ENET. Disable CONFIG_FMAN_ENET on these platforms. Cc: Mingkai Hu Cc: Rajesh Bhagat Cc: Pramod Kumar Cc: Peng Fan Signed-off-by: Tom Rini --- Changes in v2: - Depend on patch to delete corenet_ds p

Re: [PATCH] zynq: Convert arm twd timer to DM driver

2022-08-09 Thread Michal Simek
On 8/5/22 08:16, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Move arm twd timer driver from zynq to generic location. DM timer drivers are designed differently to original driver. Timer is counting up and not down. Information about clock rates are find out in timer_pre_probe

Re: [PATCH v2 3/5] DFU: Check the number of arguments and argument string strictly

2022-08-09 Thread Michal Simek
Hi Masami, po 31. 1. 2022 v 3:53 odesílatel Masami Hiramatsu napsal: > > When parsing the dfu_alt_info, check the number of arguments > and argument string strictly. If there is any garbage data > (which is not able to be parsed correctly) in dfu_alt_info, > that means something wrong and user ma

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Tom Rini
On Tue, Aug 09, 2022 at 01:32:24PM +0200, Pali Rohár wrote: > On Tuesday 09 August 2022 13:27:38 Marek Vasut wrote: > > On 8/9/22 13:21, Pali Rohár wrote: > > > > (reducing the CC list) > > > > > On Tuesday 09 August 2022 13:16:41 Marek Vasut wrote: > > > > On 8/9/22 12:58, Pali Rohár wrote: > >

Re: [PATCH 04/13] reset: qcom: Add support for QCS404 SoC reset table

2022-08-09 Thread Robert Marko
On Tue, Aug 9, 2022 at 3:25 PM Sumit Garg wrote: > > Hi Robert, > > Thanks for your review. > > On Sat, 6 Aug 2022 at 13:11, Robert Marko wrote: > > > > On Thu, Aug 4, 2022 at 4:28 PM Sumit Garg wrote: > > > > > > Signed-off-by: Sumit Garg > > > --- > > > drivers/reset/reset-qcom.c | 30 ++

Re: [PATCH] arm: dts: qcom: Sync pinctrl DT nodes with Linux bindings

2022-08-09 Thread Sumit Garg
On Sun, 7 Aug 2022 at 05:50, Ramon Fried wrote: > > On Thu, Jul 14, 2022 at 10:33 AM Sumit Garg wrote: > > > > Currently for all Qcom SoCs/boards there are separate compatibles for > > GPIO and pinctrl. But this is inconsistent with official (upstream) Linux > > bindings which requires only a sin

Re: [PATCH 04/13] reset: qcom: Add support for QCS404 SoC reset table

2022-08-09 Thread Sumit Garg
Hi Robert, Thanks for your review. On Sat, 6 Aug 2022 at 13:11, Robert Marko wrote: > > On Thu, Aug 4, 2022 at 4:28 PM Sumit Garg wrote: > > > > Signed-off-by: Sumit Garg > > --- > > drivers/reset/reset-qcom.c | 30 ++ > > 1 file changed, 30 insertions(+) > > > > d

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Marek Behún
On Tue, 9 Aug 2022 15:16:35 +0200 Marek Behún wrote: > > I agree -- I think your proposal to make this non-user-configurable is > > changing the behavior, see: > > > > Before -- you could comment the entry in include/configs/board.h out to > > deselect an option. > > After -- you can flip Kcon

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Marek Behún
On Tue, 9 Aug 2022 13:38:32 +0200 Marek Vasut wrote: > On 8/9/22 13:32, Pali Rohár wrote: > > On Tuesday 09 August 2022 13:27:38 Marek Vasut wrote: > >> On 8/9/22 13:21, Pali Rohár wrote: > >> > >> (reducing the CC list) > >> > >>> On Tuesday 09 August 2022 13:16:41 Marek Vasut wrote: > >>>

Re: [PATCH] arm: mvebu: Define env_sf_get_env_addr() for all Armada boards in SPL

2022-08-09 Thread Stefan Roese
On 09.08.22 14:45, Marek Behún wrote: On Tue, 9 Aug 2022 11:27:09 +0200 Pali Rohár wrote: On Tuesday 09 August 2022 11:20:12 Marek Behún wrote: On Mon, 8 Aug 2022 19:13:43 +0200 Pali Rohár wrote: SPI0 CS0 Flash is mapped to address range 0xD400 - 0xD7FF by BootROM. Proper U-Boo

Re: [RFC PATCH v1 9/9] tools: Add tool to create Renesas SPKG images

2022-08-09 Thread Pali Rohár
On Tuesday 09 August 2022 15:03:48 Pali Rohár wrote: > On Tuesday 09 August 2022 08:59:59 Ralph Siemsen wrote: > > From: Michel Pollet > > > > Renesas RZ/N1 devices contain BootROM code that loads a custom SPKG > > image from QSPI, NAND or USB DFU. This tool converts a binary image into > > an SP

Re: [RFC PATCH v1 9/9] tools: Add tool to create Renesas SPKG images

2022-08-09 Thread Pali Rohár
On Tuesday 09 August 2022 08:59:59 Ralph Siemsen wrote: > From: Michel Pollet > > Renesas RZ/N1 devices contain BootROM code that loads a custom SPKG > image from QSPI, NAND or USB DFU. This tool converts a binary image into > an SPKG. > > SPKGs can optionally be signed, however this tool does n

[RFC PATCH v1 8/9] board: schneider: add LCES board support

2022-08-09 Thread Ralph Siemsen
Add support for Schneider Electronics LCES1 / LCES2 boards, which are based on the Reneasas RZ/N1 SoC devices. The intention is to support both boards using a single defconfig, and to handle the differences at runtime. Signed-off-by: Ralph Siemsen --- TODO: remove the debug UART settings from lc

[RFC PATCH v1 7/9] ARM: rzn1: basic support for Renesas RZ/N1 SoC

2022-08-09 Thread Ralph Siemsen
The RZ/N1 is a family of SoC devics from Renesas, featuring: * ARM Cortex-A7 CPU (single/dual core) and/or Cortex-M3 * Integrated SRAM up to 6MB * Integrated gigabit ethernet switch * Optional DDR2/3 controller * I2C, SPI, UART, NAND, QSPI, SDIO, USB, CAN, RTC, LCD Add basic support in the form o

[RFC PATCH v1 5/9] ram: cadence: add driver for Cadence EDAC

2022-08-09 Thread Ralph Siemsen
Driver for Cadence EDAC DDR controller, as found in the Renesas RZ/N1. Only basic setup, not using the ECC features. Signed-off-by: Ralph Siemsen --- drivers/ram/Kconfig | 1 + drivers/ram/Makefile| 2 + drivers/ram/cadence/Kconfig | 24 ++ drivers/ram/cadence/M

[RFC PATCH v1 9/9] tools: Add tool to create Renesas SPKG images

2022-08-09 Thread Ralph Siemsen
From: Michel Pollet Renesas RZ/N1 devices contain BootROM code that loads a custom SPKG image from QSPI, NAND or USB DFU. This tool converts a binary image into an SPKG. SPKGs can optionally be signed, however this tool does not currently support signed SPKGs. Signed-off-by: Michel Pollet Sign

[RFC PATCH v1 6/9] dts: basic devicetree for Renesas RZ/N1 SoC

2022-08-09 Thread Ralph Siemsen
This is taken from Linux kernel 5.17, and contains just bare minimum functionality: CPU, UART and system timer. Additional functionality (from newer kernel versions) will be added later. Note that the Linux side is under active development. Signed-off-by: Ralph Siemsen --- The following changes

[RFC PATCH v1 4/9] pinctrl: renesas: add R906G032 driver

2022-08-09 Thread Ralph Siemsen
Pinctrl/pinconf driver for Renesas RZ/N1 (R906G032) SoC. This is quite rudimentary right now, and only supports applying a default pin configuration as specified by the device tree. TODO: - iterate over subnodes, so we can handle groups of pins with different bias/strength settings - use the

[RFC PATCH v1 3/9] clk: renesas: add R906G032 driver

2022-08-09 Thread Ralph Siemsen
Clock driver for the Renesas RZ/N1 SoC family. This is based on the Linux kernel drivers/clk/renesas/r9a06g032-clocks.c. Notable difference: this version avoids allocating a 'struct clk' for each clock source, as this is problematic before relocation. Instead, it uses the same approach as existing

[RFC PATCH v1 2/9] clk: renesas: prepare for non-RCAR clock drivers

2022-08-09 Thread Ralph Siemsen
Allow CONFIG_CLK_RENESAS to be set without bringing in RCAR-GEN2/3 code. CONFIG_RENESAS is used in drivers/clk/Makefile to control recursion into the drivers/clk/renesas subdirectory. It also controls compilation of renesas-cpg-mssr.c support code for the RCAR-GEN2 and RCAR-GEN3 devices. The supp

[RFC PATCH v1 1/9] ARM: armv7: add non-SPL enable for Cortex SMPEN

2022-08-09 Thread Ralph Siemsen
Commit 2564fce7eea3 ("sunxi: move Cortex SMPEN setting into start.S") added SPL_ARMV7_SET_CORTEX_SMPEN to enable setting SMP bit. For platforms not using SPL boot, add the corresponding non-SPL config, so that CONFIG_IS_ENABLED(ARMV7_SET_CORTEX_SMPEN) works as expected. Signed-off-by: Ralph Siemse

[RFC PATCH v1 0/9] Renesas RZ/N1 SoC initial support

2022-08-09 Thread Ralph Siemsen
The RZ/N1 is a family of SoC devices from Renesas [1], featuring ARM Cortex-A7 and/or Cortex-M3 CPU, industrial ethernet protocols, integrated Ethernet switch, and numerous peripherals. This is a first step in upstreaming support for the RZ/N1 family. Currently it contains just enough to boot to t

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Pali Rohár
On Tuesday 09 August 2022 13:38:32 Marek Vasut wrote: > On 8/9/22 13:32, Pali Rohár wrote: > > On Tuesday 09 August 2022 13:27:38 Marek Vasut wrote: > > > On 8/9/22 13:21, Pali Rohár wrote: > > > > > > (reducing the CC list) > > > > > > > On Tuesday 09 August 2022 13:16:41 Marek Vasut wrote: > >

Re: [PATCH] arm: mvebu: Define env_sf_get_env_addr() for all Armada boards in SPL

2022-08-09 Thread Marek Behún
On Tue, 9 Aug 2022 11:27:09 +0200 Pali Rohár wrote: > On Tuesday 09 August 2022 11:20:12 Marek Behún wrote: > > On Mon, 8 Aug 2022 19:13:43 +0200 > > Pali Rohár wrote: > > > > > SPI0 CS0 Flash is mapped to address range 0xD400 - 0xD7FF by > > > BootROM. > > > Proper U-Boot removes t

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Pali Rohár
On Tuesday 09 August 2022 13:16:41 Marek Vasut wrote: > On 8/9/22 12:58, Pali Rohár wrote: > > On Tuesday 09 August 2022 12:07:00 Philip Oberfichtner wrote: > > > This converts CONFIG_SYS_L2_PL310 to Kconfig. > > ... > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > > > index 949ebb46ba..dde

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Marek Vasut
On 8/9/22 12:58, Pali Rohár wrote: On Tuesday 09 August 2022 12:07:00 Philip Oberfichtner wrote: This converts CONFIG_SYS_L2_PL310 to Kconfig. ... diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 949ebb46ba..dde06bdd96 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -488,6 +488,1

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Pali Rohár
On Tuesday 09 August 2022 12:07:00 Philip Oberfichtner wrote: > This converts CONFIG_SYS_L2_PL310 to Kconfig. ... > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 949ebb46ba..dde06bdd96 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -488,6 +488,10 @@ config TPL_SYS_THUMB_BU

[PATCH] arm: total_compute: enable psci

2022-08-09 Thread Davidson K
psci is used for system reset Signed-off-by: Davidson K --- arch/arm/dts/total_compute.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/total_compute.dts b/arch/arm/dts/total_compute.dts index 4399269a..96edacda 100644 --- a/arch/arm/dts/total_compute.dts +++ b/arch/arm/d

[PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Philip Oberfichtner
This converts CONFIG_SYS_L2_PL310 to Kconfig. Signed-off-by: Philip Oberfichtner --- Changes in v3: new README| 2 -- arch/arm/Kconfig | 4 arch/arm/mach-mvebu/include/mach/config.h | 2 -- configs/am43xx_evm_defconfig

[PATCH v3 0/3] ARM: imx6: dh-imx6: Enable d-cache early in SPL

2022-08-09 Thread Philip Oberfichtner
This patch series enables d-cache in SPL for i.MX6 based boards from DH in order to improve boot time. This can only be achieved after migrating the corresponding symbols to Kconfig, which is done in patch 1/3 and 2/3. Changes in v3: - Introduce CONFIG_SPL_SYS_L2_PL310 - Convert

[PATCH] phy: add of_set_phy_supported() helper, call from phy_config()

2022-08-09 Thread Rasmus Villemoes
Currently, U-Boot doesn't parse a "max-speed" DT property in a phy's DT node. That property is a standard binding which should be honoured, and in linux that is done by the core phy code via a call to an of_set_phy_supported() helper. (Some ethernet drivers support a max-speed property in their DT

Please pull u-boot-marvell/master

2022-08-09 Thread Stefan Roese
Hi Tom, please pull this next batch of mostly Marvell related patches: - mvebu/turris_omina: Misc fixes and improvements (Pali & Marek) - mvebu: spl: Always fallback to BootROM boot method (Pali) - mvebu: Cleanup u-boot,dm-pre-relo

Re: [PATCH] arm: mvebu: dts: Build only arch-compatible dts files

2022-08-09 Thread Stefan Roese
On 05.08.22 13:37, Pali Rohár wrote: 64-bit Armada DTS files are not build correctly during compilation of 32-bit Armada boards and vice versa. So fix makefile build system to compile only those dts files which are compatible for the current build (64-bit Armada DTS files only for 64-bit builds a

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-09 Thread Marek Vasut
On 8/9/22 13:32, Pali Rohár wrote: On Tuesday 09 August 2022 13:27:38 Marek Vasut wrote: On 8/9/22 13:21, Pali Rohár wrote: (reducing the CC list) On Tuesday 09 August 2022 13:16:41 Marek Vasut wrote: On 8/9/22 12:58, Pali Rohár wrote: On Tuesday 09 August 2022 12:07:00 Philip Oberfichtner

Re: [PATCH v2] pci: pci_mvebu: Add support for reset-gpios

2022-08-09 Thread Stefan Roese
On 05.08.22 16:03, Pali Rohár wrote: Release PERST# signal via GPIO when "reset-gpios" is defined in device tree. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Applied to u-boot-marvell/master Thanks, Stefan --- Changes in v2: * select DM_GPIO * use asm/gpio.h --- drivers/pci/Kcon

Re: [PATCH] misc: atsha204a: Don't check for error when waking up the device

2022-08-09 Thread Stefan Roese
On 04.08.22 13:03, Pali Rohár wrote: The device ignores any levels or transitions on the SCL pin when the device is idle, asleep or during waking up. Linux kernel driver for atsha204a (atmel-sha204a.ko) also ignores return value from i2c wakeup send command, see: https://git.kernel.org/pub/scm/l

Re: [PATCH u-boot-marvell 3/3] arm64: a37xx: pinctrl: Improve description for pinmux command

2022-08-09 Thread Stefan Roese
On 04.08.22 12:41, Pali Rohár wrote: In more cases group name consist of function name followed by function number. So if function name is just prefix of group name, show group name. So in 'pinmux status -a' command output would be visible also extended function number, which is useful for debug

Re: [PATCH u-boot-marvell 2/3] arm64: a37xx: pinctrl: Remove unused macro PIN_GRP()

2022-08-09 Thread Stefan Roese
On 04.08.22 12:41, Pali Rohár wrote: Macro PIN_GRP() is not used, remove it. Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan --- drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/pinctrl/mvebu/pin

Re: [PATCH u-boot-marvell 1/3] arm64: a37xx: pinctrl: Fix definitions for MPP pins 20-22

2022-08-09 Thread Stefan Roese
On 04.08.22 12:41, Pali Rohár wrote: All 3 MPP pins (20, 21 and 22) can be configured individually and also can be configured to GPIO functions. Fix definitions for these MPP pins in existing pin groups. After this change GPIO function can be enabled just for one of these 3 pins. Signed-off-by:

Re: [PATCH 0/6] SBx81LIFKW/SBx81LIFXCAT disable KIRKWOOD_GPIO

2022-08-09 Thread Stefan Roese
On 04.08.22 11:06, Chris Packham wrote: This series makes changes to use the DM gpio APIs so that KIRKWOOD_GPIO can be disabled on these boards. Chris Packham (6): ARM: kirkwood: SBx81LIFKW: remove direct access of GPIO registers ARM: kirkwood: SBx81LIFKW: update for DM_GPIO ARM: kirkwo

Re: [PATCH] gpio: Remove mvgpio driver

2022-08-09 Thread Stefan Roese
On 04.08.22 01:43, Chris Packham wrote: The last user of this driver was removed in commit dee08b1999e2 ("arm: Remove gplugd board"). Remove the unused driver. Signed-off-by: Chris Packham Applied to u-boot-marvell/master Thanks, Stefan --- drivers/gpio/Makefile | 1 - drivers/gpio/mv

  1   2   >