Re: [PATCH v3 6/7] rng: stm32: Implement custom RNG configuration support

2023-09-27 Thread Patrice CHOTARD
On 9/19/23 17:27, Gatien Chevallier wrote: > STM32 RNG configuration should best fit the requirements of the > platform. Therefore, put a platform-specific RNG configuration > field in the platform data. Default RNG configuration for STM32MP13 > is the NIST certified configuration [1]. > > Whil

Re: [PATCH v3 7/7] ARM: dts: stm32: add RNG node for STM32MP13x platforms

2023-09-27 Thread Patrice CHOTARD
On 9/19/23 17:27, Gatien Chevallier wrote: > Add RNG node for STM32MP13x platforms. > > Signed-off-by: Gatien Chevallier > Reviewed-by: Patrick Delaunay > --- > Changes in V2: > - Added Patrick's tag > > arch/arm/dts/stm32mp131.dtsi | 8 > 1 file changed, 8 insertions(+) > >

Re: [PATCH v3 1/7] rng: stm32: rename STM32 RNG driver

2023-09-27 Thread Patrice CHOTARD
On 9/27/23 08:52, Patrice CHOTARD wrote: > > > On 9/19/23 17:27, Gatien Chevallier wrote: >> Rename the RNG driver as it is usable by other STM32 platforms >> than the STM32MP1x ones. Rename CONFIG_RNG_STM32MP1 to >> CONFIG_RNG_STM32 >> >> Signed-off-by: Gatien Chevallier >> Reviewed-by: Grze

Re: [Uboot-stm32] [PATCH v3 2/7] configs: default activate CONFIG_RNG_STM32 for STM32MP13x platforms

2023-09-27 Thread Patrice CHOTARD
On 9/27/23 08:53, Patrice CHOTARD wrote: > > > On 9/19/23 17:27, Gatien Chevallier wrote: >> Default embed this configuration. If OP-TEE PTA RNG is exposed, it means >> that the RNG is managed by the secure world. Therefore, the RNG node >> should be disabled in the device tree as an access wo

Re: [Uboot-stm32] [PATCH v3 3/7] rng: stm32: Implement configurable RNG clock error detection

2023-09-27 Thread Patrice CHOTARD
On 9/27/23 08:56, Patrice CHOTARD wrote: > > > On 9/19/23 17:27, Gatien Chevallier wrote: >> RNG clock error detection is now enabled if the "clock-error-detect" >> property is set in the device tree. >> >> Signed-off-by: Gatien Chevallier >> Reviewed-by: Patrick Delaunay >> --- >> Changes i

Re: [PATCH v3 4/7] rng: stm32: add RNG clock frequency restraint

2023-09-27 Thread Patrice CHOTARD
On 9/27/23 08:56, Patrice CHOTARD wrote: > > > On 9/19/23 17:27, Gatien Chevallier wrote: >> In order to ensure a good RNG quality and compatibility with >> certified RNG configuration, add RNG clock frequency restraint. >> >> Signed-off-by: Gatien Chevallier >> Reviewed-by: Patrick Delaunay

Re: [PATCH v3 5/7] rng: stm32: add error concealment sequence

2023-09-27 Thread Patrice CHOTARD
On 9/27/23 08:57, Patrice CHOTARD wrote: > > > On 9/19/23 17:27, Gatien Chevallier wrote: >> Seed errors can occur when using the hardware RNG. Implement the >> sequences to handle them. This avoids irrecoverable RNG state. >> >> Try to conceal seed errors when possible. If, despite the error

[PATCH] riscv: andesv5: Prefer using the generic RISC-V timer driver in S-mode

2023-09-27 Thread Yu Chien Peter Lin
The Andes PLMT driver directly accesses the mtime MMIO region, indicating its intended use in the M-mode boot stage. However, since U-Boot proper (S-mode) also uses the PLMT driver, we need to specifically mark the region as readable through PMPCFGx (or S/U-mode read-only shared data region for Sme

Re: [Uboot-stm32] [PATCH v3 6/7] rng: stm32: Implement custom RNG configuration support

2023-09-27 Thread Patrice CHOTARD
On 9/27/23 09:11, Patrice CHOTARD wrote: > > > On 9/19/23 17:27, Gatien Chevallier wrote: >> STM32 RNG configuration should best fit the requirements of the >> platform. Therefore, put a platform-specific RNG configuration >> field in the platform data. Default RNG configuration for STM32MP13

Re: [PATCH v3 7/7] ARM: dts: stm32: add RNG node for STM32MP13x platforms

2023-09-27 Thread Patrice CHOTARD
On 9/27/23 09:11, Patrice CHOTARD wrote: > > > On 9/19/23 17:27, Gatien Chevallier wrote: >> Add RNG node for STM32MP13x platforms. >> >> Signed-off-by: Gatien Chevallier >> Reviewed-by: Patrick Delaunay >> --- >> Changes in V2: >> - Added Patrick's tag >> >> arch/arm/dts/stm32mp131.dt

[PATCH 0/4] Add AM62x LP SK support

2023-09-27 Thread Nitin Yadav
This series adds support of AM62x LP SK. The AM62x LP SK board is similar to AM62x SK but has some significant changes that requires different set of device tree at each stage of bootloader. Also refactors to have common nodes at k3-am62x-r5-sk-common.dtsi and k3-am62x-sk-common-u-boot.dtsi for all

[PATCH 1/4] arm: dts: Refactor common dtsi file for R5 and A53 SPL

2023-09-27 Thread Nitin Yadav
Add k3-am62x-r5-sk-common to include nodes common for R5 SPL from k3-am625-r5-sk for AM62x SoC based boards. Add k3-am62x-sk-common-u-boot to move common nodes of A53 SPL stage from k3-am625-sk-u-boot. Signed-off-by: Nitin Yadav --- arch/arm/dts/k3-am625-r5-sk.dts | 94 +

[PATCH 3/4] arm: dts: k3-am62-lp-sk-binman: Add binman support

2023-09-27 Thread Nitin Yadav
Switch to binman for building bootloader images. Reuse k3-am625-sk-binman and override the dtb names to that of AM62 LP SK board. Signed-off-by: Nitin Yadav --- arch/arm/dts/k3-am62-lp-sk-binman.dtsi | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 arch/arm/d

[PATCH 2/4] arm: dts: Add support for AM62x LP SK

2023-09-27 Thread Nitin Yadav
The AM62x LP SK board is similar to the AM62x SK board, but has some significant changes that requires different device tree. The differences are mainly: - AM62x SoC in the AMC package that meets AECQ100 automotive standard. - LPDDR4 versus DDR4 on the AM62x SK. - TPS65219 PMIC instead of discrete

[PATCH 4/4] board: ti: am62x: add am62x_lpsk_* defconfigs and env files

2023-09-27 Thread Nitin Yadav
Add defconfig fragments for AM62x LP SK and corresponding customized environment file for AM62x LP SK. Signed-off-by: Nitin Yadav --- board/ti/am62x/am62x_lpsk_a53.config | 5 + board/ti/am62x/am62x_lpsk_r5.config | 5 + board/ti/am62x/am62xlpsk.env | 21 +

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

2023-09-27 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). This v

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

2023-09-27 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 --- net/wget.c | 80 +- 1 file changed, 73

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

2023-09-27 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 v5 3/7] blk: blkmap: add ramdisk creation utility function

2023-09-27 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| 1 + drivers/block/bl

[PATCH v5 4/7] efi_loader: support boot from URI device path

2023-09-27 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 v5 5/7] cmd: efidebug: add uri device path

2023-09-27 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 | 50 +++ includ

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

2023-09-27 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 a7a41f2fac..23b3d

[PATCH v5 7/7] efi_loader: create BlockIo device boot option

2023-09-27 Thread Masahisa Kojima
Current efibootmgr automatically creates the boot options of all the disks and partitions installing SIMPLE_FILE_SYSTEM_PROTOCOL. These boot options are created to load and start the default file(e.g. EFI/BOOT/BOOTAA64.EFI). Now efibootmgr can scan the BlockIo device and try to boot with the defau

sunxi: introduce NCAT2 generation model

2023-09-27 Thread Okhunjon Sobirjonov
When NCAT2 generation model's introduced for t113, the modification in drivers/mmc/sunxi_mmc.c > + IS_ENABLED(CONFIG_SUNXI_GEN_NCAT2)) && (sdc_no == 2)) in struct mmc *sunxi_mmc_init(int sdc_no) seems to have some negative side effects, meaning enabling 8-bit mode for MMC2. Paticularly, IS_ENABLED

[PATCH 00/11] xilinx: add missing boards/SC descriptions

2023-09-27 Thread Michal Simek
Hi, I am sending series of zynqmp boards mostly related to system controller. System controller is small ZynqMP board sitting on Versal/Versal NET board doing board management. There is a internal spec about connection outside but pretty much DT description describe all connected IPs. The only thi

[PATCH 01/11] arm64: zynqmp: Add support for KD240 Kria SOM CC

2023-09-27 Thread Michal Simek
Add support for KD240 Kria SOM CC. It is pretty much subset of KR260 board from PS perspective. Signed-off-by: Michal Simek --- arch/arm/dts/Makefile | 1 + arch/arm/dts/zynqmp-sck-kd-g-revA.dtso | 353 + 2 files changed, 354 insertions(+) create mode

[PATCH 02/11] arm64: zynqmp: Remove xlnx,fclk nodes

2023-09-27 Thread Michal Simek
xlnx,fclk nodes are not described in dtschema that's why remove them. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-clk-ccf.dtsi | 18 -- 1 file changed, 18 deletions(-) diff --git a/arch/arm/dts/zynqmp-clk-ccf.dtsi b/arch/arm/dts/zynqmp-clk-ccf.dtsi index 4044b62d27a2..5

[PATCH 03/11] arm64: zynqmp: Add support for vck190 revB system controller

2023-09-27 Thread Michal Simek
There are some changes between revA and revB boards. u39 8T49N240 was removed and also three ina226 at 42/43/44 addresses (u178/u180/u182). Signed-off-by: Michal Simek --- arch/arm/dts/Makefile | 1 + arch/arm/dts/zynqmp-e-a2197-00-revB.dts | 34 + con

[PATCH 04/11] arm64: zynqmp: Add x-prc-01/02/03/04/05 revA support from SC

2023-09-27 Thread Michal Simek
Add i2c accessible devices with description. There is versal specific eeprom and i2c-gpio controller. SE3 has also clock chip present. Also remove x-prc description from SC dts. Signed-off-by: Michal Simek --- arch/arm/dts/Makefile | 5 ++ .../zynqmp-p-a2197-00-revA-x

[PATCH 05/11] arm64: zynqmp: Add support for vpk120-revA

2023-09-27 Thread Michal Simek
Board contains two systems. The primary is Versal VP1202 ACAP device and the secondary is ZynqMP zu4 which acts as system controller. The patch is describing only ZynqMP system controller part. Signed-off-by: Michal Simek --- arch/arm/dts/Makefile | 1 + arch/arm/dts/zynqmp-vpk1

[PATCH 06/11] arm64: zynqmp: Create description for generic SC (vpk120-revB)

2023-09-27 Thread Michal Simek
System controllers are pretty much the same on the all boards that's why use autodetection based on i2c eeprom. This should end up with having only one BSP for all SCs with only DT overlays to cover different i2c structures. All MIOs are fixed by the spec that's why not a problem to description pi

[PATCH 07/11] arm64: zynqmp: Add support for SC revC

2023-09-27 Thread Michal Simek
System controller revC is using ADI ethernet phy instead of TI because of supply chain issues. Describe reset assert and de-assert times to 10us and 5ms respectively according to the datasheet. Also setup RGMII RX and TX delay values to 2400ps as per board bring up observations. Signed-off-by: Mic

[PATCH 09/11] arm64: zynqmp: Add support for VPXA2785

2023-09-27 Thread Michal Simek
VPXA2785(vp-x-a2785-00) is evaluation board which contains two PCIe-Edge fingers, one for PCIe-B(gen5x8) and one for CPM(dual gen5x8, gen5x16). Each of the ports can operate in endpoint or root port mode. This allows the single card to be used for both root port, endpoint, and switch modes. The bo

[PATCH 08/11] arm64: zynqmp: Describe i2c structures for SCs

2023-09-27 Thread Michal Simek
Generic system controller (SC) covers connection defined by specification but different boards have different i2c devices. That's why describe i2c devices available on multiple boards. Signed-off-by: Michal Simek --- arch/arm/dts/Makefile | 7 + arch/arm/dts/zynqmp-sc-

[PATCH 10/11] arm64: zynqmp: Add support for zcu670-revA

2023-09-27 Thread Michal Simek
The board is sharing a lot of components with zcu208 but it contains differet silicon and also several components are done differently. The board has 4GB memory connected to PS and additional 4GB connected to PL. Compare to zcu208 sata support has been dropped and only USB3.0 is using GTR (lane2).

[PATCH 11/11] arm64: zynqmp: Add support for zcu670-revB

2023-09-27 Thread Michal Simek
RevB has different SD level shifter compare to revA. There are couple of changes between revisions but none of them requires SW alignment. Signed-off-by: Michal Simek --- arch/arm/dts/Makefile | 1 + arch/arm/dts/zynqmp-zcu670-revB.dts | 672 2 files

[PATCH] arm: dts: xilinx: Remove undocumented is-dual property

2023-09-27 Thread Michal Simek
Xilinx was using in past is-dual property for QSPIs to reflect their configurations. But handling for them never reached upstream code that's why better to remove them. Signed-off-by: Michal Simek --- arch/arm/dts/zynq-cc108.dts | 1 - arch/arm/dts/zynq-dlc20-rev1.0.dt

[PATCH] arm64: zynqmp: Do not use '_' in DT node names

2023-09-27 Thread Michal Simek
Using '_' is not recommended for node names. Use '-' instead. Pretty much run seds below for node names. s/heartbeat_led/heartbeat-led/ s/gtr_sel/gtr-sel/ s/zynqmp_ipi/zynqmp-ipi/ s/nvmem_firmware/nvmem-firmware/ s/soc_revision/soc-revision/ Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-m

Re: sunxi: introduce NCAT2 generation model

2023-09-27 Thread Andre Przywara
On Wed, 27 Sep 2023 12:42:52 +0300 Okhunjon Sobirjonov wrote: Hi, > When NCAT2 generation model's introduced for t113, > the modification in drivers/mmc/sunxi_mmc.c > > + IS_ENABLED(CONFIG_SUNXI_GEN_NCAT2)) && (sdc_no == 2)) > in struct mmc *sunxi_mmc_init(int sdc_no) seems to have > some nega

[PATCH] Revert "clk: versal: Enable clock driver for Versal NET"

2023-09-27 Thread Michal Simek
This partially reverts commit ff33227819f579ffb963e0dac6bc6a6566b89563. Versal NET clock node should use "xlnx,versal-net-clk", "xlnx,versal-clk" compatible string that's why it is not necessary to define Versal NET specific compatible string if there is no any other change needed. It can be get b

[PATCH] arm64: xilinx: Do not use '_' in si5335 DT node names

2023-09-27 Thread Michal Simek
Character '_' not recommended in node name. Use '-' instead. Pretty much run sed below for node names. s/si5335_/si5335-/ Signed-off-by: Michal Simek --- Till now I didn't heard back that different style should be used that's why also sending this patch and separately from other similar change r

Re: [RESEND PATCH v2] rockchip: include: asm: fix entering download mode rk3066

2023-09-27 Thread Kever Yang
Hi Johan, On 2023/9/19 23:28, Johan Jonker wrote: Keep track of the re-entries with help of the lr register. This binary can be re-used and called from various BROM functions. Only when it's called from the part that handles SPI, NAND or EMMC hardware it needs to early return to BROM ones. In do

Re: Enable thumb on AT91?

2023-09-27 Thread Eugen Hristev
On 9/27/23 01:15, Sean Anderson wrote: Hi Eugen, I noticed that several AT91 boards are quite close to their SPL size limit. For example, sama5d27_wlsom1_ek_mmc is just 173 bytes short of its limit and doesn't even git with older GCCs. I looked at the datasheet for that processor, and noticed th

Re: [PATCH 2/5] iot2050: rename overlay sources to .dtso

2023-09-27 Thread Jan Kiszka
On 25.09.23 10:09, Rasmus Villemoes wrote: > Distinguish more clearly between source files meant for producing .dtb > from those meant for producing .dtbo. No functional change, as we > currently have rules for producing a foo.dtbo from either foo.dts or > foo.dtso. > > Note that in the linux tree

Re: [PATCH 2/4] arm: dts: Add support for AM62x LP SK

2023-09-27 Thread Nishanth Menon
On 13:51-20230927, Nitin Yadav wrote: > The AM62x LP SK board is similar to the AM62x SK board, > but has some significant changes that requires different > device tree. > > The differences are mainly: > - AM62x SoC in the AMC package that meets AECQ100 automotive standard. >

Re: [PATCH 3/4] arm: dts: k3-am62-lp-sk-binman: Add binman support

2023-09-27 Thread Nishanth Menon
On 13:51-20230927, Nitin Yadav wrote: > Switch to binman for building bootloader images. Reuse > k3-am625-sk-binman and override the dtb names to that > of AM62 LP SK board. > > Signed-off-by: Nitin Yadav > --- > arch/arm/dts/k3-am62-lp-sk-binman.dtsi | 29 +++

Re: [PATCH 4/4] board: ti: am62x: add am62x_lpsk_* defconfigs and env files

2023-09-27 Thread Nishanth Menon
On 13:51-20230927, Nitin Yadav wrote: > Add defconfig fragments for AM62x LP SK and corresponding > customized environment file for AM62x LP SK. > > Signed-off-by: Nitin Yadav > --- > board/ti/am62x/am62x_lpsk_a53.config | 5 + > board/ti/am62x/am62x_lpsk_r5.config |

Re: [PATCH 1/4] arm: dts: Refactor common dtsi file for R5 and A53 SPL

2023-09-27 Thread Nishanth Menon
On 13:51-20230927, Nitin Yadav wrote: > Add k3-am62x-r5-sk-common to include nodes common for R5 > SPL from k3-am625-r5-sk for AM62x SoC based boards. Add > k3-am62x-sk-common-u-boot to move common nodes of A53 SPL > stage from k3-am625-sk-u-boot. > > Signed-o

Re: [PATCH 0/4] Add AM62x LP SK support

2023-09-27 Thread Nishanth Menon
On 13:51-20230927, Nitin Yadav wrote: > This series adds support of AM62x LP SK. The AM62x LP SK board > is similar to AM62x SK but has some significant changes that > requires different set of device tree at each stage of bootloader. > Also refactors to have common nodes at k3

[PATCH 0/2] arm: dts: k3-am64: Sync dts from Linux v6.6-rc1

2023-09-27 Thread Roger Quadros
Hi, This series aligns the dts files for AM64 platform from Linux v6.6-rc1. cheers, -roger Roger Quadros (2): Revert "ARM: dts: k3-am642-sk-u-boot: add PMIC node" arm: dts: k3-am64: Bump dts from Linux v6.6-rc1 arch/arm/dts/k3-am64-main.dtsi| 209 ++ arch/ar

[PATCH 1/2] Revert "ARM: dts: k3-am642-sk-u-boot: add PMIC node"

2023-09-27 Thread Roger Quadros
This reverts commit 28a4c3113445d4400639f357fae0def007a41093. The PMIC should come from the k3-am642-sk.dts file. There are 2 variants of the AM642-SK board and each has a different PMIC. i.e. SK-AM64 [1] has TPS6521855 and SK-AM64B [2] has TPS6522053. [1] - https://www.ti.com/tool/SK-AM64 [2] -

[PATCH 2/2] arm: dts: k3-am64: Bump dts from Linux v6.6-rc1

2023-09-27 Thread Roger Quadros
Update the am64 and am642 device-trees from linux v6.6-rc1. This needed the following tweaks to the u-boot specific dtsi as well: - Switch tick-timer to the main_timer as it's now defined in the main dtsi - Secure proxies are defined in SoC dtsi - Drop duplicate nodes - u-boot.dtsi is included in

Re: [PATCH 0/2] arm: dts: k3-am64: Sync dts from Linux v6.6-rc1

2023-09-27 Thread Nishanth Menon
On 15:01-20230927, Roger Quadros wrote: > Hi, > > This series aligns the dts files for AM64 platform from Linux v6.6-rc1. > > cheers, > -roger > > Roger Quadros (2): > Revert "ARM: dts: k3-am642-sk-u-boot: add PMIC node" > arm: dts: k3-am64: Bump dt

[PATCH v2] test/py: sleep: Add a test for the time command

2023-09-27 Thread Love Kumar
Execute "time ", and validate that it gives the approximately the correct amount of command execution time. Signed-off-by: Love Kumar --- Changes in v2: - Used @pytest.mark.buildconfigspec('') --- test/py/tests/test_sleep.py | 18 ++ 1 file changed, 18 insertions(+) diff --git

image-host: small improvements and fixes.

2023-09-27 Thread Hugo Cornelis
Yocto build can involve very long filenames. These two patches protect the Yocto build from failing without a sensible error message and increase the path length for the cipher key for the kernel from 128 to 256 characters.

[PATCH 1/2] image-host: add a check of the return value of snprintf.

2023-09-27 Thread Hugo Cornelis
--- tools/image-host.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/tools/image-host.c b/tools/image-host.c index a6b0a94420..0c92a2ddeb 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -363,6 +363,7 @@ static int fit_image_setup_cipher

[PATCH 2/2] image-host: increase path length when setting up the cipher.

2023-09-27 Thread Hugo Cornelis
--- tools/image-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/image-host.c b/tools/image-host.c index 0c92a2ddeb..9afcc02192 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -361,7 +361,7 @@ static int fit_image_setup_cipher(struct image_cipher_info *

[PATCH 1/2] ram: stm32mp1: Only print RAM config with CONFIG_SPL_DISPLAY_PRINT

2023-09-27 Thread Harald Seiler
Ensure that the RAM configuration line is only printed when CONFIG_SPL_DISPLAY_PRINT is set. Signed-off-by: Harald Seiler --- drivers/ram/stm32mp1/stm32mp1_ram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ram/stm32mp1/stm32mp1_ram.c b/drivers/ram/stm32mp1/stm3

[PATCH 2/2] board: dh_stm32mp1: Only print board code with CONFIG_SPL_DISPLAY_PRINT

2023-09-27 Thread Harald Seiler
Ensure that the SoM and board code information is only printed when CONFIG_SPL_DISPLAY_PRINT is set. Signed-off-by: Harald Seiler --- board/dhelectronics/dh_stm32mp1/board.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/

Re: image-host: small improvements and fixes.

2023-09-27 Thread Paul Barker
On 27/09/2023 12:59, Hugo Cornelis wrote: > Yocto build can involve very long filenames. These two patches protect > the Yocto build from failing without a sensible error message and > increase the path length for the cipher key for the kernel from 128 to > 256 characters. > > For both patches:

[PATCH v4 0/6] J721E DTS Sync with Kernel v6.6-rc1

2023-09-27 Thread Neha Malcom Francis
This series aims to sync kernel.org v6.6-rc1 DTS with that of U-Boot. It also includes cleanups where necessary along with certain changes to ensure boot is unaffected. Same as with other board series that have taken up this effort, cleanup of mcu_ringacc and mcu_udmap are dependent on MCU DMA [1]

[PATCH v4 1/6] arm: mach-k3: j721e: dev-data: Add mcu_timer0 ID

2023-09-27 Thread Neha Malcom Francis
U-Boot uses mcu_timer0 as the tick-timer, so add it to device list. Signed-off-by: Neha Malcom Francis Reviewed-by: Manorit Chawdhry Reviewed-by: Nishanth Menon --- arch/arm/mach-k3/j721e/dev-data.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-k3/j721e/dev-data.c b/arch/a

[PATCH v4 2/6] arm: mach-k3: j721e_init: Move clk_k3 probe before loading TIFS

2023-09-27 Thread Neha Malcom Francis
When setting boot media to load the TIFS binary in legacy boot flow (followed by J721E), get_timer() is called which eventually calls dm_timer_init() to grab the tick-timer, which is mcu_timer0. Since we need to set up the clocks before using the timer, move clk_k3 driver probe before k3_sysfw_load

[PATCH v4 3/6] drivers: firmware: ti_sci: Get SCI revision only if TIFS/SYSFW is up

2023-09-27 Thread Neha Malcom Francis
When setting up boot media to load the TIFS binary in legacy boot flow (followed by J721E), get_timer() is called which calls dm_timer_init() which then gets the tick-timer: mcu_timer0. mcu_timer0 uses k3_clks (clock controller) and k3_pds (power controller) from the dmsc node that forces probe of

[PATCH v4 4/6] configs: j721e: Remove HBMC_AM654 config

2023-09-27 Thread Neha Malcom Francis
Kernel commit d93036b47f35 ("arm64: dts: ti: k3-j721e-mcu_wakeup: Add HyperBus node") was merged to kernel without its dependent patch [1]. Similar fix is needed in U-Boot, and hbmc currently breaks boot. Till this gets fixed in U-Boot, disable the config by default so that the hbmc probe that happ

[PATCH v4 5/6] arm: dts: k3-j721e-r5: Clean up inclusion hierarchy

2023-09-27 Thread Neha Malcom Francis
Get rid of k3-j721e-r5-*-u-boot.dtsi as it is not necessary. Change the inclusion hierarchy to be as follows: k3-j721e-.dts--- - -->k3-j721e-r5-.dts - k3-j721e--u-boot.dtsi--- Reason for explicit

[PATCH 1/5] core: fix doc comments of dev_read_addr*() and related functions

2023-09-27 Thread Matthias Schiffer
- The dev_read_addr_name*() family of functions has no "index" argument, doc comments should refer to "name" - Specify the error return for several devfdt_get_addr*() functions Signed-off-by: Matthias Schiffer --- include/dm/fdtaddr.h | 12 ++-- include/dm/read.h| 6 +++--- 2 file

[PATCH 2/5] core: return FDT_ADDR_T_NONE from devfdt_get_addr_[size_]name() on errors

2023-09-27 Thread Matthias Schiffer
Checking for the error cast to fdt_addr_t is rather awkward - IS_ERR() can be used, but it's not really made to be used on fdt_addr_t, which may not even be the same size as a native pointer. Most places in U-Boot only check for FDT_ADDR_T_NONE; let's adjust the error return to match the expectati

[PATCH 3/5] core: introduce dev_read_addr_name[_size]_ptr() functions

2023-09-27 Thread Matthias Schiffer
Same as dev_read_addr_name[_size](), but returns a pointer, cast through map_sysmem(). Signed-off-by: Matthias Schiffer --- drivers/core/fdtaddr.c | 21 + drivers/core/read.c| 21 + include/dm/fdtaddr.h | 31 +++ include/d

[PATCH 5/5] treewide: use dev_read_addr_*_ptr() where appropriate

2023-09-27 Thread Matthias Schiffer
A follow-up to commit 842fb5de424e ("drivers: use devfdt_get_addr_size_index_ptr when cast to pointer") and commit 320a1938b6f7 ("drivers: use devfdt_get_addr_index_ptr when cast to pointer"). In addition to using the *_ptr variants of these functions where the address is cast to a pointer, this a

[PATCH 4/5] pinctrl: single: fix compile warnings with PHYS_64BIT on 32bit

2023-09-27 Thread Matthias Schiffer
pinctrl-single uses fdt_addr_t and phys_addr_t inconsistently, but both are wrong to be passed to readb() etc., which expect a pointer or pointer-sized integer. Change the driver to use dev_read_addr_size_index_ptr(), so we consistently deal with void* (except for the sandbox case and single_get_pi

[PATCH] arm: mach-k3: common: fix compile warnings with PHYS_64BIT on 32bit

2023-09-27 Thread Matthias Schiffer
Use uintptr_t instead of phys_addr_t where appropriate, so passing the addresses to writel() doesn't result in compile warnings when PHYS_64BIT is set for 32bit builds (which is actually a useful configuration, as the K3 SoC family boots from an R5 SPL, which may pass bank information based on gd->

Re: [PATCH v2 01/17] dm: usb: udc: Factor out plain udevice handler functions

2023-09-27 Thread Miquel Raynal
Hi Marek, miquel.ray...@bootlin.com wrote on Fri, 22 Sep 2023 12:00:12 +0200: > Hi Marek, > > I'm answering here as there is no cover letter. Just to let you know > I'm still concerned by the series and want to test it but did not had > the time to do so recently. Hopefully next week. The serie

Re: [PATCH 4/4] binman: update documentation for fit,align property

2023-09-27 Thread Simon Glass
Hi Rasmus, On Tue, 26 Sept 2023 at 00:25, Rasmus Villemoes wrote: > > On 25/09/2023 17.14, Jonas Karlman wrote: > > >> fit,align > >> -Indicates what alignment to use for the FIT and its external data, > >> -and provides the alignment to use. This is passed to mkimage via > >

Re: [PATCH v3 04/38] spl: mx6: powerpc: Drop the condition on timer_init()

2023-09-27 Thread Simon Glass
Hi Christophe, On Tue, 26 Sept 2023 at 00:46, Christophe Leroy wrote: > > > > Le 24/09/2023 à 21:24, Simon Glass a écrit : > > It doesn't make sense to have some boards do this differently. Drop the > > condition in the hope that the maintainers can figure out any run-time > > problems. > > This

[PATCH v5 39/43] command: Include a required header in command.h

2023-09-27 Thread Simon Glass
This uses ARRAY_SIZE() but does not include the header file which declares it. Fix this, so that command.h can be included without common.h Signed-off-by: Simon Glass --- Changes in v5: - Adjust so this builds on azure boot/bootm.c | 2 +- include/command.h | 4 2 files changed, 5 in

[PATCH v2 0/4] armv8: fsl-layerscape: add support for MC reserved memory

2023-09-27 Thread Laurentiu Tudor
Add support for declaring in device tree the reserved memory ranges required for MC. Since the MC firmware acts as any DMA master present in the SoC, the reserved memory ranges need also be identity mapped in the SMMU, so create the required 'iommu-addresses' property in the reserved memory nodes.

[PATCH v2 1/4] armv8: fsl-layerscape: make some functions static

2023-09-27 Thread Laurentiu Tudor
Some functions are not used outside this file, so make them static. Signed-off-by: Laurentiu Tudor --- arch/arm/cpu/armv8/fsl-layerscape/icid.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/icid.c b/arch/arm/cpu/armv8/fsl-laye

[PATCH v2 2/4] drivers: net: fsl-mc: add support for MC reserved memory

2023-09-27 Thread Laurentiu Tudor
Add support for declaring in device tree the reserved memory ranges required for MC. Since the MC firmware acts as any DMA master present in the SoC, the reserved memory ranges need also be identity mapped in the SMMU, so create the required 'iommu-addresses' property in the reserved memory nodes.

[PATCH v2 3/4] board: freescale: ls2080a: declare MC reserved regions

2023-09-27 Thread Laurentiu Tudor
Populate the device tree with the MC reserved memory regions. Signed-off-by: Laurentiu Tudor --- board/freescale/ls2080aqds/ls2080aqds.c | 1 + board/freescale/ls2080ardb/ls2080ardb.c | 1 + 2 files changed, 2 insertions(+) diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale

[PATCH v2 4/4] board: freescale: ls1088a: declare MC reserved regions

2023-09-27 Thread Laurentiu Tudor
Populate the device tree with the MC reserved memory regions. Signed-off-by: Laurentiu Tudor --- board/freescale/ls1088a/ls1088a.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c index 65593f10a3f5..7674e31a268a 100644 --

[PATCH] tools: iot2050-sign-fw.sh: Make localization of tools dir more robust

2023-09-27 Thread Jan Kiszka
From: Jan Kiszka When building in-tree, there is no source link. Signed-off-by: Jan Kiszka --- tools/iot2050-sign-fw.sh | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/iot2050-sign-fw.sh b/tools/iot2050-sign-fw.sh index 6b426c854c2..75ffd560823 100755 --- a

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

2023-09-27 Thread Andre Przywara
On Wed, 16 Aug 2023 10:34:19 -0700 Sam Edwards wrote: Hi Sam, > 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-by: Maksim Kiselev > --- > arch/arm/cpu/armv7/sunxi/psci.c | 48

Re: [PATCH v2 5/5] HACK: sunxi: psci: be compatible with v1 of R528 patchset

2023-09-27 Thread Andre Przywara
On Wed, 16 Aug 2023 10:34:20 -0700 Sam Edwards wrote: Hi Sam, > This is a hack for reviewer QoL. It is not being submitted for mainline > inclusion. > --- > arch/arm/cpu/armv7/sunxi/psci.c | 12 > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm/cpu/armv7/sunxi/psci.c b/

Re: [PATCH v2 1/5] sunxi: psci: clean away preprocessor macros

2023-09-27 Thread Andre Przywara
On Fri, 18 Aug 2023 14:17:07 -0700 Sam Edwards wrote: > On 8/18/23 10:40, Sam Edwards wrote: > > On 8/18/23 07:11, Andre Przywara wrote: > > > > Hi Andre, > > > >> The resulting object file is different (8 byte larger, > >> even), so it's hard to prove > > > > I'm no stranger to reading ob

Re: [PATCH] dt-bindings: mtd: Add a schema for binman

2023-09-27 Thread Simon Glass
Hi Rob, On Tue, 26 Sept 2023 at 11:29, Rob Herring wrote: > > On Tue, Sep 26, 2023 at 2:48 AM Miquel Raynal > wrote: > > > > Hello, > > > > > > > > > These are firmware bindings, as indicated, but I > > > > > > > took them out of the /firmware node since that is for a different > > > > > > > pu

[PATCH v3] dt-bindings: mtd: fixed-partitions: Add compression property

2023-09-27 Thread Simon Glass
Sometimes the contents of a partition are compressed. Add a property to express this and define the algorithm used. Signed-off-by: Simon Glass --- Changes in v3: - Just add a compression property for now Changes in v2: - Use "binman" for compatible instead of "u-boot,binman" - Significantly rew

[PATCH] configs: iot2050: Disable CONFIG_CONSOLE_MUX

2023-09-27 Thread Jan Kiszka
From: Jan Kiszka We only have serial as console option, and leaving this on turns on SYS_CONSOLE_IS_IN_ENV which is also not true for these devices, leaving an ugly In:No input devices available! Out: No output devices available! Err: No error devices available! behind. Signed-off-by:

[PATCH v4] dt-bindings: mtd: fixed-partitions: Add compression property

2023-09-27 Thread Simon Glass
Sometimes the contents of a partition are compressed. Add a property to express this and define the algorithm used. Signed-off-by: Simon Glass --- Changes in v4: - Add an example Changes in v3: - Just add a compression property for now Changes in v2: - Use "binman" for compatible instead of "u

Re: [PATCH v4 1/1] CI: add test/usage_of_is_enabled_check.sh

2023-09-27 Thread Troy Kisky
On Mon, Jun 19, 2023 at 4:07 PM Troy Kisky wrote: > Add script usage_of_is_enabled_check to print any configs that > use CONFIG_IS_ENABLED instead of IS_ENABLED and vice versa. > > Add usage_of_is_enabled_commit.sh to generate commits to fix the above > issues. > > You can remove entries from tes

Re: [PATCH v4 1/1] CI: add test/usage_of_is_enabled_check.sh

2023-09-27 Thread Troy Kisky
On Wed, Sep 27, 2023 at 11:14 AM Troy Kisky wrote: > > > On Mon, Jun 19, 2023 at 4:07 PM Troy Kisky > wrote: > >> Add script usage_of_is_enabled_check to print any configs that >> use CONFIG_IS_ENABLED instead of IS_ENABLED and vice versa. >> >> Add usage_of_is_enabled_commit.sh to generate comm

Re: [PATCH 1/4] mkimage: also honour -B even without external data

2023-09-27 Thread Sean Anderson
On 9/19/23 07:37, Rasmus Villemoes wrote: In some cases, using the "external data" feature is impossible or undesirable, but one may still want (or need) the FIT image to have a certain alignment. Also, given the current 'mkimage -h' output, -B => align size in hex for FIT structure and heade

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

2023-09-27 Thread Simon Glass
Add a compatible string for binman, so we can extend fixed-partitions in various ways. Signed-off-by: Simon Glass --- .../bindings/mtd/partitions/binman.yaml | 49 +++ .../mtd/partitions/fixed-partitions.yaml | 6 +++ .../bindings/mtd/partitions/partitions.yaml |

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

2023-09-27 Thread Simon Glass
Add two labels for binman entries, as a starting point for the schema. Signed-off-by: Simon Glass --- .../mtd/partitions/binman-partition.yaml | 48 +++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/binman-partition.y

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

2023-09-27 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 'fixed-partitions' node. These new properties are inputs to the packaging process, but are also needed if the firmware is repacked,

Re: [PATCH 2/2] board: Add support for Conclusive KSTR-SAMA5D27

2023-09-27 Thread Eugen Hristev
On 9/25/23 22:31, Artur Rojek wrote: Hey Eugen, thanks for the review. Hello, Thank you for your patch, On 9/21/23 18:37, Artur Rojek wrote: Introduce support for Conclusive KSTR-SAMA5D27 Single Board Computer. Co-developed-by: Jakub Klama Signed-off-by: Jakub Klama Co-developed-by: Marci

Re: [PATCH] riscv: andesv5: Prefer using the generic RISC-V timer driver in S-mode

2023-09-27 Thread Samuel Holland
On 9/27/23 02:25, Yu Chien Peter Lin wrote: > The Andes PLMT driver directly accesses the mtime MMIO region, > indicating its intended use in the M-mode boot stage. However, > since U-Boot proper (S-mode) also uses the PLMT driver, we need > to specifically mark the region as readable through PMPCF

Re: [PATCH v2 5/5] HACK: sunxi: psci: be compatible with v1 of R528 patchset

2023-09-27 Thread Sam Edwards
On 9/27/23 10:32, Andre Przywara wrote: On Wed, 16 Aug 2023 10:34:20 -0700 Sam Edwards wrote: Hi Sam, Hi Andre, Mmh, I didn't find a better solution than keeping this in. I'll keep it if your R528 v2 doesn't find some other way to address it. +#endif +#if defined(SUNXI_CPUX_BASE) && def

Re: [PATCH v2 1/5] sunxi: psci: clean away preprocessor macros

2023-09-27 Thread Sam Edwards
On 9/27/23 10:34, Andre Przywara wrote: In the majority of cases, there are no changes to the text section introduced by this patch. In the R40 case, there's a small change where the compiler adds a NULL check onto the result of the `(void *)cpucfg + SUN8I_R40_PWR_CLAMP(cpu)` computation, which w

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

2023-09-27 Thread Sam Edwards
On 9/27/23 10:31, Andre Przywara wrote: On Wed, 16 Aug 2023 10:34:19 -0700 Sam Edwards wrote: Hi Sam, Hi Andre, @@ -103,10 +116,13 @@ static void __secure clamp_set(u32 *clamp) static void __secure sunxi_cpu_set_entry(int __always_unused cpu, void *entry) { - /* secondary core

  1   2   >