Re: [PATCH v7 05/10] ram: cadence: add driver for Cadence EDAC

2023-05-12 Thread Marek Vasut
On 5/13/23 03:36, Ralph Siemsen wrote: Driver for Cadence EDAC DDR controller, as found in the Renesas RZ/N1. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut

Re: [PATCH v7 08/10] board: schneider: add RZN1 board support

2023-05-12 Thread Marek Vasut
On 5/13/23 03:36, Ralph Siemsen wrote: Add support for Schneider Electric RZ/N1D and RZ/N1S 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

Re: [PATCH v7 07/10] ARM: rmobile: Add support for Renesas RZ/N1 SoC

2023-05-12 Thread Marek Vasut
On 5/13/23 03:36, Ralph Siemsen wrote: The RZ/N1 is a family of SoC devices 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,

[PATCH v7 08/10] board: schneider: add RZN1 board support

2023-05-12 Thread Ralph Siemsen
Add support for Schneider Electric RZ/N1D and RZ/N1S 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 --- (no changes since v6) Changes in v6: -

[PATCH v7 09/10] tools: spkgimage: add Renesas SPKG format

2023-05-12 Thread Ralph Siemsen
Renesas RZ/N1 devices contain BootROM code that loads a custom SPKG image from QSPI, NAND or USB DFU. Support this format in mkimage tool. SPKGs can optionally be signed, however creation of signed SPKG is not currently supported. Example of how to use it: tools/mkimage -n

[PATCH v7 10/10] doc: renesas: add Renesas board docs

2023-05-12 Thread Ralph Siemsen
As a starting point, list all currently supported Renesas boards. For the RZ/N1 board, add details about booting and flashing. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut --- Changes in v7: - replace broken link to binman.rst Changes in v5: - added renesas dir to

[PATCH v7 07/10] ARM: rmobile: Add support for Renesas RZ/N1 SoC

2023-05-12 Thread Ralph Siemsen
The RZ/N1 is a family of SoC devices 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 for this

[PATCH v7 06/10] ARM: dts: add devicetree for Renesas RZ/N1 SoC

2023-05-12 Thread Ralph Siemsen
This is taken directly from Linux kernel 6.3 (commit 457391b0380335d5e9a5babdec90ac53928b23b4) Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut --- (no changes since v6) Changes in v6: - updated comment to reflact linux 6.3, and add commit hash. (the files themselves have not changed)

[PATCH v7 03/10] clk: renesas: add R906G032 driver

2023-05-12 Thread Ralph Siemsen
Clock driver for the Renesas RZ/N1 SoC family. This is based on Linux kernel 6.2.y drivers/clk/renesas/r9a06g032-clocks.c as found in commit 02693e11611e ("clk: renesas: r9a06g032: Repair grave increment error"), with the following additional patch series applied:

[PATCH v7 05/10] ram: cadence: add driver for Cadence EDAC

2023-05-12 Thread Ralph Siemsen
Driver for Cadence EDAC DDR controller, as found in the Renesas RZ/N1. Signed-off-by: Ralph Siemsen --- (no changes since v6) Changes in v6: - use wait_for_bit macros instead of endless while loop Changes in v5: - move board-specific init out of the driver. Changes in v3: - assorted small

[PATCH v7 04/10] pinctrl: renesas: add R906G032 driver

2023-05-12 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. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut --- (no changes since v5) Changes in v5: - add R-b tag

[PATCH v7 01/10] ARM: armv7: add non-SPL enable for Cortex SMPEN

2023-05-12 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

[PATCH v7 02/10] clk: renesas: prepare for non R-Car clock drivers

2023-05-12 Thread Ralph Siemsen
Add new CONFIG_CLK_RCAR to control compilation of shared code for R-Car clock drivers (renesas-cpg-mssr.c). Enable this for R-Car Gen2 and 3. This is necessary so that CONFIG_CLK_RENESAS can be enabled, allowing recursion into the drivers/clk/reneasas directory, without bringing in the R-Car

Re: [RFC PATCH v8 12/23] cli: Enables using hush 2021 parser as command line parser

2023-05-12 Thread Heinrich Schuchardt
On 5/12/23 22:03, Francis Laniel wrote: If one defines HUSH_2021_PARSER, it is then possible to use 2021 parser with: => cli get old => cli set 2021 => cli get 2021 We don't need such a command. Just allow only one parser. Best regards Heinrich Reviewed-by: Simon Glass Signed-off-by:

Re: [RFC PATCH v8 11/23] cmd: Add new cli command

2023-05-12 Thread Heinrich Schuchardt
On 5/12/23 22:03, Francis Laniel wrote: This command can be used to print the current parser with 'cli print'. It can also be used to set the current parser with 'cli set'. For the moment, only one value is valid for set: old. What would be the benefit having multiple alternative parsers in

Re: [RFC PATCH v8 10/23] global_data.h: add GD_FLG_HUSH_OLD_PARSER flag

2023-05-12 Thread Heinrich Schuchardt
On 5/12/23 22:03, Francis Laniel wrote: This flag is used to indicate we are using the hush parser. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- common/cli.c | 2 ++ include/asm-generic/global_data.h | 4 2 files changed, 6 insertions(+) diff --git

Re: [RFC PATCH v8 09/23] cli: Add menu for hush parser

2023-05-12 Thread Heinrich Schuchardt
On 5/12/23 22:03, Francis Laniel wrote: For the moment, the menu contains only entry: HUSH_OLD_PARSER which is the default. The goal is to prepare the field to add a new hush parser which guarantees actual behavior is still correct. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel ---

[PATCH 1/1] efi_loader: support booting semihosting file

2023-05-12 Thread Heinrich Schuchardt
Executing an EFI binary fails for files loaded via semihosting. Construct a dummy device path for EFI binaries loaded via semihosting. A future complete solution may include the creation of a handle with a simple file system protocol. Reported-by: Andre Przywara Signed-off-by: Heinrich

[u-boot-test-hooks PATCH 1/1] qemu_arm64_na: enable semihosting

2023-05-12 Thread Heinrich Schuchardt
For testing semihosting we need to pass parameter -semihosting. Signed-off-by: Heinrich Schuchardt --- bin/travis-ci/conf.qemu_arm64_na | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/travis-ci/conf.qemu_arm64_na b/bin/travis-ci/conf.qemu_arm64_na index 14577d8..e195b5e

Re: [PATCH v3 03/11] eeprom: starfive: Enable ID EEPROM configuration

2023-05-12 Thread Bo Gan
On 4/27/23 7:25 PM, Yanhong Wang wrote: +struct starfive_eeprom { + struct eeprom_header header; + struct starfive_eeprom_atom1 atom1; + struct starfive_eeprom_atom4 atom4; +}; + +static uchar eeprom_buf[STARFIVE_EEPROM_HATS_SIZE_MAX]; + +struct starfive_eeprom *pbuf = (struct

[PATCH 1/1] semihosting: create file in smh_fs_write_at()

2023-05-12 Thread Heinrich Schuchardt
If a file does not exist, it should be created. Fixes: f676b45151c3 ("fs: Add semihosting filesystem") Signed-off-by: Heinrich Schuchardt --- fs/semihostingfs.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/semihostingfs.c b/fs/semihostingfs.c index 96eb3349a2..3592338a68 100644

Re: [RFC PATCH v8 23/23] DO NOT MERGE: only to make CI happy

2023-05-12 Thread Tony Dinh
Hi Francis, On Fri, May 12, 2023 at 1:07 PM Francis Laniel wrote: > > This commit set CONFIG_HUSH_PARSER_2021 as the default to trigger the CI with > this parser. > > Nonetheless, the keymile (i.e. VENDOR_KM) board family is not compatible with > new 2021 hush parser. > Indeed, This boards used

Re: [PATCH v5 08/10] board: schneider: add RZN1 board support

2023-05-12 Thread Marek Vasut
On 5/12/23 22:15, Ralph Siemsen wrote: Add support for Schneider Electric RZ/N1D and RZ/N1S 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

Re: [PATCH v5 07/10] ARM: rmobile: Add support for Renesas RZ/N1 SoC

2023-05-12 Thread Marek Vasut
On 5/12/23 22:15, Ralph Siemsen wrote: The RZ/N1 is a family of SoC devices 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,

[RFC PATCH v8 12/23] cli: Enables using hush 2021 parser as command line parser

2023-05-12 Thread Francis Laniel
If one defines HUSH_2021_PARSER, it is then possible to use 2021 parser with: => cli get old => cli set 2021 => cli get 2021 Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- cmd/Kconfig | 8 + cmd/cli.c | 7 - common/Makefile

[PATCH v5 00/10] Renesas RZ/N1 SoC initial support

2023-05-12 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

[PATCH v5 08/10] board: schneider: add RZN1 board support

2023-05-12 Thread Ralph Siemsen
Add support for Schneider Electric RZ/N1D and RZ/N1S 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 --- Changes in v6: - move board-specific DDR

[PATCH v5 10/10] doc: renesas: add Renesas board docs

2023-05-12 Thread Ralph Siemsen
As a starting point, list all currently supported Renesas boards. For the RZ/N1 board, add details about booting and flashing. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut --- (no changes since v5) Changes in v5: - added renesas dir to doc/board/index.rst - corrections to list of

[PATCH v5 09/10] tools: spkgimage: add Renesas SPKG format

2023-05-12 Thread Ralph Siemsen
Renesas RZ/N1 devices contain BootROM code that loads a custom SPKG image from QSPI, NAND or USB DFU. Support this format in mkimage tool. SPKGs can optionally be signed, however creation of signed SPKG is not currently supported. Example of how to use it: tools/mkimage -n

[PATCH v5 03/10] clk: renesas: add R906G032 driver

2023-05-12 Thread Ralph Siemsen
Clock driver for the Renesas RZ/N1 SoC family. This is based on Linux kernel 6.2.y drivers/clk/renesas/r9a06g032-clocks.c as found in commit 02693e11611e ("clk: renesas: r9a06g032: Repair grave increment error"), with the following additional patch series applied:

[PATCH v5 07/10] ARM: rmobile: Add support for Renesas RZ/N1 SoC

2023-05-12 Thread Ralph Siemsen
The RZ/N1 is a family of SoC devices 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 for this

[PATCH v5 05/10] ram: cadence: add driver for Cadence EDAC

2023-05-12 Thread Ralph Siemsen
Driver for Cadence EDAC DDR controller, as found in the Renesas RZ/N1. Signed-off-by: Ralph Siemsen --- Changes in v6: - use wait_for_bit macros instead of endless while loop Changes in v5: - move board-specific init out of the driver. Changes in v3: - assorted small cleanups - support

[PATCH v5 06/10] ARM: dts: add devicetree for Renesas RZ/N1 SoC

2023-05-12 Thread Ralph Siemsen
This is taken directly from Linux kernel 6.3 (commit 457391b0380335d5e9a5babdec90ac53928b23b4) Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut --- Changes in v6: - updated comment to reflact linux 6.3, and add commit hash. (the files themselves have not changed) Changes in v5: -

[PATCH v5 04/10] pinctrl: renesas: add R906G032 driver

2023-05-12 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. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut --- (no changes since v5) Changes in v5: - add R-b tag

[PATCH v5 02/10] clk: renesas: prepare for non R-Car clock drivers

2023-05-12 Thread Ralph Siemsen
Add new CONFIG_CLK_RCAR to control compilation of shared code for R-Car clock drivers (renesas-cpg-mssr.c). Enable this for R-Car Gen2 and 3. This is necessary so that CONFIG_CLK_RENESAS can be enabled, allowing recursion into the drivers/clk/reneasas directory, without bringing in the R-Car

[PATCH v5 01/10] ARM: armv7: add non-SPL enable for Cortex SMPEN

2023-05-12 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

Re: [PATCH v5 09/10] tools: spkgimage: add Renesas SPKG format

2023-05-12 Thread Ralph Siemsen
On Tue, May 09, 2023 at 11:42:30AM -0400, Ralph Siemsen wrote: On Tue, May 09, 2023 at 04:52:45PM +0200, Marek Vasut wrote: Do we have some sort of global (?) state structure which exists during the whole work cycle of the tool ? If so, add a link list into there. There is struct

Re: [PATCH v5 08/10] board: schneider: add RZN1 board support

2023-05-12 Thread Ralph Siemsen
On Tue, May 09, 2023 at 09:21:02AM -0400, Ralph Siemsen wrote: On Tue, May 09, 2023 at 04:26:57AM +0200, Marek Vasut wrote: On 5/8/23 20:23, Ralph Siemsen wrote: I moved it to board-specific directory as an interim step. Hopefully we can do some consolidation of the multiple CDNS DDR

[RFC PATCH v8 22/23] cli: hush_2021: Add upstream commits up to 9th May 2023.

2023-05-12 Thread Francis Laniel
This commit adds the following hush busybox upstream commits: 3a7f00eadcf4 ("hush: add comment about abort on syntax error %{^}") acae889dd972 ("ash,hush: tab completion of functions and aliases") 90b607d79a13 ("hush: quote variable values printed by "set" (match ash behavior)") 6748e6494c22

[RFC PATCH v8 21/23] test: hush: Fix loop tests for hush 2021

2023-05-12 Thread Francis Laniel
Modifies return code got from while loop as hush 2021 always returns 0 from while loop. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- test/hush/loop.c | 34 ++ 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/test/hush/loop.c

[RFC PATCH v8 19/23] cli: hush_2021: Enable if keyword

2023-05-12 Thread Francis Laniel
Adds support for "if then else" construct both for command line interface and through run_command(). Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_2021.c | 11 +++ common/cli_hush_upstream.c | 12 2 files changed, 15 insertions(+), 8

[RFC PATCH v8 23/23] DO NOT MERGE: only to make CI happy

2023-05-12 Thread Francis Laniel
This commit set CONFIG_HUSH_PARSER_2021 as the default to trigger the CI with this parser. Nonetheless, the keymile (i.e. VENDOR_KM) board family is not compatible with new 2021 hush parser. Indeed, This boards used set_local_var() to store some variables as local shell. They then used

[RFC PATCH v8 11/23] cmd: Add new cli command

2023-05-12 Thread Francis Laniel
This command can be used to print the current parser with 'cli print'. It can also be used to set the current parser with 'cli set'. For the moment, only one value is valid for set: old. Signed-off-by: Francis Laniel --- cmd/Makefile | 2 + cmd/cli.c | 120

[RFC PATCH v8 09/23] cli: Add menu for hush parser

2023-05-12 Thread Francis Laniel
For the moment, the menu contains only entry: HUSH_OLD_PARSER which is the default. The goal is to prepare the field to add a new hush parser which guarantees actual behavior is still correct. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- cmd/Kconfig | 13 +

[RFC PATCH v8 18/23] cli: hush_2021: Enable using < and > as string compare operators

2023-05-12 Thread Francis Laniel
In Busybox hush, '<' and '>' are used as redirection operators. For example, cat foo > bar will write content of file foo inside file bar. In U-Boot, we do not have file system, so we can hardly redirect command output inside a file. But, in actual U-Boot hush, these operators ('<' and '>') are

[RFC PATCH v8 17/23] test: hush: Fix variable expansion tests for hush 2021

2023-05-12 Thread Francis Laniel
Modifies the expected result for hush 2021. Indeed, there were bugs in actual U-Boot hush which were fixed in upstream Busybox. As hush 2021 is based on upstream Busybox, these bugs no longer exist. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- test/hush/dollar.c | 79

[RFC PATCH v8 16/23] test: hush: Fix instructions list tests for hush 2021

2023-05-12 Thread Francis Laniel
Modifies the expected result for hush 2021. Indeed, there were bugs in actual U-Boot hush which were fixed in upstream Busybox. As hush 2021 is based on upstream Busybox, these bugs no longer exist. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- test/hush/list.c | 69

[RFC PATCH v8 10/23] global_data.h: add GD_FLG_HUSH_OLD_PARSER flag

2023-05-12 Thread Francis Laniel
This flag is used to indicate we are using the hush parser. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- common/cli.c | 2 ++ include/asm-generic/global_data.h | 4 2 files changed, 6 insertions(+) diff --git a/common/cli.c b/common/cli.c index

[RFC PATCH v8 20/23] cli: hush_2021: Enable loops

2023-05-12 Thread Francis Laniel
Enables the use of for, while and until loops for command line as well as with run_command(). Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_2021.c | 1 + common/cli_hush_upstream.c | 15 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff

[RFC PATCH v8 15/23] cli: add hush 2021 as parser for run_command*()

2023-05-12 Thread Francis Laniel
Enables using, in code, hush 2021 as parser for run_command function family. It also enables the command run to be used by CLI user of hush 2021. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- common/cli.c | 63 --

[RFC PATCH v8 08/23] cli: Port Busybox 2021 hush to U-Boot

2023-05-12 Thread Francis Laniel
Adds new file cli_hush_2021.c, it is a copy of Busybox hush file as it was of time to commit 37460f5da. This commit modifies Busybox hush to not compile some part specific to Busybox and adds some code needed by U-Boot. The modifications consists mainly on adding code #if(n)def guards. For the

[RFC PATCH v8 14/23] cli: hush_2021: Add functions to be called from run_command()

2023-05-12 Thread Francis Laniel
run_command() is called internally by the command run and it can also be called directly from U-Boot code, e.g. to do unit tests. This commit adds this path to go to hush 2021. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_upstream.c | 66

[RFC PATCH v8 13/23] cli: hush_2021: Enable variables expansion for hush 2021

2023-05-12 Thread Francis Laniel
Enables variables expansion for hush 2021, both for local and environment variables. So the following commands: foo=bar echo $foo setenv bar foo echo $bar leads to "bar" and "foo" being printed on console output. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_2021.c

[RFC PATCH v8 06/23] test: hush: Test hush loops

2023-05-12 Thread Francis Laniel
The added tests verifies correct behavior of for, while and until loops. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/hush/Makefile | 1 + test/hush/loop.c | 65 ++ 2 files changed, 66 insertions(+) create mode 100644

[RFC PATCH v8 05/23] test: hush: Test hush commands list

2023-05-12 Thread Francis Laniel
Verifies behavior of commands separated by ';', '&&' and '||'. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/hush/Makefile | 1 + test/hush/list.c | 79 ++ 2 files changed, 80 insertions(+) create mode 100644 test/hush/list.c

[RFC PATCH v8 04/23] test: hush: Test hush variable expansion

2023-05-12 Thread Francis Laniel
Verifies shell variables are replaced by their values. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- test/hush/Makefile | 1 + test/hush/dollar.c | 167 +++ test/py/tests/test_ut.py | 8 +- 3 files changed, 175 insertions(+), 1

[RFC PATCH v8 03/23] test/py: hush_if_test: Remove the test file

2023-05-12 Thread Francis Laniel
5804ebfeb1ce ("test: hush: Test hush if/else") translated this test to a C test, so this python file is no more needed. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/py/tests/test_hush_if_test.py | 197 - 1 file changed, 197 deletions(-) delete

[RFC PATCH v8 02/23] test: hush: Test hush if/else

2023-05-12 Thread Francis Laniel
As asked in commit 9c6bf1715f6a ("test/py: hush_if_test: Add tests to cover octal/hex values"), this commit translates test_hush_if_test.py to a C test. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/hush/Makefile | 1 + test/hush/if.c | 316

[RFC PATCH v8 01/23] test: Add framework to test hush behavior

2023-05-12 Thread Francis Laniel
Introduce a new subcommand to ut: ut hush. For the moment, this command does nothing, future commits will add tests which will be run on command call. Note that CONFIG_HUSH_PARSER must be defined to compile this new subcommand. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass ---

[RFC PATCH v8 00/23] Modernize U-Boot shell

2023-05-12 Thread Francis Laniel
Hi. During 2021 summer, Sean Anderson wrote a contribution to add a new shell, based on LIL, to U-Boot [1, 2]. While one of the goals of this contribution was to address the fact actual U-Boot shell, which is based on Busybox hush, is old there was a discussion about adding a new shell versus

[PATCH 1/1] efi_loader: print file path w/o boot device

2023-05-12 Thread Heinrich Schuchardt
Helloworld.efi should print the file path even if the boot device is not set. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/helloworld.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/efi_loader/helloworld.c b/lib/efi_loader/helloworld.c index

Re: [PATCH 2/2] arm: mach-k3: j721s2: clk-data.c: Add main_uart5 clock data

2023-05-12 Thread Bryan Brattlof
Hi Bhavya! On May 11, 2023 thus sayeth Bhavya Kapoor: > Add main_uart5 clocks in clk-data.c for J721S2. Now, > main_uart5 clocks will be set up while booting the J721S2 SoC. > > Signed-off-by: Bhavya Kapoor > --- > arch/arm/mach-k3/j721s2/clk-data.c | 7 +-- > 1 file changed, 5

[PATCH] board: rockchip: Add Support for RG353PS and Panel Auto Detection

2023-05-12 Thread Chris Morgan
From: Chris Morgan Add support for panel auto detection for the Anbernic RGxx3 series. This requires us to probe the DSI and DSI-DPHY controllers so that we may send a MIPI_DCS_GET_DISPLAY_ID command to the panel to find out which panel we are running. This requires creating a kind of "skeleton"

Re: U-Boot OMAP GPMC ECC change

2023-05-12 Thread Colin Foster
Hi Roger, On Fri, May 12, 2023 at 02:53:07PM +0300, Roger Quadros wrote: > > > On 10/05/2023 18:38, Colin Foster wrote: > > > > This is still out-of-U-Boot. I have an include/configs/our_product.h > > file with this: > > > > """ > > #define CFG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7,

Re: [PATCH 2/5] mmc: rockchip_sdhci: Disable DMA mode using a device tree property

2023-05-12 Thread Quentin Schulz
Hi Jonas, On 5/6/23 19:41, Jonas Karlman wrote: Loading part of TF-A into SRAM from eMMC using DMA fails on RK3399 similar to other Rockchip SoCs. Checksum validation fails with: ## Checking hash(es) for Image atf-2 ... sha256 error! Bad hash value for 'hash' hash node in 'atf-2' image

Re: [PATCH 1/5] mmc: rockchip_sdhci: Skip blocks read workaround on RK3399

2023-05-12 Thread Quentin Schulz
Hi Jonas, On 5/6/23 19:41, Jonas Karlman wrote: The workaround to limit number of blocks to read in a single command should only be applied to RK3568 and RK3588. Change to be more strict when to apply the workaround. Fixes: 2cc6cde647e2 ("mmc: rockchip_sdhci: Limit number of blocks read in a

[PATCH 16/18] DONOTMERGE: arch: arm: dts: k3-j784s4-evm: Add TI TPS6594 PMIC support

2023-05-12 Thread Apelete Seketeli
Add support for TPS6594 PMIC devices : - overlaying regulators definition with compatible device, - watchdog on MCU_I2C0 bus. Signed-off-by: Apelete Seketeli --- arch/arm/dts/k3-j784s4-evm-u-boot.dtsi | 12 1 file changed, 12 insertions(+) diff --git

[PATCH 18/18] configs: j784s4_evm_a72: Enable TI TPS6594 PMIC support

2023-05-12 Thread Apelete Seketeli
Enable TPS6594 PMIC support (regulators and watchdog) for j784s4 SoC. PMIC is controlled by SoC through I2C interface. Signed-off-by: Apelete Seketeli --- configs/j784s4_evm_a72_defconfig | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git

[PATCH 17/18] arch: arm: dts: k3-j784s4-r5-evm: Add TI TPS6594 PMIC support

2023-05-12 Thread Apelete Seketeli
Add support for TPS6594 PMIC devices : - regulators (bucks and LDOs) on WKUP_I2C0 bus, - watchdog on MCU_I2C0 bus. Signed-off-by: Apelete Seketeli --- arch/arm/dts/k3-j784s4-r5-evm.dts | 134 ++ 1 file changed, 134 insertions(+) diff --git

[PATCH 15/18] board: ti: k3-j721s2: Enable AVS0 on board init

2023-05-12 Thread Apelete Seketeli
From: Esteban Blanc Signed-off-by: Esteban Blanc Signed-off-by: Apelete Seketeli --- board/ti/j721s2/evm.c | 9 + 1 file changed, 9 insertions(+) diff --git a/board/ti/j721s2/evm.c b/board/ti/j721s2/evm.c index ec7abea387..818edea686 100644 --- a/board/ti/j721s2/evm.c +++

[PATCH 14/18] board: ti: k3-j721s2: Force TPS65941 PMIC WD disable

2023-05-12 Thread Apelete Seketeli
From: Esteban Blanc Signed-off-by: Esteban Blanc Signed-off-by: Apelete Seketeli --- board/ti/j721s2/evm.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/board/ti/j721s2/evm.c b/board/ti/j721s2/evm.c index 8eaca9d5af..ec7abea387 100644 --- a/board/ti/j721s2/evm.c

[PATCH 13/18] configs: j721s2_evm: Enable TP6594 PMIC and AVS0

2023-05-12 Thread Apelete Seketeli
From: Esteban Blanc Add support for TPS6594 family regulators and watchdog. Add support for AVS0. PMIC is controlled by SoC through I2C interface. Add dm, pmic and regulators commands to allow testing. Signed-off-by: Esteban Blanc Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli

[PATCH 12/18] DONOTMERGE: arch: arm: dts: k3-j721s2: Add TPS6594 family PMICs

2023-05-12 Thread Apelete Seketeli
From: Jerome Neanne Add support for TPS6594 PMIC family devices: - regulators (bucks and LDOs) on main WKUP_I2C0 bus, - watchdog on MCU_I2C0 bus. Signed-off-by: Esteban Blanc Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli --- .../k3-j721s2-common-proc-board-u-boot.dtsi | 37

[PATCH 11/18] DONOTMERGE: arm: dts: k3-j7200: Add TP6594 family PMICs

2023-05-12 Thread Apelete Seketeli
From: Jerome Neanne Add support for TPS6594 PMIC family devices: - regulators (bucks and LDOs) on WKUP_I2C0 bus, - watchdog on MCU_I2C0 bus. Signed-off-by: Esteban Blanc Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli --- .../k3-j7200-common-proc-board-u-boot.dtsi| 27

[PATCH 10/18] configs: j7200_evm: Enable TP6594 family PMICs

2023-05-12 Thread Apelete Seketeli
From: Esteban Blanc Add support for TPS6594 family regulators and watchdog. PMIC is controlled by SoC through I2C interface. Add dm, pmic and regulators commands to allow testing Signed-off-by: Esteban Blanc Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli ---

[PATCH 09/18] DONOTMERGE: arm: dts: k3-am62a7-sk: Add TI TPS6593 PMIC support

2023-05-12 Thread Apelete Seketeli
From: Jerome Neanne Add support for TPS6593 PMIC devices: - regulators (bucks and LDOs) on main I2C0 bus, - watchdog on MCU I2C0 bus. Signed-off-by: Julien Panis Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli --- arch/arm/dts/k3-am62a7-sk-u-boot.dtsi | 24

[PATCH 08/18] configs: am62ax_evm_a53: Enable support for TI TPS6593 PMIC

2023-05-12 Thread Apelete Seketeli
From: Julien Panis Add support for TPS6593 regulators and watchdog. PMIC is controlled by SoC through I2C interface. Signed-off-by: Julien Panis Signed-off-by: Apelete Seketeli --- configs/am62ax_evm_a53_defconfig | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH 07/18] DONOTMERGE: arm: dts: k3-j721e: realign node name on linux dts name

2023-05-12 Thread Apelete Seketeli
From: Jerome Neanne Change node name to reuse Linux common dts naming style. Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli --- arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 06/18] DONOTMERGE: arm: dts: k3-j721e: refactor r5 board file to use Linux dts tps6594 description

2023-05-12 Thread Apelete Seketeli
From: Jerome Neanne Use a copy of Linux dts for TPS6594 PMIC description instead of custom u-boot Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli --- .../arm/dts/k3-j721e-r5-common-proc-board.dts | 48 +-- 1 file changed, 22 insertions(+), 26 deletions(-) diff

[PATCH 03/18] configs: j721e_evm: Add support for TPS65941 PMICs on j721e TI EVM board

2023-05-12 Thread Apelete Seketeli
From: Jerome Neanne Add PMIC and regulators feature support for j721e. PMIC is controlled by SoC through I2C interface. Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli --- configs/j721e_evm_a72_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 05/18] DONOTMERGE: arm: dts: k3-j721e: u-boot overlay for TI tps6594 PMIC

2023-05-12 Thread Apelete Seketeli
From: Jerome Neanne j721e board includes 2 instances of TPS6594: - Primary PMIC - Secondary PMIC Add AVS class0 in u-boot SPL. AVS is supported only on CPU rail: vdd_cpu_avs. This rail is supplied by the primary PMIC: tps659413 This rail is supplied by a dual-phased buck: buck12. Other PMICs

[PATCH 04/18] board: ti: k3-j721e: Force TPS65941 PMIC WD disable on j721e TI EVM board

2023-05-12 Thread Apelete Seketeli
From: Jerome Neanne Using uclass_probe_all forces probe on all devices: Only probe for WD stop is really needed here. Probing other devices has no impact. Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli --- board/ti/j721e/evm.c | 8 1 file changed, 8 insertions(+) diff

[PATCH 02/18] drivers: regulator: Fixes for TPS65941 LDO voltage conversion

2023-05-12 Thread Apelete Seketeli
From: Jerome Neanne Fixes: 065a452ae6a power: regulator: tps65941: add regulator support LDO voltage conversion was incorrect. This was checked by writing and reading back value. Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli --- drivers/power/regulator/tps65941_regulator.c |

[PATCH 01/18] drivers: pmic: TPS65941 add support for WD disable

2023-05-12 Thread Apelete Seketeli
From: Jerome Neanne This is not a proper WD driver because it's not planned to support WD driver for PMIC in u-boot at any time. The purpose is just WD disable. Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli --- drivers/power/pmic/tps65941.c | 61

Subject: [PATCH v3 00/18] TI TPS6594 PMIC support for multiple TI EVMs

2023-05-12 Thread Apelete Seketeli
TPS6594 is a Power Management IC which provides regulators and others features like GPIOs, RTC, watchdog, ESMs (Error Signal Monitor), and PFSM (Pre-configurable Finite State Machine). The SoC and the PMIC can communicate through the I2C or SPI interfaces. TPS6594 is the super-set device while

Re: [GIT PULL] please pull fsl-qoirq-2023-5-5

2023-05-12 Thread Tom Rini
On Fri, May 12, 2023 at 03:40:37PM +0800, Peng Fan wrote: > Hi Tom, > > On 5/6/2023 1:14 AM, Tom Rini wrote: > > On Fri, May 05, 2023 at 03:19:27AM +, Peng Fan wrote: > > > > > Hi Tom, > > > > > > Please pull fsl-qoirq-2023-5-5 > > > > > > > I've applied this to u-boot/master now, thanks.

Re: [PATCH] efi: fix semihosting EFI payload booting

2023-05-12 Thread Andre Przywara
On Thu, 11 May 2023 17:23:13 +0200 Heinrich Schuchardt wrote: Hi Heinrich, Ilias, > On 5/11/23 10:59, Andre Przywara wrote: > > On Thu, 11 May 2023 08:22:30 +0200 > > Heinrich Schuchardt wrote: > > > >> On 5/11/23 02:00, Andre Przywara wrote: > >>> On Wed, 10 May 2023 23:19:33 +0200 > >>>

Re: [PATCH] ARM: stm32: Fix OF_LIST on DHCOR

2023-05-12 Thread Patrick DELAUNAY
Hi, On 5/5/23 02:11, Tom Rini wrote: The ITS file used to build the images here lists three dtb files as being used. Today, these are built by the logic that will over-build dtb files based on SOC/etc symbols being set. To future proof this platform and be generally correct, we list all 3 of

Re: [PATCH 1/3] usb: Tidy up the usb_start flag

2023-05-12 Thread Patrick DELAUNAY
Hi, On 5/6/23 04:03, Simon Glass wrote: This should be declared in a header file so that type-checking works correctly. Add a single declaration to usb.h and remove the others. Signed-off-by: Simon Glass --- cmd/usb.c | 1 - common/usb.c | 2 +-

Re: [PATCH] ARM: stm32: Add IWDG handling into PSCI suspend code

2023-05-12 Thread Marek Vasut
On 5/12/23 15:43, Patrick DELAUNAY wrote: Hi, Hi, +    /* Ping IWDG2 and ACK pretimer IRQ */ +    if (iwdg2_wake) { +    writel(IWDG_KR_RELOAD_KEY, STM32_IWDG2_BASE + IWDG_KR); +    writel(IWDG_EWCR_EWIC, STM32_IWDG2_BASE + IWDG_EWCR); +    } +    }    

Re: [PATCH] ARM: stm32: Add missing header for save_boot_params

2023-05-12 Thread Patrick DELAUNAY
Hi, On 5/4/23 21:52, Marek Vasut wrote: The get_stm32mp_rom_api_table() function is defined in sys_params.h , add the missing header to avoid compiler warning. Fixes: dbeaca79b79 ("ARM: stm32: Factor out save_boot_params") Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick

Re: [Uboot-stm32] [PATCH] ARM: stm32: Use __section(".data") with dot in the section name on DHSOM

2023-05-12 Thread Patrick DELAUNAY
Hi, On 5/4/23 21:52, Marek Vasut wrote: The correct specifier of the section is ".data" and not "data", use the former to place the variables in ".data" section. Fixes: 731fd50e27f ("ARM: stm32: Implement board coding on AV96") Fixes: 92ca0f7446c ("ARM: dts: stm32: Synchronize DDR setttings on

Re: [Uboot-stm32] [PATCH v2] ARM: stm32: Add IWDG handling into PSCI suspend code

2023-05-12 Thread Patrick DELAUNAY
Hi, On 5/11/23 21:55, Marek Vasut wrote: In case the IWDG is enabled by either U-Boot or Linux, the IWDG can never be disabled again. That includes low power states, which means that if the IWDG is enabled, the SoC would reset itself after a while in suspend via the IWDG. This is not desired

Re: [PATCH] ARM: stm32: Add IWDG handling into PSCI suspend code

2023-05-12 Thread Patrick DELAUNAY
Hi, On 5/11/23 13:54, Marek Vasut wrote: On 5/11/23 08:39, Patrice CHOTARD wrote: Hi, On 5/11/23 02:22, Marek Vasut wrote: In case the IWDG is enabled by either U-Boot or Linux, the IWDG can never be disabled again. That includes low power states, which means that if the IWDG is enabled,

Re: [PATCH v11 05/10] arm_ffa: introduce armffa command

2023-05-12 Thread Abdellatif El Khlifi
Hi Simon, > > On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi > wrote: > > > > Provide armffa command showcasing the use of the U-Boot FF-A support > > > > armffa is a command showcasing how to invoke FF-A operations. > > This provides a guidance to the client developers on how to > > call

[PATCH 1/2] arm: mach-k3: j7200: dev-data.c: Add main_uart1 device data

2023-05-12 Thread Bhavya Kapoor
Add device data for main_uart1 in dev-data.c for J7200. Now, main_uart1 will be powered on while booting the J7200 SoC. Signed-off-by: Bhavya Kapoor --- arch/arm/mach-k3/j7200/dev-data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/j7200/dev-data.c

[PATCH 2/2] arm: mach-k3: j7200: clk-data.c: Add main_uart1 clock data

2023-05-12 Thread Bhavya Kapoor
Add main_uart1 clocks in clk-data.c for J7200. Now, main_uart1 clocks will be set up while booting the J7200 SoC. Signed-off-by: Bhavya Kapoor --- arch/arm/mach-k3/j7200/clk-data.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-k3/j7200/clk-data.c

[PATCH 0/2] arm: mach-k3: j7200: Add main_uart1 device and clock data

2023-05-12 Thread Bhavya Kapoor
Add device data and clock data for main_uart1 for J7200 SoC so that main_uart1 will be powered on and its clock will be set up while booting the J7200 SoC. Bhavya Kapoor (2): arm: mach-k3: j7200: dev-data.c: Add main_uart1 device data arm: mach-k3: j7200: clk-data.c: Add main_uart1 clock data

Passing ethaddr and eth1addr from FSBL @ 0xfffffc00 not working anymore

2023-05-12 Thread Vincent van Beveren
Hi, I hope this is the right mailing list to ask beginners questions. I've asked this question also a the Xilinxs forum (Petalinux based board), without much help.. but it must be something simple, but I don't know much about u-boot yet. Previously using Petalinux 2019.1 (not sure which

Re: [PATCH v5 01/17] riscv: cpu: jh7110: Add support for jh7110 SoC

2023-05-12 Thread Bo Gan
On 3/28/23 8:42 PM, Yanhong Wang wrote: +void harts_early_init(void) +{ + ulong *ptr; + u8 *tmp; + ulong len, remain; + /* +* Feature Disable CSR +* +* Clear feature disable CSR to '0' to turn on all features for +* each core. This

  1   2   >