Re: [PATCH v2] ARM: stm32: Initialize TAMP_SMCR BKP..PROT fields on STM32MP15xx

2024-04-18 Thread Patrick DELAUNAY
ging BRANCH_ADDRESS => the STM32MP15 ROM check that only the secure world can update   the TAMP_BKP5R = BRANCH_ADDRESS   before to start the CPU2 and jump to this address. Sorry to inconvenient, we will improve this part on next release = OpenSTLinux V5.1 Reviewed-by: Patrick De

Re: [PATCH v1 25/25] ARM: dts: stm32: Add led-blue for stm32mp157c-ed1-scmi-u-boot

2024-04-17 Thread Patrick DELAUNAY
-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 24/25] ARM: dts: stm32: Update red led node for stm32mp157c-ed1-scmi-u-boot

2024-04-17 Thread Patrick DELAUNAY
;gpio-leds"; which is not present in kernel DT. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp157c-ed1-scmi-u-boot.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 23/25] ARM: dts: stm32: Don't probe red led at boot for stm32mp157c-ed1-scmi-u-boot

2024-04-17 Thread Patrick DELAUNAY
state" property from red led node. This will avoid to trigger the led driver probe() to configure the led default state during startup. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp157c-ed1-scmi-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) Reviewed-by: Patrick Delauna

Re: [PATCH v1 22/25] ARM: dts: stm32: Add gpio-keys for stm32mp157c-ed1-scmi-u-boot

2024-04-17 Thread Patrick DELAUNAY
-scmi-u-boot.dtsi | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 21/25] ARM: dts: stm32: Add led-blue for stm32mp157c-ed1-u-boot

2024-04-17 Thread Patrick DELAUNAY
-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 20/25] ARM: dts: stm32: Update red led node for stm32mp157c-ed1-u-boot

2024-04-17 Thread Patrick DELAUNAY
;gpio-leds" which is not present in kernel DT. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 19/25] ARM: dts: stm32: Don't probe red led at boot for stm32mp157c-ed1-u-boot

2024-04-17 Thread Patrick DELAUNAY
state" property from red led node. This will avoid to trigger the led driver probe() to configure the led default state during startup. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 18/25] ARM: dts: stm32: Add gpio-keys for stm32mp157c-ed1-u-boot

2024-04-17 Thread Patrick DELAUNAY
-boot.dtsi | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 17/25] ARM: dts: stm32: Update u-boot,boot-led for stm32mp157a-dk1-u-boot

2024-04-17 Thread Patrick DELAUNAY
file changed, 5 insertions(+), 1 deletion(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 16/25] ARM: dts: stm32: Update red led node for stm32mp157a-dk1-u-boot

2024-04-17 Thread Patrick DELAUNAY
-by: Patrice Chotard --- arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 15/25] ARM: dts: stm32: Don't probe red led at boot for stm32mp157a-dk1-u-boot

2024-04-17 Thread Patrick DELAUNAY
gpios = < 13 GPIO_ACTIVE_LOW>; - default-state = "off"; status = "okay"; }; }; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 14/25] ARM: dts: stm32: Add gpio-keys for stm32mp157a-dk1-u-boot

2024-04-17 Thread Patrick DELAUNAY
ions(+), 2 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 13/25] ARM: dts: stm32: Add led-blue for stm32mp157a-dk1-scmi-u-boot

2024-04-17 Thread Patrick DELAUNAY
c_usb_pd = < 18>, < 19>; @@ -36,6 +36,10 @@ }; led { + led-blue { + /delete-property/label; + }; + led-red { gpios = < 13 GPIO_ACTIVE_LOW>; }; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 12/25] ARM: dts: stm32: Update red led node for stm32mp157a-dk1-scmi-u-boot

2024-04-17 Thread Patrick DELAUNAY
gpios = < 13 GPIO_ACTIVE_LOW>; - status = "okay"; }; }; }; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 10/25] ARM: dts: stm32: Add gpio-keys for stm32mp157a-dk1-scmi-u-boot

2024-04-17 Thread Patrick DELAUNAY
;; + linux,code = ; + gpios = < 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; }; led { Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 11/25] ARM: dts: stm32: Don't probe red led at boot for stm32mp157a-dk1-scmi-u-boot

2024-04-17 Thread Patrick DELAUNAY
l = "error"; gpios = < 13 GPIO_ACTIVE_LOW>; - default-state = "off"; status = "okay"; }; }; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 09/25] ARM: dts: stm32: Clean led-red node for stm32mp135f-dk-u-boot

2024-04-17 Thread Patrick DELAUNAY
ios = < 13 GPIO_ACTIVE_LOW>; }; }; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 08/25] ARM: dts: stm32: Don't probe led-red/led-blue at boot for stm32mp135f-dk-u-boot

2024-04-17 Thread Patrick DELAUNAY
-boot.dtsi | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 07/25] ARM: dts: stm32: Add gpio-keys for stm32mp135f-dk-u-boot

2024-04-17 Thread Patrick DELAUNAY
/dts/stm32mp135f-dk-u-boot.dtsi | 13 + 1 file changed, 13 insertions(+) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 06/25] board: st: stmp32mp1: Use BUTTON UCLASS in board_key_check()

2024-04-17 Thread Patrick DELAUNAY
changed, 40 insertions(+), 28 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 05/25] configs: stm32mp1: Enable BUTTON_GPIO flag for stm32mp13_defconfig

2024-04-17 Thread Patrick DELAUNAY
=y CONFIG_USB_FUNCTION_FASTBOOT=y Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 04/25] configs: stm32mp1: Enable BUTTON_GPIO flag for stm32mp15_trusted_defconfig

2024-04-17 Thread Patrick DELAUNAY
CLK_SCMI=y CONFIG_SET_DFU_ALT_INFO=y CONFIG_USB_FUNCTION_FASTBOOT=y Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 03/25] configs: stm32mp1: Enable BUTTON_GPIO flag for stm32mp15_basic_defconfig

2024-04-17 Thread Patrick DELAUNAY
ALT_INFO=y CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0xC000 Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 02/25] configs: stm32mp1: Enable BUTTON_GPIO flag for stm32mp15_defconfig

2024-04-17 Thread Patrick DELAUNAY
ALT_INFO=y CONFIG_USB_FUNCTION_FASTBOOT=y Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 01/25] configs: stm32mp13: Enable FASTBOOT

2024-04-17 Thread Patrick DELAUNAY
Hi, On 4/9/24 17:01, Patrice Chotard wrote: Enable FASTBOOT relative flags for stm32mp13_defconfig. Signed-off-by: Patrice Chotard --- configs/stm32mp13_defconfig | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/2] mmc: stm32_sdmmc2: Fix AARCH64 compilation warnings

2024-04-17 Thread Patrick DELAUNAY
data ? ctx.data_length : 0, data); ret = stm32_sdmmc2_end_cmd(dev, cmd, ); Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 1/2] mmc: stm32_sdmmc2: Add "st,stm32mp25-sdmmc2" compatible

2024-04-17 Thread Patrick DELAUNAY
Hi, On 3/8/24 15:26, Patrice Chotard wrote: From: Patrick Delaunay Add compatible used for STM32MP25 family. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- drivers/mmc/stm32_sdmmc2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/stm32_sdmmc2.c b

Re: [PATCH 3/3] ARM: dts: stm32: Fix partition node name for stm32mp15xx-dhcom-u-boot

2024-04-17 Thread Patrick DELAUNAY
partition@1f { label = "env2"; reg = <0x001F 0x0001>; }; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/3] ARM: dts: stm32: Fix partition node name for stm32mp15xx-dhcor-u-boot

2024-04-17 Thread Patrick DELAUNAY
partition@1f { label = "env2"; reg = <0x001F 0x0001>; }; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 1/3] ARM: dts: stm32: Fix partition node name for stm32mp157c-ev1-u-boot

2024-04-17 Thread Patrick DELAUNAY
0 { label = "UBI"; reg = <0x00a0 0x3f60>; }; Reviewed-by: Patrick Delaunay Thanks Patrick

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

2024-04-17 Thread Patrick DELAUNAY
_base, gd->ram_top - gd->ram_base, + EFI_CONVENTIONAL_MEMORY); +} Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH] stm32mp: cmd_stm32prog: add dependencies with USB_GADGET_DOWNLOAD

2024-02-07 Thread Patrick Delaunay
This patch avoids compilation issue when CONFIG_USB_GADGET is deactivated in defconfig, with undefined reference to run_usb_dnl_gadget and to g_dnl_set_product. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

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 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=*

[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/?ser

[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 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_STM32MP15x

[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 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 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 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 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 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 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 Delaunay (12):

[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 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 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 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

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] 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

[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 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 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 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 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 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 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 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 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 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 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 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 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

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

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

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

2023-12-15 Thread Patrick DELAUNAY
if (data->script) cmd_source_script(data->script, NULL, NULL); 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
trd_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 2/2] board: st: common: simplify MTD device parsing

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

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

2023-12-15 Thread Patrick DELAUNAY
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", name, part->name, partnum); } } Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 9/9] stm32mp2: initial support

2023-11-09 Thread Patrick DELAUNAY
de 100644 board/st/stm32mp2/MAINTAINERS create mode 100644 board/st/stm32mp2/Makefile create mode 100644 board/st/stm32mp2/stm32mp2.c create mode 100644 configs/stm32mp25_defconfig create mode 100644 include/configs/stm32mp25_common.h with the minor remark on commit message 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

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 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 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 4/9] stm32mp: dram_init: Limit DDR usage under 4GB boundary for STM32MP

2023-11-09 Thread Patrick DELAUNAY
size = ALIGN(SZ_8M + CONFIG_SYS_MALLOC_LEN + total_size, MMU_SECTION_SIZE), 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'}). - format '%lx' expects argument

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

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

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

[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 present

Re: [PATCH] Revert "fs: ext4: check the minimal partition size to mount"

2023-10-04 Thread Patrick DELAUNAY
ways_unused part_length) { With the remarks: Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 6/6] board: st: common: cleanup dfu support

2023-10-04 Thread Patrick DELAUNAY
Hi, On 9/26/23 17:09, Patrice Chotard wrote: From: Patrick Delaunay split the file stm32mp_dfu.c in two files to simplify the Makefile - stm32mp_dfu.c: required by CONFIG_SET_DFU_ALT_INFO - stm32mp_dfu_virt.c: required by CONFIG_DFU_VIRT for stm32prog command or VIRT device for PMIC

Re: [PATCH v1 5/6] configs: stm32mp13: add support of usb boot

2023-10-04 Thread Patrick DELAUNAY
Hi, On 9/26/23 17:09, Patrice Chotard wrote: From: Patrick Delaunay Add support of USB key boot in distro boot command. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- include/configs/stm32mp13_common.h | 9 - 1 file changed, 8 insertions(+), 1 deletion

Re: [PATCH v1 4/6] configs: stm32mp13: activate command stm32prog

2023-10-04 Thread Patrick DELAUNAY
Hi, On 9/26/23 17:09, Patrice Chotard wrote: From: Patrick Delaunay Activate the command stm32prog with CONFIG_CMD_STM32MPROG. The CONFIG_SET_DFU_ALT_INFO is also activated to support the required weak functions for the DFU virtual backen defined in board/st/common/stm32mp_dfu.c. Signed-off

Re: [PATCH v1 3/6] configs: stm32mp13: Enable USB related flags

2023-10-04 Thread Patrick DELAUNAY
Hi, On 9/26/23 17:09, Patrice Chotard wrote: Enable USB related flags. Signed-off-by: Patrice Chotard --- configs/stm32mp13_defconfig | 18 ++ 1 file changed, 18 insertions(+) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 2/6] ARM: dts: stm32: force b-session-valid for otg on stm32mp135f-dk board

2023-10-04 Thread Patrick DELAUNAY
-boot.dtsi @@ -38,3 +38,7 @@ bootph-all; }; }; + +_hs { + u-boot,force-b-session-valid; +}; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v1 1/6] ARM: dts: stm32mp: alignment with v6.6-rc1

2023-10-04 Thread Patrick DELAUNAY
-bindings/reset/stm32mp1-resets.h | 2 +- include/dt-bindings/reset/stm32mp13-resets.h | 2 +- 20 files changed, 585 insertions(+), 166 deletions(-) create mode 100644 include/dt-bindings/regulator/st,stm32mp13-regulator.h Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-09-18 Thread Patrick DELAUNAY
ertions(+), 9 deletions(-) rename drivers/rng/{stm32mp1_rng.c => stm32_rng.c} (100%) Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-09-11 Thread Patrick DELAUNAY
reg = <0x5800 0x1000>; Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-09-11 Thread Patrick DELAUNAY
, 51 insertions(+), 3 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-09-11 Thread Patrick DELAUNAY
, 140 insertions(+), 23 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-09-11 Thread Patrick DELAUNAY
changed, 38 insertions(+), 5 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-09-11 Thread Patrick DELAUNAY
deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/7] configs: default activate CONFIG_RNG_STM32 for STM32MP13x platforms

2023-09-11 Thread Patrick DELAUNAY
+CONFIG_RNG_STM32=y CONFIG_DM_RTC=y CONFIG_RTC_STM32=y CONFIG_SERIAL_RX_BUFFER=y with commit message update Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-09-11 Thread Patrick DELAUNAY
7 files changed, 8 insertions(+), 8 deletions(-) rename drivers/rng/{stm32mp1_rng.c => stm32_rng.c} (100%) Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-09-11 Thread Patrick DELAUNAY
Hi, On 9/8/23 21:07, Heinrich Schuchardt wrote: On 9/7/23 18:21, Gatien Chevallier wrote: RNG clock error detection is now enabled if the "clock-error-detect" property is set in the device tree. Signed-off-by: Gatien Chevallier ---   drivers/rng/stm32_rng.c | 22 +-   1

Re: [PATCH 6/6] stm32mp15: Use u-boot-spl-stm32.bin instead of u-boot-spl.stm32

2023-08-29 Thread Patrick DELAUNAY
Hi Simon, On 8/24/23 17:14, Tom Rini wrote: On Thu, Aug 24, 2023 at 05:09:07PM +0200, Marek Vasut wrote: On 8/24/23 16:25, Tom Rini wrote: On Thu, Aug 24, 2023 at 05:12:45AM +0200, Marek Vasut wrote: On 8/24/23 05:02, Simon Glass wrote: A '.stm32' extension is not allowed anymore, so change

Re: [PATCH] configs: stm32f769-disco: Enable VIDEO_LOGO flag

2023-08-29 Thread Patrick DELAUNAY
90,7 +91,6 @@ CONFIG_VIDEO_STM32_MAX_XRES=480 CONFIG_VIDEO_STM32_MAX_YRES=800 CONFIG_SPLASH_SCREEN=y CONFIG_SPLASH_SCREEN_ALIGN=y -CONFIG_VIDEO_BMP_RLE8=y CONFIG_BMP_16BPP=y CONFIG_BMP_24BPP=y CONFIG_BMP_32BPP=y Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 3/3] Remove the hardcoded ST logo no longer in use

2023-08-29 Thread Patrick DELAUNAY
include/st_logo_data.h Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/3] board: stm32f746-disco: refactor the display of the ST logo

2023-08-29 Thread Patrick DELAUNAY
| 2 +- include/configs/stm32f746-disco.h | 7 ++- tools/logos/stm32f746-disco.bmp| Bin 0 -> 18052 bytes 5 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 tools/logos/stm32f746-disco.bmp Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 1/3] configs: stm32f746-disco: limit resolution to 480x272

2023-08-29 Thread Patrick DELAUNAY
GHT_GPIO=y CONFIG_VIDEO_STM32=y CONFIG_VIDEO_STM32_MAX_XRES=480 -CONFIG_VIDEO_STM32_MAX_YRES=640 +CONFIG_VIDEO_STM32_MAX_YRES=272 CONFIG_SPLASH_SCREEN=y CONFIG_SPLASH_SCREEN_ALIGN=y CONFIG_VIDEO_BMP_RLE8=y Reviewed-by: Patrick Delaunay Thanks Patrick

  1   2   3   4   5   6   7   8   9   10   >