[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] 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, +};

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] 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] stm32mp: fix various array bounds checks

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

Re: [PATCH] gpio: add GPIOD_ACTIVE_LOW into GPIOD_MASK_DIR

2023-03-23 Thread Patrick DELAUNAY
Hi, On 3/23/23 09:17, Bough Chen wrote: -Original Message- From: Patrick DELAUNAY Sent: 2023年3月23日 3:11 To: Bough Chen ; al.koc...@gmail.com; h...@denx.de; s...@chromium.org; and...@aj.id.au; patrice.chot...@foss.st.com; sam...@sholland.org; ma...@denx.de Cc: dl-uboot-imx ; u-boot

Re: [PATCH] gpio: add GPIOD_ACTIVE_LOW into GPIOD_MASK_DIR

2023-03-22 Thread Patrick DELAUNAY
Hi On 3/22/23 12:26, haibo.c...@nxp.com wrote: From: Haibo Chen dm_gpio_set_dir_flags() will clear GPIOD_MASK_DIR and set new flags. But there are cases like i2c_deblock_gpio_loop() will do like this: -first conifg GPIO(SDA) output with GPIOD_ACTIVE_LOW dm_gpio_set_dir_flags(pin, GPIOD_IS_OUT

[PATCH v2 1/2] lmb: Fix LMB_MEMORY_REGIONS flag usage

2023-03-22 Thread Patrick Delaunay
as these defines are used in API file lmb.h and not only in library file. Fixes: 5e2548c1d6e03 ("lmb: Fix LMB_MEMORY_REGIONS flag usage") Reported-by: Mark Millard Signed-off-by: Patrick Delaunay --- Changes in v2: - Remove CONFIG_LMB_XXX dependency on CONFIG_LMB as these defines ar

[PATCH v2 2/2] lmb: add max number of region in lmb_dump_region() output

2023-03-22 Thread Patrick Delaunay
: 4 reserved[4][0xdcae5000-0xdfff], 0x0351b000 bytes flags: 0 reserved[5][0xddafb5b8-0xdfff], 0x02504a48 bytes flags: 0 Reported-by: Mark Millard Signed-off-by: Patrick Delaunay --- (no changes since v1) lib/lmb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH 1/2] lmb: Fix LMB_MEMORY_REGIONS flag usage

2023-03-21 Thread Patrick Delaunay
Y_REGIONS flag usage") Reported-by: Mark Millard Signed-off-by: Patrick Delaunay --- include/lmb.h | 20 +++- lib/lmb.c | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index 7298c2ccc403..f70463ac5440 100644 ---

[PATCH 2/2] lmb: add max number of region in lmb_dump_region() output

2023-03-21 Thread Patrick Delaunay
: 4 reserved[4][0xdcae5000-0xdfff], 0x0351b000 bytes flags: 0 reserved[5][0xddafb5b8-0xdfff], 0x02504a48 bytes flags: 0 Reported-by: Mark Millard Signed-off-by: Patrick Delaunay --- lib/lmb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lmb.c b/lib/lm

Re: [PATCH] dfu: mtd: mark bad the MTD block on erase error

2023-03-17 Thread Patrick DELAUNAY
Hi, On 11/28/22 10:22, Patrick Delaunay wrote: In the MTD DFU backend, it is needed to mark the NAND block bad when the erase failed with the -EIO error, as it is done in UBI and JFFS2 code. This operation is not done in the MTD framework, but the bad block tag (in BBM or in BBT) is required

Re: [PATCH 2/2] efi: remove error in efi_disk_remove

2023-03-09 Thread Patrick DELAUNAY
On 3/9/23 09:54, Heinrich Schuchardt wrote: On 3/8/23 14:26, Patrick Delaunay wrote: EFI has no reason to block the driver remove when the associated EFI resources failed to be released. This patch avoids DM issue when an EFI resource can't be released, for example if this resource w

Re: [PATCH 1/2] efi: remove error in efi_disk_probe

2023-03-09 Thread Patrick DELAUNAY
Hi, On 3/9/23 09:57, Heinrich Schuchardt wrote: On 3/8/23 14:26, Patrick Delaunay wrote: EFI has no reason to block the dm core device_probe() in the callback efi_disk_probe() registered with EVT_DM_POST_PROBE. This patch avoids to have error in DM core on device_probe()    ret

[PATCH 2/2] efi: remove error in efi_disk_remove

2023-03-08 Thread Patrick Delaunay
not managed in cmd/usb.c and the next "usb start" command cause a crash because all the USB devices need to be released before the next USB scan. Signed-off-by: Patrick Delaunay --- lib/efi_loader/efi_disk.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --gi

[PATCH 0/2] efi: remove error in efi_disk_probe/efi_disk_remove

2023-03-08 Thread Patrick Delaunay
00mA) Generic Mass Storage C3EAEAD2 stopping USB.. efi_disk_remove failed for usb_mass_storage.lun0 uclass 22 (-1) efi_disk_remove failed for usb_mass_storage.lun0:1 uclass 73 (-1) Patrick Delaunay (2): efi: remove error in efi_disk_probe efi: remove error in efi_disk_remove lib/efi_loader/efi_disk.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) -- 2.25.1

[PATCH 1/2] efi: remove error in efi_disk_probe

2023-03-08 Thread Patrick Delaunay
is still probed. Signed-off-by: Patrick Delaunay --- lib/efi_loader/efi_disk.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c index d2256713a8e7..8d53ba3bd27e 100644 --- a/lib/efi_loader/efi_disk.c +++ b/lib

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

2023-03-08 Thread Patrick Delaunay
No need to mount a too small partition to handle a EXT4 file system. This patch add a test on partition size before to read the SUPERBLOCK_SIZE buffer and avoid error latter in fs_devread() function. Signed-off-by: Patrick Delaunay --- This patch avoids traces when EFI try to detect FS type on

Re: [PATCH v2 1/2] env: mmc: Clean up macro usage

2023-02-23 Thread Patrick DELAUNAY
Hi Marek, On 2/9/23 13:30, Marek Vasut wrote: Consistently use 'if (IS_ENABLED(CONFIG_PARTITION_TYPE_GUID))' instead of mix of ifdef. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Tom Rini --- V2: Replace CONFIG_IS_ENABLED(PARTITION_TYPE_GUID) with

Re: [PATCH v1 0/3] fdt: Fix mtparts fixup

2023-02-23 Thread Patrick DELAUNAY
Hi, On 1/23/23 21:01, Tom Rini wrote: On Mon, Jan 23, 2023 at 11:06:06AM +0100, Miquel Raynal wrote: Hi Tom, tr...@konsulko.com wrote on Fri, 13 Jan 2023 14:34:11 -0500: On Fri, Jan 13, 2023 at 07:45:44PM +0100, Francesco Dolcini wrote: From: Francesco Dolcini Recently we had a boot regr

Re: [PATCH v2 2/2] usb: move CONFIG_USB_HUB_DEBOUNCE_TIMEOUT to USB

2023-02-23 Thread Patrick DELAUNAY
because some usb device needs around 1.5s to be initialized + and a 2s value should solve detection issue on problematic USB keys. + if USB_KEYBOARD config USB_KEYBOARD_FN_KEYS Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] lmb: Default to not-LMB_USE_MAX_REGIONS

2023-02-23 Thread Patrick DELAUNAY
On 2/8/23 16:16, Tom Rini wrote: On Wed, Feb 08, 2023 at 03:13:31PM +, Philippe Schenker wrote: On Wed, 2023-02-08 at 09:54 -0500, Tom Rini wrote: On Wed, Feb 08, 2023 at 02:33:58PM +, Philippe Schenker wrote: Hi Tom, We currently face an issue on our apalis-imx8 machine, that is n

Re: [PATCH] lmb: Bump CONFIG_LMB_MAX_REGIONS

2023-02-23 Thread Patrick DELAUNAY
Hi, On 2/17/23 10:28, Michal Suchánek wrote: Hello, On Sun, Feb 12, 2023 at 06:45:36PM -0500, Tom Rini wrote: On Wed, Feb 08, 2023 at 02:50:16PM -0500, Tom Rini wrote: On Wed, Feb 08, 2023 at 08:11:34PM +0100, Michal Suchánek wrote: Hello, On Wed, Feb 08, 2023 at 01:25:50PM -0500, Tom Rini

Re: [PATCH] fastboot: Only call the bootm command if it is enabled

2023-02-22 Thread Patrick DELAUNAY
D_FLAG_ENV); - } else { + } else if (IS_ENABLED(CONFIG_CMD_BOOTM)) { static char boot_addr_start[20]; static char *const bootm_args[] = { "bootm", boot_addr_start, NULL Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH 1/2] ARM: remove SPEAR entry in makefile

2023-02-22 Thread Patrick Delaunay
As the lastest spear directories are removed, delete the associated entry in Makefile. Fixes: 570c3dcfc153 ("arm: Remove spear600 boards and the rest of SPEAr support") Signed-off-by: Patrick Delaunay --- arch/arm/cpu/arm926ejs/Makefile | 1 - 1 file changed, 1 deletion(-) diff --

[PATCH 2/2] mmc: remove SDHCI SPEAR

2023-02-22 Thread Patrick Delaunay
As the file spear_sdhci.c file is already removed, delete the associated configuration CONFIG_MMC_SDHCI_SPEAR. Fixes: c942fc925e7dab ("mmc: spear: remove the entire spear_sdhci.c file") Signed-off-by: Patrick Delaunay --- drivers/mmc/Kconfig | 12 drivers/mmc/Makefile

Re: [PATCH 47/88] mtd: Drop unused fsmc_nand driver

2023-02-22 Thread Patrick DELAUNAY
/fsmc_nand.c | 470 --- include/linux/mtd/fsmc_nand.h| 84 -- 3 files changed, 555 deletions(-) delete mode 100644 drivers/mtd/nand/raw/fsmc_nand.c delete mode 100644 include/linux/mtd/fsmc_nand.h For STMicroelectronics / SPEAr Reviewed-by: Patrick Delaunay

Re: [PATCH 69/88] arm: Rename STM32MP15x

2023-02-22 Thread Patrick DELAUNAY
+- 22 files changed, 59 insertions(+), 59 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 68/88] arm: Rename STM32MP13x

2023-02-22 Thread Patrick DELAUNAY
| 2 +- board/st/stm32mp1/Kconfig | 2 +- configs/stm32mp13_defconfig| 4 ++-- drivers/clk/stm32/Kconfig | 2 +- 11 files changed, 21 insertions(+), 21 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH] doc: add rst references to distro documentation in stm32mp1 board

2023-01-24 Thread Patrick Delaunay
Use internal rst reference with :doc: to have a link to distro.rst page in the generated U-Boot documentation. Signed-off-by: Patrick Delaunay --- doc/board/st/stm32mp1.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/board/st/stm32mp1.rst b/doc/board/st/stm32mp1

Re: [PATCH] tee: optee: fix a print error on rng probing

2023-01-18 Thread Patrick DELAUNAY
return 0; I think you can add: Fixes: 476a3d58dfeb ("tee: optee: don't fail probe because of optee-rng") Reviewed-by: Patrick Delaunay Thanks Patrick

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: [PATCH] dm: pmic: ignore disabled node in pmic_bind_children

2022-12-09 Thread Patrick DELAUNAY
Hi Jaehoon, On 10/26/22 15:05, Patrick Delaunay wrote: Ignore the disabled children node in pmic_bind_children() so the disabled regulators in device tree are not registered. This patch is based on the dm_scan_fdt_node() code - only the activated nodes are bound - and it solves possible issue

[PATCH] cmd: mtdparts: add SYS_MTDPARTS_RUNTIME dependency on CONFIG_MTDIDS/MTDPARTS_DEFAULT

2022-12-08 Thread Patrick Delaunay
ot a problem when env becomes ready, as these empty variables are removed form U-Boot environment in env_import() / himport_r(). Fixes: a331017c237c ("Complete migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT, include in environment") Signed-off-by: Patrick Delaunay --- cmd/Kconfig

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

2022-12-07 Thread Patrick DELAUNAY
. Disable Dcache around the BootROM call to avoid this issue. Signed-off-by: Marek Vasut --- Cc: Alexandru Gagniuc Cc: Patrice Chotard Cc: Patrick Delaunay --- V2: - Initialize reenable_dcache variable --- arch/arm/mach-stm32mp/ecdsa_romapi.c | 14 ++ 1 file changed, 14 insertions

[PATCH 5/5] configs: remove support of MTDIDS_DEFAULT/MTDPARTS_DEFAULT

2022-12-07 Thread Patrick Delaunay
Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT in Kconfig; this patch removes the support of MTDIDS_DEFAULT / MTDPARTS_DEFAULT in the configuration files (include/configs/*.h). Signed-off-by: Patrick Delaunay --- cmd/mtdparts.c | 5 + drivers/mtd/mtd_uboot.c | 4

[PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT

2022-12-07 Thread Patrick Delaunay
erences of these 2 defines are located in cmd/mtdparts.c and only for local purpose when CONFIG_MTDIDS_DEFAULT or CONFIG_MTDPART_DEFAULT are not defined. Patrick. Patrick Delaunay (5): configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif configs: x530: move MTDPART/MTDIDS_DEFAULT in

[PATCH 4/5] configs: SBx81LIFKW: move MTDPART_DEFAULT in defconfig

2022-12-07 Thread Patrick Delaunay
Replace MTDPARTS_DEFAULT in the config include file by CONFIG_MTDPARTS_DEFAULT in defconfig to complete the Kconfig migration. Signed-off-by: Patrick Delaunay --- configs/SBx81LIFKW_defconfig | 1 + include/configs/SBx81LIFKW.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/5] configs: SBx81LIFXCAT: move MTDPART_DEFAULT in defconfig

2022-12-07 Thread Patrick Delaunay
Replace MTDPARTS_DEFAULT in the config include file by CONFIG_MTDPARTS_DEFAULT in defconfig to complete the Kconfig migration. Signed-off-by: Patrick Delaunay --- configs/SBx81LIFXCAT_defconfig | 1 + include/configs/SBx81LIFXCAT.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 2/5] configs: x530: move MTDPART/MTDIDS_DEFAULT in defconfig

2022-12-07 Thread Patrick Delaunay
Replace MTDIDS_DEFAULT and MTDPARTS_DEFAULT in the config include file by CONFIG_MTDIDS_DEFAULT and CONFIG_MTDPARTS_DEFAULT in defconfig to complete the Kconfig migration. Signed-off-by: Patrick Delaunay --- configs/x530_defconfig | 2 ++ include/configs/x530.h | 2 -- 2 files changed, 2

[PATCH 1/5] configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif

2022-12-07 Thread Patrick Delaunay
Replace MTDIDS_DEFAULT in config include file by CONFIG_MTDIDS_DEFAULT in defonfig to complete the Kconfig migration Signed-off-by: Patrick Delaunay --- configs/am335x_guardian_defconfig | 1 + include/configs/am335x_guardian.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git

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

2022-12-06 Thread Patrick DELAUNAY
Hi, On 12/5/22 20:15, Sean Anderson wrote: On 12/5/22 14:04, Patrick DELAUNAY wrote: Hi, On 12/2/22 22:03, Sean Anderson wrote: This adds the UUU UCmd functionality as an OEM command. While the fastboot tool allows sending arbitrary commands as long as they are prefixed with "oem&q

Re: [PATCH 3/3] ARM: stm32: Increment WDT by default on DHSOM

2022-12-06 Thread Patrick DELAUNAY
-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay --- configs/stm32mp15_dhcom_basic_defconfig | 2 ++ configs/stm32mp15_dhcor_basic_defconfig | 2 ++ 2 files changed, 4 insertions(+) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/3] ARM: stm32: Increment boot counter in SPL on DHSOM

2022-12-06 Thread Patrick DELAUNAY
strategy. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay --- configs/stm32mp15_dhcom_basic_defconfig | 1 + configs/stm32mp15_dhcor_basic_defconfig | 1 + 2 files changed, 2 insertions(+) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 1/3] ARM: stm32: Enable assorted ST specific commands on DHSOM

2022-12-06 Thread Patrick DELAUNAY
Hi, On 12/6/22 03:35, Marek Vasut wrote: Enable the stm32prog, stm32key, stboard commands on DHSOM. Those can be used e.g. to implement verified boot. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay --- configs/stm32mp15_dhcom_basic_defconfig | 4 configs

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

2022-12-06 Thread Patrick DELAUNAY
--- Cc: Alexandru Gagniuc Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/mach-stm32mp/ecdsa_romapi.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/mach-stm32mp/ecdsa_romapi.c b/arch/arm/mach-stm32mp/ecdsa_romapi.c index a2f63ff879f..72b87bf2c64 100644 --- a

Re: [PATCH 4/4] ARM: stm32: Make ECDSA authentication available to U-Boot

2022-12-06 Thread Patrick DELAUNAY
. Signed-off-by: Marek Vasut --- Cc: Alexandru Gagniuc Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/mach-stm32mp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Patrick Delaunay Thanks Patrick

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

2022-12-06 Thread Patrick DELAUNAY
: Marek Vasut --- Cc: Alexandru Gagniuc Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c index fa02a11d867..9553ecd243c 100644 --- a/arch/arm/mach

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

2022-12-06 Thread Patrick DELAUNAY
address and DT address from any place in the code instead. good idea. Signed-off-by: Marek Vasut --- Cc: Alexandru Gagniuc Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/mach-stm32mp/boot_params.c | 20 ++- arch/arm/mach-stm32mp/cpu.c | 35

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

2022-12-05 Thread Patrick DELAUNAY
Hi, On 12/2/22 22:03, Sean Anderson wrote: This adds the UUU UCmd functionality as an OEM command. While the fastboot tool allows sending arbitrary commands as long as they are prefixed with "oem". This allows running generic U-Boot commands over fastboot without UUU, which is especially useful

Re: [PATCH] dfu: Call backend specific dfu_fill_*() only if enabled

2022-11-30 Thread Patrick DELAUNAY
-by: Marek Vasut --- Cc: Lukasz Majewski Cc: Patrice Chotard Cc: Patrick Delaunay --- drivers/dfu/dfu.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 516dda61796..f9679d5ee52 100644 --- a/drivers/dfu/dfu.c +++ b

[PATCH] dfu: Make DFU virtual backend SPL friendly

2022-11-30 Thread Patrick Delaunay
ckend") Reported-by: Marek Vasut Signed-off-by: Patrick Delaunay --- See initial patch proposal: http://patchwork.ozlabs.org/project/uboot/patch/20221128193917.236188-1-ma...@denx.de/ include/dfu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dfu.h b/include/d

Re: [PATCH 2/2] adc: stm32mp15: add support of generic channels binding

2022-11-28 Thread Patrick DELAUNAY
gacy) + ret = stm32_adc_legacy_chan_init(dev, num_channels); + else + ret = stm32_adc_generic_chan_init(dev, num_channels); if (ret < 0) return ret; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 1/2] adc: stm32mp15: split channel init into several routines

2022-11-28 Thread Patrick DELAUNAY
+ if (ret < 0) + return ret; + uc_pdata->data_mask = (1 << adc->cfg->num_bits) - 1; uc_pdata->data_format = ADC_DATA_FORMAT_BIN; uc_pdata->data_timeout_us = 10; Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH] dfu: mtd: mark bad the MTD block on erase error

2022-11-28 Thread Patrick Delaunay
patch also adds a test to avoid to request an erase operation on a block already marked bad; this test is not performed in MTD framework in mtd_erase(). Signed-off-by: Patrick Delaunay --- drivers/dfu/dfu_mtd.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff

[PATCH] firmware: scmi: use protocol node name to bind the scmi regulator driver

2022-11-25 Thread Patrick Delaunay
t_domain | |-- protocol@16 nop 2 [ + ] scmi_voltage_domain | `-- protocol@17 regulator 0 [ + ] scmi_regulator| |-- voltd-reg11 regulator 1 [ + ] scmi_regulator| |-- voltd-reg18 regulator 2 [ + ] scmi_regulator| |-- voltd-usb33

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

2022-11-21 Thread Patrick DELAUNAY
Hi, On 9/24/22 19:04, Marek Vasut wrote: On 9/12/22 15:37, Patrick DELAUNAY wrote: Hi, 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

[PATCH 7/8] env: mmc: add debug message when mmc-env-partition is not found

2022-11-10 Thread Patrick Delaunay
Add a debug message to indicate a potential issue when "u-boot,mmc-env-partition" is present in config node of device tree but this partition name is not found in the mmc device. Signed-off-by: Patrick Delaunay --- env/mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/env/m

[PATCH 8/8] env: mmc: cosmetic: remove unused macro STR(X)

2022-11-10 Thread Patrick Delaunay
Remove the unused macro STR(X) since the commit 2b2f727500dc ("env: mmc: allow support of mmc_get_env_dev with OF_CONTROL") Signed-off-by: Patrick Delaunay --- env/mmc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/env/mmc.c b/env/mmc.c index 8941e0f5ff39..85761417f283 10

[PATCH 6/8] env: mmc: select GPT env partition by type guid

2022-11-10 Thread Patrick Delaunay
k when the partition name property "u-boot,mmc-env-partition" is not present in config node or if the indicated partition name is not found. The mmc_offset_try_partition() function is reused, it selects the first partition with the correct type GUID when the parameter 'str' is

[PATCH 5/8] configs: stm32mp: activate CONFIG_ENV_MMC_USE_DT

2022-11-10 Thread Patrick Delaunay
not for SD-Card or eMMC. Signed-off-by: Patrick Delaunay --- configs/stm32mp13_defconfig | 1 + configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 4 files changed, 4 insertions(+) diff --git

[PATCH 4/8] env: mmc: add CONFIG_ENV_MMC_USE_DT

2022-11-10 Thread Patrick Delaunay
several ENV backends (SPI_FLASH, EEPROM NAND, SATA, MMC). After this patch a bad offset value is not possible when the selected partition in device tree is not found. Signed-off-by: Patrick Delaunay --- env/Kconfig | 16 env/mmc.c | 7 +++ 2 files changed, 23 insertions

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