Re: [PATCH] ARM: dts: stm32: Move vdd_io extras into Avenger96 extras

2022-02-10 Thread Patrick DELAUNAY
DHCOR recovery") Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi | 4 arch/arm/dts/stm32mp15xx-dhcor-u-boot.dtsi | 4 2 files changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Patrick Delauna

Re: [PATCH v10 3/9] env: Allow U-Boot scripts to be placed in a .env file

2022-02-10 Thread Patrick DELAUNAY
index 1bfe9ed07a..f3215c369a 100644 @@ -81,7 +81,8 @@ END { if (do_output) { printf("%s", "#define CONFIG_EXTRA_ENV_TEXT \"") - # Print out all the variables + # Print out all the variables by alphabetic order + PROCINFO["sorted_in"] = "@ind_str_asc" for (var in vars) { env = vars[var] print var "=" vars[var] "\\0" But this GNU feature must be avoid, see commit 7acb32256831 ("env: Avoid using GNU features in awk") Regard Patrick Delaunay

[PATCH] board: st: common: update test on misc_read result in command stboard

2022-02-01 Thread Patrick Delaunay
d: lock the OTP after programming") Signed-off-by: Patrick Delaunay --- board/st/common/cmd_stboard.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c index 2fba383168..c1ecd643b0 100644 --- a/board/st/common

[PATCH] video: stm32: stm32_ltdc: fix the check of return value of clk_set_rate()

2022-02-01 Thread Patrick Delaunay
_ltdc: add bridge to display controller") Signed-off-by: Gabriel Fernandez Signed-off-by: Patrick Delaunay --- drivers/video/stm32/stm32_ltdc.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_lt

[PATCH 4/4] cmd: clk: fix long help message

2022-01-31 Thread Patrick Delaunay
Fix the long help message for "clk setfreq" command Fixes: 7ab418fbe612 ("clk: add support for setting clk rate from cmdline") Signed-off-by: Patrick Delaunay --- cmd/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/clk.c b/cmd/clk.c index 73

[PATCH 3/4] cmd: clk: update result of do_clk_setfreq

2022-01-31 Thread Patrick Delaunay
Update the result of do_clk_setfreq and always returns a CMD_RET_ value (-EINVAL was a possible result). This patch avoid the CLI output "exit not allowed from main input shell." Fixes: 7ab418fbe612 ("clk: add support for setting clk rate from cmdline") Signed-off-by: Patrick

[PATCH 2/4] cmd: clk: replace clk_lookup by uclass_get_device_by_name

2022-01-31 Thread Patrick Delaunay
nvalid, the next function call strcmp(name, dev->name) causes a crash. Signed-off-by: Patrick Delaunay --- cmd/clk.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/cmd/clk.c b/cmd/clk.c index 52237791cf..d615f14a84 100644 --- a/cmd/clk.c +++ b/cmd/c

[PATCH 1/4] cmd: clk: test the number of argument in setfreq command

2022-01-31 Thread Patrick Delaunay
ting clk rate from cmdline") Signed-off-by: Patrick Delaunay --- cmd/clk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/clk.c b/cmd/clk.c index dbbdc31b35..52237791cf 100644 --- a/cmd/clk.c +++ b/cmd/clk.c @@ -120,6 +120,9 @@ static int do_clk_setfreq(struct cmd_tbl *cmdtp, i

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

2022-01-31 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 --- drivers/clk/clk-uclass.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --g

[PATCH] arm: dts: stm32mp15: alignment with v5.17

2022-01-31 Thread Patrick Delaunay
stm32mp157c-ev1 - ARM: dts: stm32: fix stusb1600 pinctrl used on stm32mp157c-dk Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp15-pinctrl.dtsi | 32 ++--- arch/arm/dts/stm32mp157c-ev1.dts| 22 arch/arm/dts/stm32mp15xx-dkx.dtsi | 16

[PATCH] clk: ccf: correct the test on the parent uclass in clk_enable/clk_disable

2022-01-24 Thread Patrick Delaunay
s a clock device before to call the clock API, clk_enable or clk_disable, on this device. Fixes: 0520be0f67e3 ("clk: prograte clk enable/disable to parent") Signed-off-by: Patrick Delaunay --- drivers/clk/clk-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --gi

Re: [PATCH 1/1] stm32mp: fix board_get_alt_info_mmc()

2022-01-21 Thread Patrick DELAUNAY
= false; } - for (p = 1; p < MAX_SEARCH_PARTITIONS; p++) { + for (p = 1; p <= MAX_SEARCH_PARTITIONS; p++) { if (part_get_info(desc, p, &info)) continue; if (!first) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] configs: stm32mp15: Enable OF_BOARD flag

2022-01-21 Thread Patrick DELAUNAY
stm32mp/Kconfig @@ -40,6 +40,7 @@ config STM32MP15x select CPU_V7A select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT + select OF_BOARD if TFABOOT select OF_BOARD_SETUP select PINCTRL_STM32 select STM32_RCC Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH] stm32prog: add partition name in treat_partition_list error messages

2022-01-18 Thread Patrick Delaunay
ber in the parsed Layout file, because the empty lines and the lines beginning by '#' are skipped during the first parsing in parse_flash_layout(). Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 12 ++-- 1 file changed, 6 insertions(+),

[PATCH] dfu: mtd: skip empty pages when writing page for UBI partition

2022-01-18 Thread Patrick Delaunay
supported by the command nand by CONFIG_CMD_NAND_TRIMFFS and by commit c9494866df83 ("cmd_nand: add nand write.trimffs command"). [1] http://www.linux-mtd.infradead.org/doc/ubi.html#L_flasher_algo [2] http://www.linux-mtd.infradead.org/faq/ubifs.html#L_free_space_fixup Signed-off-by:

Re: [PATCH 1/2] lmb: Fix lmb property's defination under struct lmb

2022-01-17 Thread Patrick DELAUNAY
Hi, On 1/14/22 1:14 PM, Michal Simek wrote: From: Ashok Reddy Soma Under struct lmb {} the lmb property's should be defined only if CONFIG_LMB_MEMORY_REGIONS is defined. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- include/lmb.h | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH 1/9] doc: add include/dm/uclass.h to the HTML documentation

2022-01-17 Thread Patrick DELAUNAY
Hi Heinrich, On 1/15/22 9:24 AM, Heinrich Schuchardt wrote: On 1/12/22 10:53, Patrick Delaunay wrote: Correct Sphinx style comments in include/dm/uclass.h and add the driver model UCLASS API to the HTML documentation. Signed-off-by: Patrick Delaunay ---   doc/api/dm.rst  |  9

[PATCH v2 3/3] sandbox: test: activate tests for the command LOG

2022-01-17 Thread Patrick Delaunay
Activate the CONFIG_CMD_LOG in sandbox to execute the LOG tests by default and correct the test log format after 72fa1ad8d9 ("log: Allow padding of the function name"). Signed-off-by: Patrick Delaunay --- Changes in v2: - update commit message "sandox" => "sandbox&

[PATCH v2 2/3] dm: compare full name in uclass_get_by_name

2022-01-17 Thread Patrick Delaunay
ial name uclass_get_by_name_len("spi", 3). Signed-off-by: Patrick Delaunay --- (no changes since v1) drivers/core/uclass.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index 336ea8d243..32b6cef167 10

[PATCH v2 1/3] dm: fix up documentation for uclass_get_by_name_len

2022-01-17 Thread Patrick Delaunay
Fix up the comment for uclass_get_by_name_len() to avoid confusion. Fixes: 4b030177b660 ("dm: core: Allow finding children / uclasses by partial name") Signed-off-by: Patrick Delaunay --- (no changes since v1) include/dm/uclass.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v2 0/3] sandbox: test: activate tests for the command LOG

2022-01-17 Thread Patrick Delaunay
This patches activate the command LOG and the associated tests in sandbox with CONFIG_CMD_LOG=y and solve the associated issues when these tests are executed. Patrick Changes in v2: - update commit message "sandox" => "sandbox" Patrick Delaunay (3): dm: f

Re: [PATCH 0/3] sandox: test: activate tests for the command LOG

2022-01-17 Thread Patrick DELAUNAY
On 1/12/22 10:29 AM, Marcel Ziswiler wrote: On Tue, 2022-01-11 at 17:27 +0100, Patrick Delaunay wrote: This patches activate the command LOG and the associated tests in sandbox with CONFIG_CMD_LOG=y and solve the associated issues when these tests are executed. Patrick Patrick Delaunay (3

[PATCH 8/9] doc: add include/dm/of*.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/ofnode.h and add the device tree node API to the HTML documentation; the ofnode functions are compatible with Live tree or with flat device tree. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 9 ++ include/dm/of.h| 13

[PATCH 9/9] doc: add include/dm/fdtaddr.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/fdtaddr.h and add the devfdt API to the HTML documentation; these functions are NOT compatible with live tree. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 1 + include/dm/fdtaddr.h | 25 - 2 files changed, 13

[PATCH 8/9] doc: add include/dm/of*.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/ofnode.h and add the device tree node API to the HTML documentation; the ofnode functions are compatible with Live tree or with flat device tree. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 9 ++ include/dm/of.h| 13

[PATCH 7/9] doc: add include/dm/read.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/read.h and add the device read from device tree API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst| 1 + include/dm/read.h | 163 +++--- 2 files changed, 82 insertions

[PATCH 5/9] doc: add include/dm/device.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/device.h and add the driver model device API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 5 ++ include/dm/device.h | 209 2 files changed, 121 insertions(+), 93

[PATCH 1/9] doc: add include/dm/uclass.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/uclass.h and add the driver model UCLASS API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 9 ++ doc/api/index.rst | 1 + include/dm/uclass.h | 75 ++--- 3 files

[PATCH 4/9] doc: add include/dm/platdata.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/platdata.h and add the associated API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst| 1 + include/dm/platdata.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api/dm.rst b/doc/api

[PATCH 6/9] doc: add include/dm/devres.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/devres.h and add the driver model device resource API, devres_*(), to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 1 + include/dm/devres.h | 14 +++--- 2 files changed, 8 insertions(+), 7 deletions

[PATCH 3/9] doc: add include/dm/lists.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/lists.h and add the list API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 1 + include/dm/lists.h | 8 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/api/dm.rst b/doc/api/dm.rst

[PATCH 2/9] doc: add include/dm/root.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/devres.h and add the associated driver model API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst| 1 + include/dm/root.h | 20 +++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/doc

[PATCH 3/3] sandox: test: activate tests for the command LOG

2022-01-11 Thread Patrick Delaunay
Activate the CONFIG_CMD_LOG in sandbox to execute the LOG tests by default and correct the test log format after 72fa1ad8d9 ("log: Allow padding of the function name"). Signed-off-by: Patrick Delaunay --- configs/sandbox_defconfig | 2 +- test/py/tests/test_log.py | 8 2 fil

[PATCH 2/3] dm: compare full name in uclass_get_by_name

2022-01-11 Thread Patrick Delaunay
ial name uclass_get_by_name_len("spi", 3). Signed-off-by: Patrick Delaunay --- drivers/core/uclass.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index 336ea8d243..32b6cef167 100644 --- a/drivers/core/uc

[PATCH 1/3] dm: fix up documentation for uclass_get_by_name_len

2022-01-11 Thread Patrick Delaunay
Fix up the comment for uclass_get_by_name_len() to avoid confusion. Fixes: 4b030177b660 ("dm: core: Allow finding children / uclasses by partial name") Signed-off-by: Patrick Delaunay --- include/dm/uclass.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

[PATCH 0/3] sandox: test: activate tests for the command LOG

2022-01-11 Thread Patrick Delaunay
This patches activate the command LOG and the associated tests in sandbox with CONFIG_CMD_LOG=y and solve the associated issues when these tests are executed. Patrick Patrick Delaunay (3): dm: fix up documentation for uclass_get_by_name_len dm: compare full name in uclass_get_by_name

[PATCH] board: stm32mp1: solve compilation issue when ENV_IS_IN_MMC is deactivated

2022-01-11 Thread Patrick Delaunay
Solve compilation issue on undefined CONFIG_SYS_MMC_ENV_DEV when CONFIG_ENV_IS_IN_MMC is deactivated on STMicroelectronics boards defconfig Fixes: 9f97193616f1 ("board: stm32mp1: use CONFIG_SYS_MMC_ENV_DEV when available") Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm3

Re: [PATCH 2/2] ARM: dts: stm32: Synchronize DHCOM DTs with Linux 5.15.12

2022-01-11 Thread Patrick DELAUNAY
c: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/dts/stm32mp15xx-dhcom-drc02.dts | 162 +--- arch/arm/dts/stm32mp15xx-dhcom-drc02.dtsi | 165 .../dts/stm32mp15xx-dhcom-pdk2-u-boot.dtsi| 4 + arch/arm/dts/stm32mp15xx-dhcom-pdk2.dts | 14 +- arch/arm/dts/s

Re: [PATCH 1/2] ARM: dts: stm32: Synchronize DHCOR DTs with Linux 5.15.12

2022-01-11 Thread Patrick DELAUNAY
i. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/dts/Makefile | 1 - arch/arm/dts/stm32mp157a-avenger96.dts| 8 - arch/arm/dts/stm32mp157a-dhcor-avenger96.dts | 38 ++ .../stm32mp15xx-dhcor-avenger96-u-boot.dtsi |

[PATCH v1 4/5] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig

2022-01-04 Thread Patrick Delaunay
Use moveconfig.py script to convert define CONFIG_SYS_MAX_FLASH_BANKS and CONFIG_SYS_MAX_FLASH_BANKS_DETECT to Kconfig and move these entries to defconfigs. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- README | 3 --- configs

[PATCH v1 0/5] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig

2022-01-04 Thread Patrick Delaunay
ore.c for cfi_mtd_nb needed after RFC rebase - solve issue in cfi_flash.h, with CFI_FLASH_BANKS=CONFIG_SYS_MAX_FLASH_BANKS_DETECT Patrick Delaunay (5): cmd: Fix up warnings in flash.c mtd: cfi: introduce CFI_FLASH_BANKS mtd: cfi: change CONFIG_SYS_MAX_FLASH_BANKS_DETECT as boolean configs

[PATCH v1 3/5] mtd: cfi: change CONFIG_SYS_MAX_FLASH_BANKS_DETECT as boolean

2022-01-04 Thread Patrick Delaunay
when CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated. Signed-off-by: Patrick Delaunay --- Changes in v1: - solve issue in cfi_flash.h, with CFI_FLASH_BANKS=CONFIG_SYS_MAX_FLASH_BANKS_DETECT drivers/mtd/cfi_flash.c | 2 +- include/configs/3c120_devboard.h | 3 ++- include/configs/adp

[PATCH v1 2/5] mtd: cfi: introduce CFI_FLASH_BANKS

2022-01-04 Thread Patrick Delaunay
number of CFI banks which can be dynamic. This patch modify all the files which include mtd/cfi_flash.h. Signed-off-by: Patrick Delaunay --- Changes in v1: - update drivers/mtd/spi/spi-nor-core.c for cfi_mtd_nb needed after RFC rebase cmd/bootm.c| 2 +- cmd/flash.c

[PATCH v1 5/5] Convert CONFIG_AT91_EFLASH to Kconfig

2022-01-04 Thread Patrick Delaunay
This converts the following to Kconfig: CONFIG_AT91_EFLASH Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- arch/arm/mach-at91/Kconfig | 8 configs/ethernut5_defconfig | 2 +- include/configs/ethernut5.h | 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 9

[PATCH v1 1/5] cmd: Fix up warnings in flash.c

2022-01-04 Thread Patrick Delaunay
Tidy up the warnings reported by checkpatch.pl to prepare next patches Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- cmd/flash.c | 239 +--- 1 file changed, 117 insertions(+), 122 deletions(-) diff --git a/cmd/flash.c b/cmd

Re: [RFC PATCH 5/5] Convert CONFIG_AT91_EFLASH to Kconfig

2022-01-03 Thread Patrick DELAUNAY
Hi Simon, On 12/28/21 9:32 AM, Simon Glass wrote: On Tue, 14 Dec 2021 at 09:57, Patrick Delaunay wrote: This converts the following to Kconfig: CONFIG_AT91_EFLASH Signed-off-by: Patrick Delaunay --- arch/arm/mach-at91/Kconfig | 8 configs/ethernut5_defconfig | 2

[PATCH] arm: dts: stm32mp15: alignment with v5.16

2021-12-17 Thread Patrick Delaunay
: stm32: fix STUSB1600 Type-C irq level on stm32mp15xx-dkx Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp15-pinctrl.dtsi | 8 arch/arm/dts/stm32mp151.dtsi| 19 ++- arch/arm/dts/stm32mp15xx-dkx.dtsi | 2 +- 3 files changed, 15 insertions(+), 14

[RFC PATCH 4/5] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig

2021-12-14 Thread Patrick Delaunay
Use moveconfig.py script to convert define CONFIG_SYS_MAX_FLASH_BANKS and CONFIG_SYS_MAX_FLASH_BANKS_DETECT to Kconfig and move these entries to defconfigs. Signed-off-by: Patrick Delaunay --- README | 3 --- configs/3c120_defconfig

[RFC PATCH 0/5] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig

2021-12-14 Thread Patrick Delaunay
.I81b4f1edfe925b001299e3b7ba0cf602d9268d59@changeid/#2754501 Patrick Delaunay (5): cmd: Fix up warnings in flash.c mtd: cfi: introduce CFI_FLASH_BANKS mtd: cfi: change CONFIG_SYS_MAX_FLASH_BANKS_DETECT as boolean configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig Convert CONFIG_AT91_EFLASH to Kconfig README

[RFC PATCH 3/5] mtd: cfi: change CONFIG_SYS_MAX_FLASH_BANKS_DETECT as boolean

2021-12-14 Thread Patrick Delaunay
when CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated. Signed-off-by: Patrick Delaunay --- drivers/mtd/cfi_flash.c | 2 +- include/configs/3c120_devboard.h | 3 ++- include/configs/adp-ae3xx.h | 4 +--- include/configs/adp-ag101p.h | 2 -- include/configs/ax25-ae350.h | 4

[RFC PATCH 5/5] Convert CONFIG_AT91_EFLASH to Kconfig

2021-12-14 Thread Patrick Delaunay
This converts the following to Kconfig: CONFIG_AT91_EFLASH Signed-off-by: Patrick Delaunay --- arch/arm/mach-at91/Kconfig | 8 configs/ethernut5_defconfig | 2 +- include/configs/ethernut5.h | 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 9 insertions(+), 3

[RFC PATCH 1/5] cmd: Fix up warnings in flash.c

2021-12-14 Thread Patrick Delaunay
Tidy up the warnings reported by checkpatch.pl to prepare next patches Signed-off-by: Patrick Delaunay --- cmd/flash.c | 239 +--- 1 file changed, 117 insertions(+), 122 deletions(-) diff --git a/cmd/flash.c b/cmd/flash.c index 819febc10e

[RFC PATCH 2/5] mtd: cfi: introduce CFI_FLASH_BANKS

2021-12-14 Thread Patrick Delaunay
number of CFI banks which can be dynamic. This patch modify all the files which include mtd/cfi_flash.h. Signed-off-by: Patrick Delaunay --- cmd/bootm.c | 2 +- cmd/flash.c | 34 +- common/flash.c | 2 +- common/update.c

Re: [RFC PATCH 01/10] GPT: Add function to get gpt header and partition entries

2021-12-07 Thread Patrick DELAUNAY
Hi Sugosh On 11/25/21 8:01 AM, Sughosh Ganu wrote: Add function to get the gpt header and partition entries filled. These would be used subsequently for multi bank firmware update support on devices where the images reside on GPT partitions. Signed-off-by: Sughosh Ganu

Re: [RFC PATCH 05/10] FWU: stm32mp1: Add helper functions for accessing metadata

2021-12-07 Thread Patrick DELAUNAY
Hi Sanghosh On 11/25/21 8:01 AM, Sughosh Ganu wrote: Add helper functions needed for accessing the metadata which contains information on the updatable images. These functions have been added for the STM32MP157C-DK2 board which has the updatable images on the uSD card, formatted as GPT partition

Re: [RFC PATCH 06/10] FWU: STM32MP1: Add support to read boot index from backup register

2021-12-07 Thread Patrick DELAUNAY
Hi Sughosh, On 11/25/21 8:01 AM, Sughosh Ganu wrote: The FWU Multi Bank Update feature allows the platform to boot the firmware images from one of the partitions(banks). The first stage bootloader(fsbl) passes the value of the boot index, i.e. the bank from which the firmware images were booted

Re: [RFC PATCH 04/10] FWU: Add metadata access functions for GPT partitioned block devices

2021-12-07 Thread Patrick DELAUNAY
Hi Sughsoh, On 11/25/21 8:01 AM, Sughosh Ganu wrote: In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate partition. Add functions for reading from and writing to the metadata when the updatable images and the metadata

[PATCH 1/2] stm32mp: remove the bootcount activation

2021-12-07 Thread Patrick Delaunay
: Marek Vasut Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 8 include/configs/stm32mp15_common.h | 1 - 2 files changed, 9 deletions(-) diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig index a6c7fc5bfd..2fa4ea4d5c 100644 --- a/arch

[PATCH 2/2] stm32mp: correct the dependency for bootcount configs

2021-12-07 Thread Patrick Delaunay
Default value for CONFIG_SYS_BOOTCOUNT_SINGLEWORD and CONFIG_SYS_BOOTCOUNT_ADDR are only needed when CONFIG_BOOTCOUNT_GENERIC is used. This patch avoids to define these configs when an other bootcount backend is activated, for example for CONFIG_BOOTCOUNT_ENV. Signed-off-by: Patrick Delaunay

[PATCH] test: test_lsblk: Mark as sandbox specific

2021-11-30 Thread Patrick Delaunay
This test checks for output specific to the sandbox blk device "sandbox_host_blk", mark it as sandbox specific. Signed-off-by: Patrick Delaunay --- test/py/tests/test_lsblk.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/py/tests/test_lsblk.py b/test/py/tests/test_lsbl

[PATCH] board: stm32mp1: add support of nor1 device in dfu command

2021-11-25 Thread Patrick Delaunay
Add support of mtd backend for nor1 when this device is present on the board, on STM32MP157C-EV1 for example, as the support of several MTD spi-nor instance are now supported with commit b7f060565e31 ("mtd: spi-nor: allow registering multiple MTDs when DM is enabled"). Signed-off-b

[PATCH 2/2] ram: stm32mp1: remove __maybe_unused on stm32mp1_ddr_setup

2021-11-24 Thread Patrick Delaunay
Since the commit f42045b2e750 ("stm32mp15: replace CONFIG_TFABOOT when it is possible") the function stm32mp1_ddr_setup is always called so the __maybe_unused can be removed. Signed-off-by: Patrick Delaunay --- drivers/ram/stm32mp1/stm32mp1_ram.c | 2 +- 1 file changed, 1 inser

[PATCH 1/2] ram: stm32mp1: compute DDR size from DDRCTL registers

2021-11-24 Thread Patrick Delaunay
. Signed-off-by: Patrick Delaunay Signed-off-by: Patrick Delaunay --- drivers/ram/stm32mp1/stm32mp1_ddr_regs.h | 1 + drivers/ram/stm32mp1/stm32mp1_ram.c | 192 ++- 2 files changed, 190 insertions(+), 3 deletions(-) diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr_regs.h

[PATCH 2/2] clk: define LOG_CATEGORY for generic and ccf clocks

2021-11-19 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command for generic clock and CCF clocks. This patch also change existing printf, debug and pr_ macro to log_ or dev_ macro. Signed-off-by: Patrick Delaunay --- drivers/clk/clk-composite.c| 3 +++ drivers/clk/clk-divider.c | 6

[PATCH 1/2] clk: cosmetic: reorder include files

2021-11-19 Thread Patrick Delaunay
Reorder include files in the U-Boot expected order: the common.h header should always be first, followed by other headers in order, then headers with directories, then local files. It is a preliminary step for next patch. Signed-off-by: Patrick Delaunay --- drivers/clk/clk-composite.c| 6

[PATCH] configs: stm32mp15: deactivate the CONFIG_STM32_IPCC

2021-11-19 Thread Patrick Delaunay
size; the CONFIG_DM_MAILBOX can be also deactivated as the mailbox UCLASS is no more used. Signed-off-by: Patrick Delaunay --- configs/stm32mp15-icore-stm32mp1-ctouch2_defconfig | 2 -- configs/stm32mp15-icore-stm32mp1-edimm2.2_defconfig | 2 -- configs/stm32mp15-microgea

[RESEND PATCH 2/2] dm: add debug message when failed to select the default pinctrl

2021-11-19 Thread Patrick Delaunay
Add a message on probe in driver model core when the default pinctrl selection failed. This message is displayed only when the pinctrl API is implemented, i.e. when result is not ENOSYS. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- drivers/core/device.c | 16

[RESEND PATCH 1/2] pinctrl: change result for unsupported API

2021-11-19 Thread Patrick Delaunay
Use the return value ENOSYS for unsupported API - pinctrl_generic_set_state - pinctrl_select_state Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- include/dm/pinctrl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dm/pinctrl.h b/include/dm

[PATCH 0/7] stm32mp1: enable simple framebuffer node for splashscreen

2021-11-15 Thread Patrick Delaunay
present in Linux device tree Patrick Delaunay (7): Convert CONFIG_LCD_DT_SIMPLEFB to Kconfig common: rename lcd_simplefb.c file to fdt_simplefb.c common: rename functions lcd_dt_simplefb to fdt_simplefb video: Add video_is_active function common: add fdt_simplefb_enable_and_mem_rsv function

[PATCH 1/7] Convert CONFIG_LCD_DT_SIMPLEFB to Kconfig

2021-11-15 Thread Patrick Delaunay
This converts the following to Kconfig: CONFIG_LCD_DT_SIMPLEFB This patch also renames this config to CONFIG_FDT_SIMPLEFB as the code in common/lcd_simplefb.c support CONFIG_LCD and CONFIG_VIDEO. Signed-off-by: Patrick Delaunay --- common/Kconfig | 9 + common

[PATCH 2/7] common: rename lcd_simplefb.c file to fdt_simplefb.c

2021-11-15 Thread Patrick Delaunay
Rename the file lcd_simplefb.c to fdt_simplefb.c to be aligned with the configuration name and with the associated include file ./include/fdt_simplefb.h Signed-off-by: Patrick Delaunay --- common/Makefile | 2 +- common/{lcd_simplefb.c => fdt_simplefb.c} | 0 2 fi

[PATCH 7/7] board: stm32mp1: enable simple framebuffer node for splashscreen

2021-11-15 Thread Patrick Delaunay
: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c| 4 configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 4 files changed, 7 insertions(+) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c

[PATCH 6/7] video: stm32: stm32_ltdc: align framebuffer on 2MB

2021-11-15 Thread Patrick Delaunay
details: Documentation/devicetree/bindings/display/simple-framebuffer.yaml Signed-off-by: Patrick Delaunay --- drivers/video/stm32/stm32_ltdc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index

[PATCH 5/7] common: add fdt_simplefb_enable_and_mem_rsv function

2021-11-15 Thread Patrick Delaunay
because gd->video_bottom and gd->video_top are only defined when CONFIG_DM_VIDEO is activated. Signed-off-by: Patrick Delaunay --- common/fdt_simplefb.c | 27 +++ include/fdt_simplefb.h | 1 + 2 files changed, 28 insertions(+) diff --git a/common/fdt_sim

[PATCH 4/7] video: Add video_is_active function

2021-11-15 Thread Patrick Delaunay
Add the helper function video_is_active() to test if one video device is active. This function can be used in board code to execute operation only when the display is probed / really used. Signed-off-by: Patrick Delaunay --- drivers/video/video-uclass.c | 14 ++ include/video.h

[PATCH 3/7] common: rename functions lcd_dt_simplefb to fdt_simplefb

2021-11-15 Thread Patrick Delaunay
Rename the function named lcd_dt_simplefb* to fdt_simplefb* to be aligned with the associated file name fdt_simplefb.h/fdt_simplefb.c Signed-off-by: Patrick Delaunay --- board/raspberrypi/rpi/rpi.c | 2 +- common/fdt_simplefb.c | 10 +- include/fdt_simplefb.h | 4 ++-- 3

[PATCH 3/3] stm32mp1: ram: remove tuning support

2021-11-15 Thread Patrick Delaunay
convergence); it will be no more supported in the next delivery of the DDR utilities included in the CubeMX tool of STMicroelectronics. Signed-off-by: Patrick Delaunay --- drivers/ram/stm32mp1/Makefile |1 - drivers/ram/stm32mp1/stm32mp1_ddr.c |8 +- drivers/ram

[PATCH 2/3] stm32mp1: ram: remove the support of calibration result

2021-11-15 Thread Patrick Delaunay
emove the support of the optional parameter "st,phy-cal" After this patch, the built-in calibration is always executed and the calibration registers are moved in the phy dynamic part; that allows manual tests. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp15-ddr.dtsi

[PATCH 1/3] stm32mp1: ram: add read valid training support

2021-11-15 Thread Patrick Delaunay
Add the read data eye training = training for optimal read valid placement (RVTRN) when the built-in calibration is executed for LPDDR2 and LPDDR3. This training is supported on the PUBL integrated in the STM32MP15x DDR subsystem and it is not required for DDR3. Signed-off-by: Patrick Delaunay

Re: [PATCH 8/8] ARM: dts: stm32: Use lower-case hex for address for stm32429i-eval-u-boot.dtsi

2021-11-15 Thread Patrick DELAUNAY
Hi, On 11/15/21 11:39 AM, Patrice Chotard wrote: Replace upper-case hex with lower-case hex for address. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32429i-eval-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 7/8] ARM: dts: stm32: Use lower-case hex for address for stm32f746g-eval-u-boot.dtsi

2021-11-15 Thread Patrick DELAUNAY
Hi, On 11/15/21 11:39 AM, Patrice Chotard wrote: Replace upper-case hex with lower-case hex for address. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32746g-eval-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 6/8] ARM: dts: stm32: Use lower-case hex for address for stm32f429-disco-u-boot.dtsi

2021-11-15 Thread Patrick DELAUNAY
Hi, On 11/15/21 11:39 AM, Patrice Chotard wrote: Replace upper-case hex with lower-case hex for address. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f429-disco-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 5/8] ARM: dts: stm32: Use lower-case hex for address for stm32f469-disco-u-boot.dtsi

2021-11-15 Thread Patrick DELAUNAY
Hi, On 11/15/21 11:39 AM, Patrice Chotard wrote: Replace upper-case hex with lower-case hex for address. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f469-disco-u-boot.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Patrick Delaunay Thanks

Re: [PATCH 4/8] ARM: dts: stm32: Use lower-case hex for address for stm32f7-u-boot.dtsi

2021-11-15 Thread Patrick DELAUNAY
Hi, On 11/15/21 11:39 AM, Patrice Chotard wrote: Replace upper-case hex with lower-case hex for address. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f7-u-boot.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 3/8] ARM: dts: stm32: Use lower-case hex for address for stm32746-disco-u-boot.dtsi

2021-11-15 Thread Patrick DELAUNAY
Hi, On 11/15/21 11:39 AM, Patrice Chotard wrote: Replace upper-case hex with lower-case hex for address. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f746-disco-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 2/8] ARM: dts: stm32: Use lower-case hex for address for stm32f769-disco-u-boot.dtsi

2021-11-15 Thread Patrick DELAUNAY
Hi, On 11/15/21 11:39 AM, Patrice Chotard wrote: Replace upper-case hex with lower-case hex for address. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f769-disco-u-boot.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Patrick Delaunay Thanks

Re: [PATCH 1/8] ARM: dts: stm32: Use lower-case hex for address for stm32mp15-u-boot.dtsi

2021-11-15 Thread Patrick DELAUNAY
Hi, On 11/15/21 11:39 AM, Patrice Chotard wrote: Replace upper-case hex with lower-case hex for address. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp15-u-boot.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] ARM: stm32: Enable KSZ90x1 PHY driver on DHCOR

2021-11-15 Thread Patrick DELAUNAY
Hi Marek, On 11/13/21 3:28 AM, Marek Vasut wrote: Enable KSZ9x01 PHY driver in DHCOR common configuration, since the AV96 board has this PHY populated on the PCB. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- configs/stm32mp15_dhcor_basic_defconfig | 2 ++ 1

Re: [PATCH] ARM: dts: stm32: Add custom PHY reset bindings on AV96

2021-11-15 Thread Patrick DELAUNAY
and fix sporadic ethernet malfunctions, until the next DT sync. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/dts/stm32mp15xx-dhcor

Re: [PATCH] ARM: stm32: Fix SoM and board coding strap GPIO handling on DHSOM

2021-11-15 Thread Patrick DELAUNAY
Hi Marek, On 11/13/21 3:26 AM, Marek Vasut wrote: The variables retaining the strap values have to be initialized, always, make it so. Moreover, free the requested GPIO list at the end to avoid wasting memory. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- board

Re: [PATCH] ARM: stm32: Add update_sf script to install U-Boot into SF on DHSOM

2021-11-15 Thread Patrick DELAUNAY
environment from current running U-Boot, run 'saveenv' after running the 'update_sf' script. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- include/configs/stm32mp15_dh_dhsom.h | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-)

Re: [PATCH] ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM

2021-11-15 Thread Patrick DELAUNAY
Chotard Cc: Patrick Delaunay --- include/configs/stm32mp15_dh_dhsom.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/stm32mp15_dh_dhsom.h b/include/configs/stm32mp15_dh_dhsom.h index b68e153f10b..d2fe923a33b 100644 --- a/include/configs/stm32mp15_dh_dhsom.h +++ b/include

Re: [PATCH] ARM: stm32: Increase USB power-good delay on DHSOM

2021-11-15 Thread Patrick DELAUNAY
in board-specific config files adding custom environment. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- include/configs/stm32mp15_common.h | 3 ++- include/configs/stm32mp15_dh_dhsom.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include

Re: [PATCH] net: eqos: connect and config PHY from probe stage instead of starting EQOS

2021-11-15 Thread Patrick DELAUNAY
Hi, On 11/10/21 6:42 AM, Joakim Zhang wrote: For EQOS ethernet, it will do phy_connect() and phy_config() when start the ethernet (eqos_srart()), users need wait seconds for PHY auto negotiation s/eqos_srart()/eqos_start()/ to complete when do tftp boot. phy_config() -> bo

Re: [PATCH v2 5/5] firmware: scmi: Add OP-TEE transport

2021-11-15 Thread Patrick DELAUNAY
likely allocate/register them back when probed after relocation. The integration of the driver using dedicated config switch CONFIG_SCMI_AGENT_OPTEE is designed on the model posted to the U-Boot ML by Patrick Delaunay [1]. Link: [1] https://lore.kernel.org/all/20211028191222.v3.4

[PATCH] pinctrl: stmfx: define LOG_CATEGORY

2021-11-10 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay --- drivers/pinctrl/pinctrl-stmfx.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c index fe7a59d431..509e2a80e9 100644 --- a

Re: [PATCH 5/5] firmware: scmi: Add OP-TEE transport

2021-11-09 Thread Patrick DELAUNAY
e are released for example before relocation as the driver will likely allocate/register them back when probed after relocation. The integration of the driver using dedicated config switch CONFIG_SCMI_AGENT_OPTEE is designed on the model posted to the U-Boot ML by Patrick Delaunay [1]. Link: [1]

Re: [PATCH 5/5] firmware: scmi: smccc transport: simplify probe sequence

2021-11-08 Thread Patrick DELAUNAY
Hi, On 11/8/21 8:56 AM, Etienne Carriere wrote: Minor simplification in scmi_smccc_probe() exit sequence. Cc: Simon Glass Cc: Patrice Chotard Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- Changes since v1: - No change. Patch re-send. --- drivers/firmware/scmi/smccc_agent.c

Re: [PATCH 4/5] firmware: scmi: smccc transport: use plat data, not priv data

2021-11-08 Thread Patrick DELAUNAY
Glass Cc: Patrice Chotard Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- Changes since v1: - No change. Patch re-send. --- drivers/firmware/scmi/smccc_agent.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH 3/5] firmware: scmi: mailbox transport: use plat data, not priv data

2021-11-08 Thread Patrick DELAUNAY
Glass Cc: Patrice Chotard Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- Changes since v1: - No change. Patch re-send. --- drivers/firmware/scmi/mailbox_agent.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

<    3   4   5   6   7   8   9   10   11   12   >