Re: [PATCH v3] dt-bindings: riscv: deprecate riscv,isa

2023-06-28 Thread Palmer Dabbelt
On Wed, 28 Jun 2023 08:31:32 PDT (-0700), apa...@ventanamicro.com wrote: On Wed, Jun 28, 2023 at 7:46 PM Palmer Dabbelt wrote: On Tue, 27 Jun 2023 08:49:06 PDT (-0700), Palmer Dabbelt wrote: > On Mon, 26 Jun 2023 23:52:06 PDT (-0700), apa...@ventanamicro.com wrote: >> On Tue, Jun 27, 2023 at

Re: [RESEND PATCH v1 4/4] doc: t-head: lpi4a: document Lichee PI 4A board

2023-06-28 Thread Leo Liang
Hi YiXun, On Fri, May 26, 2023 at 08:41:07PM +0800, Yixun Lan wrote: > Reviewed-by: Wei Fu > Signed-off-by: Yixun Lan > --- > doc/board/index.rst | 1 + > doc/board/thead/index.rst | 9 +++ > doc/board/thead/lpi4a.rst | 112 ++ > 3 files changed,

Re: [RESEND PATCH v1 1/4] riscv: t-head: licheepi4a: initial support added

2023-06-28 Thread Leo Liang
Hi YiXun, On Fri, May 26, 2023 at 08:41:04PM +0800, Yixun Lan wrote: > Add support for Sipeed's Lichee Pi 4A board which based on > T-HEAD's TH1520 SoC, only minimal device tree and serial onsole are enabled, > so it's capable of chain booting from T-HEAD's vendor u-boot. > > Reviewed-by: Wei Fu

[PATCH] cmd: efidebug: add missing efi_free_pool for dh subcommand

2023-06-28 Thread Masahisa Kojima
This adds the missing efi_free_pool call for dh subcommand. Signed-off-by: Masahisa Kojima --- cmd/efidebug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 9622430c47..0be3af3e76 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -486,6 +486,7 @@

Re: EFI Secure boot default keys

2023-06-28 Thread AKASHI Takahiro
On Wed, Jun 28, 2023 at 04:26:58PM +, Neil Jones wrote: > Please can someone describe the format of the file needed for the default / > built-in EFI secure boot keys (ubootefi.var) > > The only docs I have found suggest its best to enroll the keys from within > u-boot onto some removable

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

2023-06-28 Thread Tom Rini
> (2023-06-22 09:59:43 -0400) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-amlogic.git > tags/u-boot-amlogic-next-20230628 > > for you to fetch changes up to 58edf5773adcc95105bbd814dcbe43b1d9804391: > > drivers:

Re: [PATCH 06/12] binman: Convert mkimage to Entry_section

2023-06-28 Thread Jonas Karlman
Hi Simon, On 2023-06-28 13:41, Simon Glass wrote: > From: Marek Vasut > > This is needed to handle mkimage with inner section located itself in a > section. > > Signed-off-by: Marek Vasut > Use BuildSectionData() instead of ObtainContents(), add tests and a few > other minor fixes: >

EFI Secure boot default keys

2023-06-28 Thread Neil Jones
Please can someone describe the format of the file needed for the default / built-in EFI secure boot keys (ubootefi.var) The only docs I have found suggest its best to enroll the keys from within u-boot onto some removable media, then copy this off and use this as the default, this is not very

[PATCH] net: ksz9477: add support for KSZ9893 GbE switch

2023-06-28 Thread Karsten Wiese
Copy and tweak the required code from the linux kernel. Only the KSZ9893 has been tested. Signed-off-by: Karsten Wiese --- drivers/net/ksz9477.c | 103 -- 1 file changed, 89 insertions(+), 14 deletions(-) diff --git a/drivers/net/ksz9477.c

Re: [PATCH 2/5] rockchip: rk3399-pinebook-pro: Fix SPL max size and SPI flash payload offset

2023-06-28 Thread Jonas Karlman
Hi Quentin, On 2023-06-28 15:49, Quentin Schulz wrote: > Hi Jonas, > > On 6/27/23 21:10, Jonas Karlman wrote: >> TPL max size is limited to 184 KB, SPL is loaded to 0x0 and TF-A is >> loaded to 0x4, this limit SPL max size to 256 KB. With BootRom only >> reading first 2 KB per 4 KB page of

[PATCH v2 4/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION_*

2023-06-28 Thread Detlev Casanova
Expose that information to the command shell to let scripts select the correct devicetree name. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 103 +++- 1 file changed, 70 insertions(+), 33 deletions(-) diff --git a/drivers/sysinfo/rcar3.c

[PATCH v2 2/4] cmd: Add a sysinfo command

2023-06-28 Thread Detlev Casanova
The command is able to show different information for the running system: * Model name * Board ID * Revision This command can be used by boot shell scripts to select configurations depending on the specific running system. Signed-off-by: Detlev Casanova --- cmd/Kconfig | 6 +++

[PATCH v2 3/4] sysinfo: rcar3: Use int instead of char for revision

2023-06-28 Thread Detlev Casanova
To be used with the sysinfo command, revision values must be considered as integers, not chars as some boards will implement BOARD_REVISION_* and might use numbers greater than 9. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 104 1 file

[PATCH v2 0/4] Introduce the sysinfo command

2023-06-28 Thread Detlev Casanova
The command can be used to show various information that can be used to identify the running system. Currently supported subcommands are: * model: A string representing the model * id: The id of the board * revision: The revision of this board. I'm also not sure if a test should be added and

[PATCH v2 1/4] sysinfo: Add IDs for board id and revision

2023-06-28 Thread Detlev Casanova
These IDs will be used by the sysinfo command. The new IDs are: * SYSINFO_ID_BOARD_ID: The board ID as an integer * SYSINFO_ID_BOARD_REVISION: The board revision as a string Signed-off-by: Detlev Casanova --- include/sysinfo.h | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH v3] dt-bindings: riscv: deprecate riscv,isa

2023-06-28 Thread Palmer Dabbelt
On Tue, 27 Jun 2023 08:49:06 PDT (-0700), Palmer Dabbelt wrote: > On Mon, 26 Jun 2023 23:52:06 PDT (-0700), apa...@ventanamicro.com wrote: >> On Tue, Jun 27, 2023 at 1:23 AM Palmer Dabbelt wrote: >>> >>> On Mon, 26 Jun 2023 10:38:43 PDT (-0700), apa...@ventanamicro.com wrote: >>> > On Mon, Jun

Re: [PATCH v3] dt-bindings: riscv: deprecate riscv,isa

2023-06-28 Thread Anup Patel
On Wed, Jun 28, 2023 at 7:46 PM Palmer Dabbelt wrote: > > On Tue, 27 Jun 2023 08:49:06 PDT (-0700), Palmer Dabbelt wrote: > > On Mon, 26 Jun 2023 23:52:06 PDT (-0700), apa...@ventanamicro.com wrote: > >> On Tue, Jun 27, 2023 at 1:23 AM Palmer Dabbelt wrote: > >>> > >>> On Mon, 26 Jun 2023

Re: [PATCH 2/5] rockchip: rk3399-pinebook-pro: Fix SPL max size and SPI flash payload offset

2023-06-28 Thread Quentin Schulz
Hi Jonas, On 6/27/23 21:10, Jonas Karlman wrote: TPL max size is limited to 184 KB, SPL is loaded to 0x0 and TF-A is loaded to 0x4, this limit SPL max size to 256 KB. With BootRom only reading first 2 KB per 4 KB page of SPI flash, 880 KB may be needed for TPL+SPL in a worst-case scenario.

Re: [PATCH 1/2] disk: part: Add API to get partitions with specific driver

2023-06-28 Thread Joshua Watt
On Mon, Jun 26, 2023 at 4:07 AM Simon Glass wrote: > > Hi Joshua, > > On Fri, 23 Jun 2023 at 21:01, Joshua Watt wrote: > > > > Adds part_driver_get_type() API which can be used to force a specific > > driver to be used when getting partition information instead of relying > > on auto detection.

Re: [PATCH 5/7] Makefile: Add a target for building capsules

2023-06-28 Thread Simon Glass
Hi Sughosh, On Wed, 28 Jun 2023 at 13:25, Sughosh Ganu wrote: > > hi Simon, > > On Wed, 28 Jun 2023 at 15:49, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Wed, 28 Jun 2023 at 11:00, Sughosh Ganu wrote: > > > > > > hi Simon, > > > > > > On Wed, 28 Jun 2023 at 13:12, Simon Glass wrote: > >

[PATCH] clk: starfive: pll: Fix to use postdiv1_mask

2023-06-28 Thread Hoegeun Kwon
There is a problem that the rates of PLL0 and PLL1 are set incorrectly because the postdiv1_mask value is incorrectly entered when setting the pll clk reg. Modify postdiv1's mask value to be put correctly. Signed-off-by: Hoegeun Kwon --- drivers/clk/starfive/clk-jh7110-pll.c | 2 +- 1 file

Trying to boot JH7110 RISCV-V CPU from MMC

2023-06-28 Thread Roland Ruckerbauer
Hi! I am trying to use upstream u-boot + opensbi, to boot my visionfive2 SBC I got from external SD card. I had not much luck with the vendor provided images / tools, they seem to have a lot of hard coded stuff and just won`t work correctly. With upstream u-boot I followed the

[PATCH] usb: dwc3-generic: Ensure reset GPIO is configured as an output

2023-06-28 Thread Peter Korsgaard
GPIOD_ACTIVE_LOW is not enough to configure a GPIO as an output, we need GPIOD_IS_OUT as well. Fixes: b252d79b0936d60b ("usb: dwc3: Add support to reset usb ULPI phy") Signed-off-by: Peter Korsgaard --- drivers/usb/dwc3/dwc3-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH 5/7] Makefile: Add a target for building capsules

2023-06-28 Thread Sughosh Ganu
hi Simon, On Wed, 28 Jun 2023 at 15:49, Simon Glass wrote: > > Hi Sughosh, > > On Wed, 28 Jun 2023 at 11:00, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Wed, 28 Jun 2023 at 13:12, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Tue, 27 Jun 2023 at 18:42, Sughosh Ganu > > >

[PATCH 12/12] binman: Support simple templates

2023-06-28 Thread Simon Glass
Collections can used to collect the contents of other entries into a single entry, but they result in a single entry, with the original entries 'left behind' in their old place. It is useful to be able to specific a set of entries ones and have it used in multiple images, or parts of an image.

[PATCH 09/12] binman: Correct handling of zero bss size

2023-06-28 Thread Simon Glass
Fix the check for the __bss_size symbol, since it may be 0. Unfortunately there was no test coverage for this. Signed-off-by: Simon Glass --- tools/binman/elf_test.py | 5 + tools/binman/etype/u_boot_spl_bss_pad.py | 2 +- tools/binman/etype/u_boot_tpl_bss_pad.py | 2 +-

[PATCH 11/12] dtoc: Allow inserting a list of nodes into another

2023-06-28 Thread Simon Glass
Provide a way to specify a phandle list of nodes which are to be inserted into an existing node. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py| 16 tools/dtoc/test/dtoc_test_simple.dts | 10 -- tools/dtoc/test_fdt.py | 18

[PATCH 08/12] binman: Drop __bss_size variable in bss_data.c

2023-06-28 Thread Simon Glass
This is not needed since the linker script sets it up. Drop the variable to avoid confusion. Fix the prototype for main() while we are here. Signed-off-by: Simon Glass --- tools/binman/test/bss_data.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 10/12] dtoc: Support copying the contents of a node into another

2023-06-28 Thread Simon Glass
This permits implementation of a simple templating system, where a node can be reused as a base for others. For now this adds new subnodes after any existing ones. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py| 22 ++ tools/dtoc/test/dtoc_test_simple.dts |

[PATCH 07/12] binman: Provide a way to specific the fdt-list directly

2023-06-28 Thread Simon Glass
Sometimes multiple boards are built with binman and it is useful to specify a different FDT list for each. At present this is not possible without providing multiple values of the of-list entryarg (which is not supported in the U-Boot build system). Allow a fit,fdt-list-val string-list property

[PATCH 06/12] binman: Convert mkimage to Entry_section

2023-06-28 Thread Simon Glass
From: Marek Vasut This is needed to handle mkimage with inner section located itself in a section. Signed-off-by: Marek Vasut Use BuildSectionData() instead of ObtainContents(), add tests and a few other minor fixes: Signed-off-by: Simon Glass --- tools/binman/entry.py |

[PATCH 05/12] stm32mp15: Avoid writing symbols in SPL

2023-06-28 Thread Simon Glass
These boards use SPL in a mkimage entry and apparently access the symbol containing the image position of U-Boot, but put U-Boot in another image. This means that binman is unable to fill in the symbol correctly in the SPL binary. This doesn't matter at present since mkimage doesn't support

[PATCH 04/12] binman: Allow disabling symbol writing

2023-06-28 Thread Simon Glass
Some boards don't use symbol writing but do access the symbols in SPL. Provide an option to work around this. Signed-off-by: Simon Glass --- tools/binman/binman.rst | 7 ++ tools/binman/entry.py | 4 +++- tools/binman/etype/blob_phase.py |

[PATCH 02/12] binman: Use GetEntries() to obtain section contents

2023-06-28 Thread Simon Glass
Some section types don't have a simple _entries list. Use the GetEntries() method in GetEntryContents() and other places to handle this. This makes the behaviour more consistent. Signed-off-by: Simon Glass --- tools/binman/etype/section.py | 18 +- 1 file changed, 9

[PATCH 03/12] binman: Read _multiple_data_files in the correct place

2023-06-28 Thread Simon Glass
Move this to the ReadEntries() function where it belongs. Signed-off-by: Simon Glass --- tools/binman/etype/mkimage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/binman/etype/mkimage.py b/tools/binman/etype/mkimage.py index e028c4407081..cb3e10672ad7 100644 ---

[PATCH 01/12] binman: Init align_default in entry_Section

2023-06-28 Thread Simon Glass
This should be set up in the init function, to avoid a warning about a property not set up there. Fix it. Signed-off-by: Simon Glass --- tools/binman/etype/section.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py index

[PATCH 00/12] binman: Simple templating feature and mkimage conversion

2023-06-28 Thread Simon Glass
This series converts the mkimage entry type to be a section, i.e. based on the entry_Section class. This makes it more consistent in its behaviour, e.g. allowing symbol writing and expanded entries. A simple templating feature is also introduced, to reduce duplication when a set of entries must

Re: [PATCH 5/7] Makefile: Add a target for building capsules

2023-06-28 Thread Simon Glass
Hi Sughosh, On Wed, 28 Jun 2023 at 11:00, Sughosh Ganu wrote: > > hi Simon, > > On Wed, 28 Jun 2023 at 13:12, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Tue, 27 Jun 2023 at 18:42, Sughosh Ganu wrote: > > > > > > hi Simon, > > > > > > On Tue, 27 Jun 2023 at 17:51, Simon Glass wrote: > >

Re: [PATCH 5/7] Makefile: Add a target for building capsules

2023-06-28 Thread Sughosh Ganu
hi Simon, On Wed, 28 Jun 2023 at 13:12, Simon Glass wrote: > > Hi Sughosh, > > On Tue, 27 Jun 2023 at 18:42, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Tue, 27 Jun 2023 at 17:51, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Tue, 27 Jun 2023 at 13:08, Sughosh Ganu > > >

[GIT PULL] Please pull u-boot-amlogic-next-20230628

2023-06-28 Thread Neil Armstrong
-amlogic-next-20230628 for you to fetch changes up to 58edf5773adcc95105bbd814dcbe43b1d9804391: drivers: meson: introduce secure power controller driver (2023-06-28 10:05:34 +0200) - add support for Amlogic A1 SoC and ad401 board

RE: [PATCH v1 03/17] arch: arm: mach-socfpga: add new platform agilex5 mach-socfpga enablement

2023-06-28 Thread Chee, Tien Fong
Hi Jit Loon, > -Original Message- > From: Lim, Jit Loon > Sent: Wednesday, 21 June, 2023 11:16 AM > To: u-boot@lists.denx.de > Cc: Jagan Teki ; Vignesh R > ; Vasut, Marek ; Simon > ; Chee, Tien Fong > ; Hea, Kok Kiang ; > Lokanathan, Raaj ; Maniyam, Dinesh > ; Ng, Boon Khai ; > Yuslaimi,

RE: [PATCH v1 02/17] arch: arm: dts: add dts and dtsi for new platform agilex5

2023-06-28 Thread Chee, Tien Fong
Hi Jit Loon, > -Original Message- > From: Lim, Jit Loon > Sent: Wednesday, 21 June, 2023 11:16 AM > To: u-boot@lists.denx.de > Cc: Jagan Teki ; Vignesh R > ; Vasut, Marek ; Simon > ; Chee, Tien Fong > ; Hea, Kok Kiang ; > Lokanathan, Raaj ; Maniyam, Dinesh > ; Ng, Boon Khai ; > Yuslaimi,

Re: [PATCH 5/7] Makefile: Add a target for building capsules

2023-06-28 Thread Ilias Apalodimas
[...] > > > > > The order of operation is supposed to be: > > > > > > > > > > 1. Various projects used to build their ouputs (e.g. TF-A) > > > > > 2. Makefile used to build U-Boot: > > > > > 2a. The build produces a set of files which serve as inputs to binman > > > > > (INPUTS-y) > > > > > 2b.

RE: [PATCH v1 01/17] arch: arm: update kconfig for new platform agilex5

2023-06-28 Thread Chee, Tien Fong
Hi Jit Loon, > -Original Message- > From: Lim, Jit Loon > Sent: Wednesday, 21 June, 2023 11:16 AM > To: u-boot@lists.denx.de > Cc: Jagan Teki ; Vignesh R > ; Vasut, Marek ; Simon > ; Chee, Tien Fong > ; Hea, Kok Kiang ; > Lokanathan, Raaj ; Maniyam, Dinesh > ; Ng, Boon Khai ; > Yuslaimi,

[RFC PATCH] riscv: sifive: fu70: downclock CPU clock for stability

2023-06-28 Thread Icenowy Zheng
When building the package `rustc` for AOSC OS on HiFive Unmatched, random SIGSEGV prevents the package from getting correctly built. Downclocking the CPU PLL clock seems to allow rustc to be built, although taking much more time. Downclock the CPU PLL frequency for stability. Signed-off-by:

Re: [PATCH] bootstd: USB devtype detection for script boot

2023-06-28 Thread Simon Glass
Hi John, On Tue, 27 Jun 2023 at 15:39, John Clark wrote: > > Change the device type from "usb_mass_storage" to "usb" when > booting a script. > > Before this change: > => printenv devtype > devtype=usb_mass_storage > > After this change: > => printenv devtype > devtype=usb > >

Re: [PATCH 5/7] Makefile: Add a target for building capsules

2023-06-28 Thread Simon Glass
Hi Sughosh, On Tue, 27 Jun 2023 at 18:42, Sughosh Ganu wrote: > > hi Simon, > > On Tue, 27 Jun 2023 at 17:51, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Tue, 27 Jun 2023 at 13:08, Sughosh Ganu wrote: > > > > > > hi Simon, > > > > > > On Tue, 27 Jun 2023 at 16:50, Simon Glass wrote: > >