Re: [Uboot-stm32] [PATCH 2/2] cmd: pinmux: support pin name in status command

2021-05-06 Thread Patrick DELAUNAY
Hi, On 4/29/21 6:10 PM, Simon Glass wrote: Hi Patrick, On Wed, 28 Oct 2020 at 03:06, Patrick Delaunay wrote: Allow pin name parameter for pimux staus command, as gpio command to get status of one pin. The possible usage of the command is: pinmux dev pinctrl pinmux status pinmux status -a

Re: [PATCH] MAINTAINERS: Update dhelectronics/dh_stm32mp1/MAINTAINERS file

2021-05-06 Thread Patrick DELAUNAY
/stm32mp15xx-dhcom* F:board/dhelectronics/dh_stm32mp1/ Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH V2] ARM: stm32: Update dhelectronics/dh_stm32mp1/MAINTAINERS file

2021-05-06 Thread Patrick DELAUNAY
:Maintained F:arch/arm/dts/stm32mp15xx-dhcom* F:board/dhelectronics/dh_stm32mp1/ Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH v4 6/7] stm32mp: Increase the reserved memory in board_get_usable_ram_top

2021-05-07 Thread Patrick Delaunay
in lmb_init_and_reserve. Signed-off-by: Patrick Delaunay --- Changes in v4: - map the end of the DDR only before relocation, in board_f.c; this test avoid issue when board_get_usable_ram_top() is called in efi_loader function efi_add_known_memory() Changes in v3: - NEW: solve performance

[PATCH v4 4/7] test: lmb: add test for lmb_reserve_flags

2021-05-07 Thread Patrick Delaunay
Add a test to check the management of reserved region with flags. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- (no changes since v1) test/lib/lmb.c | 89 ++ 1 file changed, 89 insertions(+) diff --git a/test/lib/lmb.c b/test

[PATCH v4 7/7] stm32mp: don't map the reserved region with no-map property

2021-05-07 Thread Patrick Delaunay
ble_caches() before to disable it. This patch fixes an issue where predictive read access on secure DDR OP-TEE reserved area are caught by firewall. Series-cc: marex Series-cc: pch Series-cc: marek.bykow...@gmail.com Series-cc: Ard Biesheuvel Series-cc: Etienne Carriere Signed-off-b

[PATCH v4 2/7] lmb: add lmb_is_reserved_flags

2021-05-07 Thread Patrick Delaunay
Add a new function lmb_is_reserved_flags to check if an address is reserved with a specific flags. This function can be used to check if an address was reserved with no-map flags with: lmb_is_reserved_flags(lmb, addr, LMB_NOMAP); Signed-off-by: Patrick Delaunay --- Changes in v4: - Add

[PATCH v4 1/7] lmb: Add support of flags for no-map properties

2021-05-07 Thread Patrick Delaunay
s patch is partially based on flags support done in Linux kernel mm/memblock .c (previously lmb.c); it is why LMB_NOMAP = 0x4, it is aligned with MEMBLOCK_NOMAP value. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- Changes in v4: - Add comment for lmb_reserve_flags and remove extern

[PATCH v4 5/7] image-fdt: save no-map parameter of reserve-memory

2021-05-07 Thread Patrick Delaunay
the region. Signed-off-by: Patrick Delaunay --- (no changes since v1) common/image-fdt.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/common/image-fdt.c b/common/image-fdt.c index d50e1ba3fe..06dce92a28 100644 --- a/common/image-fdt.c +++ b/common/i

[PATCH v4 3/7] lmb: add lmb_dump_region() function

2021-05-07 Thread Patrick Delaunay
reserved[4][0xfbaea344-0xfdff], 0x02515cbc bytes flags: 0 reserved[5][0xfe00-0x], 0x0200 bytes flags: 4 arch_number = 0x TLB addr= 0xfdff Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- (no changes since v1) lib/lmb.c | 40

[PATCH v4 0/7] arm: cache: cp15: don't map reserved region with no-map property

2021-05-07 Thread Patrick Delaunay
formance issue as relocated DT is not marked cacheable - call lmb_init_and_reserve when data cache is activated in enable_caches() - drop v2 patch "arm: cache: cp15: don't map the reserved region with no-map property" Changes in v2: - remove unnecessary comments in lmb.h - rebase on lates

Re: [PATCH] ARM: dts: stm32: Switch DWMAC RMII clock to MCO2 on DHCOM

2023-07-28 Thread Patrick DELAUNAY
73ab99aad50cd ("ARM: dts: stm32: Switch DWMAC RMII clock to MCO2 on DHCOM") Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: u-b...@dh-electronics.com Cc: uboot-st...@st-md-mailman.stormreply.com --- arch/arm/dts/stm32mp15xx-dhcom-som.dtsi | 22

Re: [PATCH] cmd: pxe_utils: add some missing tabs

2023-07-28 Thread Patrick DELAUNAY
aslrseed) - label_boot_kaslrseed(); + if (label->kaslrseed) + label_boot_kaslrseed(); #ifdef CONFIG_OF_LIBFDT_OVERLAY if (label->fdtoverlays) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v3 1/4] ARM: stm32: Fix ECDSA authentication with Dcache enabled

2022-12-12 Thread Patrick DELAUNAY
executable as suggested by Patrick to prevent the hang. Signed-off-by: Marek Vasut --- Cc: Alexandru Gagniuc Cc: Patrice Chotard Cc: Patrick Delaunay --- V2: - Initialize reenable_dcache variable V3: - Mark BootROM as executable instead --- arch/arm/mach-stm32mp/ecdsa_romapi.c | 4 1

Re: [PATCH v3 2/4] ARM: stm32: Factor out save_boot_params

2022-12-12 Thread Patrick DELAUNAY
and DT address from any place in the code instead. Signed-off-by: Marek Vasut --- Cc: Alexandru Gagniuc Cc: Patrice Chotard Cc: Patrick Delaunay --- V2: Avoid #if CONFIG... , use if (CONFIG... instead V3: No change --- arch/arm/mach-stm32mp/boot_params.c | 20 ++- arch/arm

Re: [PATCH v3 3/4] ARM: stm32: Pass ROM API table pointer to U-Boot proper

2022-12-12 Thread Patrick DELAUNAY
: Alexandru Gagniuc Cc: Patrice Chotard Cc: Patrick Delaunay --- V2: - Rename image_entry_noargs_t to image_entry_stm32_t - Add missing __noreturn V3: No change --- arch/arm/mach-stm32mp/cpu.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/mach-stm32mp/cpu.c

Re: [PATCH v2 1/4] ARM: stm32: Fix ECDSA authentication with Dcache enabled

2022-12-12 Thread Patrick DELAUNAY
Hi, On 12/7/22 20:32, Marek Vasut wrote: On 12/7/22 11:08, Patrick DELAUNAY wrote: Hi Marek, Hello Patrick, Sorry for the delay. No worries. I cross-check with ROM code team to understood this API limitation. Thank you! On 12/6/22 23:49, Marek Vasut wrote: In case Dcache is

[PATCH v2] cmd: clk: probe the clock before dump them

2022-12-13 Thread Patrick Delaunay
properly dump out every registered clock") Signed-off-by: Patrick Delaunay --- Changes in v2: - simplify the patch after Simon review of V1: always probe the clk device before call to show_clks(), by using device_foreach_child_probe() and uclass_foreach_dev_probe() - test UCLASS_CLK only w

Re: [PATCH 0/3] cmd: pxe: support INITRD and FDT selection with FIT

2022-12-13 Thread Patrick DELAUNAY
Hi, On 11/22/22 20:43, Neil Armstrong wrote: On 22/11/2022 20:11, Neil Armstrong wrote: Hi, On 21/11/2022 13:23, Quentin Schulz wrote: Hi Patrick, Thanks for looking at it. On 10/28/22 11:01, Patrick Delaunay wrote: Since the commit d5ba6188dfbf ("cmd: pxe_utils: Check fdtcontrolad

[PATCH 1/3] ARM: dts: stm32mp15: remove clksrc include in SCMI dtsi file

2022-12-14 Thread Patrick Delaunay
The include file stm32mp1-clksrc.h is not necessary for the SCMI STM32MP15 dtsi files as the clock tree is not defined in the U-Boot SCMI device tree; these SCMI device tree only support TFABOOT with stm32mp15_defconfig, SPL with the basic boot defconfig is not supported. Signed-off-by: Patrick

[PATCH 2/3] ARM: dts: stm32mp15: fix typo in stm32mp15xx-dkx.dtsi

2022-12-14 Thread Patrick Delaunay
Remove unnecessary space in device tree stm32mp15xx-dkx.dtsi. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp15xx-dkx.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/stm32mp15xx-dkx.dtsi b/arch/arm/dts/stm32mp15xx-dkx.dtsi index

[PATCH 3/3] ARM: dts: stm32: Add timer interrupts on stm32mp15

2022-12-14 Thread Patrick Delaunay
r interrupts on stm32mp15") Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp151.dtsi | 34 ++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/dts/stm32mp151.dtsi b/arch/arm/dts/stm32mp151.dtsi index f0fb022fc63e..27ea6a3d3d14 100644 --- a/arch/arm

[PATCH 1/2] env: ubi: add support of command env erase

2022-12-14 Thread Patrick Delaunay
UME_REDUND only to avoid #if in the code, as CONFIG_ENV_UBI_VOLUME_REDUND is only defined when CONFIG_SYS_REDUNDAND_ENVIRONMENT is defined. Signed-off-by: Patrick Delaunay --- env/ubi.c | 40 1 file changed, 40 insertions(+) diff --git a/env/ubi.c b/env/u

[PATCH 2/2] env: add failing trace in env_erase

2022-12-14 Thread Patrick Delaunay
Add trace in env save to indicate any errors to end user and avoid silent output when the command 'env erase' is not executed as it is done in env_save with commit 8968288cb477 ("env: add failing trace in env_save") Signed-off-by: Patrick Delaunay Signed-off-by: Patrick Delau

[PATCH] optee: bind the TA drivers on OP-TEE node

2022-12-15 Thread Patrick Delaunay
node, allowing to identify by phandle the driver provided by the TA for one UCLASS without modifying device tree. Signed-off-by: Patrick Delaunay --- drivers/tee/optee/core.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/tee/optee/core.c b/drivers/tee/op

[PATCH] fastboot: remove #ifdef CONFIG when it is possible

2022-12-15 Thread Patrick Delaunay
Much of the fastboot code predates the introduction of Kconfig and has quite a few #ifdefs in it which is unnecessary now that we can use IS_ENABLED() et al. Signed-off-by: Patrick Delaunay --- cmd/fastboot.c | 35 +-- drivers/fastboot/fb_command.c | 104

Re: [PATCH v2] fastboot: Add OEM run command

2022-12-15 Thread Patrick DELAUNAY
Hi, On 12/6/22 11:23, Patrick DELAUNAY wrote: Hi, On 12/5/22 20:15, Sean Anderson wrote: On 12/5/22 14:04, Patrick DELAUNAY wrote: Hi, On 12/2/22 22:03, Sean Anderson wrote: This adds the UUU UCmd functionality as an OEM command. While the fastboot tool allows sending arbitrary commands as

Re: [PATCH] fastboot: remove #ifdef CONFIG when it is possible

2023-01-03 Thread Patrick DELAUNAY
Hi, On 12/15/22 16:40, Sean Anderson wrote: On 12/15/22 04:15, Patrick Delaunay wrote: Much of the fastboot code predates the introduction of Kconfig and has quite a few #ifdefs in it which is unnecessary now that we can use IS_ENABLED() et al. Signed-off-by: Patrick Delaunay ---   cmd

Re: [PATCH 0/3] cmd: pxe: support INITRD and FDT selection with FIT

2023-01-03 Thread Patrick DELAUNAY
On 12/13/22 15:48, Quentin Schulz wrote: Hi Patrick, On 12/13/22 15:34, neil.armstr...@linaro.org wrote: On 13/12/2022 15:31, Patrick DELAUNAY wrote: Hi, On 11/22/22 20:43, Neil Armstrong wrote: On 22/11/2022 20:11, Neil Armstrong wrote: Hi, On 21/11/2022 13:23, Quentin Schulz wrote

Re: [PATCH] ARM: dts: stm32: update vbus-supply of usbphyc_port0 on stm32mp157c-ev1

2023-01-03 Thread Patrick DELAUNAY
t,no-lsfs-sc; + connector { + compatible = "usb-a-connector"; + vbus-supply = <&vbus_sw>; + }; }; &usbphyc_port1 { Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 1/3] usb: onboard-hub: add driver to manage onboard hub supplies

2023-01-03 Thread Patrick DELAUNAY
+++ drivers/usb/Kconfig | 10 ++ drivers/usb/host/usb-uclass.c | 16 + 4 files changed, 83 insertions(+), 6 deletions(-) create mode 100644 common/usb_onboard_hub.c Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/3] configs: stm32: enable USB onboard HUB driver

2023-01-03 Thread Patrick DELAUNAY
NDOR_NUM=0x0483 Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 3/3] ARM: dts: stm32: add support for USB2514B onboard hub on stm32mp157c-ev1

2023-01-03 Thread Patrick DELAUNAY
status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + /* onboard HUB */ + hub@1 { + compatible = "usb424,2514"; + reg = <1>; + vdd-supply = <&v3v3>; + }; };

Re: [PATCH 1/2] tee: optee: don't fail probe because of optee-rng

2023-01-03 Thread Patrick DELAUNAY
return 0; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/2] tee: optee: discover services dependent on tee-supplicant

2023-01-03 Thread Patrick DELAUNAY
e_count); + + tee_shm_free(service_list); + tee_close_session(dev, tee_sess); - return ret; + if (ret) + return ret; + + return ret2; } /** with or without Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] adc: stm32mp15: add calibration support

2023-01-03 Thread Patrick DELAUNAY
calibration data, directly from the ADC. Signed-off-by: Olivier Moysan --- drivers/adc/stm32-adc.c | 134 ++-- 1 file changed, 116 insertions(+), 18 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] arm: stm32mp: Fix board_get_usable_ram_top() again

2023-01-05 Thread Patrick DELAUNAY
ize() to get the limited value instead. The aforementioned commit makes STM32MP15xx boards with 1 GiB of DRAM at 0xc000 hang on boot, which is a grave defect. Signed-off-by: Marek Vasut --- Cc: Pali Rohar Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Tom Rini --- arch/arm/mach-stm32mp

Re: [PATCH] fastboot: remove #ifdef CONFIG when it is possible

2023-01-05 Thread Patrick DELAUNAY
Hi Tom, On 1/3/23 21:35, Tom Rini wrote: On Thu, Dec 15, 2022 at 10:15:50AM +0100, Patrick Delaunay wrote: Much of the fastboot code predates the introduction of Kconfig and has quite a few #ifdefs in it which is unnecessary now that we can use IS_ENABLED() et al. Signed-off-by: Patrick

Re: [PATCH] arm: stm32mp: Fix board_get_usable_ram_top() again

2023-01-05 Thread Patrick DELAUNAY
Hi Marek, On 1/5/23 13:11, Marek Vasut wrote: On 1/5/23 11:03, Patrick DELAUNAY wrote: Hi, Hi, On 1/5/23 02:22, Marek Vasut wrote: Do not access gd->ram_size and assume this is actual valid RAM size. Since commit 777706b ("common/memsize.c: Fix get_effective_memsize() to ch

Re: [PATCH] arm: stm32mp: Fix board_get_usable_ram_top() again

2023-01-06 Thread Patrick DELAUNAY
Hi, On 1/5/23 21:35, Marek Vasut wrote: On 1/5/23 19:31, Patrick DELAUNAY wrote: Hi Marek, Hi, [...] I tested on STM32MP157C-EV1 on my side... with 1GiB mermory size U-Boot is booting on next TOP (for trusted boot with TF-A and OP-TEE) U-Boot 2023.01-rc4-00386-gb429e78942de (Jan 05

Re: [PATCH] arm: stm32mp: Fix board_get_usable_ram_top() again

2023-01-06 Thread Patrick DELAUNAY
Hi, On 1/5/23 20:25, Pali Rohar wrote: Ok, so it is working... On Thursday 05 January 2023 19:31:19 Patrick DELAUNAY wrote: I tested on STM32MP157C-EV1 on my side... with 1GiB mermory size U-Boot is booting on next TOP (for trusted boot with TF-A and OP-TEE) U-Boot 2023.01-rc4-00386

[PULL] Pull request for u-boot master / v2023.01 = u-boot-stm32-20230106

2023-01-06 Thread Patrick DELAUNAY
Hi Tom, Please pull the STM32 related fixes for u-boot/master, v2023.01: u-boot-stm32-20230106 - stm32mp: Fix board_get_usable_ram_top(): workaround to avoid issue after the   commit 777706b ("common/memsize.c: Fix get_effective_memsize() to check   for overflow") because the effect

Re: [PATCH] arm: stm32mp: Fix board_get_usable_ram_top() again

2023-01-06 Thread Patrick DELAUNAY
Hi, On 1/5/23 20:16, Pali Rohar wrote: Hello! On Thursday 05 January 2023 11:03:07 Patrick DELAUNAY wrote: Hi, On 1/5/23 02:22, Marek Vasut wrote: Do not access gd->ram_size and assume this is actual valid RAM size. Since commit 777706b ("common/memsize.c: Fix get_effective

[PATCH 0/6] stm32mp: Add support of OP-TEE and STM32MP13x in bsec driver

2023-01-06 Thread Patrick Delaunay
for STM32MP13x USB support, with serial number and for ETH with mac address. Patrick Patrick Delaunay (6): stm32mp: cosmetic: Update of bsec driver stm32mp: Add OP-TEE support in bsec driver stm32mp: Add support of STM32MP13x in bsec driver configs: stm32mp13: Activate CONFIG_CMD_FUSE

[PATCH 1/6] stm32mp: cosmetic: Update of bsec driver

2023-01-06 Thread Patrick Delaunay
Remove unnecessary return in stm32mp_bsec_write_lock and replace tab by space for plat_auto opts. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/bsec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-stm32mp/bsec.c b/arch/arm/mach-stm32mp/bsec.c

[PATCH 3/6] stm32mp: Add support of STM32MP13x in bsec driver

2023-01-06 Thread Patrick Delaunay
Add support for "st,stm32mp13-bsec" for STM32MP13x in the bsec driver based on OP-TEE pseudo TA STM32MP BSEC. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/bsec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32mp/bsec.c b/arch/arm/mach-stm32mp/bs

[PATCH 2/6] stm32mp: Add OP-TEE support in bsec driver

2023-01-06 Thread Patrick Delaunay
to shadow. This patch also adapts the commands stm32key and stboard to handle the BSEC_LOCK_PERM lock value instead of 1. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/bsec.c | 173 +- arch/arm/mach-stm32mp/cmd_stm32key.c | 4 +- arch/arm

[PATCH 4/6] configs: stm32mp13: Activate CONFIG_CMD_FUSE

2023-01-06 Thread Patrick Delaunay
Activate the command fuse to access on STM32MP13x OTP with the BSEC driver. Signed-off-by: Patrick Delaunay --- configs/stm32mp13_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index af6b1839d039..f3d5e9812c6c 100644

[PATCH 5/6] board: st: Add support of STM32MP13x boards in stm32board cmd

2023-01-06 Thread Patrick Delaunay
Add board identifiers for STMicroelectronics STM32MP13x boards: - DISCO board: MB1635 Signed-off-by: Patrick Delaunay --- board/st/common/Kconfig | 2 +- board/st/common/cmd_stboard.c | 7 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/board/st/common/Kconfig b

[PATCH 6/6] configs: stm32mp13: Activate command stm32key

2023-01-06 Thread Patrick Delaunay
Activate the command stm32key with CONFIG_CMD_STM32KEY. Signed-off-by: Patrick Delaunay --- configs/stm32mp13_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index f3d5e9812c6c..70b0d5dc99bf 100644 --- a/configs

Re: [PATCH] arm: stm32mp: Fix board_get_usable_ram_top() again

2023-01-06 Thread Patrick DELAUNAY
memsize() to get the limited value instead. The aforementioned commit makes STM32MP15xx boards with 1 GiB of DRAM at 0xc000 hang on boot, which is a grave defect. Signed-off-by: Marek Vasut --- Cc: Pali Rohar Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Tom Rini --- arch/arm/mach-stm32mp

Re: [PATCH v2] doc: fix references to distro documentation

2023-01-11 Thread Patrick DELAUNAY
/develop/distro.rst' can be replaced by reference to the rst file for the 3 rst files :ref:`../../develop/distro` just to allow clickable link in generated file Reviewed-by: Patrick Delaunay Thanks Patrick regards Patrick

Re: [PATCH 1/2] board: st: common: Fix board_get_alt_info_mtd()

2023-12-15 Thread Patrick DELAUNAY
len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, ";"); - first = false; - len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, - "%s_%s part %d", + ";%s_%s part %d",

Re: [PATCH 2/2] board: st: common: simplify MTD device parsing

2023-12-15 Thread Patrick DELAUNAY
td(mtd, buf); } if (IS_ENABLED(CONFIG_DFU_VIRT)) { Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v2 18/21] stm32: Use local vars in stm32prog for initrd and fdt

2023-12-15 Thread Patrick DELAUNAY
arg, fdt_arg); + bootm_argv[2] = initrd_arg; + bootm_argv[3] = fdt_arg; + /* Try bootm for legacy and FIT format image */ if (genimg_get_format(uimage) != IMAGE_FORMAT_INVALID) do_bootm(cmdtp, 0, 4, bootm_argv); Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v2 20/21] stm32: Use bootm_run() and bootz_run()

2023-12-15 Thread Patrick DELAUNAY
amp;bmi); } if (data->script) cmd_source_script(data->script, NULL, NULL); Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 1/2] stm32mp1: spl: Fix compilation warnings

2024-06-14 Thread Patrick DELAUNAY
t uint32_t dram_size = stm32mp_get_dram_size(); const uintptr_t dram_top = STM32_DDR_BASE + (dram_size - 1); - uint32_t optee_base, optee_size, tee_shmem_base; + u32 optee_base = 0, optee_size = 0, tee_shmem_base; const uintptr_t tzc = STM32_TZC_BASE; int ret; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/2] stm32mp1: spl: Update optee_get_reserved_memory() return value

2024-06-14 Thread Patrick DELAUNAY
fnode_path("/reserved-memory/optee"); if (!ofnode_valid(node)) - return 0; + return -ENOENT; fdt_start = ofnode_get_addr_size(node, "reg", &fdt_mem_size); *start = fdt_start; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v2] stm32mp: Reserve OPTEE area in EFI memory map

2024-06-14 Thread Patrick DELAUNAY
ary workaround after commit 7b78d6438a2b3 ("efi_loader: Reserve unaccessible memory") to avoid warnings. And it is working because in the default memory mapping OP-TEE base address == RAM_TOP and the rest of memory is used by OP-TEE tagged "no map" (protected by firewall)

Re: [PATCH] ARM: dts: stm32: Fix reset for usart1 in scmi configuration

2024-01-04 Thread Patrick DELAUNAY
tm32mp15-scmi-u-boot.dtsi +++ b/arch/arm/dts/stm32mp15-scmi-u-boot.dtsi @@ -135,7 +135,7 @@ }; &usart1 { - resets = <&rcc USART1_R>; + resets = <&scmi_reset RST_SCMI_USART1>; }; &usart2 { Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH 01/12] arm64: dts: st: add bsec support to stm32mp25

2024-01-15 Thread Patrick Delaunay
Add BSEC support to STM32MP25 SoC family with SoC information: - RPN = Device part number (BSEC_OTP_DATA9) - PKG = package data register (Bits 2:0 of BSEC_OTP_DATA122) Signed-off-by: Patrick Delaunay Signed-off-by: Alexandre Torgue --- arch/arm/dts/stm32mp25-u-boot.dtsi | 4 arch/arm

[PATCH 02/12] arm: stm32mp: add Rev.B support for STM32MP25

2024-01-15 Thread Patrick Delaunay
From: Yann Gautier Add chip revision B support for STM32MP25, for displaying it in trace. Signed-off-by: Yann Gautier Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-stm32mp/stm32mp2

[PATCH 03/12] stm32mp: bsec: add driver data

2024-01-15 Thread Patrick Delaunay
Add driver data in BSEC driver to test presence of OP-TEE TA, mandatory for STM32MP13 family and prepare the support of new device with more OTP than 95. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/bsec.c | 38 1 file changed, 30 insertions

[PATCH 00/12] stm32: add bsec and OTP support to stm32mp25

2024-01-15 Thread Patrick Delaunay
- MAC address: OTP247 and after Patrice Chotard (1): stm32mp: add setup_serial_number for stm32mp25 Patrick Delaunay (10): arm64: dts: st: add bsec support to stm32mp25 stm32mp: bsec: add driver data stm32mp: bsec: add support of stm32mp25 configs: stm32mp25: add support of fuse

[PATCH 04/12] stm32mp: bsec: add support of stm32mp25

2024-01-15 Thread Patrick Delaunay
Add support of BSEC for STM32MP25x family to access OTP. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/bsec.c | 7 +++ arch/arm/mach-stm32mp/include/mach/stm32.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/bsec.c b

[PATCH 05/12] configs: stm32mp25: add support of fuse command

2024-01-15 Thread Patrick Delaunay
Add support of the command fuse with CONFIG_CMD_FUSE to allow access on OTP with command line. Signed-off-by: Patrick Delaunay --- configs/stm32mp25_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stm32mp25_defconfig b/configs/stm32mp25_defconfig index 75f27c98b441

[PATCH 06/12] stm32mp: add soc.c file

2024-01-15 Thread Patrick Delaunay
Add a new file soc.c for common functions between stm32mp1 and stm32mp2 family and move print_cpuinfo() in this new file. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Makefile | 1 + arch/arm/mach-stm32mp/soc.c | 17 + arch/arm/mach-stm32mp/stm32mp1

[PATCH 09/12] stm32mp: stm32prog: add support of stm32mp25

2024-01-15 Thread Patrick Delaunay
Change OTP number to 364 for STM32MP25 as it is done in bsec driver. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h b/arch/arm

[PATCH 07/12] stm32mp: add setup_serial_number for stm32mp25

2024-01-15 Thread Patrick Delaunay
From: Patrice Chotard Add support of serial number for stm32mp25, gets from OTP with BSEC driver. Signed-off-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- .../arm/mach-stm32mp/include/mach/sys_proto.h | 1 + arch/arm/mach-stm32mp/soc.c | 31

[PATCH 08/12] smt32mp: add setup_mac_address for stm32mp25

2024-01-15 Thread Patrick Delaunay
ethaddr, is a invalid value used for unused MAC address slot in OTP, for example for board with STM32MP25x part number allows up to 5 ethernet ports but it is not supported by the hardware, without switch; the associated variable "enetaddr%d" is not created. Signed-off-by: Patric

[PATCH 11/12] board: st: stm32mp2: add checkboard

2024-01-15 Thread Patrick Delaunay
Implement the weak function checkboard to identify the used board with compatible in device tree for the support of stm32mp2 STMicroelectronics boards. Signed-off-by: Patrick Delaunay --- board/st/stm32mp2/stm32mp2.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/board/st

[PATCH 10/12] stm32mp: activate the command stboard for stm32mp25 boards

2024-01-15 Thread Patrick Delaunay
Activate the command stboard for stm32mp25 STMicroelectronics boards, add the default used OTP identifier and the associated board identifier: - stm32mp25xx-ev1 = MB1936 - stm32mp25xx-dk = MB1605 Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/include/mach/stm32.h | 1 + board/st

[PATCH 12/12] board: st: stm32mp2: display the board identification

2024-01-15 Thread Patrick Delaunay
Add the display of the STMicroelectronics board identification saved in OTP in stm32mp2 checkboard function. Signed-off-by: Patrick Delaunay --- board/st/stm32mp2/stm32mp2.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/board/st/stm32mp2/stm32mp2.c b/board/st

[PATCH] smt32mp: Add dependencies on CMDLINE for command stm32key

2024-01-15 Thread Patrick Delaunay
We cannot use stm32key commands without CONFIG_CMDLINE so add the required condition. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig index 5fc92d07fe6d

Re: [PATCH 10/12] stm32mp: activate the command stboard for stm32mp25 boards

2024-01-15 Thread Patrick DELAUNAY
Hi, On 1/15/24 14:03, Patrice CHOTARD wrote: On 1/15/24 13:46, Patrick Delaunay wrote: Activate the command stboard for stm32mp25 STMicroelectronics boards, add the default used OTP identifier and the associated board identifier: - stm32mp25xx-ev1 = MB1936 - stm32mp25xx-dk = MB1605 Signed

[PATCH v2 01/14] arm64: dts: st: add bsec support to stm32mp25

2024-01-15 Thread Patrick Delaunay
Add BSEC support to STM32MP25 SoC family with SoC information: - RPN = Device part number (BSEC_OTP_DATA9) - PKG = package data register (Bits 2:0 of BSEC_OTP_DATA122) Reviewed-by: Patrice Chotard Signed-off-by: Patrick Delaunay Signed-off-by: Alexandre Torgue --- (no changes since v1) arch

[PATCH v2 02/14] arm: stm32mp: add Rev.B support for STM32MP25

2024-01-15 Thread Patrick Delaunay
From: Yann Gautier Add chip revision B support for STM32MP25, for displaying it in trace. Reviewed-by: Patrice Chotard Signed-off-by: Yann Gautier Signed-off-by: Patrick Delaunay --- (no changes since v1) arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c | 3 +++ 1 file changed, 3 insertions

[PATCH v2 03/14] stm32mp: bsec: add driver data

2024-01-15 Thread Patrick Delaunay
Add driver data in BSEC driver to test presence of OP-TEE TA, mandatory for STM32MP13 family and prepare the support of new device with more OTP than 95. Reviewed-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- (no changes since v1) arch/arm/mach-stm32mp/bsec.c | 38

[PATCH v2 04/14] stm32mp: bsec: add support of stm32mp25

2024-01-15 Thread Patrick Delaunay
Add support of BSEC for STM32MP25x family to access OTP. Reviewed-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- (no changes since v1) arch/arm/mach-stm32mp/bsec.c | 7 +++ arch/arm/mach-stm32mp/include/mach/stm32.h | 3 ++- 2 files changed, 9 insertions(+), 1

[PATCH v2 00/14] stm32: add bsec and OTP support to stm32mp25

2024-01-15 Thread Patrick Delaunay
- MAC address: OTP247 and after Changes in v2: - fix CONFIG name with 'x': TARGET_ST_STM32MP15x TARGET_ST_STM32MP13x - add "arm: Rename STM32MP13x" - add "arm: Rename STM32MP15x" Patrice Chotard (1): stm32mp: add setup_serial_number for stm32mp25 Patrick Delaun

[PATCH v2 05/14] configs: stm32mp25: add support of fuse command

2024-01-15 Thread Patrick Delaunay
Add support of the command fuse with CONFIG_CMD_FUSE to allow access on OTP with command line. Reviewed-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp25_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stm32mp25_defconfig b

[PATCH v2 06/14] stm32mp: add soc.c file

2024-01-15 Thread Patrick Delaunay
Add a new file soc.c for common functions between stm32mp1 and stm32mp2 family and move print_cpuinfo() in this new file. Reviewed-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- (no changes since v1) arch/arm/mach-stm32mp/Makefile | 1 + arch/arm/mach-stm32mp/soc.c

[PATCH v2 09/14] stm32mp: stm32prog: add support of stm32mp25

2024-01-15 Thread Patrick Delaunay
Change OTP number to 364 for STM32MP25 as it is done in bsec driver. Signed-off-by: Patrick Delaunay --- (no changes since v1) arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog

[PATCH v2 08/14] smt32mp: add setup_mac_address for stm32mp25

2024-01-15 Thread Patrick Delaunay
rd Signed-off-by: Patrick Delaunay --- (no changes since v1) arch/arm/mach-stm32mp/soc.c | 70 arch/arm/mach-stm32mp/stm32mp1/cpu.c | 58 +-- arch/arm/mach-stm32mp/stm32mp2/cpu.c | 1 + 3 files changed, 72 insertions(+), 57 deletions(-)

[PATCH v2 07/14] stm32mp: add setup_serial_number for stm32mp25

2024-01-15 Thread Patrick Delaunay
From: Patrice Chotard Add support of serial number for stm32mp25, gets from OTP with BSEC driver. Reviewed-by: Patrice Chotard Signed-off-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- (no changes since v1) .../arm/mach-stm32mp/include/mach/sys_proto.h | 1 + arch/arm/mach

[PATCH v2 11/14] board: st: stm32mp2: add checkboard

2024-01-15 Thread Patrick Delaunay
Implement the weak function checkboard to identify the used board with compatible in device tree for the support of stm32mp2 STMicroelectronics boards. Reviewed-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- (no changes since v1) board/st/stm32mp2/stm32mp2.c | 14 ++ 1

[PATCH v2 10/14] stm32mp: activate the command stboard for stm32mp25 boards

2024-01-15 Thread Patrick Delaunay
Activate the command stboard for stm32mp25 STMicroelectronics boards, add the default used OTP identifier and the associated board identifier: - stm32mp25xx-ev1 = MB1936 - stm32mp25xx-dk = MB1605 Signed-off-by: Patrick Delaunay --- Changes in v2: - fix CONFIG name with 'x': TARGET_ST_

[PATCH v2 12/14] board: st: stm32mp2: display the board identification

2024-01-15 Thread Patrick Delaunay
Add the display of the STMicroelectronics board identification saved in OTP in stm32mp2 checkboard function. Reviewed-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- (no changes since v1) board/st/stm32mp2/stm32mp2.c | 23 +++ 1 file changed, 23 insertions

[PATCH v2 13/14] arm: Rename STM32MP13x

2024-01-15 Thread Patrick Delaunay
CONFIG options must not use lower-case letter. Convert this and related ones to upper case. Signed-off-by: Simon Glass Signed-off-by: Patrick Delaunay --- See Simon's patch in serie "Clean up of bad Kconfig options" never merged https://patchwork.ozlabs.org/project/uboot/list

[PATCH v2 14/14] arm: Rename STM32MP15x

2024-01-15 Thread Patrick Delaunay
CONFIG options must not use lower-case letter. Convert this and related ones to upper case. Signed-off-by: Simon Glass --- See Simon's patch in serie "Clean up of bad Kconfig options" never merged https://patchwork.ozlabs.org/project/uboot/list/?series=339004&state=* https://patchwork.ozlabs.org/

Re: [PATCH] stm32mp2: Fix CONFIG_STM32MP25X flag usage

2024-01-19 Thread Patrick DELAUNAY
if /* __ASSEMBLY__ */ #endif /* CONFIG_STM32MP15X || CONFIG_STM32MP13X */ -#if CONFIG_STM32MP25X +#ifdef CONFIG_STM32MP25X #define STM32_RCC_BASE0x4420 #define STM32_TAMP_BASE 0x46010000 Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH] bootstage: Correct exhasuted typo

2023-11-07 Thread Patrick Delaunay
From: Simon Glass Correct this typo in the warning message shown when no more bootstage records can be added. Signed-off-by: Simon Glass Signed-off-by: Patrick Delaunay --- I just cherry-pick the Simon's patch in the branch fix-bs-working of the dm custodian git but it is not yet prese

Re: [PATCH v1 1/9] arm: caches: Make DCACHE_DEFAULT_OPTION accessible for ARM64 arch

2023-11-09 Thread Patrick DELAUNAY
defined(CONFIG_SYS_ARM_CACHE_WRITEBACK) +#define DCACHE_DEFAULT_OPTION DCACHE_WRITEBACK +#endif + #ifndef __ASSEMBLY__ /** * save_boot_params() - Save boot parameters before starting reset sequence Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 2/9] stm32mp: dram_init: Get RAM size from DT if no RAM driver found

2023-11-09 Thread Patrick DELAUNAY
} else if (ret) { + log_err("RAM init failed: %d\n", ret); return ret; } ret = ram_get_info(dev, &ram); Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 3/9] stm32mp: dram_init: Fix AARCH64 compilation warnings

2023-11-09 Thread Patrick DELAUNAY
Hi, On 10/27/23 16:42, Patrice Chotard wrote: From: Patrick Delaunay When building with AARCH64 defconfig, we got warnings for debug message - format '%x' expects argument of type 'unsigned int', but argument 3 has type 'size_t' {aka 'long unsigned int&

Re: [PATCH v1 4/9] stm32mp: dram_init: Limit DDR usage under 4GB boundary for STM32MP

2023-11-09 Thread Patrick DELAUNAY
for reserved memory for display, fdt, gd,... */ size = ALIGN(SZ_8M + CONFIG_SYS_MALLOC_LEN + total_size, MMU_SECTION_SIZE), Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 5/9] stm32mp: bsec: Fix AARCH64 compilation warnings

2023-11-09 Thread Patrick DELAUNAY
Hi, On 10/27/23 16:43, Patrice Chotard wrote: When building with AARCH64 defconfig, we got warnings, fix them. Signed-off-by: Patrice Chotard --- arch/arm/mach-stm32mp/bsec.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) Reviewed-by: Patrick

Re: [PATCH v1 6/9] serial: stm32: Fix AARCH64 compilation warnings

2023-11-09 Thread Patrick DELAUNAY
/serial/serial_stm32.c | 23 +-- drivers/serial/serial_stm32.h | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 7/9] pinctrl: pinctrl_stm32: Add stm32mp2 support

2023-11-09 Thread Patrick DELAUNAY
ble = "st,stm32mp135-pinctrl" }, + { .compatible = "st,stm32mp257-pinctrl" }, + { .compatible = "st,stm32mp257-z-pinctrl" }, { } }; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 8/9] ARM: dts: stm32: Add STM32MP257F Evaluation board support

2023-11-09 Thread Patrick DELAUNAY
/stm32mp25xxai-pinctrl.dtsi create mode 100644 arch/arm/dts/stm32mp25xxak-pinctrl.dtsi create mode 100644 arch/arm/dts/stm32mp25xxal-pinctrl.dtsi Reviewed-by: Patrick Delaunay Thanks Patrick

<    1   2   3   4   5   6   7   8   9   10   >