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 the

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

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

2022-09-20 Thread Patrick Delaunay
mand "usb start" 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/ph

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

2022-09-21 Thread Patrick Delaunay
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

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

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

2022-09-22 Thread Patrick DELAUNAY
Hi, On 9/22/22 13:27, Simon Glass wrote: Hi Etienne, On Thu, 22 Sept 2022 at 10:52, Etienne Carriere wrote: Hello Patrick and all, On Mon, 19 Sept 2022 at 16:49, Patrick DELAUNAY wrote: Hi Simon, On 9/12/22 20:31, Simon Glass wrote: Hi Ilias, On Wed, 7 Sept 2022 at 15:32, Ilias

Re: [PATCH v2 1/7] configs: stm32f746-disco: Fix SPL boot

2022-09-26 Thread Patrick DELAUNAY
NO_BSS_LIMIT=y CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] ARM: dts: stm32: DT sync with kernel v6.0-rc4 for MCU's boards

2022-09-26 Thread Patrick DELAUNAY
u-boot,dm-pre-reloc; }; @@ -256,6 +256,6 @@ u-boot,dm-pre-reloc; }; -&timer5 { +&timers5 { u-boot,dm-pre-reloc; }; ... 2 NITS Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v2 2/7] configs: stm32f769-disco: Fix SPL boot

2022-09-26 Thread Patrick DELAUNAY
000 +CONFIG_SPL_PAD_TO=0x9000 CONFIG_SPL_NO_BSS_LIMIT=y CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v2 3/7] configs: stm32746g-eval: Fix SPL boot

2022-09-26 Thread Patrick DELAUNAY
NO_BSS_LIMIT=y CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v2 4/7] configs: stm32f746-disco: Fix CONFIG_SYS_SPL_ARGS_ADDR

2022-09-26 Thread Patrick DELAUNAY
@@ CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_MTD_SUPPORT=y CONFIG_SPL_XIP_SUPPORT=y -CONFIG_SYS_SPL_ARGS_ADDR=0x81c +CONFIG_SYS_SPL_ARGS_ADDR=0x80c CONFIG_SPL_DM_RESET=y CONFIG_SYS_PBSIZE=1050 CONFIG_CMD_GPT=y Reviewed-by: Patrick Delaunay Thanks

Re: [PATCH v2 5/7] configs: stm32746g-eval: Fix CONFIG_SYS_SPL_ARGS_ADDR

2022-09-26 Thread Patrick DELAUNAY
@@ CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_MTD_SUPPORT=y CONFIG_SPL_XIP_SUPPORT=y -CONFIG_SYS_SPL_ARGS_ADDR=0x81c +CONFIG_SYS_SPL_ARGS_ADDR=0x80c CONFIG_SPL_DM_RESET=y CONFIG_SYS_PBSIZE=1050 CONFIG_CMD_GPT=y Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v2 7/7] configs: stm32f746-disco: Remove CONFIG_SYS_UBOOT_START flag

2022-09-26 Thread Patrick DELAUNAY
0x080083FD #define CONFIG_SYS_UBOOT_BASE (CONFIG_SYS_FLASH_BASE + \ CONFIG_SPL_PAD_TO) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v2 6/7] config: stm32f769-disco: Fix internal flash size

2022-09-26 Thread Patrick DELAUNAY
CONFIG_SPI_FLASH_STMICRO=y Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH] fdt_support: cosmetic: remove fdt_fixup_nor_flash_size prototype

2022-09-27 Thread Patrick Delaunay
Remove prototype for the removed function fdt_fixup_nor_flash_size. This patch has no impact as the function is never used. Fixes: 98f705c9cefd ("powerpc: remove 4xx support") Signed-off-by: Patrick Delaunay --- include/fdt_support.h | 2 -- 1 file changed, 2 deletions(-) diff --git

Re: [PATCH] configs: increase SYS_MALLOC_F_LEN for STM32 MCU's board

2022-09-27 Thread Patrick DELAUNAY
NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x2000 CONFIG_DEFAULT_DEVICE_TREE="stm32h750i-art-pi" Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH] firmware: scmi: fix the multi channel support with CCF

2022-09-30 Thread Patrick Delaunay
Signed-off-by: Patrick Delaunay --- drivers/firmware/scmi/mailbox_agent.c | 2 +- drivers/firmware/scmi/optee_agent.c | 2 +- drivers/firmware/scmi/scmi_agent-uclass.c | 2 +- drivers/firmware/scmi/smccc_agent.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --

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

2022-08-30 Thread Patrick DELAUNAY
r 2 */ - setbits_le32(®s->cr2, STM32_I2C_CR2_RESET_MASK); + clrbits_le32(®s->cr2, STM32_I2C_CR2_RESET_MASK); } return ret; Reviewed-by: Patrick Delaunay Thanks Patrick

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: [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: dts: stm32: Fix display-timings settings for stm32f746-disco

2022-08-30 Thread Patrick DELAUNAY
rd --- arch/arm/dts/stm32f746-disco-u-boot.dtsi | 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
13: unknown 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 delet

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 3/4] pinctrl: pinctrl_stm32: Populate uc_priv->name[] with pinmux node's name

2022-08-30 Thread Patrick DELAUNAY
ce Chotard --- (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 4/4] gpio: sandbox: Add GPIOD_IS_AF for gpio configured in alternate function

2022-08-30 Thread Patrick DELAUNAY
box.c | 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] stm32mp: fix various array bounds checks

2023-03-30 Thread Patrick DELAUNAY
nsertions(+), 4 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] pinctrl: pinctrl_stm32: Add slew rate support for stm32_pinctrl_get_pin_muxing()

2023-03-30 Thread Patrick DELAUNAY
ode[mode], pinmux_otype[otype], -pinmux_bias[pupd], label ? label : ""); +pinmux_bias[pupd], label ? label : "", + pinmux_speed[speed]); break; case GPIOF_INPUT: snprintf(buf, size, "%s %s %s", pinmux_mode[mode], Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] ARM: dts: stm32: Add QSPI support on STM32MP13x SoC family

2023-04-03 Thread Patrick DELAUNAY
= <&rcc QSPI_R>; + status = "disabled"; + }; + sdmmc1: mmc@58005000 { compatible = "st,stm32-sdmmc2", "arm,pl18x", "arm,primecell"; arm,primecell-periphid = <0x20253180>; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] watchdog: arm_smc_wdt: add watchdog support

2023-04-03 Thread Patrick DELAUNAY
t_ids[] = { +    { .compatible = "arm,smc-wdt" }, +    {} +}; + +U_BOOT_DRIVER(wdt_sandbox) = { +    .name = "smcwd", +    .id = UCLASS_WDT, +    .of_match = smcwd_dt_ids, +    .priv_auto = sizeof(struct smcwd_priv_data), +    .probe = smcwd_probe, +    .ops = &smcwd_ops, +};

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

2023-04-07 Thread Patrick Delaunay
The early malloc usage increased so 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: 280b8 / 8 Signed-off-by: Patrick Delaunay --- configs/stm32mp15_defconfig | 2 +- 1

Re: [PATCH] spi: stm32_qspi: Remove useless struct stm32_qspi_flash

2023-04-17 Thread Patrick DELAUNAY
CR and QSPI_DCR save/restore code and struct stm32_ospi_flash can be removed as well. Signed-off-by: Patrice Chotard --- drivers/spi/stm32_qspi.c | 27 +++ 1 file changed, 3 insertions(+), 24 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 1/2] configs: stm32mp15: Add usb_pgood_delay for ST boards

2023-04-17 Thread Patrick DELAUNAY
000\0" \ "console=ttySTM0\0" #include Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/2] configs: stm32mp13: Increase usb_pgood_delay for ST boards

2023-04-17 Thread Patrick DELAUNAY
STM32MP_BOARD_EXTRA_ENV \ - "usb_pgood_delay=1000\0" \ + "usb_pgood_delay=2000\0" \ "console=ttySTM0\0" #include Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-04-18 Thread Patrick Delaunay
video interface bus types") Signed-off-by: Patrick Delaunay --- include/dt-bindings/media/video-interfaces.h | 16 1 file changed, 16 insertions(+) create mode 100644 include/dt-bindings/media/video-interfaces.h diff --git a/include/dt-bindings/media/video-interfaces.h b/

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

2023-04-18 Thread Patrick Delaunay
Alignment with Linux device tree v6.3-rc3 for STM32MP13x and STM32MP15x STMicroelectronics board and common files, SoC and pincontrol dtsi. I also include the new dt-bindings files video-interfaces.h as it is done in Linux kernel. Patrick Delaunay (2): media: dt-bindings: media: Add macros

[PATCH 2/2] ARM: dts: stm32mp: alignment with v6.3-rc3

2023-04-18 Thread Patrick Delaunay
-dk - ARM: dts: stm32: add timers support on stm32mp135f-dk - ARM: dts: stm32: Fix User button on stm32mp135f-dk - ARM: dts: stm32: Use new media bus type macros - ARM: dts: stm32: Update part number NVMEM description on stm32mp131 Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp13

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

2023-04-20 Thread Patrick DELAUNAY
Hi, On 4/18/23 21:14, Marek Vasut wrote: On 4/18/23 15:59, Patrick Delaunay wrote: Device tree alignment with Linux kernel v6.3-rc3: - ARM: dts: stm32: add i2c nodes into stm32mp131.dtsi - ARM: dts: stm32: enable i2c1 and i2c5 on stm32mp135f-dk.dts - ARM: dts: stm32: add spi nodes into

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

2023-09-18 Thread Patrick DELAUNAY
files changed, 9 insertions(+), 9 deletions(-) rename drivers/rng/{stm32mp1_rng.c => stm32_rng.c} (100%) 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 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; }; }; + +&usbotg_hs { + u-boot,force-b-session-valid; +}; Reviewed-by: Patrick Delaunay Thanks Patrick

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

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

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

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

2023-04-24 Thread Patrick DELAUNAY
FLASH_BASE + \ CONFIG_SPL_PAD_TO) -/* For splashcreen */ - #endif /* __CONFIG_H */ Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-04-24 Thread Patrick DELAUNAY
button-gpio = <&gpioa 0 0>; }; - dsi_host: dsi_host { - compatible = "synopsys,dw-mipi-dsi"; - status = "okay"; - }; - led1 { compatible = "st,led1"; led-gpio = <&gpioj 5 0>; Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-04-24 Thread Patrick Delaunay
video interface bus types") Signed-off-by: Patrick Delaunay --- (no changes since v1) include/dt-bindings/media/video-interfaces.h | 16 1 file changed, 16 insertions(+) create mode 100644 include/dt-bindings/media/video-interfaces.h diff --git a/include/dt-bindings/m

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

2023-04-24 Thread Patrick Delaunay
new device-tree modification after v6.3-rc3 - add SHA1 for each kernel patch Patrick Delaunay (2): media: dt-bindings: media: Add macros for video interface bus types ARM: dts: stm32mp: alignment with v6.3 arch/arm/dts/stm32mp13-pinctrl.dtsi | 138 +++ arch/arm/dts/stm32mp131.dtsi

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

2023-04-24 Thread Patrick Delaunay
stm32mp135f-dk - a12154058f75 - ARM: dts: stm32: Fix User button on stm32mp135f-dk - 2f33df889e99 - ARM: dts: stm32: Use new media bus type macros - 366384e49551 - ARM: dts: stm32: Update part number NVMEM description on stm32mp131 Signed-off-by: Patrick Delaunay --- Changes in v2: - change commit

[PATCH 1/6] stm32mp: add support of STM32MP15x Rev.Y

2023-04-27 Thread Patrick Delaunay
Add support of STM32MP15x Rev.Y for the Silicon revision REV_ID = 0x2003. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/include/mach/sys_proto.h | 1 + arch/arm/mach-stm32mp/stm32mp15x.c | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm

[PATCH 3/6] configs: stm32mp1: reduce DDR_CACHEABLE_SIZE to supported 256MB DDR

2023-04-27 Thread Patrick Delaunay
() in arch_cpu_init() and is correct for DDR size = 256MB. After relocation the real size of DDR, excluding the no-map reserved memory, is used after the U-Boot device tree parsing. Signed-off-by: Patrick Delaunay --- configs/stm32mp13_defconfig | 2 +- configs/stm32mp15_defconfig | 2 +- 2 files

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

2023-04-27 Thread Patrick Delaunay
Hi, here come some cleanups and fixed for the STM32MP13 and STM32MP15 boards. Patrick Delaunay (6): stm32mp: add support of STM32MP15x Rev.Y stm32mp: bsec: add check on null size in misc ops configs: stm32mp1: reduce DDR_CACHEABLE_SIZE to supported 256MB DDR stm32mp: stm32prog: fix OTP

[PATCH 2/6] stm32mp: bsec: add check on null size in misc ops

2023-04-27 Thread Patrick Delaunay
Add a protection in misc bsec ops for request with null size. For example OP-TEE error occurs when get_eth_nb() return 0 in setup_mac_address() for unknown part number because U-Boot read 0 OTPs. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/bsec.c | 4 ++-- 1 file changed, 2

[PATCH 4/6] stm32mp: stm32prog: fix OTP read/write error management

2023-04-27 Thread Patrick Delaunay
Avoid to ignore the OTP read/write error and transmits the error to STM32CubeProgrammer. Today the error is only displayed in log error: so the user on HOST thinks the OTP operation is performed. Reported-by: Mickael GARDET Signed-off-by: Patrick Delaunay Fixes: 75ea9e75931c ("st

[PATCH 5/6] stm32mp: stm32prog: use the decimal format by default for offset parsing

2023-04-27 Thread Patrick Delaunay
n unexpected parsing result when the address, provided by decimal value is starting by 0, for example 0x4400 = 00017408 is a invalid with current code. ... P 0x04fsbl1 Binary mmc000017408tf-a.stm32 .... Signed-off-by: Patrick Delaunay --- arch/arm/mach-s

[PATCH 6/6] pmic: stpmic1: support new prefix node name for regulator

2023-04-27 Thread Patrick Delaunay
synchronization for STMicroelectronics boards. Signed-off-by: Patrick Delaunay --- drivers/power/pmic/stpmic1.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/pmic/stpmic1.c b/drivers/power/pmic/stpmic1.c index 2c85410b1bf5..8701d4f971c9 100644 --- a/drivers/power/pmic/stpmic1.c +++ b/driver

[PATCH] drivers: core: ofnode: fix typo in panel timing decode

2023-05-11 Thread Patrick Delaunay
s-Pou Signed-off-by: Patrick Delaunay --- arch/sandbox/dts/test.dts | 2 +- drivers/core/ofnode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 453e53db71a8..e6586aaa05fa 100644 --- a/arch/sandbox/dts/test.dt

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

2023-05-12 Thread Patrick DELAUNAY
Hi, On 5/11/23 13:54, Marek Vasut wrote: On 5/11/23 08:39, Patrice CHOTARD wrote: Hi, On 5/11/23 02:22, Marek Vasut wrote: In case the IWDG is enabled by either U-Boot or Linux, the IWDG can never be disabled again. That includes low power states, which means that if the IWDG is enabled, th

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

2023-05-12 Thread Patrick DELAUNAY
pending, ping the respective IWDG and suspend again This does not seem to have any adverse impact on power consumption in suspend. Signed-off-by: Marek Vasut --- Cc: Ilias Apalodimas Cc: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Sughosh Ganu Cc: u-boot@lists.denx.de Cc

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

2023-05-12 Thread Patrick DELAUNAY
ARM: dts: stm32: Synchronize DDR setttings on DH SoMs") 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 --- board/dhelectronics/dh_stm32mp1/board.c | 6 +++--- 1 file changed, 3 insertions(+

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

2023-05-12 Thread Patrick DELAUNAY
c: Patrick Delaunay Cc: uboot-st...@st-md-mailman.stormreply.com --- arch/arm/mach-stm32mp/ecdsa_romapi.c | 1 + 1 file changed, 1 insertion(+) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 1/3] usb: Tidy up the usb_start flag

2023-05-12 Thread Patrick DELAUNAY
+- drivers/usb/host/usb-uclass.c | 1 - include/usb.h | 3 +++ test/boot/bootdev.c | 4 ++-- test/dm/blk.c | 3 --- 6 files changed, 6 insertions(+), 8 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

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

2023-05-12 Thread Patrick DELAUNAY
the device trees used here in OF_LIST. Cc: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard Signed-off-by: Tom Rini --- configs/stm32mp15_dhcor_basic_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stm32mp15_dhcor_basic_defconfig b/configs

Re: [PATCH V2] arm: stm32mp1: Set soc_type, soc_pkg, soc_rev env variables

2021-04-09 Thread Patrick DELAUNAY
Delaunay Cc: Patrice Chotard --- V2: Fix pkg = 0 , which should be *pkg = 0 --- arch/arm/mach-stm32mp/cpu.c | 105 ++-- 1 file changed, 53 insertions(+), 52 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH] board_f: cosmetic: change the debug trace to KB in reserve_video

2021-04-09 Thread Patrick Delaunay
Bytes for FDT at: ddc05d70 Reserving 0x278 Bytes for bootstage at: ddc05af0 Fixes: 5630d2fbc50f3035 ("board: Show memory for frame buffers") Signed-off-by: Patrick Delaunay --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b

Re: [PATCH] net: dwc_eth_qos: add support of device tree configuration for reset delay

2021-04-14 Thread Patrick DELAUNAY
Hi, On 4/9/21 2:22 PM, Marek Vasut wrote: On 4/9/21 10:00 AM, Patrick Delaunay wrote: The gpio reset assert/deassert delay are today harcoded in U-Boot driver but the value should be read from DT. STM32 use the generic binding defined in linux: Documentation/devicetree/bindings/net/ethernet

Re: [PATCH v2 7/7] arm: cache: cp15: don't map the reserved region with no-map property

2021-04-14 Thread Patrick DELAUNAY
Hi, On 2/8/21 2:26 PM, Patrick Delaunay wrote: No more map the reserved region with "no-map" property by marking the corresponding TLB entries with invalid entry (=0) to avoid speculative access. This patch fixes potential issue when predictive access is done by ARM core. Sig

Re: [PATCH] net: dwc_eth_qos: add support of device tree configuration for reset delay

2021-04-15 Thread Patrick DELAUNAY
Hi, On 4/15/21 8:08 AM, Ramon Fried wrote: On Thu, Apr 15, 2021 at 4:41 AM Ramon Fried wrote: On Wed, Apr 14, 2021 at 5:36 PM Marek Vasut wrote: On 4/14/21 4:07 PM, Patrick DELAUNAY wrote: Hi, Hi, On 4/9/21 2:22 PM, Marek Vasut wrote: On 4/9/21 10:00 AM, Patrick Delaunay wrote: The

[PATCH 1/3] net: eth-phy: define LOG_CATEGORY

2021-04-26 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay --- drivers/net/eth-phy-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/eth-phy-uclass.c b/drivers/net/eth-phy-uclass.c index 07aebd935e..abb658bf21 100644 --- a/drivers/net/eth

[PATCH 3/3] net: define LOG_CATEGORY

2021-04-26 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay --- net/eth-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 34ca731d1e..63ad0908d9 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -5,6 +5,8

[PATCH 2/3] net: dwc_eth_qos: define LOG_CATEGORY

2021-04-26 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay --- drivers/net/dwc_eth_qos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index e8242ca4e1..e423c31753 100644 --- a/drivers/net/dwc_eth_qos.c

[PATCH v2 0/6] net: dwc_eth_qos: add support of device tree configuration for reset delay

2021-04-26 Thread Patrick Delaunay
gpio support is removed in stm32 variant: eqos_start/stop_resets_stm32 and eqos_probe_resources_stm32. - cleanup ops by adding a common null ops (NEW) Patrick Delaunay (6): net: eth-phy: add support of device tree configuration for gpio reset net: eth-phy: use dev_dbg and log_notice net: eth

[PATCH v2 1/6] net: eth-phy: add support of device tree configuration for gpio reset

2021-04-26 Thread Patrick Delaunay
phy drivers for this uclass UCLASS_ETH_PHY. Signed-off-by: Patrick Delaunay --- Changes in v2: - Update eth-phy driver (NEW) drivers/net/eth-phy-uclass.c | 50 1 file changed, 50 insertions(+) diff --git a/drivers/net/eth-phy-uclass.c b/drivers/net/et

[PATCH v2 0/6] net: dwc_eth_qos: add support of device tree configuration for reset delay

2021-04-26 Thread Patrick Delaunay
gpio support is removed in stm32 variant: eqos_start/stop_resets_stm32 and eqos_probe_resources_stm32. - cleanup ops by adding a common null ops (NEW) Patrick Delaunay (6): net: eth-phy: add support of device tree configuration for gpio reset net: eth-phy: use dev_dbg and log_notice net: eth

[PATCH v2 2/6] net: eth-phy: use dev_dbg and log_notice

2021-04-26 Thread Patrick Delaunay
Signed-off-by: Patrick Delaunay --- Changes in v2: - use log macro in eth-phy driver (NEW) drivers/net/eth-phy-uclass.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/net/eth-phy-uclass.c b/drivers/net/eth-phy-uclass.c index 153f6909eb..962084a

[PATCH v2 3/6] net: eth-phy: manage subnode mdio0

2021-04-26 Thread Patrick Delaunay
Bind any subnode with name beginning by mdio, mdio0 for example, and not only the "mdio" as namei of subnode. Signed-off-by: Patrick Delaunay --- Changes in v2: - update eth-phy driver to support STM32 binding with a mdio0 subnode (NEW) drivers/net/eth-phy-uclass.c | 10

[PATCH v2 5/6] net: dwc_eth_qos: use generic ethernet phy for stm32 variant

2021-04-26 Thread Patrick Delaunay
Use the generic ethernet phy which already manages the correct binding for gpio reset, including the assert an deassert delays. Signed-off-by: Patrick Delaunay --- Changes in v2: - use generic ethernet phy for stm32 variant, this patch is a REWORK of previous serie: the device parsing is done

[PATCH v2 4/6] net: dwc_eth_qos: remove the field phyaddr of the struct eqos_priv

2021-04-26 Thread Patrick Delaunay
rces_stm32() it can be removed. Signed-off-by: Patrick Delaunay --- Changes in v2: - remove unused element in the struct eqos_priv (NEW) drivers/net/dwc_eth_qos.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index e8242ca4e1..

[PATCH v2 6/6] net: dwc: add a common empty ops eqos_null_ops

2021-04-26 Thread Patrick Delaunay
Add a common empty ops: eqos_null_ops() to remove the duplicated empty functions and reduce the driver size for stm32 and imx config. This patch also aligns the prototype of ops 'eqos_stop_clks' with other eqos ops by adding return value. Signed-off-by: Patrick Delaunay --- Cha

[PATCH] clk: cosmetic change in uclass

2021-04-27 Thread Patrick Delaunay
Remove the tab in clk_get_bulk to respect the coding rules. Signed-off-by: Patrick Delaunay --- drivers/clk/clk-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index 4ab3c402ed..b126c5ed60 100644 --- a/drivers/clk

[PATCH] dm: define LOG_CATEGORY for all uclass

2021-04-27 Thread Patrick Delaunay
Define LOG_CATEGORY for all uclass to allow filtering with log command. Signed-off-by: Patrick Delaunay --- drivers/adc/adc-uclass.c| 2 ++ drivers/ata/ahci-uclass.c | 2 ++ drivers/axi/axi-emul-uclass.c | 2 ++ drivers/axi/axi-uclass.c

[PATCH v3 2/7] lmb: add lmb_is_reserved_flags

2021-04-28 Thread Patrick Delaunay
Add a new function lmb_is_reserved_flags to check is a 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 --- (no changes since v1

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

2021-04-28 Thread Patrick Delaunay
-off-by: Patrick Delaunay --- Changes in v3: - NEW: solve performance issue as relocated DT is not marked cacheable arch/arm/mach-stm32mp/dram_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/dram_init.c b/arch/arm/mach-stm32mp/dram_init.c index

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

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

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

2021-04-28 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 --- (no changes since v2) Changes in v2: - remove unnecessary comments in lmb.h - rebase o

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

2021-04-28 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 --- (no changes since v1) lib/lmb.c | 40

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

2021-04-28 Thread Patrick Delaunay
Save the no-map information present in 'reserved-memory' node to allow correct handling when the MMU is configured in board to avoid speculative access. Signed-off-by: Patrick Delaunay --- (no changes since v1) common/image-fdt.c | 23 +++ 1 file changed, 15

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

2021-04-28 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. Signed-off-by: Patrick Delaunay --- Changes in v3: - call lmb_init_and_reserve when data cache is activated in enable_caches() - drop v2 patch "a

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

2021-04-28 Thread Patrick Delaunay
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 latest lmb patches - NEW: update in stm32mp specific MMU setup functions Patrick

[PATCH v2] dm: core: Add address translation in fdt_get_resource

2021-04-28 Thread Patrick Delaunay
e, &faddr); ... The both behavior should be aligned and the address translation must be called in fdt_get_resource() and removed for each caller. Fixes: a44810123f9e ("dm: core: Add dev_read_resource() to read device resources") Signed-off-by: Patrick Delaunay --- This pat

Re: [Uboot-stm32] [PATCH 1/2] cmd: pinmux: update result of do_status

2021-05-03 Thread Patrick DELAUNAY
Hi Simon, On 4/29/21 6:10 PM, Simon Glass wrote: Hi Patrick, On Tue, 20 Apr 2021 at 03:21, Patrice CHOTARD wrote: Hi Patrick -Original Message- From: Uboot-stm32 On Behalf Of Patrick DELAUNAY Sent: mercredi 28 octobre 2020 11:07 To: u-boot@lists.denx.de Cc: U-Boot STM32 ; Simon

[PATCH v3] dm: core: Add address translation in fdt_get_resource

2021-05-04 Thread Patrick Delaunay
e, &faddr); ... The both behavior should be aligned and the address translation must be called in fdt_get_resource() and removed for each caller. Fixes: a44810123f9e ("dm: core: Add dev_read_resource() to read device resources") Signed-off-by: Patrick Delaunay --- This pat

Re: [PATCH v3 2/7] lmb: add lmb_is_reserved_flags

2021-05-04 Thread Patrick DELAUNAY
On 4/29/21 6:10 PM, Simon Glass wrote: Hi Patrick, On Wed, 28 Apr 2021 at 03:23, Patrick Delaunay wrote: Add a new function lmb_is_reserved_flags to check is a address is reserved with a specific flags. This function can be used to check if an address was reserved with no-map flags with

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

2021-05-04 Thread Patrick DELAUNAY
Hi Simon, On 4/29/21 6:10 PM, Simon Glass wrote: Hi Patrick, On Wed, 28 Apr 2021 at 03:23, Patrick Delaunay wrote: Save the no-map information present in 'reserved-memory' node to allow correct handling when the MMU is configured in board to avoid speculative access. Signed-off-b

Re: [PATCH] reset: stm32: Fix bank and offset computation

2021-05-04 Thread Patrick DELAUNAY
bank = %d offset = %d)\n", reset_ctl->id, bank, offset); Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [Uboot-stm32] [PATCH] arm: dts: stm32mp157c-odyssey-som: enable the RNG1

2021-05-04 Thread Patrick DELAUNAY
DHCOM. Signed-off-by: Grzegorz Szymaszek Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/dts/stm32mp157c-odyssey-som.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/stm32mp157c-odyssey-som.dtsi b/arch/arm/dts/stm32mp157c-odyssey-som.dtsi index 83ff2e7ce1

Re: [PATCH] ARM: stm32: Add additional ID register check for KSZ8851 presence

2021-05-04 Thread Patrick DELAUNAY
sufficient to detect cases where the DT still contains the KSZ8851 nodes, but the chip itself is not present. Extend the detection to handle these cases. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- board/dhelectronics/dh_stm32mp1/board.c | 11 ++- 1 file c

Re: [PATCH] ARM: stm32: Enable UNZIP on DHSOM by default

2021-05-04 Thread Patrick DELAUNAY
Hi, On 5/3/21 1:31 PM, Marek Vasut wrote: The CMD_UNZIP provides the 'gzwrite' command, which is convenient for writing e.g. gz-compressed images to eMMC from U-Boot. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- configs/stm32mp15_dhcom_basic_def

[PATCH] configs: stm32mp: Enable UNZIP on STMicroelectronics stm32mp15 boards

2021-05-06 Thread Patrick Delaunay
The CMD_UNZIP provides the 'gzwrite' command, which is convenient for writing e.g. gz-compressed images to eMMC from U-Boot. Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 2 files changed, 2 insertions(+) di

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