[PATCH 3/3] board: developerbox: update flash rawwrite binary size

2023-10-24 Thread Masahisa Kojima
Current documentation limits the firmware size to 1.5MB. When the fTPM and StandaloneMM-based RPMB secure storage is enabled, firmware size is bigger than that size. Let's specify the A/B update bank size(4MB) for flash rawwrite parameter. Signed-off-by: Masahisa Kojima Acked-by: Jassi Brar ---

[PATCH 2/3] board: developerbox: update old NOR flash layout build instruction

2023-10-24 Thread Masahisa Kojima
v2023.07 is the last version supporting old NOR flash layout by default. The later versions of U-Boot, Developerbox is configured to enable A/B update and new NOR Flash layout by default. This commit updates the documentation to pin the U-Boot version for the old NOR flash layout. It is still usefu

[PATCH 1/3] board: developerbox: remove obsolete NOR flash layout definition

2023-10-24 Thread Masahisa Kojima
There are two kinds of NOR flash layout for the Developerbox. Capsule update for the old layout is no longer available since it has small capacity for secure world images and can not house the TA such as fTPM. This commit removes the definition related to the obsolete NOR flash layout for the UEFI

[PATCH 0/3] Developerbox: Cleanup and document update

2023-10-24 Thread Masahisa Kojima
This series removes the obsolete UEFI capsule update definition and updates the build instruction. Another patch[1] is required to complete the cleanup. >From U-Boot v2023.10 release, A/B update and new NOR Flash layout is enabled by default. We would like to pin the U-Boot version to v2023.07 whe

[PATCH v8 7/7] doc: uefi: add HTTP Boot support

2023-10-24 Thread Masahisa Kojima
This adds the description about HTTP Boot. Signed-off-by: Masahisa Kojima Reviewed-by: Ilias Apalodimas --- doc/develop/uefi/uefi.rst | 30 ++ 1 file changed, 30 insertions(+) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/uefi.rst index fb16ac743a..ca9a5

[PATCH v8 6/7] cmd: efidebug: add uri device path

2023-10-24 Thread Masahisa Kojima
This adds the URI device path option for 'boot add' subcommand. User can add the URI load option for downloading ISO image file or EFI application through network. Currently HTTP is only supported. Signed-off-by: Masahisa Kojima --- cmd/efidebug.c | 51 inclu

[PATCH v8 5/7] efi_loader: support boot from URI device path

2023-10-24 Thread Masahisa Kojima
This supports to boot from the URI device path. When user selects the URI device path, bootmgr downloads the file using wget into the address specified by loadaddr env variable. If the file is .iso or .img file, mount the image with blkmap then try to boot with the default file(e.g. EFI/BOOT/BOOTAA

[PATCH v8 4/7] efi_loader: Boot var automatic management

2023-10-24 Thread Masahisa Kojima
From: Raymond Mao Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same time, unused boot variables will be detected and removed. Please note that currently the function 'efi_disk_

[PATCH v8 3/7] blk: blkmap: add ramdisk creation utility function

2023-10-24 Thread Masahisa Kojima
User needs to call several functions to create the ramdisk with blkmap. This adds the utility function to create blkmap device and mount the ramdisk. Signed-off-by: Masahisa Kojima Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- drivers/block/Makefile| 3 +- drivers/block/b

[PATCH v8 2/7] net: wget: add wget with dns utility function

2023-10-24 Thread Masahisa Kojima
Current wget takes the target uri in this format: ":" e.g.) 192.168.1.1:/bar The http server ip address must be resolved before calling wget. This commit adds the utility function runs wget with dhs. User can call wget with the uri like "http://foo/bar";. Signed-off-by: Masahisa Kojima Reviewe

[PATCH v8 1/7] net: wget: prevent overwriting reserved memory

2023-10-24 Thread Masahisa Kojima
This introduces the valid range check to store the received blocks using lmb. The same logic is implemented in tftp. Signed-off-by: Masahisa Kojima Acked-by: Ilias Apalodimas Reviewed-by: Simon Glass Reviewed-by: Ramon Fried --- net/wget.c | 80

[PATCH v8 0/7] Add EFI HTTP boot support

2023-10-24 Thread Masahisa Kojima
This series adds the EFI HTTP boot support. User can add the URI device path with "efidebug boot add" command. efibootmgr handles the URI device path, download the specified file using wget, mount the downloaded image with blkmap, then boot with the default file(e.g. EFI/BOOT/BOOTAA64.EFI) by selec

Re: [PATCH v8 3/8] power: pmic: add the base MAX77663 PMIC support

2023-10-24 Thread Svyatoslav Ryhel
вт, 24 жовт. 2023 р. о 22:18 Tom Rini пише: > > On Tue, Oct 24, 2023 at 10:41:05AM +0300, Svyatoslav Ryhel wrote: > > > Add support to bind the regulators/child nodes with the pmic. > > Also adds the pmic i2c based read/write functions to access pmic > > registers. > > > > Signed-off-by: Svyatosla

[PATCH 5/5] test: dm: add scmi command test

2023-10-24 Thread AKASHI Takahiro
In this test, "scmi" command is tested against different sub-commands. Please note that scmi command is for debug purpose and is not intended in production system. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v7 * make test assertions more flexible d

[PATCH 4/5] doc: cmd: add documentation for scmi

2023-10-24 Thread AKASHI Takahiro
This is a help text for scmi command. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v6 * add the manual to doc/usage/index.rst v4 * s/tranport/transport/ v2 * add more descriptions about SCMI --- doc/usage/cmd/scmi.rst | 126 +

[PATCH 3/5] cmd: add scmi command for SCMI firmware

2023-10-24 Thread AKASHI Takahiro
This command, "scmi", may provide a command line interface to various SCMI protocols. It supports at least initially SCMI base protocol and is intended mainly for debug purpose. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Reviewed-by: Etienne Carriere --- v3 * describe that argument

[PATCH 2/5] firmware: scmi: support protocols on sandbox only if enabled

2023-10-24 Thread AKASHI Takahiro
This change will be useful when we manually test SCMI on sandbox by enabling/disabling a specific SCMI protocol. Signed-off-by: AKASHI Takahiro --- drivers/firmware/scmi/sandbox-scmi_agent.c | 27 ++- drivers/firmware/scmi/sandbox-scmi_devices.c | 78 2 files changed,

[PATCH 1/5] test: dm: skip scmi tests against disabled protocols

2023-10-24 Thread AKASHI Takahiro
This is a precautious change to make scmi tests workable whether or not a specific protocol be enabled. Signed-off-by: AKASHI Takahiro --- test/dm/scmi.c | 12 1 file changed, 12 insertions(+) diff --git a/test/dm/scmi.c b/test/dm/scmi.c index da45314f2e4c..2f63f2da16fb 100644 ---

[PATCH 0/5] cmd: add scmi command

2023-10-24 Thread AKASHI Takahiro
"Scmi" command will be re-introduced per Michal's request. The functionality is the same as I put it in my patch set of adding SCMI base protocol support, but made some tweak to make UT, "ut dm scmi_cmd," more flexible and tolerable when enabling/disabling a specific SCMI protocol for test purpose.

Re: Failedto read big file with "Invald FAT entry' from USB disk (FAT16)

2023-10-24 Thread Simon Glass
+Heinrich Schuchardt On Tue, 24 Oct 2023 at 19:34, target wrote: > > I am using u-boot 2017.03 in my system and enabled the debug in fs/fat/fat.c > I had a USB disk formatted in FAT16 in Linux, I put a bigfile.bin into / in > the USB disk and plugged the disk into by board. > Then I want to read

Re: [PATCH v2] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Simon Glass
Hi Heinrich, On Tue, 24 Oct 2023 at 18:22, Heinrich Schuchardt wrote: > > > > Am 25. Oktober 2023 01:31:19 MESZ schrieb Simon Glass : > >U-Boot typically sets up its malloc() pool near the top of memory. On > >ARM64 systems this can result in an SMBIOS table above 4GB which is > >not supported by

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Simon Glass
Hi Tom, On Tue, 24 Oct 2023 at 17:44, Tom Rini wrote: > > On Wed, Oct 25, 2023 at 02:19:59AM +0200, Heinrich Schuchardt wrote: > > > > > > Am 25. Oktober 2023 01:28:10 MESZ schrieb Simon Glass : > > >Hi Tom, > > > > > >On Tue, 24 Oct 2023 at 15:34, Tom Rini wrote: > > >> > > >> On Mon, Oct 23, 2

Re: quick question about TPM

2023-10-24 Thread niek.nooij...@omron.com
Hi Simon Driver model is enabled, so it's pretty weird it doesn't show up. CONFIG_DM=y CONFIG_SPL_DM=y CONFIG_DM_WARN=y The TPM menu is there, yet somehow empty. This is just after "make socfpga_cyclone5_defconfig" and "make menuconfig" if I use "make snow_defconfig" the menu is usable like norma

Failedto read big file with "Invald FAT entry' from USB disk (FAT16)

2023-10-24 Thread target
I am using u-boot 2017.03 in my system and enabled the debug in fs/fat/fat.c I had a USB disk formatted in FAT16 in Linux, I put a bigfile.bin into / in the USB disk and plugged the disk into by board. Then I want to read/load the bigfile.bin into RAM with u-boot's fatload command, I did followin

Pull request efi-2024-01-rc2

2023-10-24 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 5cab3515f8c9796015739c1750b8933291c816be: Merge tag 'u-boot-rockchip-20231024' of https://source.denx.de/u-boot/custodians/u-boot-rockchip (2023-10-24 09:39:52 -0400) are available in the Git repository at: https://source.denx

Re: [PATCH v5 14/16] cmd: add scmi command for SCMI firmware

2023-10-24 Thread AKASHI Takahiro
Hi Tom, Michal, On Tue, Oct 24, 2023 at 06:24:07PM -0400, Tom Rini wrote: > On Tue, Oct 24, 2023 at 10:27:44AM +0200, Michal Simek wrote: > > Hi Takahiro, > > > > ?t 26. 9. 2023 v 9:00 odes?latel AKASHI Takahiro > > napsal: > > > > > > This command, "scmi", may provide a command line interface t

Re: [PATCH v2] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Heinrich Schuchardt
Am 25. Oktober 2023 01:31:19 MESZ schrieb Simon Glass : >U-Boot typically sets up its malloc() pool near the top of memory. On >ARM64 systems this can result in an SMBIOS table above 4GB which is >not supported by SMBIOSv2. > >Work around this problem by providing a new option to choose an addre

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Tom Rini
On Wed, Oct 25, 2023 at 02:19:59AM +0200, Heinrich Schuchardt wrote: > > > Am 25. Oktober 2023 01:28:10 MESZ schrieb Simon Glass : > >Hi Tom, > > > >On Tue, 24 Oct 2023 at 15:34, Tom Rini wrote: > >> > >> On Mon, Oct 23, 2023 at 05:31:19PM +0200, Mark Kettenis wrote: > >> > > From: Simon Glass

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Heinrich Schuchardt
Am 25. Oktober 2023 01:28:10 MESZ schrieb Simon Glass : >Hi Tom, > >On Tue, 24 Oct 2023 at 15:34, Tom Rini wrote: >> >> On Mon, Oct 23, 2023 at 05:31:19PM +0200, Mark Kettenis wrote: >> > > From: Simon Glass >> > > Date: Mon, 23 Oct 2023 00:04:14 -0700 >> > > >> > > Hi Caleb, >> > > >> > > On

[PATCH v2] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Simon Glass
U-Boot typically sets up its malloc() pool near the top of memory. On ARM64 systems this can result in an SMBIOS table above 4GB which is not supported by SMBIOSv2. Work around this problem by providing a new option to choose an address below 4GB (but as high as possible), if needed. Signed-off-b

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Simon Glass
Hi Tom, On Tue, 24 Oct 2023 at 15:34, Tom Rini wrote: > > On Mon, Oct 23, 2023 at 05:31:19PM +0200, Mark Kettenis wrote: > > > From: Simon Glass > > > Date: Mon, 23 Oct 2023 00:04:14 -0700 > > > > > > Hi Caleb, > > > > > > On Sat, 21 Oct 2023 at 01:43, Caleb Connolly > > > wrote: > > > > > > >

Re: [PATCH] .gitignore: ignore misc include, simple-bin, and tools/generated build artifacts

2023-10-24 Thread Tom Rini
On Fri, Oct 13, 2023 at 01:26:16PM +, John Clark wrote: > make rock5b-rk3588_defconfig > make > git status > > before > ~~~ > On branch master > Your branch is ahead of 'origin/master' by 1 commit. > (use "git push" to publish your local commits) > > Untracked files: > (use "git add

Re: [PATCH v2 4/4] test: dm: add SCMI power domain protocol test

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 02:39:46PM +0900, AKASHI Takahiro wrote: > This ut has tests for the SCMI power domain protocol as well as DM > interfaces for power domain devices. > > Signed-off-by: AKASHI Takahiro > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH v2 2/2] serial: introduce CONFIG_CONSOLE_FLUSH_ON_NEWLINE

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 10:35:22AM +0200, Rasmus Villemoes wrote: > When debugging, one sometimes only gets partial output lines or > nothing at all from the last printf, because the uart has a largish > buffer, and the code after the printf() may cause the CPU to hang > before the uart IP has tim

[PATCH] arm: kirkwood: Enable bootstd for Pogo V4 board

2023-10-24 Thread Tony Dinh
Enable bootstd for Pogo V4 board, and remove distroboot. Signed-off-by: Tony Dinh --- configs/pogo_v4_defconfig | 3 ++- include/configs/pogo_v4.h | 35 ++- 2 files changed, 4 insertions(+), 34 deletions(-) diff --git a/configs/pogo_v4_defconfig b/configs/pogo_

Re: [PATCH v2 2/4] power: domain: add SCMI driver

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 02:39:44PM +0900, AKASHI Takahiro wrote: > Add power domain driver based on SCMI power domain management protocol. > > Signed-off-by: AKASHI Takahiro Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 1/4] firmware: scmi: add power domain protocol support

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 02:39:43PM +0900, AKASHI Takahiro wrote: > In this patch, added are helper functions to directly manipulate > SCMI power domain management protocol. DM compliant power domain > driver will be implemented on top of those interfaces in a succeeding > patch. > > Signed-off-by

Re: [PATCH v2 3/4] sandbox: add SCMI power domain protocol support for testing

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 02:39:45PM +0900, AKASHI Takahiro wrote: > SCMI power domain management protocol is supported on sandbox > for test purpose. Add fake agent interfaces and associated > power domain devices. > > Signed-off-by: AKASHI Takahiro > Reviewed-by: Simon Glass Applied to u-boot/

Re: [PATCH v3] cli: Consume invalid escape sequences early

2023-10-24 Thread Tom Rini
On Tue, Oct 10, 2023 at 11:16:39AM +0300, Yurii Monakov wrote: > Unexpected 'Esc' key presses are accumulated internally, even if it is > already clear that the current escape sequence is invalid. This results > in weird behaviour. For example, the next character after 'Esc' key > simply disappear

Re: [PATCH v2 1/2] serial: serial-uclass.c: move definition of _serial_flush up a bit

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 10:35:21AM +0200, Rasmus Villemoes wrote: > Preparation for next patch. > > Reviewed-by: Simon Glass > Signed-off-by: Rasmus Villemoes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] Makefile: remove misc include and simple-bin build artifacts on clean

2023-10-24 Thread Tom Rini
On Fri, Oct 13, 2023 at 01:23:07PM +, John Clark wrote: > make rock5b-rk3588_defconfig > make > make clean > git status > > before > ~~~ > On branch master > Your branch is up to date with 'origin/master'. > > Untracked files: > (use "git add ..." to include in what will be committed)

Re: [PATCH] pstore: Use root address-cells/size-cells as defaults for reserved-memory

2023-10-24 Thread Tom Rini
On Sat, Aug 26, 2023 at 03:16:52PM +0300, Andrey Skvortsov wrote: > u-boot adds reserve-memory node, if it's missing, with following > properties: > > ``` > reserved-memory { > #address-cells = <2>; > #size-cells = <2>; > ranges; > } > ``` > > But with these de

Re: [PATCH] mbr: Test tweaks

2023-10-24 Thread Tom Rini
On Mon, Oct 16, 2023 at 04:50:46PM -0600, Simon Glass wrote: > Rather than do another review on [1] I thought it better to add a patch > showing changes. This is intended to be squashed in, if acceptable. > > With the patch as is, various bootstd tests fail. This is because the > test adds a new

Re: [PATCH v2] cmd: mbr: Allow 4 MBR partitions without need for extended

2023-10-24 Thread Tom Rini
On Mon, Oct 09, 2023 at 01:24:36AM +, Alexander Gendin wrote: > Current code allows up to 3 MBR partitions without extended one. > If more than 3 partitions are required, then extended partition(s) > must be used. > This commit allows up to 4 primary MBR partitions without the > need for exten

Re: [PATCH v2 1/2] checkpatch.pl: Make common.h check boarder

2023-10-24 Thread Tom Rini
On Fri, Oct 13, 2023 at 09:28:32AM -0700, Simon Glass wrote: > From: Tom Rini > > At this point in time we should not add common.h to any new files, so > make checkpatch.pl complain. > > Signed-off-by: Tom Rini > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signatu

Re: [PATCH v2 2/2] patman: Add a little documentation on the checkpatch tests

2023-10-24 Thread Tom Rini
On Fri, Oct 13, 2023 at 09:28:33AM -0700, Simon Glass wrote: > These texts lack comments. Add some so that it is clearer what is going > on. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 7/7] riscv: Remove common.h usage

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:59PM -0400, Tom Rini wrote: > We can remove common.h from most cases of the code here, and only a few > places need an additional header instead. > > Signed-off-by: Tom Rini > Reviewed-by: Rick Chen Applied to u-boot/master, thanks! -- Tom signature.asc Descri

Re: [PATCH 5/7] microblaze: Remove common.h usage

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:57PM -0400, Tom Rini wrote: > We can remove common.h from most cases of the code here, and only a few > places need an additional header instead. > > Signed-off-by: Tom Rini > Acked-by: Michal Simek Applied to u-boot/master, thanks! -- Tom signature.asc Descri

Re: [PATCH 6/7] mips: Remove common.h usage

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:58PM -0400, Tom Rini wrote: > We can remove common.h from most cases of the code here, and only a few > places need an additional header instead. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/7] arc: Remove common.h usage

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:55PM -0400, Tom Rini wrote: > We can remove common.h from most cases of the code here, and only a few > places need an additional header instead. > > Signed-off-by: Tom Rini > Acked-by: Alexey Brodkin Applied to u-boot/master, thanks! -- Tom signature.asc Desc

Re: [PATCH 4/7] m68k: Remove common.h usage

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:56PM -0400, Tom Rini wrote: > We can remove common.h from most cases of the code here, and only a few > places need an additional header instead. > > Signed-off-by: Tom Rini > Acked-by: Angelo Dureghello Applied to u-boot/master, thanks! -- Tom signature.asc D

Re: [PATCH 2/7] include: Add in a few places

2023-10-24 Thread Tom Rini
On Thu, Oct 12, 2023 at 07:03:54PM -0400, Tom Rini wrote: > These files references a number of types that are defined in > (and so forth), so include it here rather than rely on > indirect inclusion. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! --

Re: [PATCH 1/4] spl: atf: Improve comments and code readability

2023-10-24 Thread Tom Rini
On Sat, Sep 16, 2023 at 10:23:01AM +0200, Massimo Pegorer wrote: > Rename bl31_entry static function to avoid name clash with its first > argument. Fix spaces misuse. Describe code accurately: load address > is used if getting entry point address fails, and not if addresses > differ. Remove not up

Re: [PATCH] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-10-24 Thread Tom Rini
On Thu, Sep 21, 2023 at 12:29:45PM +, Michel Alex wrote: > Calculate the maximum length of the buffer when writing > accross the page boundary. If the buffer length exceeds > the page boundary, split it. Use this length instead of > comparing the length with the pagesize, because the write > s

[PATCH v2 2/2] ARM: amlogic: ad401: enable SPIFC

2023-10-24 Thread Igor Prusov
Enable Amlogic A1 SPI FLash Controller support. Signed-off-by: Igor Prusov Reviewed-by: Neil Armstrong --- configs/ad401_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/ad401_defconfig b/configs/ad401_defconfig index b9aca3ab0d..b44b9c63e8 100644 --- a/configs/ad401_defcon

[PATCH v2 1/2] spi: add support for Amlogic A1 SPI Flash Controller

2023-10-24 Thread Igor Prusov
From: Igor Prusov Add A1 SPIFC driver from Linux. Slightly modified to use u-boot driver framework and accommodate to lack of ioread32_rep/iowrite32_rep. Based on Linux version 6.6-rc4 Signed-off-by: Igor Prusov Signed-off-by: Martin Kurbanov Reviewed-by: Simon Glass --- drivers/spi/Kconfig

[PATCH v2 0/2] ARM: amlogic: Add A1 SPIFC support

2023-10-24 Thread Igor Prusov
A1 family boards have new version of SPIFC controller, that is incompatible with meson_spifc driver. This series ports A1 SPIFC driver from Linux and enables it for ad401 board. Changes in V2: - more details in Kconfig help message - removed unused field of struct amlogic_spifc_a1 - add missed

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-24 Thread Tom Rini
On Mon, Oct 23, 2023 at 05:31:19PM +0200, Mark Kettenis wrote: > > From: Simon Glass > > Date: Mon, 23 Oct 2023 00:04:14 -0700 > > > > Hi Caleb, > > > > On Sat, 21 Oct 2023 at 01:43, Caleb Connolly > > wrote: > > > > > > Hi Simon, > > > > > > On 21/10/2023 01:45, Simon Glass wrote: > > > > U-B

Re: [PATCH RESEND v3 1/1] arm: dts: icnova-a20-adb4006: Add board support

2023-10-24 Thread Andre Przywara
On Mon, 9 Oct 2023 13:39:16 +0200 Ludwig Kormann wrote: Hi Ludwig, > Add board support for ICnova A20 SomPi compute module on > ICnova ADB4006 development board. > > Specification: > SoM > - Processor: Allwinner A20 Cortex-A7 Dual Core at 1GHz > - 512MB DDR3 RAM > - Fast Ethernet (Phy: Realtek

Re: [PATCH v5 14/16] cmd: add scmi command for SCMI firmware

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 10:27:44AM +0200, Michal Simek wrote: > Hi Takahiro, > > út 26. 9. 2023 v 9:00 odesílatel AKASHI Takahiro > napsal: > > > > This command, "scmi", may provide a command line interface to various SCMI > > protocols. It supports at least initially SCMI base protocol and is >

Re: [PATCH v4 4/4] sunxi: psci: implement PSCI on R528

2023-10-24 Thread Andre Przywara
On Sun, 22 Oct 2023 01:49:49 +0100 Andre Przywara wrote: > On Wed, 11 Oct 2023 19:47:56 -0600 > Sam Edwards wrote: > > > This patch adds the necessary code to make nonsec booting and PSCI > > secondary core management functional on the R528/T113. > > > > Signed-off-by: Sam Edwards > > Tested-

[PATCH 1/1] CI: use OpenSBI 1.3.1 for testing

2023-10-24 Thread Heinrich Schuchardt
Use the most recent upstream release of OpenSBI for CI testing. Signed-off-by: Heinrich Schuchardt --- .azure-pipelines.yml | 8 .gitlab-ci.yml | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 6f91553e86

Re: [v4.1 2/2] CI, pytest: Add a test for sandbox without LTO

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 02:39:49PM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 24 Oct 2023 at 11:07, Tom Rini wrote: > > > > On Tue, Oct 24, 2023 at 11:02:06AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 23 Oct 2023 at 10:28, Tom Rini wrote: > > > > > > > > On Mon, Oct 23, 20

[PATCH v5 3/3] dt-bindings: mtd: binman-partitions: Add alignment properties

2023-10-24 Thread Simon Glass
Add three properties for controlling alignment of partitions, aka 'entries' in binman. For now there is no explicit mention of hierarchy, so a 'section' is just the 'binman' node. These new properties are inputs to the packaging process, but are also needed if the firmware is repacked, to ensure

[PATCH v5 2/3] dt-bindings: mtd: binman-partition: Add binman compatibles

2023-10-24 Thread Simon Glass
Add two compatible for binman entries, as a starting point for the schema. Note that, after discussion on v2, we decided to keep the existing meaning of label so as not to require changes to existing userspace software when moving to use binman nodes to specify the firmware layout. Signed-off-by:

[PATCH v5 1/3] dt-bindings: mtd: partitions: Add binman compatible

2023-10-24 Thread Simon Glass
Add a compatible string for binman, so we can extend fixed-partitions in various ways. Signed-off-by: Simon Glass --- Changes in v5: - Add #address/size-cells and parternProperties - Drop $ref to fixed-partitions.yaml - Drop 'select: false' Changes in v4: - Change subject line Changes in v3: -

Re: [PATCH v4 2/3] dt-bindings: mtd: binman-partition: Add binman compatibles

2023-10-24 Thread Simon Glass
Hi Rob, On Tue, 24 Oct 2023 at 09:16, Rob Herring wrote: > > On Mon, Oct 09, 2023 at 04:04:14PM -0600, Simon Glass wrote: > > Add two compatible for binman entries, as a starting point for the > > schema. > > > > Note that, after discussion on v2, we decided to keep the existing > > meaning of la

Re: [v4.1 2/2] CI, pytest: Add a test for sandbox without LTO

2023-10-24 Thread Simon Glass
Hi Tom, On Tue, 24 Oct 2023 at 11:07, Tom Rini wrote: > > On Tue, Oct 24, 2023 at 11:02:06AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 23 Oct 2023 at 10:28, Tom Rini wrote: > > > > > > On Mon, Oct 23, 2023 at 10:13:52AM -0700, Simon Glass wrote: > > > > > > [snip] > > > > BTW buildma

[PATCH 8/8] clk/qcom: fix rcg divider value

2023-10-24 Thread Caleb Connolly
The RCG divider field takes a value of (2*h - 1) where h is the divisor. This allows fractional dividers to be supported by calculating them at compile time using a macro. However, the clk_rcg_set_rate_mnd() function was also performing the calculation. Clean this all up and consistently use the F

[PATCH 6/8] clk/qcom: use function pointers for enable and set_rate

2023-10-24 Thread Caleb Connolly
Currently, it isn't possible to build clock drivers for more than one platform due to how the msm_enable() and msm_set_rate() callbacks are implemented. Extend qcom_cc_data to include function pointers for these and convert all platforms to use them. Previously, clock drivers relied on common.h t

[PATCH 7/8] clk/qcom: add mnd_width to clk_rcg_set_rate_mnd()

2023-10-24 Thread Caleb Connolly
This property is needed on some platforms to ensure that only the relevant bits are set in the M/N/D registers. Signed-off-by: Caleb Connolly --- drivers/clk/qcom/clock-apq8016.c | 4 ++-- drivers/clk/qcom/clock-apq8096.c | 4 ++-- drivers/clk/qcom/clock-qcom.c| 11 +++ drivers/clk

[PATCH 5/8] clk/qcom: sdm845: add register map for simple gate clocks

2023-10-24 Thread Caleb Connolly
Many gate clocks can be enabled with a single register write, add support for defining these simple gate clocks and add the ones found on SDM845. While we're here, inline clk_init_uart() into msm_set_rate(). Signed-off-by: Caleb Connolly --- .../mach-snapdragon/include/mach/sysmap-sdm845.h |

[PATCH 4/8] clk/qcom: handle resets and clocks in one device

2023-10-24 Thread Caleb Connolly
From: Konrad Dybcio Qualcomm's clock controller blocks are actually do much more than it says on the tin.. They provide clocks, resets and power domains. Currently, U-Boot required one to spawn 2 separate devices for controlling clocks and resets, both spanning the same register space. Refactor t

[PATCH 2/8] clk/qcom: add per-platform configs

2023-10-24 Thread Caleb Connolly
Decouple the clock drivers from the mach-snapdragon TARGET configs by introducing CONFIG_CLK_QCOM and associated options to build each SoC. This will make future cleanup easier as we move towards a generic Qualcomm target. Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/Kconfig | 4

[PATCH 3/8] clk/qcom: move ipq4019 driver from mach-ipq40xx

2023-10-24 Thread Caleb Connolly
This driver is just a stub, but it's necessary to support the upcoming reset driver changes. Signed-off-by: Caleb Connolly --- arch/arm/Kconfig | 1 + arch/arm/mach-ipq40xx/Makefile | 1 - drivers/clk/qcom/Kconfig

[PATCH 1/8] clk/qcom: move from mach-snapdragon

2023-10-24 Thread Caleb Connolly
Clock drivers don't belong here, move them to the right place and declutter mach-snapdragon a bit. Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/Makefile| 5 - drivers/clk/Makefile | 1 + drivers/clk/qco

[PATCH 0/8] arm: mach-snapdragon: Qualcomm clock driver cleanup

2023-10-24 Thread Caleb Connolly
This series begins making some headway towards cleaning up Qualcomm platform support in u-boot. The following is a rough overview of the changes: * Move the Qualcomm clock drivers out of mach-snapdragon and into clk/qcom * Introduce per-platform clock driver configs to decouple Qualcomm platform

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 08:52:22PM +0100, Caleb Connolly wrote: > > > On 24/10/2023 20:25, Tom Rini wrote: > > On Tue, Oct 24, 2023 at 12:32:35PM +0100, Caleb Connolly wrote: > > > >> Add a new config option to allow u-boot to reuse the FDT provided by the > >> previous stage bootloader when ava

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Caleb Connolly
On 24/10/2023 20:25, Tom Rini wrote: > On Tue, Oct 24, 2023 at 12:32:35PM +0100, Caleb Connolly wrote: > >> Add a new config option to allow u-boot to reuse the FDT provided by the >> previous stage bootloader when available. >> >> On some boards the previous stage bootloader can populate >> pl

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Simon Glass
Hi Caleb, On Tue, 24 Oct 2023 at 11:10, Caleb Connolly wrote: > > > > On 24/10/2023 19:03, Simon Glass wrote: > > Hi Caleb, > > > > On Tue, 24 Oct 2023 at 04:32, Caleb Connolly > > wrote: > >> > >> Add a new config option to allow u-boot to reuse the FDT provided by the > > > > U-Boot (please f

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-24 Thread Ilias Apalodimas
On Tue, 24 Oct 2023 at 09:20, Heinrich Schuchardt wrote: > > Forward and backward compatibility of Linux kernel device-trees is > sometimes missing. One solution approach is to load a kernel specific > device-tree. This can either be done via a U-Boot scripts (like the one > generated by Debian pa

Re: [PATCH v2] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 06:38:43PM +0100, Caleb Connolly wrote: > Add a new config option to allow u-boot to reuse the FDT provided by the > previous stage bootloader when available. > > On some boards the previous stage bootloader can populate > platform-specific parts of the devicetree such as t

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-24 Thread Ilias Apalodimas
On Tue, 24 Oct 2023 at 09:20, Heinrich Schuchardt wrote: > > Forward and backward compatibility of Linux kernel device-trees is > sometimes missing. One solution approach is to load a kernel specific > device-tree. This can either be done via a U-Boot scripts (like the one > generated by Debian pa

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 12:32:35PM +0100, Caleb Connolly wrote: > Add a new config option to allow u-boot to reuse the FDT provided by the > previous stage bootloader when available. > > On some boards the previous stage bootloader can populate > platform-specific parts of the devicetree such as

Re: [PATCH v8 3/8] power: pmic: add the base MAX77663 PMIC support

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 10:41:05AM +0300, Svyatoslav Ryhel wrote: > Add support to bind the regulators/child nodes with the pmic. > Also adds the pmic i2c based read/write functions to access pmic > registers. > > Signed-off-by: Svyatoslav Ryhel > Reviewed-by: Simon Glass [snip] > diff --git a/

[PATCH 2/2] bootstd: cros: Correct condition for read method

2023-10-24 Thread Simon Glass
This has a typo which makes the method inoperable. Correct it so that 'bootflow read' works correctly for ChromeOS. Signed-off-by: Simon Glass --- boot/bootmeth_cros.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/boot/bootmeth_cros.c b/boot/bootmeth_cros.c index 2

[PATCH 1/2] bootstd: Handle a few special cases in cmdline_set_arg()

2023-10-24 Thread Simon Glass
Two bugs have appeared: - arguments can have an equals sign embedded in them, which must be considered part of the value - arguments must fully match the name; partial matches should be ignored Fix these and add a test to cover both. Signed-off-by: Simon Glass --- boot/bootflow.c |

[PATCH 0/2] bootstd: Fix a few minor bugs

2023-10-24 Thread Simon Glass
This series fixes a few bugs noticed recently: - handling of certain command-line updates with 'bootflow cmdline' - support for 'bootflow read' in ChromeOS Simon Glass (2): bootstd: Handle a few special cases in cmdline_set_arg() bootstd: cros: Correct condition for read method boot/bootflo

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Caleb Connolly
On 24/10/2023 19:03, Simon Glass wrote: > Hi Caleb, > > On Tue, 24 Oct 2023 at 04:32, Caleb Connolly > wrote: >> >> Add a new config option to allow u-boot to reuse the FDT provided by the > > U-Boot (please fix throughout) Will do! > >> previous stage bootloader when available. >> >> On s

Re: [v4.1 2/2] CI, pytest: Add a test for sandbox without LTO

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 11:02:06AM -0700, Simon Glass wrote: > Hi Tom, > > On Mon, 23 Oct 2023 at 10:28, Tom Rini wrote: > > > > On Mon, Oct 23, 2023 at 10:13:52AM -0700, Simon Glass wrote: > > > > [snip] > > > BTW buildman supports -L which disabled LTO using the NO_LTO=1 option > > > > I worry

Re: [tom.r...@gmail.com: Fwd: New Defects reported by Coverity Scan for Das U-Boot]

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 08:35:58PM +0530, Sughosh Ganu wrote: > hi Tom, > > On Tue, 24 Oct 2023 at 06:48, Tom Rini wrote: > > > > Here's the latest report > > > > -- Forwarded message - > > From: > > Date: Mon, Oct 23, 2023 at 4:40 PM > > Subject: New Defects reported by Coverity

Re: [PATCH v4 2/2] DONOTMERGE: arm: dts: k3-j7200-binman: Enable split mode for MCU R5

2023-10-24 Thread Simon Glass
On Mon, 23 Oct 2023 at 01:01, Neha Malcom Francis wrote: > > Set boot core-opts to enable split mode for MCU R5 cluster by default. > This patch serves to demonstrate how this can be done. > > Signed-off-by: Neha Malcom Francis > --- > No change since v2 > > arch/arm/dts/k3-j7200-binman.dtsi | 3

Re: [PATCH 1/1] tools: mkimage: fix sfspl_image_extract_subimage()

2023-10-24 Thread Simon Glass
On Tue, 24 Oct 2023 at 00:26, Heinrich Schuchardt wrote: > > Do not leak file descriptor if writing fails. > Correct the error text if opening a file fails. > > Addresses-Coverity-ID: 467054 Resource leaks > Fixes: 64fd30d367a1 ("tools: mkimage: Add StarFive SPL image support") > Signed-off-by: He

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-24 Thread Simon Glass
Hi Caleb, On Tue, 24 Oct 2023 at 04:32, Caleb Connolly wrote: > > Add a new config option to allow u-boot to reuse the FDT provided by the U-Boot (please fix throughout) > previous stage bootloader when available. > > On some boards the previous stage bootloader can populate > platform-specific

Re: [PATCH v4 1/2] binman: openssl: x509: ti_secure_rom: Add support for bootcore_opts

2023-10-24 Thread Simon Glass
On Mon, 23 Oct 2023 at 01:01, Neha Malcom Francis wrote: > > According to the TRMs of K3 platform of devices, the ROM boot image > format specifies a "Core Options Field" that provides the capability to > set the boot core in lockstep when set to 0 or to split mode when set > to 2. Add support for

Re: [PATCH 1/1] mkimage: do not write incorrect error message

2023-10-24 Thread Simon Glass
On Tue, 24 Oct 2023 at 00:19, Heinrich Schuchardt wrote: > > When running 'mkimage -l' is called for a valid StarFive file an error > message "Error: invalid marker bytes" is written by the Renesas SPKG > driver. > > mkimage -l may be invoked without specifying an image type. In this case > mkimag

Re: [PATCH] doc: gpt: fix example of echoing variable

2023-10-24 Thread Simon Glass
On Tue, 24 Oct 2023 at 05:00, Tom Fitzhenry wrote: > > --- > doc/usage/cmd/gpt.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass It could use 'print' instead, I suppose. > diff --git a/doc/usage/cmd/gpt.rst b/doc/usage/cmd/gpt.rst > index f6115ecb0ee..ea4

Re: quick question about TPM

2023-10-24 Thread Simon Glass
Hi Niek, On Tue, 24 Oct 2023 at 04:51, niek.nooij...@omron.com wrote: > > Hi > > Just a quick question. I'm developing a platform using the > socfpga_cyclone5_defconfig > everything is working, linux boots, but we decided to add a TPM to it's SPI > bus. > For some reason the TPM support menu in

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 08:20:32AM +0200, Heinrich Schuchardt wrote: > Forward and backward compatibility of Linux kernel device-trees is > sometimes missing. One solution approach is to load a kernel specific > device-tree. This can either be done via a U-Boot scripts (like the one > generated by

Re: [PATCH v3 1/1] sandbox: eliminate unused functions from binaries

2023-10-24 Thread Tom Rini
On Tue, Oct 24, 2023 at 08:30:47AM +0200, Heinrich Schuchardt wrote: > The sandbox should closely mimic other architectures. > > Place each function or data in a separate section and let the linker > eliminate unused ones. This will reduce the binary size. > > In the linker script mark that u_bo

  1   2   >