Re: [PATCH] ARM: dts: stm32mp: alignment with v6.0-rc3

2022-09-21 Thread Patrick DELAUNAY
Hi, On 9/7/22 13:42, Patrick Delaunay wrote: Device tree alignment with Linux kernel v6.0-rc3: - ARM: dts: stm32: add support for USB2514B onboard hub on stm32mp15xx-dkx - ARM: dts: stm32: Add alternate pinmux for RCC pin - ARM: dts: stm32: Add alternate pinmux for DCMI pins - ARM: dts: stm32

[PATCH] ARM: dts: stm32mp15: update DDR node

2022-09-21 Thread Patrick Delaunay
in TF-A BL2 and the DDR size is dynamically computed in U-Boot since commit d72e7bbe7c28 ("ram: stm32mp1: compute DDR size from DDRCTL registers"). Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp15-ddr.dtsi | 16 arch/arm/dts/stm32mp15-u

[PATCH] phy: usbphyc: use regulator_set_enable_if_allowed for disabling vbus supply

2022-09-20 Thread Patrick Delaunay
art" cause a crash. Signed-off-by: Patrick Delaunay --- drivers/phy/phy-stm32-usbphyc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c index 9f0b7d71187..dcf2194e9a7 100644 --- a/drivers/phy/phy-stm32-usbphyc.c +

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-20 Thread Patrick DELAUNAY
5 files changed, 4 insertions(+), 41 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v3 3/3] i2c: stm32: do not set the STOP condition on error

2022-09-19 Thread Patrick DELAUNAY
Hi Jorge, On 9/12/22 10:35, Jorge Ramirez-Ortiz, Foundries wrote: On 12/09/22, Patrick DELAUNAY wrote: Hi Alain, On 9/9/22 18:06, Alain Volmat wrote: Current function stm32_i2c_message_xfer is sending a STOP whatever the result of the transaction is. This can cause issues such as making

Re: [PATCH] configs: stm32mp*: reset via CONFIG_RESET_SCMI

2022-09-19 Thread Patrick DELAUNAY
Hi, On 9/5/22 19:01, Oleksandr Suvorov wrote: Jorge, I think, renaming the patch to "fix" and adding a field "Fixes:" should help accept it faster. On Mon, Sep 5, 2022 at 7:32 PM Jorge Ramirez-Ortiz, Foundries wrote: On 30/08/22, Jorge Ramirez-Ortiz wrote: Enabling CONFIG_SYSRESET_PSCI

[PATCH v4] tee: optee: rework TA bus scanning code

2022-09-19 Thread Patrick DELAUNAY
Hi Simon, On 9/12/22 20:31, Simon Glass wrote: Hi Ilias, On Wed, 7 Sept 2022 at 15:32, Ilias Apalodimas wrote: Hi Simon, On Thu, 8 Sept 2022 at 00:11, Simon Glass wrote: Hi Ilias, On Tue, 6 Sept 2022 at 15:23, Ilias Apalodimas wrote: Hi Simon, On Tue, Sep 06, 2022 at 03:18:28PM

[PATCH] configs: stm32mp1: cleanup config file

2022-09-16 Thread Patrick Delaunay
Remove the unnecessary comment after the CONFIG_SYS_BOOTM_LEN migration to Kconfig. Fixes: c45568cc4e51 ("Convert CONFIG_SYS_BOOTM_LEN to Kconfig") Signed-off-by: Patrick Delaunay --- include/configs/stm32mp13_common.h | 2 -- include/configs/stm32mp15_common.h | 2 -- 2 files

[PATCH 4/4] arm: stm32mp: adapt the command stm32key for STM32MP13x

2022-09-15 Thread Patrick Delaunay
: Encryption/Decryption Master Key Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32key.c | 52 1 file changed, 45 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-stm32mp/cmd_stm32key.c b/arch/arm/mach-stm32mp/cmd_stm32key.c index

[PATCH 2/4] arm: stm32mp: introduced read_close_status function in stm32key command

2022-09-15 Thread Patrick Delaunay
Split the read_hash_otp function and introduce the helper function read_close_status to read the close status in OTP separately of the PKH. This patch is a preliminary step for STM32MP13 support. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32key.c | 107

[PATCH 3/4] arm: stm32mp: support several key in command stm32key

2022-09-15 Thread Patrick Delaunay
-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32key.c | 195 --- 1 file changed, 149 insertions(+), 46 deletions(-) diff --git a/arch/arm/mach-stm32mp/cmd_stm32key.c b/arch/arm/mach-stm32mp/cmd_stm32key.c index 68f9b1a9a59..4eac56082db 100644 --- a/arch/arm/mach

[PATCH 1/4] arm: stm32mp: add defines for BSEC_LOCK status in stm32key command

2022-09-15 Thread Patrick Delaunay
Add defines for value used in stm32key for BSEC permanent lock status and error. This patch is a preliminary step to support more lock status in BSEC driver. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32key.c | 15 +-- 1 file changed, 9 insertions(+), 6

[PATCH 0/4] arm: stm32mp: adapt the command stm32key for STM32MP13x

2022-09-15 Thread Patrick Delaunay
algorithm) This STM32KEY command is used in STM32MP SoCs to provision the keys in the correct OTP needed to activate secure boot features: authentication and encryption. See [1] for details [1] STM32 MPU wiki https://wiki.st.com/stm32mpu/wiki/How_to_use_U-Boot_stm32key_command Patrick

Re: [PATCH v4 4/4] i2c: stm32: fix usage of rise/fall device tree properties

2022-09-15 Thread Patrick DELAUNAY
+  Reviewed-by: Patrice Chotard +  Reviewed-by: Heiko Schocher +  Reviewed-by: Patrick Delaunay +  Tested-by: Patrick Delaunay Regards Patrick

[PULL] Pull request for u-boot master / v2022.10 = u-boot-stm32-20220915

2022-09-15 Thread Patrick DELAUNAY
rise/fall device tree properties Patrick Delaunay (1):   configs: stm32mp15: activate DM_REGULATOR_SCMI  configs/stm32mp15_defconfig |  1 +  drivers/i2c/stm32f7_i2c.c   | 33 -  2 files changed, 17 insertions(+), 17 deletions(-)

Re: [PATCH v4 3/4] i2c: stm32: do not set the STOP condition on error

2022-09-15 Thread Patrick DELAUNAY
roject/uboot/patch/20220912084201.1826979-5-alain.vol...@foss.st.com/ +  Reviewed-by: Patrice Chotard +  Reviewed-by: Heiko Schocher +  Reviewed-by: Patrick Delaunay +  Tested-by: Patrick Delaunay Regards Patrick

Re: [PATCH v4 3/4] i2c: stm32: do not set the STOP condition on error

2022-09-15 Thread Patrick DELAUNAY
roject/uboot/patch/20220912084201.1826979-4-alain.vol...@foss.st.com/ +    Reviewed-by: Patrice Chotard +    Reviewed-by: Heiko Schocher +    Reviewed-by: Patrick Delaunay +    Tested-by: Patrick Delaunay Regards Patrick

Re: [PATCH v4 2/4] i2c: stm32: remove unused stop parameter in start & reload handling

2022-09-15 Thread Patrick DELAUNAY
-by: Alain Volmat Reviewed-by: Patrick Delaunay --- drivers/i2c/stm32f7_i2c.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index 78d7156492..0ec67b5c12 100644 --- a/drivers/i2c/stm32f7_i2c.c +++ b/drivers/i2c

Re: [PATCH v4 1/4] i2c: stm32: fix comment and remove unused AUTOEND bit

2022-09-15 Thread Patrick DELAUNAY
as well. Signed-off-by: Alain Volmat Reviewed-by: Patrick Delaunay --- drivers/i2c/stm32f7_i2c.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index bf2a6c9b4b..78d7156492 100644 --- a/drivers/i2c/stm32f7_i2c.c

Re: [PATCHv2 1/2] i2c: stm32f7: fix clearing the control register

2022-09-15 Thread Patrick DELAUNAY
Hi, On 8/15/22 16:52, Jorge Ramirez-Ortiz wrote: Bits should be set to 0, not 1. Signed-off-by: Jorge Ramirez-Ortiz --- drivers/i2c/stm32f7_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index

Re: [PATCH] confis: stm32mp15: activate DM_REGULATOR_SCMI

2022-09-15 Thread Patrick DELAUNAY
Hi, On 9/9/22 11:57, Patrice CHOTARD wrote: Hi Patrick Don't forget to fix the confis/configs when applying this patch ;-) On 9/7/22 18:18, Patrick Delaunay wrote: Activate the support of SCMI regulator to support the scmi_reg11, scmi_reg18 and scmi_usb33 regulators present in the scmi

[PATCH] board: st: stm32mp1: use of correct compatible string to add partitions

2022-09-12 Thread Patrick Delaunay
and spi-nand compatible string for SPI NAND devices. Signed-off-by: Christophe Kerello Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index

Re: [PATCH v2 1/2] usb: hub: allow to increase HUB_DEBOUNCE_TIMEOUT

2022-09-12 Thread Patrick DELAUNAY
Hi, On 9/9/22 14:24, Marek Vasut wrote: On 9/9/22 11:45, Patrick Delaunay wrote: Add a new CONFIG_USB_HUB_DEBOUNCE_TIMEOUT to increase the HUB_DEBOUNCE_TIMEOUT value, for example to 2s because some usb device needs around 1.5s or more to make the hub port status to be connected steadily after

Re: [PATCH v4 4/4] i2c: stm32: fix usage of rise/fall device tree properties

2022-09-12 Thread Patrick DELAUNAY
th-ns", 0); if (!dev_read_bool(dev, "i2c-digital-filter")) Reviewed-by: Patrick Delaunay Thanks Patrick Reviewed-by: Patrick Delaunay Tested-by: Patrick Delaunay [stm32mp157c-dk2] No regression detection on ST Microelectonics board. - No error trace on boot - I2C probe

Re: [PATCH v4 3/4] i2c: stm32: do not set the STOP condition on error

2022-09-12 Thread Patrick DELAUNAY
2_I2C_ISR_NACKF | STM32_I2C_ISR_ERRORS))) + setbits_le32(>cr2, STM32_I2C_CR2_STOP); return stm32_i2c_check_end_of_message(i2c_priv); } Reviewed-by: Patrick Delaunay Tested-by: Patrick Delaunay [stm32mp157c-dk2] @Jorge: can you test also for your use-case, thanks Thanks Patrick

Re: [PATCH v3 3/3] i2c: stm32: do not set the STOP condition on error

2022-09-12 Thread Patrick DELAUNAY
2_I2C_ISR_NACKF | STM32_I2C_ISR_ERRORS))) + setbits_le32(>cr2, STM32_I2C_CR2_STOP); return stm32_i2c_check_end_of_message(i2c_priv); } Reviewed-by: Patrick Delaunay Tested-by: Patrick Delaunay [stm32mp157c-dk2] No regression detection on ST Microelectonics board. - No error tr

[PATCH] stm32mp: stm32prog: improve the partitioning trace

2022-09-09 Thread Patrick Delaunay
Improve the partitioning trace done in command stm32prog: - remove the trace "partition: Done" when the GPT partitioning is not done - indicate the mmc instance used for each 'gpt write' command Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c |

Re: [PATCH v2 3/3] i2c: stm32: only send a STOP upon transfer completion

2022-09-09 Thread Patrick DELAUNAY
Hi Alain On 9/8/22 12:59, Alain Volmat wrote: Current function stm32_i2c_message_xfer is sending a STOP whatever the result of the transaction is. This can cause issues such as making the bus busy since the controller itself is already sending automatically a STOP when a NACK is generated.

Re: [PATCH v2 3/3] i2c: stm32: only send a STOP upon transfer completion

2022-09-09 Thread Patrick DELAUNAY
Hi, On 9/9/22 10:43, Heiko Schocher wrote: Hello Jorge, On 09.09.22 10:30, Jorge Ramirez-Ortiz, Foundries wrote: On 08/09/22, Patrick DELAUNAY wrote: Hi, On 9/8/22 12:59, Alain Volmat wrote: Current function stm32_i2c_message_xfer is sending a STOP whatever the result of the transaction

[PATCH v2 1/2] usb: hub: allow to increase HUB_DEBOUNCE_TIMEOUT

2022-09-09 Thread Patrick Delaunay
t delay. Signed-off-by: Patrick Delaunay --- Hi, V2 of previous patch [1] after Marek request to a add a CONFIG_. I think this patch solves a general issue because a 1s timeout for USB connection is too short on problematic USB keys / USB HUB. The issue was introduced by the commit c998da0d6709

[PATCH v2 2/2] configs: stm32mp15: set CONFIG_USB_HUB_DEBOUNCE_TIMEOUT=2s

2022-09-09 Thread Patrick Delaunay
Micro Corp. Flash Drive Signed-off-by: Patrick Delaunay --- Changes in v2: - force CONFIG_USB_HUB_DEBOUNCE_TIMEOUT=2s for stm32mp15 defconfig configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 3 files changed, 3

Re: [PATCHv2 2/2] i2c: stm32f7: do not set the STOP condition on error

2022-09-09 Thread Patrick DELAUNAY
Hi, On 9/7/22 11:20, Alain Volmat wrote: Hi, I confirm that a fix is necessary regarding this setting of the stop condition. As a matter of fact, the controller is already sending the stop condition in case of NACK so there is no need to send the stop condition. However, this fix is not

Re: [PATCH] configs: stm32mp*: fix system reset

2022-09-08 Thread Patrick DELAUNAY
Hi, On 9/6/22 16:53, Jorge Ramirez-Ortiz, Foundries wrote: On 06/09/22, Patrick DELAUNAY wrote: Hi, On 9/5/22 19:33, Jorge Ramirez-Ortiz wrote: Enabling CONFIG_SYSRESET_PSCI prevents CONFIG_RESET_SCMI from executing. The side effect observed are I2C devices no longer being accessible from U

Re: [PATCH v2 3/3] i2c: stm32: only send a STOP upon transfer completion

2022-09-08 Thread Patrick DELAUNAY
ent */ return 0; } } - /* End of transfer, send stop condition */ - mask = STM32_I2C_CR2_STOP; - setbits_le32(>cr2, mask); - return stm32_i2c_check_end_of_message(i2c_priv); } Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v2 2/3] i2c: stm32: remove unused stop parameter in start & reload handling

2022-09-08 Thread Patrick DELAUNAY
t until TC flag is set */ mask = STM32_I2C_ISR_TC; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v2 1/3] i2c: stm32: fix comment and remove unused AUTOEND bit

2022-09-08 Thread Patrick DELAUNAY
_LEN) { cr2 |= STM32_I2C_CR2_NBYTES(STM32_I2C_MAX_LEN); cr2 |= STM32_I2C_CR2_RELOAD; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/3] i2c: stm32: remove unused stop parameter in start & reload handling

2022-09-08 Thread Patrick DELAUNAY
t until TC flag is set */ mask = STM32_I2C_ISR_TC; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 1/3] i2c: stm32: fix comment and remove unused AUTOEND bit

2022-09-08 Thread Patrick DELAUNAY
_LEN) { cr2 |= STM32_I2C_CR2_NBYTES(STM32_I2C_MAX_LEN); cr2 |= STM32_I2C_CR2_RELOAD; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/2] usb: hub: increase HUB_DEBOUNCE_TIMEOUT

2022-09-08 Thread Patrick DELAUNAY
Hi Marek, On 7/8/22 17:34, Marek Vasut wrote: On 7/4/22 12:45, Patrick Delaunay wrote: Increase HUB_DEBOUNCE_TIMEOUT to 2000 because some usb device needs around 1.5s or more to make the hub port status to be connected steadily after being powered off and powered on. These value is aligned

[PULL] Pull request for u-boot master / v2022.10 = u-boot-stm32-20220907

2022-09-08 Thread Patrick DELAUNAY
32f769-disco   configs: stih410-b2260: Fix SYS_HZ_CLOCK value Patrick Delaunay (5):   stm32mp: simplify the STM32MP15x package parsing code   board: stm32mp1: remove test on CONFIG_DM_REGULATOR   phy: stm32-usbphyc: add counter of PLL consumer   phy: stm32-usbphyc: usbphyc is a cl

[PATCH] confis: stm32mp15: activate DM_REGULATOR_SCMI

2022-09-07 Thread Patrick Delaunay
Signed-off-by: Patrick Delaunay --- configs/stm32mp15_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stm32mp15_defconfig b/configs/stm32mp15_defconfig index fd2a5de8d13..0f6b3738cad 100644 --- a/configs/stm32mp15_defconfig +++ b/configs/stm32mp15_defconfig @@ -12

Re: [PATCH] ARM: dts: stm32mp15: remove hwlocks from pinctrl

2022-09-07 Thread Patrick DELAUNAY
device tree with v6.0 as the hwsem support wasn’t yet added in pincontrol in kernel. It avoids issues when the Linux kernel is started with the U-Boot device tree. Cc: Patrice Chotard Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- arch/arm/dts/stm32mp151.dtsi | 2 -- 1 file changed, 2

Re: [PATCH] ARM: stm32: Switch DHSOM to FMC2 EBI driver

2022-09-07 Thread Patrick DELAUNAY
Hi, On 8/23/22 19:27, Marek Vasut wrote: Perform long overdue conversion of ad-hoc FMC2 EBI bus initialization to upstream FMC2 EBI driver. No functional change. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- .../dts/stm32mp15xx-dhcom-picoitx-u-boot.dtsi | 8

Re: [PATCH v2] configs: stih410-b2260: Fix SYS_HZ_CLOCK value

2022-09-07 Thread Patrick DELAUNAY
Hi, On 8/25/22 09:14, Patrice Chotard wrote: SYS_HZ_CLOCK was wrongly set to 1GHz whereas it's set to 750MHz by default by bootrom. Signed-off-by: Patrice Chotard Reviewed-by: Grzegorz Szymaszek --- Changes in v2: - Replace 1MHz by 1GHz in commit description

Re: [PATCH] configs: stm32: Enable CONFIG_DM_REGULATOR for stm32f769-disco

2022-09-07 Thread Patrick DELAUNAY
Hi, On 8/24/22 15:44, Patrice Chotard wrote: Since commit 5bc6f8c2a97e("video: stm32: remove test on CONFIG_DM_REGULATOR") backlight was broken with the following message at boot: stm32-display-dsi dsi@40016c00: Warning: cannot get phy dsi supply stm32_display display-controller@40016800: panel

Re: [PATCH] ARM: dts: stm32: Fix display-timings settings for stm32f746-disco

2022-09-07 Thread Patrick DELAUNAY
Hi, On 8/24/22 15:42, Patrice Chotard wrote: Since commit ef4ce6df3289 "video: stm32: stm32_ltdc: fix data enable polarity" The panel display output wasn't functional anymore. Device tree display-timings de-active property value must be updated to 1. Signed-off-by: Patrice Chotard ---

Re: [PATCH 3/3] clk: stm32mp: handle ck_usbo_48m clock provided by USBPHYC

2022-09-07 Thread Patrick DELAUNAY
Hi, On 4/26/22 14:37, Patrick Delaunay wrote: Handle the input clock of RCC USB_PHY_48, provided by USBPHYC and named "ck_usbo_48m". Signed-off-by: Patrick Delaunay --- drivers/clk/clk_stm32mp1.c | 35 --- 1 file changed, 20 insertions(+), 15

Re: [PATCH 2/3] phy: stm32-usbphyc: usbphyc is a clock provider of ck_usbo_48m clock

2022-09-07 Thread Patrick DELAUNAY
Hi, On 4/26/22 14:37, Patrick Delaunay wrote: ck_usbo_48m is generated by usbphyc PLL and used by OTG controller for Full-Speed use cases with dedicated Full-Speed transceiver. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Patrick Delaunay --- drivers/phy/phy

Re: [PATCH 1/3] phy: stm32-usbphyc: add counter of PLL consumer

2022-09-07 Thread Patrick DELAUNAY
Hi, On 4/26/22 14:37, Patrick Delaunay wrote: Add the counter of the PLL user n_pll_cons managed by the 2 functions stm32_usbphyc_pll_enable / stm32_usbphyc_pll_disable. This counter allow to remove the function stm32_usbphyc_is_init and it is a preliminary step for ck_usbo_48m introduction

Re: [PATCH] board: stm32mp1: remove test on CONFIG_DM_REGULATOR

2022-09-07 Thread Patrick DELAUNAY
Hi, On 6/20/22 12:36, Patrick Delaunay wrote: The tests on CONFIG_DM_REGULATOR, added to avoid compilation issues, can now be removed, they are no more needed since the commit 16cc5ad0b439 ("power: regulator: add dummy helper"). Signed-off-by: Patrick Delaunay --- board/s

Re: [PATCH] stm32mp: simplify the STM32MP15x package parsing code

2022-09-07 Thread Patrick DELAUNAY
Hi, On 6/20/22 09:50, Patrick Delaunay wrote: Simplify the package parsing code for STM32MP15X as package can be affected with get_cpu_package() result. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/stm32mp15x.c | 15 +++ 1 file changed, 3 insertions(+), 12

[PATCH] ARM: dts: stm32mp: alignment with v6.0-rc3

2022-09-07 Thread Patrick Delaunay
: stm32: Fix SPI2 pinmux pin comments on stm32mp15 - ARM: dts: stm32: add optee reserved memory on stm32mp135f-dk - ARM: dts: stm32: enable optee firmware and SCMI support on STM32MP13 - ARM: dts: stm32: remove the IPCC "wakeup" IRQ on stm32mp151 Signed-off-by: Patrick Delaunay --- ar

[PATCH 3/4] stm32mp: stm32prog: solve warning for 64bits compilation

2022-09-06 Thread Patrick Delaunay
Solve many compilation warning when stm32prog is activated on the aarch64. Signed-off-by: Patrick Delaunay --- .../mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c | 14 +++--- arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 16 arch/arm/mach-stm32mp/cmd_stm32prog

[PATCH 4/4] stm32mp: stm32prog: correctly handle OTP when SMC is not supported

2022-09-06 Thread Patrick Delaunay
As the SMC is only supported in SP-MIN for STM32MP15x, the associated partition should be absent when the TA NVMEM is not available in OPT-TEE in STM32MP13x. Signed-off-by: Patrick Delaunay --- .../mach-stm32mp/cmd_stm32prog/stm32prog.c| 25 +-- .../mach-stm32mp

[PATCH 2/4] stm32mp: stm32prog: change default flashlayout location to CONFIG_SYS_LOAD_ADDR

2022-09-06 Thread Patrick Delaunay
but without impact for serial boot with STM32CubeProgrammer. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c| 2 +- arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c| 8 arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c | 2 +- arch/arm

[PATCH 1/4] stm32mp: stm32prog: support empty flashlayout

2022-09-06 Thread Patrick Delaunay
When the STM32CubeProgrammer sent a empty flashlayout.tsv file, the command stm32prog correctly parse the file but data->dev_nb = 0 and the stm32prog_devices_init operations should be skipped. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 4 1 f

Re: [PATCH v4] tee: optee: rework TA bus scanning code

2022-09-06 Thread Patrick DELAUNAY
19 insertions(+), 5 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] ARM: dts: stm32mp15: remove hwlocks from pinctrl

2022-09-06 Thread Patrick DELAUNAY
with Linux device tree with v6.0 as the hwsem support wasn’t yet added in pincontrol in kernel. It avoids issues when the Linux kernel is started with the U-Boot device tree. Cc: Patrice Chotard Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- arch/arm/dts/stm32mp151.dtsi | 2 -- 1 file

Re: [PATCH] configs: stm32mp*: fix system reset

2022-09-06 Thread Patrick DELAUNAY
Hi, On 9/5/22 19:33, Jorge Ramirez-Ortiz wrote: Enabling CONFIG_SYSRESET_PSCI prevents CONFIG_RESET_SCMI from executing. The side effect observed are I2C devices no longer being accessible from U-boot after a soft reset. Fixes: 11517ccc8c52 ("configs: add stm32mp13 defconfig") Fixes:

Re: [PATCH v3 4/4] gpio: sandbox: Add GPIOD_IS_AF for gpio configured in alternate function

2022-08-30 Thread Patrick DELAUNAY
| 5 + include/asm-generic/gpio.h | 1 + include/dt-bindings/gpio/sandbox-gpio.h | 3 +++ test/dm/gpio.c | 30 + 4 files changed, 39 insertions(+) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v3 3/4] pinctrl: pinctrl_stm32: Populate uc_priv->name[] with pinmux node's name

2022-08-30 Thread Patrick DELAUNAY
(no changes since v1) drivers/pinctrl/pinctrl_stm32.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v3 2/4] gpio: Fix pin's status display for pin with GPIOF_UNUSED function

2022-08-30 Thread Patrick DELAUNAY
lost Simon Glass's reviewed-by during v1 review drivers/gpio/gpio-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v3 1/4] gpio: Allow to print pin's label even for pin with GPIOF_FUNC function

2022-08-30 Thread Patrick DELAUNAY
GPIOZ14: unknown GPIOZ15: unknown Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- Changes in v3: - add lost Simon Glass's reviewed-by during v1 review drivers/gpio/gpio-uclass.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) Reviewed-

Re: [PATCH] ARM: dts: stm32: Fix display-timings settings for stm32f746-disco

2022-08-30 Thread Patrick DELAUNAY
-- arch/arm/dts/stm32f746-disco-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] configs: stm32: Enable CONFIG_DM_REGULATOR for stm32f769-disco

2022-08-30 Thread Patrick DELAUNAY
800: panel panel enable backlight error -38 DM_REGULATOR flag must be enabled to fix this issue Signed-off-by: Patrice Chotard --- configs/stm32f769-disco_defconfig | 1 + configs/stm32f769-disco_spl_defconfig | 1 + 2 files changed, 2 insertions(+) Reviewed-by: Patrick Delauna

Re: [PATCH] ARM: stm32: Switch DHSOM to FMC2 EBI driver

2022-08-30 Thread Patrick DELAUNAY
Hi, On 8/23/22 19:27, Marek Vasut wrote: Perform long overdue conversion of ad-hoc FMC2 EBI bus initialization to upstream FMC2 EBI driver. No functional change. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- .../dts/stm32mp15xx-dhcom-picoitx-u-boot.dtsi | 8

Re: [PATCHv2 1/2] i2c: stm32f7: fix clearing the control register

2022-08-30 Thread Patrick DELAUNAY
e32(>cr2, STM32_I2C_CR2_RESET_MASK); + clrbits_le32(>cr2, STM32_I2C_CR2_RESET_MASK); } return ret; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v3 4/4] ARM: stm32: DH: Use common MAC address functions

2022-07-25 Thread Patrick DELAUNAY
eturn 0; } Minor remarks on the last function:    the 2 'printf' calls can be replaced by log_error() call (or log_debug ?)     to correctly handle this trace with CONFIG_LOG_LEVEL => printf should avoid except in command result to handle log features during initialization Anyway Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v6 07/13] FWU: STM32MP1: Add support to read boot index from backup register

2022-07-13 Thread Patrick DELAUNAY
-Boot. On the STM32MP157C-DK2 board, this value is passed through one of the SoC's backup register. Add a function to read the boot index value from the backup register. Signed-off-by: Sughosh Ganu Reviewed-by: Patrick Delaunay --- Changes since V5: * Shuffled the location of the TAMP_FWU_* macros

Re: [PATCH v6 06/13] FWU: stm32mp1: Add helper functions for accessing FWU metadata

2022-07-13 Thread Patrick DELAUNAY
| 3 ++ lib/fwu_updates/Makefile | 6 +++ lib/fwu_updates/fwu_gpt.c| 88 4 files changed, 137 insertions(+) create mode 100644 lib/fwu_updates/Makefile create mode 100644 lib/fwu_updates/fwu_gpt.c Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v6 05/13] stm32mp1: dk2: Add image information for capsule updates

2022-07-13 Thread Patrick DELAUNAY
#ifdef CONFIG_DISTRO_DEFAULTS /*/ with the modification s/STM32MP1/STM32MP15/ to avoid confusion with STM32MP13 Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v6 03/13] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-07-13 Thread Patrick DELAUNAY
rify_mdata(struct fwu_mdata *mdata, bool pri_part); int fwu_mdata_check(void); int fwu_revert_boot_index(void); int fwu_accept_image(efi_guid_t *img_type_id, u32 bank); with the minor modification (LOG_CATEGORY) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v6 02/13] FWU: Add FWU metadata structure and driver for accessing metadata

2022-07-13 Thread Patrick DELAUNAY
evice ops\n"); + return -ENOSYS; + } + + return 0; +} + (...) with this minor update Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] arm: dts: stm32mp1: Drop fastboot and stm32prog trigger gpios on DHCOM

2022-07-13 Thread Patrick Delaunay
338da609a7 Best regards, -- Patrick Delaunay

Re: [PATCH v2 1/3] mmc: stm32_sdmmc2: cosmetic: rename stm32_sdmmc_bind

2022-07-13 Thread Patrick Delaunay
On Thu, 30 Jun 2022 10:01:45 +0200, Patrick Delaunay wrote: > Rename stm32_sdmmc_bind to stm32_sdmmc2_bind as all other functions > in SDMMCv2 driver > > series-changes: 2 > - fix typo in commit message (/oter function/other functions/) > > > [...] Applied to stm32/ma

Re: [PATCH 1/4] ARM: dts: stm32mp15: alignment with v5.19

2022-07-13 Thread Patrick Delaunay
On Tue, 5 Jul 2022 16:55:54 +0200, Patrick Delaunay wrote: > Device tree alignment with Linux kernel v5.19-rc1 > > - ARM: dts: stm32: Add alternate pinmux for ethernet0 pins > - ARM: dts: stm32: Add alternate pinmux for mco2 pins > - ARM: dts: stm32: fix pinctrl node name wa

Re: [PATCH v2 01/10] i2c: stm32: add support for the st, stm32mp13 SOC

2022-07-13 Thread Patrick Delaunay
On Thu, 30 Jun 2022 10:20:14 +0200, Patrick Delaunay wrote: > The stm32mp13 soc differs from the stm32mp15 in terms of > clear register offset for controlling the FMP (Fast Mode Plus). > > Applied to stm32/master, thanks! [01/10] i2c: stm32: add support for the st,stm32mp13 SOC

Re: [PATCH 1/2] ARM: dts: stm32mp13: add OP-TEE nodes

2022-07-13 Thread Patrick Delaunay
On Wed, 6 Jul 2022 18:20:24 +0200, Patrick Delaunay wrote: > Add the node for OP-TEE firmware with the associated reserved memory nodes > > Applied to stm32/master, thanks! [1/2] ARM: dts: stm32mp13: add OP-TEE nodes commit: 0b69ce6a816c39502941deb90543e23619e02896 [2/2]

[PULL] Pull request for u-boot next / v2022.10 = u-boot-stm32-20220712

2022-07-13 Thread Patrick DELAUNAY
Patrick Delaunay (19):   configs: stm32m15: support STM32MP_BOARD_EXTRA_ENV for st boards   ARM: dts: stm32mp13: add OP-TEE nodes   ARM: dts: stm32mp13: add SCMI nodes   mmc: stm32_sdmmc2: cosmetic: rename stm32_sdmmc_bind   mmc: stm32_sdmmc2: remove privdata   mmc

[RESEND PATCH v2] clk: update clk_clean_rate_cache to use private clk struct

2022-07-12 Thread Patrick Delaunay
rivate clk data, the update should be done also on it. Fixes: 6b7fd3128f7 ("clk: fix set_rate to clean up cached rates for the hierarchy") Signed-off-by: Patrick Delaunay --- Changes in v2: - set *clkp = clk when CCF is not activated and when the clock is not found drivers/clk/c

Re: [PATCH] configs: stm32m15: support STM32MP_BOARD_EXTRA_ENV for st boards

2022-07-12 Thread Patrick Delaunay
On Mon, 11 Jul 2022 19:45:50 +0200, Patrick Delaunay wrote: > Correctly handle STM32MP_BOARD_EXTRA_ENV define in stm32mp15_st_common.h; > the STM32MP_BOARD_EXTRA_ENV is added in CONFIG_EXTRA_ENV_SETTINGS > definition, as it is done "stm32mp15_st_common.h" > > Withou

[PATCH v2] log: force DEBUG when LOG_DEBUG is activated

2022-07-12 Thread Patrick Delaunay
, is linked with the define LOG_DEBUG, used to force the trace generated by other macros (log_debug, dev_dbg, pr_debug). We only need to define LOG_DEBUG in a file to activate all the traces generated by any U-Boot debug macro, as it is described in /doc/develop/logging.rst Signed-off-by: Patrick Delaunay

[PATCH] configs: stm32m15: support STM32MP_BOARD_EXTRA_ENV for st boards

2022-07-11 Thread Patrick Delaunay
nvironment for STMicroelectronics boards. Fixes: 806c4dd31532 ("configs: stm32mp1: set the console variable for extlinux.conf") Reported-by: Gatien CHEVALLIER Signed-off-by: Patrick Delaunay --- include/configs/stm32mp15_st_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

Re: [PATCH] arm: dts: stm32mp1: Drop fastboot and stm32prog trigger gpios on DHCOM

2022-07-06 Thread Patrick DELAUNAY
nit() This code was initially copied from 'board/st/stm32mp1/stm32mp1.c' but after your patch I think it is not needed. Anyway for this device tree patch Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH 2/2] ARM: dts: stm32mp13: add SCMI nodes

2022-07-06 Thread Patrick Delaunay
Add the node for SCMI firmware with the associated reserved memory nodes Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp13-u-boot.dtsi | 20 +++ arch/arm/dts/stm32mp131.dtsi | 31 ++ 2 files changed, 51 insertions(+) diff --git a/arch

[PATCH 1/2] ARM: dts: stm32mp13: add OP-TEE nodes

2022-07-06 Thread Patrick Delaunay
Add the node for OP-TEE firmware with the associated reserved memory nodes Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp13-u-boot.dtsi | 4 arch/arm/dts/stm32mp131.dtsi | 7 +++ arch/arm/dts/stm32mp135f-dk.dts| 11 +++ 3 files changed, 22 insertions

[PATCH 2/4] clk: stm32: add support compatible st, stm32mp1-rcc-secure

2022-07-05 Thread Patrick Delaunay
Add support for new compatible st,stm32mp1-rcc-secure used when the RCC resource is managed by secured world (RCC_TZCR.TZEN=1) iand when SCMI is used. Signed-off-by: Patrick Delaunay --- drivers/misc/stm32_rcc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/stm32_rcc.c b

[PATCH 4/4] ARM: dts: stm32: add SCMI version of STM32 boards (DK1/DK2/ED1/EV1)

2022-07-05 Thread Patrick Delaunay
I services, reset and clock. These device trees are only supported with stm32mp15_defconfig, with OP-TEE, SCMI and without SPL support. Signed-off-by: Patrick Delaunay --- arch/arm/dts/Makefile | 4 + arch/arm/dts/stm32mp15-scmi-u-boot.dtsi | 167 ++

[PATCH 1/4] ARM: dts: stm32mp15: alignment with v5.19

2022-07-05 Thread Patrick Delaunay
LSE SCMI clock on DK1/ED1 STM32 board - ARM: dts: stm32: delete fixed clock node on STM32MP15-SCMI - ARM: dts: stm32: add missing usbh clock and fix clk order on stm32mp15 Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp15-pinctrl.dtsi | 64 arch/arm/dts/stm32mp15

[PATCH 3/4] configs: stm32mp15: increase malloc size for pre-reloc

2022-07-05 Thread Patrick Delaunay
With support of SCMI in OP-TEE, the early malloc usage increase, the associated defined CONFIG_SYS_MALLOC_F_LEN need to be increased. For example, for stm32mp15_defconfig and stm32mp157c-dk2-scmi.dtsi, we have: Early malloc usage: 14098 / 8 Signed-off-by: Patrick Delaunay --- configs

[PATCH 2/2] usb: hub: increase HUB_DEBOUNCE_TIMEOUT

2022-07-04 Thread Patrick Delaunay
connection timeout on some USB device; normally the env variable "usb_pgood_delay" is used to delay the first query after power ON and thus the device answer, but this variable not to increase the connection timeout delay. Signed-off-by: Patrick Delaunay --- Hi, I think this patch so

[PATCH 1/2] usb: hub: introduce HUB_DEBOUNCE_TIMEOUT

2022-07-04 Thread Patrick Delaunay
Introduce define for connection timeout, named HUB_DEBOUNCE_TIMEOUT as in linux kernel drivers/usb/core/hub.c Signed-off-by: Patrick Delaunay --- common/usb_hub.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/usb_hub.c b/common/usb_hub.c index ba11a188ca6

[PATCH] log: force DEBUG when LOG_DEBUG is activated

2022-06-30 Thread Patrick Delaunay
, is linked with the define LOG_DEBUG, used to force the trace generated by other macros (log_debug, dev_dbg, pr_debug). We only need to define LOG_DEBUG in a file to activate all the traces generated by any U-Boot debug macro, as it is described in /doc/develop/logging.rst Signed-off-by: Patrick Delaunay

[PATCH 2/2] net: dwc_eth_qos: cosmetic: reorder include files

2022-06-30 Thread Patrick Delaunay
Reorder include files in the U-Boot expected order. Signed-off-by: Patrick Delaunay --- drivers/net/dwc_eth_qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index 0c2ba206056..97279839baf 100644 --- a/drivers/net

[PATCH 1/2] net: dwc_eth_qos: restore support of not cache-aligned descriptor

2022-06-30 Thread Patrick Delaunay
the current behavior when the descriptors can be cache-aligned with the field "Descriptor Skip Length" of the DMA channel control register, when eqos->desc_pad = true. Signed-off-by: Patrick Delaunay --- This patch is required for ETH support on STM32MP13x family with AXI_WIDTH_32 value

Re: [PATCH 03/10] stm32mp: add support of STM32MP13x Rev.Y

2022-06-30 Thread Patrick DELAUNAY
Hi, On 6/30/22 10:16, Patrick Delaunay wrote: Add support of STM32MP13x Rev.Y for the Silicon revision REV_ID = 0x1003. Signed-off-by: Patrick Delaunay --- Changes in v2: - fix value of CPU_REV1_2 = 0x1003, because minor version in REV_ID is bitfield at SoC level (0 = 0, 1 = 1, 2 = 3, 3

[PATCH v2 09/10] configs: stm32mp13: activate I2C support

2022-06-30 Thread Patrick Delaunay
Activate the I2C driver in STM32MP13x config. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index 9b0c5a36b04..f58c73b7c79 100644

[PATCH v2 10/10] configs: stm32mp13: activate some command

2022-06-30 Thread Patrick Delaunay
Activate useful commands in STM32MP13x config, already activated in stm32mp15_defconfig. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 16 1 file changed, 16 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs

[PATCH v2 08/10] configs: stm32mp13: activate RTC support

2022-06-30 Thread Patrick Delaunay
Activate the RTC driver in STM32MP13x config. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index 3fa1642b2e4..9b0c5a36b04 100644

[PATCH v2 07/10] configs: stm32mp13: activate RNG support

2022-06-30 Thread Patrick Delaunay
Activate the RNG driver provided by OP-TEE. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index b5dcec78f51..3fa1642b2e4 100644

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