[PATCH] rockchip: io-domain: Add support for RK3308

2024-07-23 Thread Jonas Karlman
Port the RK3308 part of the Rockchip IO Domain driver from linux. This differs from linux version in that vccio3 iodomain bit is enabled in the write ops instead of in an init ops as in linux, this way we can avoid keeping a full state of all supply that have been configured. Signed-off-by: Jonas

[PATCH] mmc: rockchip_dw_mmc: Allow 4-bit mode when 8-bit mode is supported

2024-07-23 Thread Jonas Karlman
Hosts capable of 8-bit can also do 4 bits, fix use of 4-bit mode when 8-bit mode is supported. This fixes use of 1-bit mode with SD NAND on ROCK Pi S using the DT in v6.11-rc1 that chage to use 8-bit bus to also support eMMC. With this 4-bit mode is used with SD NAND and 8-bit mode with eMMC, same

[PATCH 40/40] lmb: ut: re-enable unit tests

2024-07-23 Thread Sughosh Ganu
All the changes needed for making the LMB memory map persistent and global have been made, including making corresponding changes in the test code. Re-enable the unit tests on the platforms. Signed-off-by: Sughosh Ganu --- Changes since rfc: New patch configs/sandbox64_defconfig| 4 +++-

[PATCH 38/40] test: bdinfo: dump the global LMB memory map

2024-07-23 Thread Sughosh Ganu
The LMB code has been changed to make the memory reservations persistent and global. Make corresponding change the the lmb_test_dump_all() function to print the global LMB available and used memory. Signed-off-by: Sughosh Ganu --- Changes since rfc: None test/cmd/bdinfo.c | 28 -

[PATCH 39/40] sandbox: adjust load address of couple of tests

2024-07-23 Thread Sughosh Ganu
The TCG event log has now been moved to the start of the memory, and occupies 8KB of memory. Make a corresponding change to the load address in a couple of tests so that it does not overlap with the TCG event log. Signed-off-by: Sughosh Ganu --- Changes since rfc: New patch test/py/tests/test_a

[PATCH 36/40] test: lmb: add a separate class of unit tests for lmb

2024-07-23 Thread Sughosh Ganu
Add the LMB unit tests under a separate class of tests. The LMB tests involve changing the LMB's memory map. With the memory map now persistent and global, running these tests has a side effect and impact any subsequent tests. Run these tests separately so that the system can be reset on completion

[PATCH 37/40] test: lmb: invoke the LMB unit tests from a separate script

2024-07-23 Thread Sughosh Ganu
With the LMB tests moved under a separate class of unit tests, invoke these from a separate script which would allow for a system reset once the tests have been run. This enables clearing up the LMB memory map after having run the tests. Signed-off-by: Sughosh Ganu --- Changes since rfc: None t

[PATCH 35/40] test: lmb: run lmb tests only manually

2024-07-23 Thread Sughosh Ganu
The LMB code has been changed so that the memory reservations and allocations are now persistent and global. With this change, the design of the LMB tests needs to be changed accordingly. Mark the LMB tests to be run only manually. The tests won't be run as part of the unit test suite, but would be

[PATCH 33/40] test: cedit: use allocated address for reading file

2024-07-23 Thread Sughosh Ganu
Instead of a randomly selected address, use an LMB allocated one for reading the file into memory. With the LMB map now being persistent and global, the address used for reading the file might be already allocated as non-overwritable, resulting in a failure. Get a valid address from LMB and then re

[PATCH 34/40] test: lmb: tweak the tests for the persistent lmb memory map

2024-07-23 Thread Sughosh Ganu
The LMB memory maps are now persistent, with alloced lists being used to keep track of the available and free memory. Make corresponding changes in the test functions so that the list information can be accessed by the tests for checking against expected values. Also introduce functions to initiali

[PATCH 31/40] zynq: lmb: do not add to lmb map before relocation

2024-07-23 Thread Sughosh Ganu
The LMB memory is typically not needed very early in the platform's boot. Do not add memory to the LMB map before relocation. Reservation of common areas and adding of memory is done after relocation. Signed-off-by: Sughosh Ganu --- Changes since rfc: None board/xilinx/common/board.c | 31 -

[PATCH 32/40] stm32mp: do not add lmb memory before relocation

2024-07-23 Thread Sughosh Ganu
The LMB memory map is now being handled through data structures which need heap memory to be operational. Moreover, the LMB memory map is initialised as part of the board boot after relocation as part of platform agnostic code. Remove addition of LMB memory before relocation for the stm32mp platfor

[PATCH 30/40] sandbox: iommu: remove lmb allocation in the driver

2024-07-23 Thread Sughosh Ganu
The sandbox iommu driver uses the LMB module to allocate a particular range of memory for the device virtual address(DVA). This used to work earlier since the LMB memory map was caller specific and not global. But with the change to make the LMB allocations global and persistent, adding this memory

[PATCH 28/40] lmb: config: make lmb config symbol def_bool

2024-07-23 Thread Sughosh Ganu
The LMB module provides allocation/reservation API's, primarily for loading images to memory. This is functionality which is used by all boards. Make the config symbol used for the main U-Boot image as def_bool and enable it by default. Signed-off-by: Sughosh Ganu --- Changes since rfc: New patch

[PATCH 29/40] sandbox: spl: enable lmb config for SPL

2024-07-23 Thread Sughosh Ganu
Enable the LMB config in SPL. This helps in testing the LMB code in SPL on sandbox. Signed-off-by: Sughosh Ganu --- Changes since rfc: * Enable config for sandbox_noinst configs/sandbox_noinst_defconfig | 1 + configs/sandbox_spl_defconfig| 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH 26/40] spl: call spl_board_init() at the end of the spl init sequence

2024-07-23 Thread Sughosh Ganu
The spl_board_init() function on sandbox invokes the unit tests. Invoking the tests should be done once the rest of the system has been initialised. Call the spl_board_init() function at the very end, once the rest of the initilisation functions have been called, including the setting up of the LMB

[PATCH 27/40] spl: sandbox: initialise the ram banksize in spl

2024-07-23 Thread Sughosh Ganu
Initialise the ram bank information for sandbox in SPL. This is needed for initialising the LMB memory map as part of the platform init. Signed-off-by: Sughosh Ganu --- Changes since rfc: New patch arch/sandbox/cpu/spl.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff

[PATCH 24/40] lmb: add a common implementation of arch_lmb_reserve()

2024-07-23 Thread Sughosh Ganu
Almost all of the current definitions of arch_lmb_reserve() are doing the same thing. The only exception in a couple of cases is the alignment parameter requirement. Have a generic weak implementation of this function, keeping the highest value of alignment that is being used(16K). Also, instead o

[PATCH 25/40] sandbox: move the TCG event log to the start of ram memory

2024-07-23 Thread Sughosh Ganu
The TCG event log buffer is being set at the end of ram memory. This region of memory is to be reserved as LMB_NOMAP memory in the LMB memory map. The current location of this buffer overlaps with the memory region reserved for the U-Boot image, which is at the top of the usable memory. This worked

[PATCH 23/40] lmb: add a flags parameter to the API's

2024-07-23 Thread Sughosh Ganu
Add a flags parameter to the LMB API functions. The parameter can then be used to pass any other type of reservations or allocations needed by the callers. These will be used in a subsequent set of changes for allocation requests coming from the EFI subsystem. Signed-off-by: Sughosh Ganu --- Chan

[PATCH 22/40] lmb: init: initialise the lmb data structures during board init

2024-07-23 Thread Sughosh Ganu
The memory map maintained by the LMB module is now persistent and global. This memory map is being maintained through the alloced list structure which can be extended at runtime -- there is one list for the available memory, and one for the used memory. Allocate and initialise these lists during th

[PATCH 21/40] lmb: bootm: remove superfluous lmb stub functions

2024-07-23 Thread Sughosh Ganu
Remove a couple of superfluous LMB stub functions, and instead put a check for calling the lmb_reserve() function. Signed-off-by: Sughosh Ganu --- Changes since rfc: New patch boot/bootm.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/boot/bootm.c b/boot/bootm.c i

[PATCH 20/40] lmb: remove lmb_init_and_reserve_range() function

2024-07-23 Thread Sughosh Ganu
With the move to make the LMB allocations persistent and the common memory regions being reserved during board init, there is no need for an explicit reservation of a memory range. Remove the lmb_init_and_reserve_range() function. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewe

[PATCH 19/40] lmb: reserve common areas during board init

2024-07-23 Thread Sughosh Ganu
The LMB module provides API's for allocating and reserving chunks of memory which is then typically used for things like loading images for booting. Reserve the portion of memory that is occupied by the U-Boot image itself, and other parts of memory that might have been marked as reserved in the bo

[PATCH 18/40] lmb: remove the lmb_init_and_reserve() function

2024-07-23 Thread Sughosh Ganu
With the changes to make the LMB reservations persistent, the common memory regions are being added during board init. Remove the now superfluous lmb_init_and_reserve() function. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- Changes since rfc: None arc

[PATCH 16/40] lmb: allow lmb module to be used in SPL

2024-07-23 Thread Sughosh Ganu
With the introduction of separate config symbols for the SPL phase of U-Boot, the condition checks need to be tweaked so that platforms that enable the LMB module in SPL are also able to call the LMB API's. Use the appropriate condition checks to achieve this. Signed-off-by: Sughosh Ganu --- Chan

[PATCH 17/40] lmb: introduce a function to add memory to the lmb memory map

2024-07-23 Thread Sughosh Ganu
Introduce a function lmb_add_memory() to add available memory to the LMB memory map. Call this function during board init once the LMB data structures have been initialised. Signed-off-by: Sughosh Ganu --- Changes since rfc: None include/lmb.h | 12 lib/lmb.c | 42 +

[PATCH 15/40] lmb: config: add lmb config symbols for SPL

2024-07-23 Thread Sughosh Ganu
Add separate config symbols for enabling the LMB module for the SPL phase. The LMB module implementation now relies on alloced list data structure which requires heap area to be present. Add specific config symbol for the SPL phase of U-Boot so that this can be enabled on platforms which support a

[PATCH 13/40] lmb: remove config symbols used for lmb region count

2024-07-23 Thread Sughosh Ganu
The LMB memory maps are now being maintained through a couple of alloced lists, one for the available(added) memory, and one for the used memory. These lists are not static arrays but can be extended at runtime. Remove the config symbols which were being used to define the size of these lists with

[PATCH 14/40] test: lmb: remove the test for max regions

2024-07-23 Thread Sughosh Ganu
The LMB memory map is now persistent and global, and the CONFIG_LMB_USE_MAX_REGIONS config symbol has now been removed. Remove the corresponding lmb test case. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- Changes since rfc: None test/lib/lmb.c | 67 --

[PATCH 11/40] lmb: make LMB memory map persistent and global

2024-07-23 Thread Sughosh Ganu
The current LMB API's for allocating and reserving memory use a per-caller based memory view. Memory allocated by a caller can then be overwritten by another caller. Make these allocations and reservations persistent using the alloced list data structure. Two alloced lists are declared -- one for

[PATCH 12/40] lmb: allow for resizing lmb regions

2024-07-23 Thread Sughosh Ganu
Allow for resizing of LMB regions if the region attributes match. The current code returns a failure status on detecting an overlapping address. This worked up until now since the LMB calls were not persistent and global -- the LMB memory map was specific and private to a given caller of the LMB AP

[PATCH 10/40] lmb: use the BIT macro for lmb flags

2024-07-23 Thread Sughosh Ganu
Use the BIT macro for assigning values to the LMB flags instead of assigning random values to them. Signed-off-by: Sughosh Ganu --- Changes since rfc: None include/lmb.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index 7b87181b9e..a1de

[PATCH 09/40] lmb: staticize __lmb_alloc_base()

2024-07-23 Thread Sughosh Ganu
The __lmb_alloc_base() function is only called from within the lmb module. Moreover, the lmb_alloc() and lmb_alloc_base() API's are good enough for the allocation API calls. Make the __lmb_alloc_base() function static. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon

[PATCH 08/40] lmb: remove the unused lmb_is_reserved() function

2024-07-23 Thread Sughosh Ganu
The lmb_is_reserved() API is not used. There is another API, lmb_is_reserved_flags() which can be used to check if a particular memory region is reserved. Remove the unused API. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes since rfc: None incl

[PATCH 07/40] lmb: ut: disable unit tests for lmb changes

2024-07-23 Thread Sughosh Ganu
The LMB module code is being overhauled to make it's memory map global and persistent. This involves extensive changes to the LMB code. Disable the unit test code temporarily till the changes are in place. These tests will be enabled in a subsequent commit once all the LMB module and the correspond

[PATCH 06/40] alist: add a couple of helper functions

2024-07-23 Thread Sughosh Ganu
Add a couple of helper functions to detect an empty and full alist. Signed-off-by: Sughosh Ganu --- Changes since rfc: None include/alist.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/include/alist.h b/include/alist.h index 6cc3161dcd..06ae137102 100644 --- a/inc

[PATCH 05/40] spl: alloc: call full alloc functions if malloc pool is available

2024-07-23 Thread Sughosh Ganu
If the malloc simple functionality is enabled in SPL, it is not possible to call the full-implementation alloc functions even after the heap is set-up in ram memory. Check for this condition and call the functions when enabled. Signed-off-by: Sughosh Ganu --- Changes since rfc: New patch common

[PATCH 04/40] lib: Convert str_to_list() to use alist

2024-07-23 Thread Sughosh Ganu
From: Simon Glass Use this new data structure in the utility function. Signed-off-by: Simon Glass Signed-off-by: Sughosh Ganu --- lib/strto.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/lib/strto.c b/lib/strto.c index f83ac67c66..2

[PATCH 03/40] alist: Add support for an allocated pointer list

2024-07-23 Thread Sughosh Ganu
From: Simon Glass In various places it is useful to have an array of structures, but allow it to grow. In some cases we work around it by setting maximum number of entries, using a Kconfig option. In other places we use a linked list, which does not provide for random access and can complicate th

[PATCH 02/40] lib: Handle a special case with str_to_list()

2024-07-23 Thread Sughosh Ganu
From: Simon Glass The current implementation can return an extra result at the end when the string ends with a space. Fix this by adding a special case. Signed-off-by: Simon Glass Signed-off-by: Sughosh Ganu --- lib/strto.c | 4 +++- test/str_ut.c | 4 +--- 2 files changed, 4 insertions(+),

[PATCH 00/40] Make LMB memory map global and persistent

2024-07-23 Thread Sughosh Ganu
This is a follow-up from an earlier RFC series [1] for making the LMB and EFI memory allocations work together. This is a non-rfc version with only the LMB part of the patches, for making the LMB memory map global and persistent. This is part one of a set of patches which aim to have the LMB an

[PATCH 01/40] malloc: Support testing with realloc()

2024-07-23 Thread Sughosh Ganu
From: Simon Glass At present in tests it is possible to cause an out-of-memory condition with malloc() but not realloc(). Add support to realloc() too, so code which uses that function can be tested. Signed-off-by: Simon Glass Signed-off-by: Sughosh Ganu --- common/dlmalloc.c | 4 1 file

Re: [PATCH v3 7/8] dts: starfive: Add JH7110 Cadence USB dts node

2024-07-23 Thread Minda Chen
> -邮件原件- > 发件人: E Shattow > 发送时间: 2024年7月23日 21:06 > 收件人: Minda Chen > 抄送: Marek Vasut ; Tom Rini ; Roger > Quadros ; Neil Armstrong ; > Alexey Romanov ; Sumit Garg > ; Mark Kettenis ; Nishanth > Menon ; Rick Chen ; Leo Yu-Chi Liang > ; u-boot@lists.denx.de; Heinrich Schuchardt > ; Simo

Re: [PATCHv1 3/5] cmd: cpu: add release subcommand

2024-07-23 Thread Fabio Estevam
Hi Zhiqiang, On Tue, Jul 23, 2024 at 10:02 PM Z.Q. Hou wrote: > The i.MX8M Plus name isn't added to the imx8_cpu.c, will add the i.MX8M > series names. Ok, thanks. Please also fix the CPU frequency.

RE: [PATCHv1 3/5] cmd: cpu: add release subcommand

2024-07-23 Thread Z.Q. Hou
Hi Fabio, > -Original Message- > From: Fabio Estevam > Sent: Tuesday, July 23, 2024 10:51 PM > To: Z.Q. Hou > Cc: u-boot@lists.denx.de; tr...@konsulko.com; Peng Fan > ; s...@chromium.org > Subject: Re: [PATCHv1 3/5] cmd: cpu: add release subcommand > > On Tue, Jul 23, 2024 at 11:43 AM Z

Re: [PATCH 3/3] arm: dts: k3-j721e: Move to OF_UPSTREAM

2024-07-23 Thread Robert Nelson
On Mon, May 20, 2024 at 8:44 AM Neha Malcom Francis wrote: > > Move to using OF_UPSTREAM config and thus using the devicetree-rebasing > subtree. > > Signed-off-by: Neha Malcom Francis > --- > arch/arm/dts/Makefile |4 +- > arch/arm/dts/k3-j721e-binman.dtsi

[PATCH v3 1/1] phy: rockchip: naneng-combphy: Introduce PHY-IDs to fix RK3588 muxing

2024-07-23 Thread Sebastian Kropatsch
Fix multiplex configuration for PCIe1L0 and PCIe1L1 in PCIESEL_CON for RK3588 to correctly select between Combo PHYs and PCIe3 PHY. Currently, the code incorrectly muxes both ports to Combo PHYs, interfering with PCIe3 PHY settings. Introduce PHY identifiers to identify the correct Combo PHY and se

[PATCH v3 0/1] phy: rockchip: snps-pcie3: Fix bifurcation and spelling

2024-07-23 Thread Sebastian Kropatsch
This is only patch 2/5 from the previous v2 patch series since the other patches are already merged. The title has been kept the same as v2 for patch management purposes. Cheers, Sebastian --- Changes v2 -> v3: - Select only patch 2/5 - Call 'dev_read_addr(udev)' only once by using 'addr' in '

Re: [PATCH] board: beagle: convert to CONFIG_DM_I2C

2024-07-23 Thread Tom Rini
On Fri, 19 Jul 2024 23:51:23 +0200, Anatolij Gustschin wrote: > Rework to remove use of legacy I2C API. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] pxm2: switch to DM_I2C

2024-07-23 Thread Tom Rini
On Sat, 20 Jul 2024 18:54:39 +0200, Anatolij Gustschin wrote: > Enable DM_I2C to avoid board removal warning. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v2] board: keymile: convert to CONFIG_DM_I2C

2024-07-23 Thread Tom Rini
On Sat, 20 Jul 2024 01:24:22 +0200, Anatolij Gustschin wrote: > The conversion to DM_I2C is mandatory, rework to remove > use of legacy I2C API. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v2 0/9] Generalize PHYTEC Overlay Handling

2024-07-23 Thread Tom Rini
On Tue, 16 Jul 2024 22:11:25 -0700, Daniel Schultz wrote: > The overlays are specified in the bootenv.txt file that is loaded into > the environment. Then these overlays get loaded and applied via a script. > These scripts for loading and applying devicetree overlays are identical > for many phyte

Re: [PATCH] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present

2024-07-23 Thread Sam Protsenko
On Wed, Jul 3, 2024 at 10:00 AM Michael Nazzareno Trimarchi wrote: > > Hi all > > Working on the clock now. I have done a different implementation > > clk-mux, clk-gate I have added a clk_generic_set_rate that is a stub > that propagate to the parent, I think that should work the same but > wihout

Re: [PATCH v4 00/29] Integrate MbedTLS v3.6 LTS with U-Boot

2024-07-23 Thread Tom Rini
On Tue, Jul 23, 2024 at 03:24:29PM -0400, Raymond Mao wrote: > Hi Tom, > > On Tue, 2 Jul 2024 at 21:26, Tom Rini wrote: > > > On Tue, Jul 02, 2024 at 11:22:36AM -0700, Raymond Mao wrote: > > > > > Integrate MbedTLS v3.6 LTS (currently v3.6.0-RC1) with U-Boot. > > > > > > Motivations: > > > -

Re: [PATCH v2 2/5] phy: rockchip: naneng-combphy: Introduce PHY-IDs to fix RK3588 muxing

2024-07-23 Thread Sebastian Kropatsch
Hi Jonas, Am 21.07.2024 um 20:40 schrieb Jonas Karlman: Hi Sebastian, On 2024-07-16 22:42, Sebastian Kropatsch wrote: Fix multiplex configuration for PCIe1L0 and PCIe1L1 in PCIESEL_CON for RK3588 to correctly select between Combo PHYs and PCIe3 PHY. Currently, the code incorrectly muxes both p

Re: [PATCH V2] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present for gate and mux

2024-07-23 Thread Sam Protsenko
On Fri, Jul 5, 2024 at 2:14 AM Michael Trimarchi wrote: > > Gate and mux does not have .set_rate operation, but they could have > CLK_SET_PARENT_RATE flag set. In that case it's usually possible to find a > parent up the tree which is capable of setting the rate (div, pll, etc). > Add clk_generic_

Re: [PATCH 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Mark Kettenis
> Date: Tue, 23 Jul 2024 22:12:57 +0200 > From: Mark Kettenis > > > From: Heinrich Schuchardt > > Date: Tue, 23 Jul 2024 12:46:34 +0200 > > > > U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has > > a field Extended BIOS ROM Size since version 3.1. > > > > BIOS ROM sizes of 16 MiB

Re: [PATCH 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Tue, 23 Jul 2024 12:46:34 +0200 > > U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has > a field Extended BIOS ROM Size since version 3.1. > > BIOS ROM sizes of 16 MiB or above must be written to this field. > > Add and fill the missing field. >

[PATCH v2] board: rpi: Update memory layout for Aarch64

2024-07-23 Thread Walter Lozano
ARM and Aarch64 have different restrictions and trying to accommodate larger kernels like the ones used in distros can be challenging. For this reason, separate the layout and rearrange the map for Aarch64 to support kernels larger than 36 MB. The current approach is to reserve 128 MB for the kern

Re: [PATCH v4 00/29] Integrate MbedTLS v3.6 LTS with U-Boot

2024-07-23 Thread Raymond Mao
Hi Tom, On Tue, 2 Jul 2024 at 21:26, Tom Rini wrote: > On Tue, Jul 02, 2024 at 11:22:36AM -0700, Raymond Mao wrote: > > > Integrate MbedTLS v3.6 LTS (currently v3.6.0-RC1) with U-Boot. > > > > Motivations: > > > > > > 1. MbedTLS is well maintained with LTS versions. > > 2. LWIP is i

Re: How is it possible to flash an image (wic-file) to emmc?

2024-07-23 Thread Fabio Estevam
Hi Michael, On Tue, Jul 23, 2024 at 10:37 AM Stahl, Michael wrote: > > Hi, > after I swichted to the new uboot (2024.01) I can't flash a wic-file to the > emmc anymore. Not so new :-) 2024.07 is the new one. > I use a uboot version for imx8 processors but I think the fastboot parts are > equa

Re: [PATCH v2 0/5] arm: exynos: Enable TRNG for E850-96 board

2024-07-23 Thread Sam Protsenko
[snip] > > Your patch was failed to apply to u-boot-samsung due to the e850-96_defconfig. > please rebase the patch. > Just sent v3, please take a look. > and about mmc patches, those have delegated to mmc maintainers. > Do you know if I should I ask some specific MMC maintainer to apply that s

[PATCH v3 5/5] arm: exynos: Enable TRNG on E850-96 board

2024-07-23 Thread Sam Protsenko
Enable True Random Number Generator (TRNG) on E850-96 board. To do so: 1. Enable DM_RNG and RNG_EXYNOS for TARGET_E850_96 2. Add TRNG node to E850-96 device tree 3. Enable 'rng' command support for easy TRNG testing TRNG node is already applied in Linux kernel device tree, but it hasn't appe

[PATCH v3 4/5] rng: Add Exynos TRNG driver

2024-07-23 Thread Sam Protsenko
Add True Random Number Generator (TRNG) driver for Exynos chips. This implementation is heavily based on Linux kernel's counterpart [1]. It also follows upstream dt-bindings [2]. TRNG block is usually a part of SSS (Security Sub System) IP-core on Exynos chips. Because SSS access on Exynos850 is p

[PATCH v3 3/5] clk: exynos: Add SSS clocks for Exynos850

2024-07-23 Thread Sam Protsenko
Add ACLK (operating clock) and PCLK (bus clock) for Security Sub System (SSS) in Exynos850. Those clocks are needed for RNG enablement. Signed-off-by: Sam Protsenko --- Changes in v3: - (none) Changes in v2: - (none) drivers/clk/exynos/clk-exynos850.c | 10 ++ 1 file changed, 10 in

[PATCH v3 1/5] board: samsung: e850-96: Add default partitions

2024-07-23 Thread Sam Protsenko
Add an environment file for E850-96 board with default eMMC partition list. It follows the Samsung's partition list used for Android-Q on Exynos850 devices. It was verified on E850-96 board with: => gpt verify mmc 0 "$partitions" Verify GPT: success! Signed-off-by: Sam Protsenko --- Chang

[PATCH v3 2/5] board: samsung: e850-96: Load LDFW firmware on board init

2024-07-23 Thread Sam Protsenko
LDFW is a Loadable Firmware which provides additional security capabilities in EL3 monitor. For example, True Random Number Generator (TRNG) block registers can't be accessed from EL1 (where U-Boot and Linux kernel are running), but it's possible to access TRNG capabilities via corresponding SMC ca

[PATCH v3 0/5] arm: exynos: Enable TRNG for E850-96 board

2024-07-23 Thread Sam Protsenko
This series enables True Random Number Generator (TRNG) for E850-96 board. Here is a short breakdown of features implemented in this series: 1. Load LDFW (Loadable Firmware) on E850-96 board. It's needed to make TRNG SMC commands functional. To do so, add the default eMMC partition tab

Re: [PATCH v4 09/29] makefile: add mbedtls include directories

2024-07-23 Thread Raymond Mao
Hi Ilias, On Tue, 23 Jul 2024 at 03:45, Ilias Apalodimas wrote: > On Thu, 18 Jul 2024 at 23:12, Raymond Mao wrote: > > > > Hi Ilias, > > > > On Wed, 3 Jul 2024 at 07:35, Ilias Apalodimas < > ilias.apalodi...@linaro.org> wrote: > >> > >> On Tue, 2 Jul 2024 at 21:27, Raymond Mao > wrote: > >> >

RE: usb gadget driver initialization issue

2024-07-23 Thread Zixun Li
> -Original Message- > From: Zixun Li > Sent: Monday, July 22, 2024 17:53 > To: 'Marek Vasut' ; Lukasz Majewski ; > open list ; Mattijs Korpershoek > > Subject: RE: usb gadget driver initialization issue > > Hi, this issue only affects usb_ether, as g_dnl will enter event loop right > af

Re: [RFC PATCH v2 00/48] Make U-Boot memory reservations coherent

2024-07-23 Thread Tom Rini
On Tue, Jul 23, 2024 at 08:21:11PM +0530, Sughosh Ganu wrote: > On Tue, 23 Jul 2024 at 20:18, Tom Rini wrote: > > > > On Mon, Jul 22, 2024 at 11:07:45PM +0530, Sughosh Ganu wrote: > > > On Mon, 22 Jul 2024 at 23:03, Tom Rini wrote: > > > > > > > > On Mon, Jul 22, 2024 at 11:58:18AM +0530, Sughosh

Re: [RFC PATCH v2 00/48] Make U-Boot memory reservations coherent

2024-07-23 Thread Sughosh Ganu
On Tue, 23 Jul 2024 at 20:18, Tom Rini wrote: > > On Mon, Jul 22, 2024 at 11:07:45PM +0530, Sughosh Ganu wrote: > > On Mon, 22 Jul 2024 at 23:03, Tom Rini wrote: > > > > > > On Mon, Jul 22, 2024 at 11:58:18AM +0530, Sughosh Ganu wrote: > > > > On Mon, 8 Jul 2024 at 19:32, Tom Rini wrote: > > > >

Re: [PATCHv1 3/5] cmd: cpu: add release subcommand

2024-07-23 Thread Fabio Estevam
On Tue, Jul 23, 2024 at 11:43 AM Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > Add a new subcommand 'release' to bring up a core to run baremetal > and RTOS applications. > > For example on i.MX8M Plus EVK, release the LAST core to run a RTOS > application, passing the sequence number of the CPU

Re: [RFC PATCH v2 00/48] Make U-Boot memory reservations coherent

2024-07-23 Thread Tom Rini
On Mon, Jul 22, 2024 at 11:07:45PM +0530, Sughosh Ganu wrote: > On Mon, 22 Jul 2024 at 23:03, Tom Rini wrote: > > > > On Mon, Jul 22, 2024 at 11:58:18AM +0530, Sughosh Ganu wrote: > > > On Mon, 8 Jul 2024 at 19:32, Tom Rini wrote: > > > > > > > > On Thu, Jul 04, 2024 at 01:04:56PM +0530, Sughosh

[PATCH v2 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Heinrich Schuchardt
U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has a field Extended BIOS ROM Size since version 3.1. BIOS ROM sizes of 16 MiB or above must be written to this field. Add and fill the missing field. Signed-off-by: Heinrich Schuchardt --- v2: Replace 0x0100 by SZ_16M ---

[PATCHv1 1/5] cpu: add release_core callback

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Add a new callback release_core to the cpu_ops, which is used to release a CPU core to run baremetal or RTOS application on a SoC with multiple CPU cores. Signed-off-by: Hou Zhiqiang --- drivers/cpu/cpu-uclass.c | 10 ++ include/cpu.h| 15 +++

[PATCHv1 3/5] cmd: cpu: add release subcommand

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Add a new subcommand 'release' to bring up a core to run baremetal and RTOS applications. For example on i.MX8M Plus EVK, release the LAST core to run a RTOS application, passing the sequence number of the CPU core to release, here it is 3: u-boot=> cpu list 0: cpu@0

[PATCHv1 5/5] configs: imx93: enable the 'cpu' command

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the 'cpu' command to display the CPU info and release CPU core to run baremetal or RTOS applications. Signed-off-by: Hou Zhiqiang --- configs/imx93_11x11_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx93_11x11_evk_defconfig b/configs/imx

[PATCHv1 4/5] configs: imx8m: enable the 'cpu' command

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the 'cpu' command and the depended imx CPU driver to display the CPU info and release CPU core to run baremetal or RTOS applications. Signed-off-by: Hou Zhiqiang --- configs/imx8mm_evk_defconfig | 3 +++ configs/imx8mn_evk_defconfig | 3 +++ configs/imx8mp_evk_defconf

[PATCHv1 2/5] cpu: imx: implement release_core callback

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Release the secondary cores through the PSCI request. Signed-off-by: Hou Zhiqiang --- drivers/cpu/imx8_cpu.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 4781a56554..5942a

[PATCHv1 0/5] Add a subcommand 'release' to cmd/cpu.c

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang This patch set is to add a subcommand 'release' to the 'cpu' command in cmd/cpu.c, making the command is able to release a core to run baremetal and RTOS applications. And enabled the 'cpu' command and imx CPU driver for i.MX 8M series EVK boards and i.MX 93 EVK board. Hou Zh

Re: [PATCH 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Heinrich Schuchardt
On 23.07.24 16:12, Ilias Apalodimas wrote: Hi Heinrich, On Tue, 23 Jul 2024 at 13:46, Heinrich Schuchardt wrote: U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has a field Extended BIOS ROM Size since version 3.1. BIOS ROM sizes of 16 MiB or above must be written to this field.

Re: [PATCH 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Ilias Apalodimas
On Tue, 23 Jul 2024 at 17:12, Ilias Apalodimas wrote: > > Hi Heinrich, > > On Tue, 23 Jul 2024 at 13:46, Heinrich Schuchardt > wrote: > > > > U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has > > a field Extended BIOS ROM Size since version 3.1. > > > > BIOS ROM sizes of 16 MiB or a

Re: [RFC PATCH v2 38/48] lib: Kconfig: add a config symbol for getting lmb memory map updates

2024-07-23 Thread Tom Rini
On Tue, Jul 23, 2024 at 01:42:59PM +0100, Simon Glass wrote: > Hi Sughosh, > > On Mon, 22 Jul 2024 at 13:59, Sughosh Ganu wrote: > > > > On Mon, 22 Jul 2024 at 18:00, Ilias Apalodimas > > wrote: > > > > > > On Fri, 5 Jul 2024 at 22:51, Tom Rini wrote: > > > > > > > > On Thu, Jul 04, 2024 at 01:

Fwd: New Defects reported by Coverity Scan for Das U-Boot

2024-07-23 Thread Tom Rini
Here's the latest report. -- Forwarded message - From: Date: Mon, Jul 22, 2024, 8:07 PM Subject: New Defects reported by Coverity Scan for Das U-Boot To: Hi, Please find the latest report on new defect(s) introduced to Das U-Boot found with Coverity Scan. 8 new defect(s) intr

Re: [PATCH v2] tools: Add script to update git subtree projects

2024-07-23 Thread Quentin Schulz
Hi Raymond, On 7/23/24 4:05 PM, Raymond Mao wrote: Hi Quentin, On Tue, 23 Jul 2024 at 03:16, Quentin Schulz wrote: Hi Raymond, On 7/22/24 9:30 PM, Raymond Mao wrote: Recently we are introducing multiple git subtree projects and it is the right time to have a universal script to update vari

Re: [PATCH 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Ilias Apalodimas
Hi Heinrich, On Tue, 23 Jul 2024 at 13:46, Heinrich Schuchardt wrote: > > U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has > a field Extended BIOS ROM Size since version 3.1. > > BIOS ROM sizes of 16 MiB or above must be written to this field. > > Add and fill the missing field. >

Re: [PATCH v2] tools: Add script to update git subtree projects

2024-07-23 Thread Raymond Mao
Hi Quentin, On Tue, 23 Jul 2024 at 03:16, Quentin Schulz wrote: > Hi Raymond, > > On 7/22/24 9:30 PM, Raymond Mao wrote: > > Recently we are introducing multiple git subtree projects and > > it is the right time to have a universal script to update > > various subtrees and replace the dts/update

Re: [PATCH v3 6/7] usb: gadget: atmel: Add attach/detach support

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: Add controller attach/detach support by using usb_gadget_ops.pullup() method. It is called 'function' in C, not 'method'. I think 'method' is C++ or maybe Java ? In any case: Reviewed-by: Marek Vasut Thanks !

Re: [PATCH v3 5/7] usb: gadget: atmel: Rename atmel_usba_start()/_stop() to usba_udc_enable()/_disable()

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: Rename atmel_usba_start() / atmel_usba_stop() to usba_udc_enable() / usba_udc_disable(), remove atmel_ prefix to be inline with other functions. Also avoid confusion with DM start() / stop() functions. Reviewed-by: Marek Vasut Thanks !

Re: [PATCH v3 4/7] usb: gadget: atmel: Move usba_udc_pdata() with other static functions

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: To make all static functions in the top, no functional change. Reviewed-by: Marek Vasut Thanks !

Re: [PATCH v3 3/7] usb: gadget: atmel: Fix typo in usb_gadget_register_driver()

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: Replace "paramter" by "parameter". Signed-off-by: Zixun LI Reviewed-by: Marek Vasut This is really MUCH better and MUCH easier to review, thank you!

Re: [PATCH v3 2/7] usb: gadget: atmel: Replace printf() and pr_err() by log_err()

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: To have a uniform printing function, also drop linux/printk.h as no longer used. Reviewed-by: Marek Vasut Thanks !

Re: [PATCH v3 1/7] usb: gadget: atmel: Sort includes

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: Sort includes in alphabetical order. Reviewed-by: Marek Vasut Thanks !

Re: [PATCH 1/4] lib: sha256: add feature sha256_hmac

2024-07-23 Thread Philippe REYNES
Hi Tom, Le 17/07/2024 à 19:58, Tom Rini a écrit : On Wed, Jul 17, 2024 at 07:08:27PM +0200, Philippe REYNES wrote: Hi Peter, Le 16/07/2024 à 18:56, Peter Robinson a écrit : This Mail comes from Outside of SoftAtHome: Do not answer, click links or open attachments unless you recognize the se

Aw: [ANN] U-Boot v2024.10-rc1 released

2024-07-23 Thread Frank Wunderlich
Hi, i notice build-error because of CONFIG_TOOLS_MKEFICAPSULE is set automaticly and does not find an include https://github.com/frank-w/u-boot/actions/runs/10059612312/job/27805232284 tools/mkeficapsule.c:20:10: fatal error: gnutls/gnutls.h: No such file or directory 20 | #include |

Re: [PATCH 1/1] tpm: call tpm_tis_wait_init() after tpm_tis_init()

2024-07-23 Thread Ilias Apalodimas
Hi Simon On Tue, 23 Jul 2024 at 15:47, Simon Glass wrote: > > Hi Ilias > > On Mon, 22 Jul 2024 at 08:35, Ilias Apalodimas > wrote: > > > > Hi all > > > > On Sun, 21 Jul 2024 at 13:08, Simon Glass wrote: > > > > > > Hi, > > > > > > On Mon, 15 Jul 2024 at 12:23, wrote: > > > > > > > > From: Luka

[PATCH v3 7/7] usb: gadget: atmel: Add DM_USB_GADGET support

2024-07-23 Thread Zixun LI
Add driver model support by using the uclass UCLASS_USB_GADGET_GENERIC. Disable local usb_gadget_register_driver()/usb_gadget_unregister_driver() implementation which is implemented in udc-core.c when DM_USB_GADGET is enabled. Replace dm_usb_gadget_handle_interrupts() with handle_interrupts ops w

[PATCH v3 6/7] usb: gadget: atmel: Add attach/detach support

2024-07-23 Thread Zixun LI
Add controller attach/detach support by using usb_gadget_ops.pullup() method. Signed-off-by: Zixun LI --- drivers/usb/gadget/atmel_usba_udc.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index e

  1   2   >