Re: [PATCH 2/5] mkeficapsule: add support for multiple payloads inside capsule

2023-06-16 Thread Sughosh Ganu
On Sat, 17 Jun 2023 at 06:26, AKASHI Takahiro wrote: > > On Fri, Jun 16, 2023 at 06:02:52PM +0530, Sughosh Ganu wrote: > > On Fri, 16 Jun 2023 at 17:56, Sughosh Ganu wrote: > > > > > > hi Stefan, > > > > > > On Fri, 16 Jun 2023 at 17:04, Stefan Herbrechtsmeier > > > wrote: > > > > > > > > From:

Re: [PATCH] usb: musb-new: sunxi: read SRAM controller address from DT

2023-06-16 Thread Jernej Škrabec
Dne torek, 13. junij 2023 ob 13:21:58 CEST je Andre Przywara napisal(a): > Some older SoCs (<=A20, F1C100s) do not have a dedicated SRAM buffer for > the USB-OTG controller, but require the CPU to relinquish one of its SRAM > blocks to the USB controller. This is done by flipping a bit in the SRAM

Re: [PATCH 2/5] mkeficapsule: add support for multiple payloads inside capsule

2023-06-16 Thread AKASHI Takahiro
On Fri, Jun 16, 2023 at 06:02:52PM +0530, Sughosh Ganu wrote: > On Fri, 16 Jun 2023 at 17:56, Sughosh Ganu wrote: > > > > hi Stefan, > > > > On Fri, 16 Jun 2023 at 17:04, Stefan Herbrechtsmeier > > wrote: > > > > > > From: Malte Schmidt > > > > > > The UEFI [1] specification allows multiple payl

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

2023-06-16 Thread Marek Vasut
On 6/16/23 14:23, Patrice CHOTARD wrote: On 6/16/23 14:18, Marek Vasut wrote: On 6/16/23 13:46, Patrice CHOTARD wrote: On 5/4/23 21:52, Marek Vasut wrote: The correct specifier of the section is ".data" and not "data", use the former to place the variables in ".data" section. Fixes: 731fd

Re: [PATCH] ARM: stm32: Power cycle Buck3 in reset on DHSOM

2023-06-16 Thread Marek Vasut
On 6/16/23 15:04, Patrick DELAUNAY wrote: Hi, Hi, [   39.426015] Disabling non-boot CPUs ... [   39.448635] Retrying again to check for CPU kill [   39.451909] CPU1 killed. U-Boot SPL 2023.07-rc4-8-g2f4664f5c3e (Jun 15 2023 - 08:36:52 +0200) RAM: DDR3-DDR3L 32bits 533000kHz DDR invalid si

Re: [PATCH v1 4/4] configs: rcar3: Add shell function to select the linux devicetree

2023-06-16 Thread Marek Vasut
On 6/16/23 17:21, Detlev Casanova wrote: This function uses the sysinfo command to determine which linux device tree is selected for the running board. Signed-off-by: Detlev Casanova --- configs/rcar3_ulcb_defconfig | 1 + include/configs/rcar-gen3-common.h | 9 - 2 files chan

Re: [PATCH 0/5] Extend mkeficapsule tool to pack multiple payloads

2023-06-16 Thread AKASHI Takahiro
On Fri, Jun 16, 2023 at 01:34:21PM +0200, Stefan Herbrechtsmeier wrote: > From: Stefan Herbrechtsmeier > > > Currently, the mkeficapsule tool supports at most one payload inside the > capsule. However, the UEFI specification and the u-boot code > support multiple payloads inside one capsule. Ext

Re: [PATCH v1 3/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION

2023-06-16 Thread Marek Vasut
On 6/16/23 17:21, Detlev Casanova wrote: Expose that information to the command shell to let scripts select the correct devicetree name. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 46 - 1 file changed, 36 insertions(+), 10 deletions(-

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

2023-06-16 Thread Marek Vasut
On 6/16/23 17:21, Detlev Casanova wrote: [...] +static int do_sysinfo_id(struct cmd_tbl *cmdtp, int flag, int argc, +char *const argv[]) +{ + struct udevice *dev; + u32 board_id; + char board_id_str[5] = { '\0' }; + int ret = get_sysinfo(&dev); +

Re: [PATCH 2/5] mkeficapsule: add support for multiple payloads inside capsule

2023-06-16 Thread AKASHI Takahiro
On Fri, Jun 16, 2023 at 03:32:59PM +0200, Schmidt, Malte wrote: > Hi Sughos, > > one other question. Do you know what the advantage of mkeficapsule tool over > the EDK2 GenerateCapsule tool is? It seems like reinventing the wheel > for me. Simply because I didn't want to have a dependency on EDK2

Re: [PATCH v1] mkeficapsule: fix efi_firmware_management_capsule_header data type

2023-06-16 Thread AKASHI Takahiro
On Fri, Jun 16, 2023 at 10:28:05AM +0200, Stefan Herbrechtsmeier wrote: > From: Malte Schmidt > > The data type of item_offset_list shall be UINT64 according to the UEFI [1] > specifications. > > In include/efi_api.h the correct data type is used. The bug was probably > never noticed because of

Re: imx8m optee load address?

2023-06-16 Thread Tim Harvey
On Thu, Jun 15, 2023 at 8:31 PM Peng Fan wrote: > > > > On 6/16/2023 9:56 AM, Tim Harvey wrote: > > Greetings, > > > > I've seen several IMX8M boards include a firmware/optee node in the > > U-Boot dt (git grep optee arch/arm/dts/imx8m*.dtsi) yet but none that > > I see configure binman to actuall

Re: [PATCH 2/5] mkeficapsule: add support for multiple payloads inside capsule

2023-06-16 Thread Heinrich Schuchardt
On 6/16/23 13:34, Stefan Herbrechtsmeier wrote: From: Malte Schmidt The UEFI [1] specification allows multiple payloads inside the capsule body. Add support for this. The command line arguments are kept backwards-compatible. [1] https://uefi.org/specs/UEFI/2.10/index.html Signed-off-by: Malte

Re: [PATCH 1/5] mkeficapsule: constify function parameters

2023-06-16 Thread Heinrich Schuchardt
On 6/16/23 13:34, Stefan Herbrechtsmeier wrote: From: Malte Schmidt Thanks for considering which parameters may be constants. nits: The Urban Dictionary defines 'constify' as: "To constantly do something, like constantly watching anime all day." %s/constify function parameters/make functio

Re: [PATCH 4/5] doc: uefi: update mkeficapsule documentation

2023-06-16 Thread Heinrich Schuchardt
On 6/16/23 13:34, Stefan Herbrechtsmeier wrote: From: Malte Schmidt mkeficapsule now supports multiple blobs. Update the documentation accordingly. Although the image blob can still be specified as positional parameter for backwards compatibility, remove it from the documentation to discourage

Re: [PATCH 5/5] doc: uefi: clarify capsule concept

2023-06-16 Thread Heinrich Schuchardt
On 6/16/23 13:34, Stefan Herbrechtsmeier wrote: From: Malte Schmidt There seems to be some misused or inaccurate namings regarding the capsule concept. Set the naming straight and add a table showing the naming conventions. This table is based on the images found in chapter 23 of the UEFI 2.10

Re: [RFC PATCH 00/17] sunxi: rework pinctrl and add T113s support

2023-06-16 Thread Andre Przywara
On Fri, 16 Jun 2023 19:27:16 +0300 Maxim Kiselev wrote: Hi Maxim, thanks for the reply! If you have anything that is missing or broken in the new version of the patchset I put on github, please let me know. > пт, 16 июн. 2023 г. в 18:59, Andre Przywara : > > > > On Mon, 12 Jun 2023 15:18:17 -06

Re: [RFC PATCH 00/17] sunxi: rework pinctrl and add T113s support

2023-06-16 Thread Maxim Kiselev
Hi Andre, Sam, пт, 16 июн. 2023 г. в 18:59, Andre Przywara : > > On Mon, 12 Jun 2023 15:18:17 -0600 > Sam Edwards wrote: > > Hi Sam, > > something regarding "reset" below ... > > > On 6/11/23 18:20, Andre Przywara wrote: > > > Thanks for the update and the list! Can you confirm where you > > > st

Re: [RFC PATCH 00/17] sunxi: rework pinctrl and add T113s support

2023-06-16 Thread Andre Przywara
On Mon, 12 Jun 2023 15:18:17 -0600 Sam Edwards wrote: Hi Sam, something regarding "reset" below ... > On 6/11/23 18:20, Andre Przywara wrote: > > Thanks for the update and the list! Can you confirm where you > > still needed code changes compared to say my github branch plus the > > changes we

Re: [PATCH 1/3] binman: Allow to define custom arguments

2023-06-16 Thread Jan Kiszka
On 15.06.23 13:46, Jan Kiszka wrote: > On 15.06.23 13:38, Simon Glass wrote: >> Hi Jan, >> >> On Thu, 15 Jun 2023 at 12:21, Jan Kiszka wrote: >>> >>> On 15.06.23 13:19, Simon Glass wrote: Hi Jan, On Thu, 15 Jun 2023 at 12:09, Jan Kiszka wrote: > > On 15.06.23 12:55, Simon G

[PATCH v13 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-06-16 Thread Abdellatif El Khlifi
Add MM communication support using FF-A transport This feature allows accessing MM partitions services through EFI MM communication protocol. MM partitions such as StandAlonneMM or smm-gateway secure partitions which reside in secure world. An MM shared buffer and a door bell event are used to ex

[PATCH v13 10/10] arm_ffa: efi: corstone1000: enable MM communication

2023-06-16 Thread Abdellatif El Khlifi
turn on EFI MM communication On corstone1000 platform MM communication between u-boot and the secure world (Optee) is done using the FF-A bus. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v13: * re

[PATCH v13 07/10] arm_ffa: introduce sandbox test cases for UCLASS_FFA

2023-06-16 Thread Abdellatif El Khlifi
Add functional test cases for the FF-A support These tests rely on the FF-A sandbox emulator and FF-A sandbox driver which help in inspecting the FF-A communication. Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklan

[PATCH v13 06/10] arm_ffa: introduce sandbox FF-A support

2023-06-16 Thread Abdellatif El Khlifi
Emulate Secure World's FF-A ABIs and allow testing U-Boot FF-A support Features of the sandbox FF-A support: - Introduce an FF-A emulator - Introduce an FF-A device driver for FF-A comms with emulated Secure World - Provides test methods allowing to read the status of the inspected ABIs The sand

[PATCH v13 08/10] arm_ffa: introduce armffa command Sandbox test

2023-06-16 Thread Abdellatif El Khlifi
Add Sandbox test for the armffa command Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v12: * address nits v10: * replace CMD_RET_SUCCESS with 0 * replace CONFIG_SANDBOX_FF

[PATCH v13 04/10] arm_ffa: introduce Arm FF-A support

2023-06-16 Thread Abdellatif El Khlifi
Add Arm FF-A support implementing Arm Firmware Framework for Armv8-A v1.0 The Firmware Framework for Arm A-profile processors (FF-A v1.0) [1] describes interfaces (ABIs) that standardize communication between the Secure World and Normal World leveraging TrustZone technology. This driver uses 64-b

[PATCH v13 05/10] arm_ffa: introduce armffa command

2023-06-16 Thread Abdellatif El Khlifi
Provide armffa command showcasing the use of the U-Boot FF-A support armffa is a command showcasing how to invoke FF-A operations. This provides a guidance to the client developers on how to call the FF-A bus interfaces. The command also allows to gather secure partitions information and ping thes

[PATCH v13 03/10] lib: uuid: introduce testcase for uuid_str_to_le_bin

2023-06-16 Thread Abdellatif El Khlifi
provide a test case Signed-off-by: Abdellatif El Khlifi Cc: Simon Glass --- Changelog: === v11: * use ut_asserteq_mem() MAINTAINERS | 5 + test/lib/Makefile | 1 + test/lib/uuid.c | 41 + 3 files changed, 47 insertions(+) c

[PATCH v13 02/10] lib: uuid: introduce uuid_str_to_le_bin function

2023-06-16 Thread Abdellatif El Khlifi
convert UUID string to little endian binary data Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: * add a full function prototype description in uuid.h v8: * use simple_s

[PATCH v13 01/10] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2023-06-16 Thread Abdellatif El Khlifi
add support for x0-x17 registers used by the SMC calls In SMCCC v1.2 [1] arguments are passed in registers x1-x17. Results are returned in x0-x17. This work is inspired from the following kernel commit: arm64: smccc: Add support for SMCCCv1.2 extended input/output registers [1]: https://docume

[PATCH v13 00/10] introduce Arm FF-A support

2023-06-16 Thread Abdellatif El Khlifi
Adding support for Arm FF-A v1.0 (Arm Firmware Framework for Armv8-A) [A]. FF-A specifies interfaces that enable a pair of software execution environments aka partitions to communicate with each other. A partition could be a VM in the Normal or Secure world, an application in S-EL0, or a Trusted

[PATCH v1 4/4] configs: rcar3: Add shell function to select the linux devicetree

2023-06-16 Thread Detlev Casanova
This function uses the sysinfo command to determine which linux device tree is selected for the running board. Signed-off-by: Detlev Casanova --- configs/rcar3_ulcb_defconfig | 1 + include/configs/rcar-gen3-common.h | 9 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --gi

[PATCH v1 3/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION

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

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

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

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

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

[PATCH v1 0/4] Introduce the sysinfo command

2023-06-16 Thread Detlev Casanova
The command can be used to show various information that can be used to identify the running system. Currently supported subcommands are: * model: A string representing the model * id: The id of the board * revision: The revision of this board id. I'm not sure about the last commit, if it needs t

[PATCH 1/1] doc: unbind man-page

2023-06-16 Thread Heinrich Schuchardt
Provide a man-page for the unbind command. Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/unbind.rst | 95 doc/usage/index.rst | 1 + 2 files changed, 96 insertions(+) create mode 100644 doc/usage/cmd/unbind.rst diff --git a/doc/usage/cmd/un

Re: ELCE 2023 - Prague

2023-06-16 Thread Marek Behún
On Fri, 16 Jun 2023 14:13:59 +0200 Michal Simek wrote: > Hi, > > I have had a chat with Marek that ELCE 2023 in Prague is coming. > It is good opportunity to talk to each other in person. > That's why we are interested to know who from U-Boot community is going. > > Me, Marek and Simon are goin

Re: [PATCH V4 9/9] doc: board: ti: am62x_sk: Add A53 SPL DDR layout

2023-06-16 Thread Tom Rini
On Fri, Jun 16, 2023 at 04:22:38PM +0530, Nikhil M Jain wrote: > To understand usage of DDR in A53 SPL stage, add a table showing region > and space used by major components of SPL. > > Signed-off-by: Nikhil M Jain > --- > V4(patch introduced): > - Document A53 SPL DDR memory layout. > > doc/bo

Re: [PATCH] Revert "lib: sparse: Make CHUNK_TYPE_RAW buffer aligned"

2023-06-16 Thread Mattijs Korpershoek
evert: > Sending sparse 'super' 1/2 (768793 KB) OKAY [ 23.895s] > Writing 'super'OKAY [ 12.961s] > Sending sparse 'super' 2/2 (629819 KB) OKAY [ 19.562s] > Writing 'super'

Re: [PATCH] arm64: zynqmp: Fix the memory node for k26/k24 kria som boards

2023-06-16 Thread Michal Simek
On 6/5/23 13:59, Michal Simek wrote: From: Sharath Kumar Dasari PMUFW requires top 1MB of the lower DDR memory reserved for its operation, this is missing in k26/k24 sm static dts files because of which U-Boot throws warning messages "efi_free_pool: illegal free" as EFI puts some code to tha

Re: [PATCH] watchdog: versal: Use new compatible xlnx,versal-wwdt

2023-06-16 Thread Michal Simek
On 6/13/23 13:22, Michal Simek wrote: DT binding has been approved that's why use new compatible string. The old one is mark as deprecated and should be removed after some releases. Link: https://lore.kernel.org/r/20230420104231.2243079-3-srinivas.ne...@amd.com/ Signed-off-by: Michal Simek -

Re: [PATCH 2/5] mkeficapsule: add support for multiple payloads inside capsule

2023-06-16 Thread Schmidt, Malte
Hi Sughos, one other question. Do you know what the advantage of mkeficapsule tool over the EDK2 GenerateCapsule tool is? It seems like reinventing the wheel for me. Best Regards Malte Am 16.06.2023 um 14:59 schrieb Schmidt, Malte: Hi Sughos, Am 16.06.2023 um 14:32 schrieb Sughosh Ganu: On Fr

[PATCH] lib: sparse: allocate blkcnt instead of arbitrary small number

2023-06-16 Thread Mattijs Korpershoek
kcnt; uint32_t *aligned_buf = NULL; if (CONFIG_IS_ENABLED(SYS_DCACHE_OFF)) { --- base-commit: 2f4664f5c3edc55b18d8906f256a4c8e303243c0 change-id: 20230616-sparse-flash-fix-9c2852aa8d16 Best regards, -- Mattijs Korpershoek

[PATCH v2 7/7] configs: ls1046afrwy: enable DM_SERIAL

2023-06-16 Thread Camelia Groza
As the serial devices are configured in the device tree, enable DM_SERIAL in the ls1046afrwy defconfigs. Signed-off-by: Camelia Groza --- configs/ls1046afrwy_tfa_SECURE_BOOT_defconfig | 4 +++- configs/ls1046afrwy_tfa_defconfig | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(

[PATCH v2 6/7] configs: ls1046ardb: enable DM_SERIAL

2023-06-16 Thread Camelia Groza
As the serial devices are configured in the device tree, enable DM_SERIAL in the ls1046ardb defconfigs. Signed-off-by: Camelia Groza --- configs/ls1046ardb_emmc_defconfig | 3 ++- configs/ls1046ardb_qspi_SECURE_BOOT_defconfig | 4 +++- configs/ls1046ardb_qspi_defconfig

[PATCH v2 5/7] arch: arm: dts: ls1046a: tag serial nodes with bootph-all

2023-06-16 Thread Camelia Groza
Make sure the serial driver is initialized before relocation by tagging the serial nodes with "bootph-all". In order to keep the serial nodes in sync with their representation in the Linux dts, add these u-boot specific properties to *-u-boot.dtsi files. Signed-off-by: Camelia Groza --- V2: - cr

[PATCH v2 4/7] arch: arm: dts: ls1046a: sync serial nodes with Linux

2023-06-16 Thread Camelia Groza
Pick up the serial node descriptions from Linux v6.3 for the ls1046ardb and ls1046afrwy boards and their dependencies. Including the fsl,qoriq-clockgen.h and arm-gic.h headers forces us to change the include directives to explicitly go through the C preprocessor for all boards in the ls1046a SoC fa

[PATCH v2 3/7] configs: ls1043ardb: enable DM_SERIAL

2023-06-16 Thread Camelia Groza
As the serial devices are configured in the device tree, enable DM_SERIAL in the ls1043ardb defconfigs. Signed-off-by: Camelia Groza --- configs/ls1043ardb_SECURE_BOOT_defconfig| 4 +++- configs/ls1043ardb_defconfig| 4 +++- configs/ls1043ardb_nand_SECURE_BOOT_defconf

[PATCH v2 2/7] arch: arm: dts: ls1043a: tag serial nodes with bootph-all

2023-06-16 Thread Camelia Groza
Make sure the serial driver is initialized before relocation by tagging the serial nodes with "bootph-all". In order to keep the serial nodes in sync with their representation in the Linux dts, add these u-boot specific properties to *-u-boot.dtsi files. Signed-off-by: Camelia Groza --- V2: - cr

[PATCH v2 1/7] arch: arm: dts: ls1043a: sync serial nodes with Linux

2023-06-16 Thread Camelia Groza
Pick up the serial node descriptions from Linux v6.3 for the ls1043ardb board and its dependencies. Including the fsl,qoriq-clockgen.h and arm-gic.h headers forces us to change the include directives to explicitly go through the C preprocessor for all boards in the ls1043a SoC family. Signed-off-b

[PATCH v2 0/7] Enable DM_SERIAL for the LS104xA RDB/FRWY boards

2023-06-16 Thread Camelia Groza
This series enables DM_SERIAL for ls1043ardb, ls1046ardb and ls1046afrwy. First, the device tree serial nodes are synced with their counterpart descriptions in Linux v6.3. Secondly, the serial nodes are tagged with 'bootph-all' to guarantee the drivers are initialized before relocation. New board

Re: [PATCH 4/7] tools: mkeficapsule: Add support for parsing capsule params from config file

2023-06-16 Thread Schmidt, Malte
Hi sughosh, Am 16.06.2023 um 08:35 schrieb Sughosh Ganu: On Fri, 16 Jun 2023 at 10:48, Takahiro Akashi wrote: On Fri, Jun 16, 2023 at 10:37:01AM +0530, Sughosh Ganu wrote: hi Takahiro, On Fri, 16 Jun 2023 at 10:16, Takahiro Akashi wrote: Hi Sughosh, On Fri, Jun 16, 2023 at 09:56:33AM +0

Re: [PATCH] ARM: stm32: Power cycle Buck3 in reset on DHSOM

2023-06-16 Thread Patrick DELAUNAY
Hi, On 6/15/23 08:44, Marek Vasut wrote: On 5/29/23 03:57, Marek Vasut wrote: Hello again, [...] So the backup domain is loosed on ST board with STPMIC1 only when the power is removed and not for reset or for power off. Thank you for the clarification. I should check suspend/resume on

Re: [PATCH 2/5] mkeficapsule: add support for multiple payloads inside capsule

2023-06-16 Thread Schmidt, Malte
Hi Sughos, Am 16.06.2023 um 14:32 schrieb Sughosh Ganu: On Fri, 16 Jun 2023 at 17:56, Sughosh Ganu wrote: hi Stefan, On Fri, 16 Jun 2023 at 17:04, Stefan Herbrechtsmeier wrote: From: Malte Schmidt The UEFI [1] specification allows multiple payloads inside the capsule body. Add support for

Re: ELCE 2023 - Prague

2023-06-16 Thread Michael Nazzareno Trimarchi
Hi Dario should be there too. You can have in our office if you want Michael On Fri, Jun 16, 2023 at 2:55 PM Eugen Hristev wrote: > > On 6/16/23 15:13, Michal Simek wrote: > > Hi, > > > > I have had a chat with Marek that ELCE 2023 in Prague is coming. > > It is good opportunity to talk to each

Re: ELCE 2023 - Prague

2023-06-16 Thread Eugen Hristev
On 6/16/23 15:13, Michal Simek wrote: Hi, I have had a chat with Marek that ELCE 2023 in Prague is coming. It is good opportunity to talk to each other in person. That's why we are interested to know who from U-Boot community is going. Me, Marek and Simon are going to be there. Who else is comi

Re: [PATCH 2/5] mkeficapsule: add support for multiple payloads inside capsule

2023-06-16 Thread Sughosh Ganu
On Fri, 16 Jun 2023 at 17:56, Sughosh Ganu wrote: > > hi Stefan, > > On Fri, 16 Jun 2023 at 17:04, Stefan Herbrechtsmeier > wrote: > > > > From: Malte Schmidt > > > > The UEFI [1] specification allows multiple payloads inside the capsule > > body. Add support for this. The command line arguments

Re: [PATCH 2/5] mkeficapsule: add support for multiple payloads inside capsule

2023-06-16 Thread Sughosh Ganu
hi Stefan, On Fri, 16 Jun 2023 at 17:04, Stefan Herbrechtsmeier wrote: > > From: Malte Schmidt > > The UEFI [1] specification allows multiple payloads inside the capsule > body. Add support for this. The command line arguments are kept > backwards-compatible. > > [1] https://uefi.org/specs/UEFI/

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

2023-06-16 Thread Patrice CHOTARD
On 6/16/23 14:18, Marek Vasut wrote: > On 6/16/23 13:46, Patrice CHOTARD wrote: >> >> >> On 5/4/23 21:52, Marek Vasut wrote: >>> The correct specifier of the section is ".data" and not "data", >>> use the former to place the variables in ".data" section. >>> >>> Fixes: 731fd50e27f ("ARM: stm32:

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

2023-06-16 Thread Marek Vasut
On 6/16/23 13:46, Patrice CHOTARD wrote: On 5/4/23 21:52, Marek Vasut wrote: The correct specifier of the section is ".data" and not "data", use the former to place the variables in ".data" section. Fixes: 731fd50e27f ("ARM: stm32: Implement board coding on AV96") Fixes: 92ca0f7446c ("ARM: dt

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

2023-06-16 Thread Marek Vasut
On 6/16/23 13:44, Patrice CHOTARD wrote: On 5/12/23 15:58, Patrick DELAUNAY wrote: Hi, On 5/5/23 02:11, Tom Rini wrote: The ITS file used to build the images here lists three dtb files as being used. Today, these are built by the logic that will over-build dtb files based on SOC/etc symbols

ELCE 2023 - Prague

2023-06-16 Thread Michal Simek
Hi, I have had a chat with Marek that ELCE 2023 in Prague is coming. It is good opportunity to talk to each other in person. That's why we are interested to know who from U-Boot community is going. Me, Marek and Simon are going to be there. Who else is coming? Cheers, Michal

Re: [PATCH] Revert "lib: sparse: Make CHUNK_TYPE_RAW buffer aligned"

2023-06-16 Thread Mattijs Korpershoek
Hi Gary, Sean, On lun., nov. 21, 2022 at 10:09, Sean Anderson wrote: > On 11/21/22 09:50, Gary Bisson wrote: >> Hi, >> >> On Fri, Nov 18, 2022 at 10:36:58AM -0500, Sean Anderson wrote: >>> On 11/18/22 07:13, Gary Bisson wrote: >>> > This reverts commit 62649165cb02ab95b57360bb362886935f524f26.

Re: [PATCH] configs: stm32f746-disco: remove a useless comment

2023-06-16 Thread Patrice CHOTARD
On 4/22/23 16:01, Dario Binacchi wrote: > Commit 8fc78fc73b7f9d ("configs: migrate CONFIG_BMP_16/24/32BPP to > defconfigs") > made the comment useless. > > Signed-off-by: Dario Binacchi > --- > > include/configs/stm32f746-disco.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/in

Re: [PATCH] ARM: dts: stm32f769-disco: remove the dsi_host node

2023-06-16 Thread Patrice CHOTARD
On 4/22/23 16:02, Dario Binacchi wrote: > The node has become useless, as described in the > commit 754815b854258 ("video: stm32: remove the compatible "synopsys, > dw-mipi-dsi" support") > > Signed-off-by: Dario Binacchi > --- > > arch/arm/dts/stm32f769-disco-u-boot.dtsi | 5 - > 1 fil

Re: [Uboot-stm32] [PATCH 1/2] media: dt-bindings: media: Add macros for video interface bus types

2023-06-16 Thread Patrice CHOTARD
On 4/18/23 15:59, Patrick Delaunay wrote: > Add a new dt-bindings/media/video-interfaces.h header that defines > macros corresponding to the bus types from media/video-interfaces.yaml. > This allows avoiding hardcoded constants in device tree sources. > > Based on linux commit f7eeb0084593 ("me

Re: [PATCH v2 2/2] ARM: dts: stm32mp: alignment with v6.3

2023-06-16 Thread Patrice CHOTARD
On 4/25/23 18:52, Marek Vasut wrote: > On 4/24/23 16:21, Patrick Delaunay wrote: >> Device tree alignment with Linux kernel v6.3: >> - f5a058023239 - ARM: dts: stm32: add i2c nodes into stm32mp131.dtsi >> - 8539ebb435a5 - ARM: dts: stm32: enable i2c1 and i2c5 on >>    stm32mp135f-dk.dts >> - 853

Re: [PATCH 0/6] stm32mp: soome changes and fixes for STM32MP13 and STM32MP15 boards

2023-06-16 Thread Patrice CHOTARD
On 4/27/23 15:36, Patrick Delaunay wrote: > Hi, > > here come some cleanups and fixed for the STM32MP13 and STM32MP15 boards. > > > > Patrick Delaunay (6): > stm32mp: add support of STM32MP15x Rev.Y > stm32mp: bsec: add check on null size in misc ops > configs: stm32mp1: reduce DDR_CACH

Re: [PATCH] xilinx: board: Add support to pick bootscr address from DT

2023-06-16 Thread Michal Simek
Hi Simon, On 6/15/23 11:14, Simon Glass wrote: Hi Michal, On Tue, 13 Jun 2023 at 15:13, Michal Simek wrote: From: Algapally Santosh Sagar The bootscript is expected at a default address specific to each platform. Who puts it there? Distro boot is using that variable. As of today in boa

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

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

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

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

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

2023-06-16 Thread Patrice CHOTARD
On 5/12/23 15:58, Patrick DELAUNAY wrote: > Hi, > > On 5/5/23 02:11, Tom Rini wrote: >> The ITS file used to build the images here lists three dtb files as >> being used. Today, these are built by the logic that will over-build dtb >> files based on SOC/etc symbols being set. To future proof th

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

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

Re: [PATCH 2/2] config: stm32mp15: remove CONFIG_FASTBOOT_CMD_OEM_FORMAT

2023-06-16 Thread Patrice CHOTARD
On 5/30/23 14:26, Patrick Delaunay wrote: > Remove the support of the fastboot "oem format" command for STM32MP15x > boards and removed the associated env variable "partitions". > This command is not required; with fastboot tool, the GPT partition can > be handle with "flash" command in "gpt" ta

Re: [PATCH 1/2] config: stm32mp15: remove CONFIG_FASTBOOT_USB_DEV

2023-06-16 Thread Patrice CHOTARD
On 5/30/23 14:26, Patrick Delaunay wrote: > The CONFIG_FASTBOOT_USB_DEV is used to select USB OTG controller other > than 0 but it is not the case for STM32MP15 boards; it can be removed > to simplify the STM32MP15 defconfig files. > > On STM32MP15x boards, we have only one USB device with inst

Re: [PATCH 3/3] stm32mp: stm32prog: Add support of FWU_MDATA partition type

2023-06-16 Thread Patrice CHOTARD
On 6/8/23 17:09, Patrick Delaunay wrote: > Add support of "FWU_MDATA" partition type in flashlayout to select > the TF-A firmware update metadata partition type guid, associated to > U-Boot "system" partition type guid, FWU_MDATA_GUID introduced by > commit 2eaedc95164f ("FWU: Add FWU metadata s

Re: [PATCH 2/3] stm32mp: stm32prog: Add support of ESP partition type

2023-06-16 Thread Patrice CHOTARD
On 6/8/23 17:09, Patrick Delaunay wrote: > Add support of "ESP" partition type in flashlayout to select > the "EFI System Partition", associated to U-Boot "system" > partition type guid, PARTITION_SYSTEM_GUID = > C12A7328-F81F-11d2-BA4B-00A0C93EC93B. > > This partition is the bootable partitio

Re: [PATCH 1/3] stm32mp: stm32prog: Add support of ENV partition type

2023-06-16 Thread Patrice CHOTARD
On 6/8/23 17:09, Patrick Delaunay wrote: > Add support of "ENV" partition type in flashlayout to select > the "u-boot-env" GUID, with PARTITION_U_BOOT_ENVIRONMENT = > 3de21764-95bd-54bd-a5c3-4abe786f38a8, that mean a partition > holding a U-Boot environment introduced by > commit c0364ce1c695 ("

Re: [PATCH 00/12] stm32mp1: use U-Boot device tree to configure MTD partitions

2023-06-16 Thread Patrice CHOTARD
On 6/8/23 17:16, Patrick Delaunay wrote: > > Add the MTD partitions subnode in U-Boot device tree for all stm32mp13 > and stm32mp15 boards and no more rely on mtdids and mtdparts variables > or CONFIG_SYS_MTDPARTS_RUNTIME. > > When these variables are absent, the required OF fallback is perfor

Re: [PATCH 1/2] serial: stm32: Wait TC bit before performing initialization

2023-06-16 Thread Patrice CHOTARD
On 6/16/23 11:02, Patrick DELAUNAY wrote: > Hi, > > On 5/31/23 08:01, Patrice Chotard wrote: >> In case there is still chars from previous bootstage to transmit, wait >> for TC (Transmission Complete) bit to be set which ensure that the last >> data written in the USART_TDR has been transmitted

[PATCH 5/5] doc: uefi: clarify capsule concept

2023-06-16 Thread Stefan Herbrechtsmeier
From: Malte Schmidt There seems to be some misused or inaccurate namings regarding the capsule concept. Set the naming straight and add a table showing the naming conventions. This table is based on the images found in chapter 23 of the UEFI 2.10 specifications [1]. The table should help to build

[PATCH 2/5] mkeficapsule: add support for multiple payloads inside capsule

2023-06-16 Thread Stefan Herbrechtsmeier
From: Malte Schmidt The UEFI [1] specification allows multiple payloads inside the capsule body. Add support for this. The command line arguments are kept backwards-compatible. [1] https://uefi.org/specs/UEFI/2.10/index.html Signed-off-by: Malte Schmidt Signed-off-by: Stefan Herbrechtsmeier -

[PATCH 3/5] test: efi_capsule: test a capsule update containing multiple images

2023-06-16 Thread Stefan Herbrechtsmeier
From: Malte Schmidt Test updating U-Boot and the U-Boot environment with a single capsule. This test also checks that the mkeficapsule tool builds a capsule containing both images to update correctly. Testing of a signed and an unsigned image is implemented. Signed-off-by: Malte Schmidt Signed-

[PATCH 4/5] doc: uefi: update mkeficapsule documentation

2023-06-16 Thread Stefan Herbrechtsmeier
From: Malte Schmidt mkeficapsule now supports multiple blobs. Update the documentation accordingly. Although the image blob can still be specified as positional parameter for backwards compatibility, remove it from the documentation to discourage its usage. Signed-off-by: Malte Schmidt Signed-o

[PATCH 1/5] mkeficapsule: constify function parameters

2023-06-16 Thread Stefan Herbrechtsmeier
From: Malte Schmidt Use const keyword for function parameters where appropriate. Signed-off-by: Malte Schmidt Signed-off-by: Stefan Herbrechtsmeier --- tools/mkeficapsule.c | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/tools/mkeficapsule.c

[PATCH 0/5] Extend mkeficapsule tool to pack multiple payloads

2023-06-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Currently, the mkeficapsule tool supports at most one payload inside the capsule. However, the UEFI specification and the u-boot code support multiple payloads inside one capsule. Extend the tool by this feature. The tool is kept backwards-compatible, so it can still

Re: [PATCH 2/2] serial: stm32: BRR must be set only when usart is disable

2023-06-16 Thread Patrice CHOTARD
On 6/16/23 11:03, Patrick DELAUNAY wrote: > Hi, > > On 5/31/23 08:01, Patrice Chotard wrote: >> To avoid spurious chars, BRR register must only be written when >> USART is disabled. >> >> Signed-off-by: Patrice Chotard >> --- >> >>   drivers/serial/serial_stm32.c | 6 ++ >>   1 file changed

[PATCH] board: phytec: phycore_imx8mm: Update lpddr4_timing

2023-06-16 Thread Cem Tenruh
Update RAM Timings for 2GB RAM based on DDR Controller Configuration Spreadsheet revision 22. Including the update of the refresh rate to workaround errata ERR050805. Signed-off-by: Cem Tenruh --- board/phytec/phycore_imx8mm/lpddr4_timing.c | 1486 +-- 1 file changed, 742 inserti

Re: [PATCH 1/1] Kbuild: Fix cleanup of generated sources in tools

2023-06-16 Thread Tobias Deiminger
Am Do, 15. Jun 23 10:14 schrieb Simon Glass : > If you like, it would be possible to create a test that all files are > removed, by doing a build and then looking for stray files. See for > example test_of_migrate. Good idea, thanks for the pointer. I'll add a test and include it in v2 of the patc

[PATCH V4 9/9] doc: board: ti: am62x_sk: Add A53 SPL DDR layout

2023-06-16 Thread Nikhil M Jain
To understand usage of DDR in A53 SPL stage, add a table showing region and space used by major components of SPL. Signed-off-by: Nikhil M Jain --- V4(patch introduced): - Document A53 SPL DDR memory layout. doc/board/ti/am62x_sk.rst | 53 +++ 1 file changed,

[PATCH V4 8/9] configs: am62x_evm_a53: Add bloblist address

2023-06-16 Thread Nikhil M Jain
Set bloblist address to 0x80D0. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- V4: - Remove the link to SPL DDR memory layout and add a new patch. V3: - Add link to updated memory map. V2: - Add Reviewed-by tag. configs/am62x_evm_a53_defconfig | 1 + 1 file changed, 1 inse

[PATCH V4 7/9] common: spl: spl: Remove video driver

2023-06-16 Thread Nikhil M Jain
Use config SPL_VIDEO_REMOVE to remove video driver at SPL stage before jumping to next stage, in place of CONFIG_SPL_VIDEO, to allow user to remove video if required. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- V4: - No change. V3: - Replace #if defined(CONFIG_SPL_VIDEO_REMOVE

[PATCH V4 6/9] drivers: video: Kconfig: Add config remove video

2023-06-16 Thread Nikhil M Jain
This is required since user may want to either call the remove method of video driver and reset the display or not call the remove method to continue displaying until next stage. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Tom Rini --- V4: - Add Reviewed-by tag. V3:

[PATCH V4 5/9] common: board_f: Pass frame buffer info from SPL to u-boot

2023-06-16 Thread Nikhil M Jain
U-boot proper can use frame buffer address passed from SPL to reserve the memory area used by framebuffer set in SPL so that splash image set in SPL continues to get displayed while u-boot proper is running. Put the framebuffer address and size in a bloblist to make them available at u-boot proper

[PATCH V4 4/9] include: video: Reserve video using blob

2023-06-16 Thread Nikhil M Jain
Add method to reserve video framebuffer information using blob, received from previous stage. Signed-off-by: Nikhil M Jain Reviewed-by: Simon Glass --- V4: - No change. V3: - Add Reviewed-by tag. V2: - Remove #if CONFIG_IS_ENABLED(VIDEO) in video_reserve_from_blob. drivers/video/video-uclass

[PATCH V4 3/9] board: ti: am62x: evm: Update function calls for splash screen

2023-06-16 Thread Nikhil M Jain
Use spl_dcache_enable, in place of setup_dram, arch_reserve_mmu to set up pagetable, initialise DRAM and enable Dcache, in place of having separate calls for each. Check for CONFIG_SPL_VIDEO in place of CONFIG_SPL_VIDEO_TIDSS to prevent any build failure in case video config is not defined and vid

[PATCH V4 2/9] arch: arm: mach-k3: common: Return a pointer after setting page table

2023-06-16 Thread Nikhil M Jain
In spl_dcache_enable after setting up page table, set gd->relocaddr pointer to tlb_addr, to get next location to reserve memory. Align tlb_addr with 64KB address. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- V4: - Add Reviewed-by tag. V3: - No change. V2: - Perform 64KB alignm

[PATCH V4 1/9] common: spl: spl: Update stack pointer address

2023-06-16 Thread Nikhil M Jain
At SPL stage when stack is relocated, the stack pointer needs to be updated, the stack pointer may point to stack in on chip memory even though stack is relocated. Signed-off-by: Nikhil M Jain Reviewed-by: Tom Rini --- V4: - No change. V3: - Add Reviewed-by tag. V2: - No change. common/spl/s

[PATCH V4 0/9] Update SPL splashscreen framework for AM62x

2023-06-16 Thread Nikhil M Jain
This patch series aims at updating SPL splashscreen framework for AM62x. This patch series depends on https://lore.kernel.org/u-boot/20230504225829.2537050-1-...@chromium.org/ This series: - Fixes compilation issues in case splash related configs are not defined in SPL. - Does page table setup,

  1   2   >