All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 00/12] stm32: add new board support, defconfig and documentation
@ 2022-04-13 15:04 Patrice Chotard
  2022-04-13 15:04 ` [PATCH v1 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries Patrice Chotard
                   ` (11 more replies)
  0 siblings, 12 replies; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot
  Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Dillon Min,
	Kamil Lulko, Simon Glass, Vikas Manocha

Add new stm32746g-eval board support
Add defconfig for SPL and none SPL mode for STM32F7 boards.
Add documentation on how to build and flash STM32 MCUs.

Patrice Chotard (12):
  configs: stm32f746-disco: Concatenate spl and u-boot binaries
  configs: stm32f746-disco: Rename stm32f746-disco_defconfig to
    stm32f746-disco_spl_defconfig
  configs: stm32f746-disco: Add stm32f746-disco_defconfig
  configs: stm32f769-disco: Rename stm32f769-disco_defconfig to
    stm32f769-disco_spl_defconfig
  configs: stm32f769-disco: Add stm32f769-disco_defconfig
  configs: stm32f769-disco: Migrate SPL flags to defconfig
  configs: stm32f746-disco: Migrate SPL flags to defconfig
  board: stm32f746-disco: Fix dram_init() in none SPL config
  configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile
  configs: stm32746g-eval: Add stm32746g-eval_defconfig
  configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig
  doc: Add documentation for STM32 MCUs

 arch/arm/mach-stm32/Kconfig                |  20 ---
 board/st/stm32f429-discovery/MAINTAINERS   |   1 +
 board/st/stm32f429-evaluation/MAINTAINERS  |   1 +
 board/st/stm32f469-discovery/MAINTAINERS   |   1 +
 board/st/stm32f746-disco/MAINTAINERS       |   5 +
 board/st/stm32f746-disco/stm32f746-disco.c |   2 +-
 board/st/stm32h743-disco/MAINTAINERS       |   1 +
 board/st/stm32h743-eval/MAINTAINERS        |   1 +
 board/st/stm32h750-art-pi/MAINTAINERS      |   1 +
 configs/stm32746g-eval_defconfig           |  64 +++++++
 configs/stm32746g-eval_spl_defconfig       |  86 ++++++++++
 configs/stm32f746-disco_defconfig          |   7 +-
 configs/stm32f746-disco_spl_defconfig      |  86 ++++++++++
 configs/stm32f769-disco_defconfig          |   7 +-
 configs/stm32f769-disco_spl_defconfig      |  87 ++++++++++
 doc/board/st/index.rst                     |   1 +
 doc/board/st/stm32_MCU.rst                 | 186 +++++++++++++++++++++
 include/configs/stm32f746-disco.h          |   3 +-
 18 files changed, 526 insertions(+), 34 deletions(-)
 create mode 100644 configs/stm32746g-eval_defconfig
 create mode 100644 configs/stm32746g-eval_spl_defconfig
 create mode 100644 configs/stm32f746-disco_spl_defconfig
 create mode 100644 configs/stm32f769-disco_spl_defconfig
 create mode 100644 doc/board/st/stm32_MCU.rst

-- 
2.17.1


^ permalink raw reply	[flat|nested] 26+ messages in thread

* [PATCH v1 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
@ 2022-04-13 15:04 ` Patrice Chotard
  2022-04-26 11:29   ` Patrick DELAUNAY
  2022-04-13 15:04 ` [PATCH v1 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig Patrice Chotard
                   ` (10 subsequent siblings)
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha

This allows to concatenate spl and u-boot binaries together.
Previously, both binaries has to be flashed separately at the correct
offset (spl at offset 0 and u-boot at offset 0x8000).
With this patch, only one binary is generated (u-boot-with-spl.bin)
and has to be copied in flash at offset 0 using openocd for example
or simply copied in exported mass storage.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 configs/stm32f746-disco_defconfig | 1 +
 include/configs/stm32f746-disco.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_defconfig
index ee7e3293ad..aabffac75f 100644
--- a/configs/stm32f746-disco_defconfig
+++ b/configs/stm32f746-disco_defconfig
@@ -9,6 +9,7 @@ CONFIG_DEFAULT_DEVICE_TREE="stm32f746-disco"
 CONFIG_SPL_TEXT_BASE=0x8000000
 CONFIG_STM32F7=y
 CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_LOAD_ADDR=0x8008000
 CONFIG_BOOTDELAY=3
diff --git a/include/configs/stm32f746-disco.h b/include/configs/stm32f746-disco.h
index 8ad4bb99c8..b93acdcc1f 100644
--- a/include/configs/stm32f746-disco.h
+++ b/include/configs/stm32f746-disco.h
@@ -49,6 +49,7 @@
 #define CONFIG_SYS_UBOOT_START		0x080083FD
 #define CONFIG_SYS_UBOOT_BASE		(CONFIG_SYS_FLASH_BASE + \
 					 CONFIG_SYS_SPL_LEN)
+#define CONFIG_SPL_PAD_TO		0x8000
 
 /* DT blob (fdt) address */
 #define CONFIG_SYS_FDT_BASE		(CONFIG_SYS_FLASH_BASE + \
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v1 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
  2022-04-13 15:04 ` [PATCH v1 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries Patrice Chotard
@ 2022-04-13 15:04 ` Patrice Chotard
  2022-04-26 11:29   ` Patrick DELAUNAY
  2022-04-13 15:04 ` [PATCH v1 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig Patrice Chotard
                   ` (9 subsequent siblings)
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha

The current stm32f746-disco_defconfig file supports SPL, rename it to
stm32f746-disco_spl_defconfig to reflect the supported configuration.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 board/st/stm32f746-disco/MAINTAINERS                             | 1 +
 .../{stm32f746-disco_defconfig => stm32f746-disco_spl_defconfig} | 0
 2 files changed, 1 insertion(+)
 rename configs/{stm32f746-disco_defconfig => stm32f746-disco_spl_defconfig} (100%)

diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
index 3bbb513ad7..06d366e8a2 100644
--- a/board/st/stm32f746-disco/MAINTAINERS
+++ b/board/st/stm32f746-disco/MAINTAINERS
@@ -4,4 +4,5 @@ S:	Maintained
 F:	board/st/stm32f746-disco
 F:	include/configs/stm32f746-disco.h
 F:	configs/stm32f746-disco_defconfig
+F:	configs/stm32f746-disco_spl_defconfig
 F:	configs/stm32f769-disco_defconfig
diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_spl_defconfig
similarity index 100%
rename from configs/stm32f746-disco_defconfig
rename to configs/stm32f746-disco_spl_defconfig
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v1 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
  2022-04-13 15:04 ` [PATCH v1 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries Patrice Chotard
  2022-04-13 15:04 ` [PATCH v1 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig Patrice Chotard
@ 2022-04-13 15:04 ` Patrice Chotard
  2022-04-26 11:30   ` Patrick DELAUNAY
  2022-04-13 15:04 ` [PATCH v1 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig Patrice Chotard
                   ` (8 subsequent siblings)
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha

Add stm32f746-disco_defconfig for stm32f746 discovery board to
build U-Boot proper.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 configs/stm32f746-disco_defconfig | 64 +++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)
 create mode 100644 configs/stm32f746-disco_defconfig

diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_defconfig
new file mode 100644
index 0000000000..2c70bac9cd
--- /dev/null
+++ b/configs/stm32f746-disco_defconfig
@@ -0,0 +1,64 @@
+CONFIG_ARM=y
+CONFIG_ARCH_STM32=y
+CONFIG_SYS_TEXT_BASE=0x08000000
+CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_ENV_SIZE=0x2000
+CONFIG_DEFAULT_DEVICE_TREE="stm32f746-disco"
+CONFIG_STM32F7=y
+CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_SYS_LOAD_ADDR=0x8008000
+CONFIG_BOOTDELAY=3
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_BOARD_LATE_INIT=y
+CONFIG_SYS_PROMPT="U-Boot > "
+CONFIG_CMD_GPT=y
+# CONFIG_RANDOM_UUID is not set
+CONFIG_CMD_MMC=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_SNTP=y
+CONFIG_CMD_DNS=y
+CONFIG_CMD_LINK_LOCAL=y
+CONFIG_CMD_BMP=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_TIMER=y
+# CONFIG_ISO_PARTITION is not set
+CONFIG_OF_CONTROL=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_NETCONSOLE=y
+CONFIG_ARM_PL180_MMCI=y
+CONFIG_MTD=y
+CONFIG_DM_MTD=y
+CONFIG_MTD_NOR_FLASH=y
+CONFIG_STM32_FLASH=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY_SMSC=y
+CONFIG_DM_ETH=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_MII=y
+# CONFIG_PINCTRL_FULL is not set
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_STM32_QSPI=y
+CONFIG_DM_VIDEO=y
+CONFIG_BACKLIGHT_GPIO=y
+CONFIG_VIDEO_STM32=y
+CONFIG_VIDEO_STM32_MAX_XRES=480
+CONFIG_VIDEO_STM32_MAX_YRES=640
+CONFIG_SPLASH_SCREEN=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
+CONFIG_VIDEO_BMP_RLE8=y
+CONFIG_BMP_16BPP=y
+CONFIG_BMP_24BPP=y
+CONFIG_BMP_32BPP=y
+CONFIG_OF_LIBFDT_OVERLAY=y
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v1 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
                   ` (2 preceding siblings ...)
  2022-04-13 15:04 ` [PATCH v1 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig Patrice Chotard
@ 2022-04-13 15:04 ` Patrice Chotard
  2022-04-26 11:30   ` Patrick DELAUNAY
  2022-04-13 15:04 ` [PATCH v1 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig Patrice Chotard
                   ` (7 subsequent siblings)
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha

The current stm32f769-disco_defconfig file supports SPL, rename it to
stm32f769-disco_spl_defconfig to reflect the supported configuration.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 board/st/stm32f746-disco/MAINTAINERS                             | 1 +
 .../{stm32f769-disco_defconfig => stm32f769-disco_spl_defconfig} | 0
 2 files changed, 1 insertion(+)
 rename configs/{stm32f769-disco_defconfig => stm32f769-disco_spl_defconfig} (100%)

diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
index 06d366e8a2..68f61fd5ff 100644
--- a/board/st/stm32f746-disco/MAINTAINERS
+++ b/board/st/stm32f746-disco/MAINTAINERS
@@ -6,3 +6,4 @@ F:	include/configs/stm32f746-disco.h
 F:	configs/stm32f746-disco_defconfig
 F:	configs/stm32f746-disco_spl_defconfig
 F:	configs/stm32f769-disco_defconfig
+F:	configs/stm32f769-disco_spl_defconfig
diff --git a/configs/stm32f769-disco_defconfig b/configs/stm32f769-disco_spl_defconfig
similarity index 100%
rename from configs/stm32f769-disco_defconfig
rename to configs/stm32f769-disco_spl_defconfig
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v1 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
                   ` (3 preceding siblings ...)
  2022-04-13 15:04 ` [PATCH v1 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig Patrice Chotard
@ 2022-04-13 15:04 ` Patrice Chotard
  2022-04-26 11:32   ` Patrick DELAUNAY
  2022-04-13 15:04 ` [PATCH v1 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig Patrice Chotard
                   ` (6 subsequent siblings)
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha

Add stm32f769-disco_defconfig for stm32f769 discovery board to
build U-Boot proper.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 configs/stm32f769-disco_defconfig | 65 +++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 configs/stm32f769-disco_defconfig

diff --git a/configs/stm32f769-disco_defconfig b/configs/stm32f769-disco_defconfig
new file mode 100644
index 0000000000..3c112882cc
--- /dev/null
+++ b/configs/stm32f769-disco_defconfig
@@ -0,0 +1,65 @@
+CONFIG_ARM=y
+CONFIG_ARCH_STM32=y
+CONFIG_SYS_TEXT_BASE=0x08000000
+CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_ENV_SIZE=0x2000
+CONFIG_DEFAULT_DEVICE_TREE="stm32f769-disco"
+CONFIG_STM32F7=y
+CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_SYS_LOAD_ADDR=0x8008000
+CONFIG_BOOTDELAY=3
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_SYS_PROMPT="U-Boot > "
+CONFIG_CMD_GPT=y
+# CONFIG_RANDOM_UUID is not set
+CONFIG_CMD_MMC=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_SNTP=y
+CONFIG_CMD_DNS=y
+CONFIG_CMD_LINK_LOCAL=y
+CONFIG_CMD_BMP=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_TIMER=y
+# CONFIG_ISO_PARTITION is not set
+CONFIG_OF_CONTROL=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_NETCONSOLE=y
+CONFIG_ARM_PL180_MMCI=y
+CONFIG_MTD=y
+CONFIG_DM_MTD=y
+CONFIG_MTD_NOR_FLASH=y
+CONFIG_STM32_FLASH=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY_SMSC=y
+CONFIG_DM_ETH=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_MII=y
+# CONFIG_PINCTRL_FULL is not set
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_STM32_QSPI=y
+CONFIG_DM_VIDEO=y
+CONFIG_BACKLIGHT_GPIO=y
+CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
+CONFIG_VIDEO_STM32=y
+CONFIG_VIDEO_STM32_DSI=y
+CONFIG_VIDEO_STM32_MAX_XRES=480
+CONFIG_VIDEO_STM32_MAX_YRES=800
+CONFIG_SPLASH_SCREEN=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
+CONFIG_VIDEO_BMP_RLE8=y
+CONFIG_BMP_16BPP=y
+CONFIG_BMP_24BPP=y
+CONFIG_BMP_32BPP=y
+CONFIG_OF_LIBFDT_OVERLAY=y
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v1 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
                   ` (4 preceding siblings ...)
  2022-04-13 15:04 ` [PATCH v1 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig Patrice Chotard
@ 2022-04-13 15:04 ` Patrice Chotard
  2022-04-26 11:32   ` Patrick DELAUNAY
  2022-04-13 15:04 ` [PATCH v1 07/12] configs: stm32f746-disco: " Patrice Chotard
                   ` (5 subsequent siblings)
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha

Migrate SPL flags to stm32f769-disco_spl_defconfig

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 configs/stm32f769-disco_spl_defconfig | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)

diff --git a/configs/stm32f769-disco_spl_defconfig b/configs/stm32f769-disco_spl_defconfig
index 0ba0184359..4e8a72ed0e 100644
--- a/configs/stm32f769-disco_spl_defconfig
+++ b/configs/stm32f769-disco_spl_defconfig
@@ -3,12 +3,19 @@ CONFIG_ARCH_STM32=y
 CONFIG_SYS_TEXT_BASE=0x08008000
 CONFIG_SYS_MALLOC_LEN=0x100000
 CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_SPL_GPIO=y
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_ENV_SIZE=0x2000
 CONFIG_DEFAULT_DEVICE_TREE="stm32f769-disco"
 CONFIG_SPL_TEXT_BASE=0x8000000
+CONFIG_SPL_SERIAL=y
+CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_STM32F7=y
 CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_SPL=y
+CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_LOAD_ADDR=0x8008000
 CONFIG_BOOTDELAY=3
@@ -18,6 +25,11 @@ CONFIG_AUTOBOOT_STOP_STR=" "
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
 # CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_XIP_SUPPORT=y
+CONFIG_SPL_DM_RESET=y
 CONFIG_SYS_PROMPT="U-Boot > "
 CONFIG_CMD_GPT=y
 # CONFIG_RANDOM_UUID is not set
@@ -29,15 +41,16 @@ CONFIG_CMD_LINK_LOCAL=y
 CONFIG_CMD_BMP=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIMER=y
-# CONFIG_SPL_DOS_PARTITION is not set
 # CONFIG_ISO_PARTITION is not set
-# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_NETCONSOLE=y
-# CONFIG_SPL_BLK is not set
-# CONFIG_SPL_DM_MMC is not set
+CONFIG_SPL_DM=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_SPL_CLK=y
 CONFIG_ARM_PL180_MMCI=y
 CONFIG_MTD=y
 CONFIG_DM_MTD=y
@@ -51,9 +64,13 @@ CONFIG_DM_ETH=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 # CONFIG_PINCTRL_FULL is not set
+CONFIG_SPL_PINCTRL=y
+CONFIG_SPL_RAM=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_STM32_QSPI=y
+CONFIG_SPL_TIMER=y
 CONFIG_DM_VIDEO=y
 CONFIG_BACKLIGHT_GPIO=y
 CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v1 07/12] configs: stm32f746-disco: Migrate SPL flags to defconfig
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
                   ` (5 preceding siblings ...)
  2022-04-13 15:04 ` [PATCH v1 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig Patrice Chotard
@ 2022-04-13 15:04 ` Patrice Chotard
  2022-04-26 11:34   ` Patrick DELAUNAY
  2022-04-13 15:04 ` [PATCH v1 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config Patrice Chotard
                   ` (4 subsequent siblings)
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot
  Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Simon Glass,
	Vikas Manocha

Migrate SPL flags to stm32f746-disco_spl_defconfig

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 arch/arm/mach-stm32/Kconfig           | 20 --------------------
 configs/stm32f746-disco_spl_defconfig | 24 ++++++++++++++++++++----
 2 files changed, 20 insertions(+), 24 deletions(-)

diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
index a439dbd10f..a44ebf2597 100644
--- a/arch/arm/mach-stm32/Kconfig
+++ b/arch/arm/mach-stm32/Kconfig
@@ -25,26 +25,6 @@ config STM32F7
 	select PINCTRL
 	select PINCTRL_STM32
 	select RAM
-	select SPL
-	select SPL_BOARD_INIT
-	select SPL_CLK
-	select SPL_DM
-	select SPL_DM_RESET
-	select SPL_DM_SEQ_ALIAS
-	select SPL_DRIVERS_MISC
-	select SPL_GPIO
-	select SPL_LIBCOMMON_SUPPORT
-	select SPL_LIBGENERIC_SUPPORT
-	select SPL_MTD_SUPPORT
-	select SPL_OF_CONTROL
-	select SPL_OF_LIBFDT
-	select SPL_OF_TRANSLATE
-	select SPL_PINCTRL
-	select SPL_RAM
-	select SPL_SERIAL
-	select SPL_SYS_MALLOC_SIMPLE
-	select SPL_TIMER
-	select SPL_XIP_SUPPORT
 	select STM32_RCC
 	select STM32_RESET
 	select STM32_SDRAM
diff --git a/configs/stm32f746-disco_spl_defconfig b/configs/stm32f746-disco_spl_defconfig
index aabffac75f..03308b987c 100644
--- a/configs/stm32f746-disco_spl_defconfig
+++ b/configs/stm32f746-disco_spl_defconfig
@@ -3,12 +3,18 @@ CONFIG_ARCH_STM32=y
 CONFIG_SYS_TEXT_BASE=0x08008000
 CONFIG_SYS_MALLOC_LEN=0x100000
 CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_SPL_GPIO=y
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_ENV_SIZE=0x2000
 CONFIG_DEFAULT_DEVICE_TREE="stm32f746-disco"
 CONFIG_SPL_TEXT_BASE=0x8000000
+CONFIG_SPL_SERIAL=y
+CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_STM32F7=y
 CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_SPL=y
 CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_LOAD_ADDR=0x8008000
@@ -20,6 +26,11 @@ CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_BOARD_LATE_INIT=y
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_XIP_SUPPORT=y
+CONFIG_SPL_DM_RESET=y
 CONFIG_SYS_PROMPT="U-Boot > "
 CONFIG_CMD_GPT=y
 # CONFIG_RANDOM_UUID is not set
@@ -31,15 +42,16 @@ CONFIG_CMD_LINK_LOCAL=y
 CONFIG_CMD_BMP=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIMER=y
-# CONFIG_SPL_DOS_PARTITION is not set
 # CONFIG_ISO_PARTITION is not set
-# CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_NETCONSOLE=y
-# CONFIG_SPL_BLK is not set
-# CONFIG_SPL_DM_MMC is not set
+CONFIG_SPL_DM=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_SPL_CLK=y
 CONFIG_ARM_PL180_MMCI=y
 CONFIG_MTD=y
 CONFIG_DM_MTD=y
@@ -53,9 +65,13 @@ CONFIG_DM_ETH=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 # CONFIG_PINCTRL_FULL is not set
+CONFIG_SPL_PINCTRL=y
+CONFIG_SPL_RAM=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_STM32_QSPI=y
+CONFIG_SPL_TIMER=y
 CONFIG_DM_VIDEO=y
 CONFIG_BACKLIGHT_GPIO=y
 CONFIG_VIDEO_STM32=y
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v1 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
                   ` (6 preceding siblings ...)
  2022-04-13 15:04 ` [PATCH v1 07/12] configs: stm32f746-disco: " Patrice Chotard
@ 2022-04-13 15:04 ` Patrice Chotard
  2022-04-26 11:35   ` Patrick DELAUNAY
  2022-04-13 15:04 ` [PATCH v1 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile Patrice Chotard
                   ` (3 subsequent siblings)
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha

Replace CONFIG_SUPPORT_SPL by CONFIG_SPL_BUILD to allow
dram_init() execution when using none SPL defconfig
(stm32f746-disco_defconfig).

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 board/st/stm32f746-disco/stm32f746-disco.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
index 95d83e73ee..ed36e3170f 100644
--- a/board/st/stm32f746-disco/stm32f746-disco.c
+++ b/board/st/stm32f746-disco/stm32f746-disco.c
@@ -29,7 +29,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init(void)
 {
-#ifndef CONFIG_SUPPORT_SPL
+#ifndef CONFIG_SPL_BUILD
 	int rv;
 	struct udevice *dev;
 	rv = uclass_get_device(UCLASS_RAM, 0, &dev);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v1 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
                   ` (7 preceding siblings ...)
  2022-04-13 15:04 ` [PATCH v1 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config Patrice Chotard
@ 2022-04-13 15:04 ` Patrice Chotard
  2022-04-26 11:37   ` Patrick DELAUNAY
  2022-04-13 15:04 ` [PATCH v1 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig Patrice Chotard
                   ` (2 subsequent siblings)
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha

As stm32f46-disco, stm32f769-disco and stm32746g-eval are very similar
except their respective device tree file. These 3 boards uses the same
TARGET_STM32F746_DISCO flag (so same include/configs/stm32f746-disco.h
and same board file board/st/stm32f746-disco/stm32f746-disco.c)

To be able to compile these 3 boards, replace the hard-coded device-tree
name in include/configs/stm32f746-disco.h by CONFIG_DEFAULT_DEVICE_TREE
which is set in each board defconfig file with the correct value.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 include/configs/stm32f746-disco.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/stm32f746-disco.h b/include/configs/stm32f746-disco.h
index b93acdcc1f..cc3d4b4449 100644
--- a/include/configs/stm32f746-disco.h
+++ b/include/configs/stm32f746-disco.h
@@ -34,7 +34,7 @@
 #include <config_distro_bootcmd.h>
 #define CONFIG_EXTRA_ENV_SETTINGS				\
 			"kernel_addr_r=0xC0008000\0"		\
-			"fdtfile=stm32f746-disco.dtb\0"	\
+			"fdtfile="CONFIG_DEFAULT_DEVICE_TREE".dtb\0"	\
 			"fdt_addr_r=0xC0408000\0"		\
 			"scriptaddr=0xC0418000\0"		\
 			"pxefile_addr_r=0xC0428000\0" \
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v1 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
                   ` (8 preceding siblings ...)
  2022-04-13 15:04 ` [PATCH v1 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile Patrice Chotard
@ 2022-04-13 15:04 ` Patrice Chotard
  2022-04-26 11:37   ` Patrick DELAUNAY
  2022-04-13 15:04 ` [PATCH v1 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig Patrice Chotard
  2022-04-13 15:05 ` [PATCH v1 12/12] doc: Add documentation for STM32 MCUs Patrice Chotard
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha

Add stm32746g-eval_defconfig for stm32746g evaluation board to
build U-Boot proper.

Full board description can be found here :
https://www.st.com/en/evaluation-tools/stm32746g-eval.html

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 board/st/stm32f746-disco/MAINTAINERS |  1 +
 configs/stm32746g-eval_defconfig     | 64 ++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)
 create mode 100644 configs/stm32746g-eval_defconfig

diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
index 68f61fd5ff..7f128a8b69 100644
--- a/board/st/stm32f746-disco/MAINTAINERS
+++ b/board/st/stm32f746-disco/MAINTAINERS
@@ -5,5 +5,6 @@ F:	board/st/stm32f746-disco
 F:	include/configs/stm32f746-disco.h
 F:	configs/stm32f746-disco_defconfig
 F:	configs/stm32f746-disco_spl_defconfig
+F:	configs/stm32746g-eval_defconfig
 F:	configs/stm32f769-disco_defconfig
 F:	configs/stm32f769-disco_spl_defconfig
diff --git a/configs/stm32746g-eval_defconfig b/configs/stm32746g-eval_defconfig
new file mode 100644
index 0000000000..9f79b5a2b4
--- /dev/null
+++ b/configs/stm32746g-eval_defconfig
@@ -0,0 +1,64 @@
+CONFIG_ARM=y
+CONFIG_ARCH_STM32=y
+CONFIG_SYS_TEXT_BASE=0x08000000
+CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_ENV_SIZE=0x2000
+CONFIG_DEFAULT_DEVICE_TREE="stm32746g-eval"
+CONFIG_STM32F7=y
+CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_SYS_LOAD_ADDR=0x8008000
+CONFIG_BOOTDELAY=3
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_BOARD_LATE_INIT=y
+CONFIG_SYS_PROMPT="U-Boot > "
+CONFIG_CMD_GPT=y
+# CONFIG_RANDOM_UUID is not set
+CONFIG_CMD_MMC=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_SNTP=y
+CONFIG_CMD_DNS=y
+CONFIG_CMD_LINK_LOCAL=y
+CONFIG_CMD_BMP=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_TIMER=y
+# CONFIG_ISO_PARTITION is not set
+CONFIG_OF_CONTROL=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_NETCONSOLE=y
+CONFIG_ARM_PL180_MMCI=y
+CONFIG_MTD=y
+CONFIG_DM_MTD=y
+CONFIG_MTD_NOR_FLASH=y
+CONFIG_STM32_FLASH=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY_SMSC=y
+CONFIG_DM_ETH=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_MII=y
+# CONFIG_PINCTRL_FULL is not set
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_STM32_QSPI=y
+CONFIG_DM_VIDEO=y
+CONFIG_BACKLIGHT_GPIO=y
+CONFIG_VIDEO_STM32=y
+CONFIG_VIDEO_STM32_MAX_XRES=480
+CONFIG_VIDEO_STM32_MAX_YRES=640
+CONFIG_SPLASH_SCREEN=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
+CONFIG_VIDEO_BMP_RLE8=y
+CONFIG_BMP_16BPP=y
+CONFIG_BMP_24BPP=y
+CONFIG_BMP_32BPP=y
+CONFIG_OF_LIBFDT_OVERLAY=y
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v1 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
                   ` (9 preceding siblings ...)
  2022-04-13 15:04 ` [PATCH v1 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig Patrice Chotard
@ 2022-04-13 15:04 ` Patrice Chotard
  2022-04-26 11:38   ` Patrick DELAUNAY
  2022-04-13 15:05 ` [PATCH v1 12/12] doc: Add documentation for STM32 MCUs Patrice Chotard
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:04 UTC (permalink / raw)
  To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha

Add stm32746g-eval_spl_defconfig for stm32746g evaluation board to
build SPL.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

 board/st/stm32f746-disco/MAINTAINERS |  1 +
 configs/stm32746g-eval_spl_defconfig | 86 ++++++++++++++++++++++++++++
 2 files changed, 87 insertions(+)
 create mode 100644 configs/stm32746g-eval_spl_defconfig

diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
index 7f128a8b69..bc0952c563 100644
--- a/board/st/stm32f746-disco/MAINTAINERS
+++ b/board/st/stm32f746-disco/MAINTAINERS
@@ -6,5 +6,6 @@ F:	include/configs/stm32f746-disco.h
 F:	configs/stm32f746-disco_defconfig
 F:	configs/stm32f746-disco_spl_defconfig
 F:	configs/stm32746g-eval_defconfig
+F:	configs/stm32746g-eval_spl_defconfig
 F:	configs/stm32f769-disco_defconfig
 F:	configs/stm32f769-disco_spl_defconfig
diff --git a/configs/stm32746g-eval_spl_defconfig b/configs/stm32746g-eval_spl_defconfig
new file mode 100644
index 0000000000..169a9c5b23
--- /dev/null
+++ b/configs/stm32746g-eval_spl_defconfig
@@ -0,0 +1,86 @@
+CONFIG_ARM=y
+CONFIG_ARCH_STM32=y
+CONFIG_SYS_TEXT_BASE=0x08008000
+CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_SPL_GPIO=y
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_ENV_SIZE=0x2000
+CONFIG_DEFAULT_DEVICE_TREE="stm32746g-eval"
+CONFIG_SPL_TEXT_BASE=0x8000000
+CONFIG_SPL_SERIAL=y
+CONFIG_SPL_DRIVERS_MISC=y
+CONFIG_STM32F7=y
+CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_SPL=y
+CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_SYS_LOAD_ADDR=0x8008000
+CONFIG_BOOTDELAY=3
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_BOARD_LATE_INIT=y
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_XIP_SUPPORT=y
+CONFIG_SPL_DM_RESET=y
+CONFIG_SYS_PROMPT="U-Boot > "
+CONFIG_CMD_GPT=y
+# CONFIG_RANDOM_UUID is not set
+CONFIG_CMD_MMC=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_SNTP=y
+CONFIG_CMD_DNS=y
+CONFIG_CMD_LINK_LOCAL=y
+CONFIG_CMD_BMP=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_TIMER=y
+# CONFIG_ISO_PARTITION is not set
+CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_NETCONSOLE=y
+CONFIG_SPL_DM=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_SPL_CLK=y
+CONFIG_ARM_PL180_MMCI=y
+CONFIG_MTD=y
+CONFIG_DM_MTD=y
+CONFIG_MTD_NOR_FLASH=y
+CONFIG_STM32_FLASH=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY_SMSC=y
+CONFIG_DM_ETH=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_MII=y
+# CONFIG_PINCTRL_FULL is not set
+CONFIG_SPL_PINCTRL=y
+CONFIG_SPL_RAM=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_STM32_QSPI=y
+CONFIG_SPL_TIMER=y
+CONFIG_DM_VIDEO=y
+CONFIG_BACKLIGHT_GPIO=y
+CONFIG_VIDEO_STM32=y
+CONFIG_VIDEO_STM32_MAX_XRES=480
+CONFIG_VIDEO_STM32_MAX_YRES=640
+CONFIG_SPLASH_SCREEN=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
+CONFIG_VIDEO_BMP_RLE8=y
+CONFIG_BMP_16BPP=y
+CONFIG_BMP_24BPP=y
+CONFIG_BMP_32BPP=y
+CONFIG_OF_LIBFDT_OVERLAY=y
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH v1 12/12] doc: Add documentation for STM32 MCUs
  2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
                   ` (10 preceding siblings ...)
  2022-04-13 15:04 ` [PATCH v1 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig Patrice Chotard
@ 2022-04-13 15:05 ` Patrice Chotard
  2022-04-26 11:59   ` Patrick DELAUNAY
  11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-13 15:05 UTC (permalink / raw)
  To: u-boot
  Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Dillon Min,
	Kamil Lulko, Vikas Manocha

Add documentation for STM32 MCUs (F4, F7 and H7 series).

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>

---

 board/st/stm32f429-discovery/MAINTAINERS  |   1 +
 board/st/stm32f429-evaluation/MAINTAINERS |   1 +
 board/st/stm32f469-discovery/MAINTAINERS  |   1 +
 board/st/stm32f746-disco/MAINTAINERS      |   1 +
 board/st/stm32h743-disco/MAINTAINERS      |   1 +
 board/st/stm32h743-eval/MAINTAINERS       |   1 +
 board/st/stm32h750-art-pi/MAINTAINERS     |   1 +
 doc/board/st/index.rst                    |   1 +
 doc/board/st/stm32_MCU.rst                | 186 ++++++++++++++++++++++
 9 files changed, 194 insertions(+)
 create mode 100644 doc/board/st/stm32_MCU.rst

diff --git a/board/st/stm32f429-discovery/MAINTAINERS b/board/st/stm32f429-discovery/MAINTAINERS
index fdb62e98e8..7661a15fdd 100644
--- a/board/st/stm32f429-discovery/MAINTAINERS
+++ b/board/st/stm32f429-discovery/MAINTAINERS
@@ -1,6 +1,7 @@
 STM32F429-DISCOVERY BOARD
 M:	Kamil Lulko <kamil.lulko@gmail.com>
 S:	Maintained
+F:	doc/board/st/
 F:	board/st/stm32f429-discovery/
 F:	include/configs/stm32f429-discovery.h
 F:	configs/stm32f429-discovery_defconfig
diff --git a/board/st/stm32f429-evaluation/MAINTAINERS b/board/st/stm32f429-evaluation/MAINTAINERS
index 29d00ef27e..b272893ef7 100644
--- a/board/st/stm32f429-evaluation/MAINTAINERS
+++ b/board/st/stm32f429-evaluation/MAINTAINERS
@@ -1,6 +1,7 @@
 STM32F429-EVALUATION BOARD
 M:	Patrice Chotard <patrice.chotard@foss.st.com>
 S:	Maintained
+F:	doc/board/st/
 F:	board/st/stm32f429-evaluation/
 F:	include/configs/stm32f429-evaluation.h
 F:	configs/stm32f429-evaluation_defconfig
diff --git a/board/st/stm32f469-discovery/MAINTAINERS b/board/st/stm32f469-discovery/MAINTAINERS
index 5a6a78b39e..a95f93f6f6 100644
--- a/board/st/stm32f469-discovery/MAINTAINERS
+++ b/board/st/stm32f469-discovery/MAINTAINERS
@@ -1,6 +1,7 @@
 STM32F469-DISCOVERY BOARD
 M:	Patrice Chotard <patrice.chotard@foss.st.com>
 S:	Maintained
+F:	doc/board/st/
 F:	board/st/stm32f469-discovery/
 F:	include/configs/stm32f469-discovery.h
 F:	configs/stm32f469-discovery_defconfig
diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
index bc0952c563..18e4c99c4f 100644
--- a/board/st/stm32f746-disco/MAINTAINERS
+++ b/board/st/stm32f746-disco/MAINTAINERS
@@ -1,6 +1,7 @@
 STM32F746 DISCOVERY BOARD
 M:	Vikas Manocha <vikas.manocha@st.com>
 S:	Maintained
+F:	doc/board/st/
 F:	board/st/stm32f746-disco
 F:	include/configs/stm32f746-disco.h
 F:	configs/stm32f746-disco_defconfig
diff --git a/board/st/stm32h743-disco/MAINTAINERS b/board/st/stm32h743-disco/MAINTAINERS
index 60fbe344f8..f4ecef3aa5 100644
--- a/board/st/stm32h743-disco/MAINTAINERS
+++ b/board/st/stm32h743-disco/MAINTAINERS
@@ -1,6 +1,7 @@
 STM32H743 DISCOVERY BOARD
 M:	Patrice Chotard <patrice.chotard@foss.st.com>
 S:	Maintained
+F:	doc/board/st/
 F:	board/st/stm32h743-disco
 F:	include/configs/stm32h743-disco.h
 F:	configs/stm32h743-disco_defconfig
diff --git a/board/st/stm32h743-eval/MAINTAINERS b/board/st/stm32h743-eval/MAINTAINERS
index fda93db777..b69e0d4abb 100644
--- a/board/st/stm32h743-eval/MAINTAINERS
+++ b/board/st/stm32h743-eval/MAINTAINERS
@@ -1,6 +1,7 @@
 STM32H743 EVALUATION BOARD
 M:	Patrice Chotard <patrice.chotard@foss.st.com>
 S:	Maintained
+F:	doc/board/st/
 F:	board/st/stm32h743-eval
 F:	include/configs/stm32h743-eval.h
 F:	configs/stm32h743-eval_defconfig
diff --git a/board/st/stm32h750-art-pi/MAINTAINERS b/board/st/stm32h750-art-pi/MAINTAINERS
index 9578833068..2fd69e6d1c 100644
--- a/board/st/stm32h750-art-pi/MAINTAINERS
+++ b/board/st/stm32h750-art-pi/MAINTAINERS
@@ -1,6 +1,7 @@
 STM32H750 ART PI BOARD
 M:	Dillon Min <dillon.minfei@gmail.com>
 S:	Maintained
+F:	doc/board/st/
 F:	board/st/stm32h750-art-pi
 F:	include/configs/stm32h750-art-pi.h
 F:	configs/stm32h750-art-pi_defconfig
diff --git a/doc/board/st/index.rst b/doc/board/st/index.rst
index 9bba42f1da..2a8a4ef3b8 100644
--- a/doc/board/st/index.rst
+++ b/doc/board/st/index.rst
@@ -8,3 +8,4 @@ STMicroelectronics
 
    st-dt
    stm32mp1
+   stm32_MCU
diff --git a/doc/board/st/stm32_MCU.rst b/doc/board/st/stm32_MCU.rst
new file mode 100644
index 0000000000..84f7c0016e
--- /dev/null
+++ b/doc/board/st/stm32_MCU.rst
@@ -0,0 +1,186 @@
+.. SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
+.. sectionauthor:: Patrice Chotard <patrice.chotardy@foss.st.com>
+
+STM32 MCU boards
+=================
+
+This is a quick instruction for setup STM32 MCU boards.
+
+Supported devices
+-----------------
+
+U-Boot supports the following STMP32 MCU SoCs:
+
+ - STM32F429
+ - STM32F469
+ - STM32F746
+ - STM32F769
+ - STM32H743
+ - STM32H750
+
+SoCs information:
+-----------------
+STM32F4 series are Cortex-M4 MCU.
+STM32F7 and STM32H7 series are Cortex-M7 MCU.
+
+ + STM32F4 series: https://www.st.com/en/microcontrollers-microprocessors/stm32f4-series.html
+ + STM32F7 series: https://www.st.com/en/microcontrollers-microprocessors/stm32f7-series.html
+ + STM32H7 series: https://www.st.com/en/microcontrollers-microprocessors/stm32h7-series.html
+
+Currently the following boards are supported:
+
+ + stm32f429-disco.dts
+ + stm32f469-disco.dts
+ + stm32746g-eval.dts
+ + stm32f746-disco.dts
+ + stm32f769-disco.dts
+ + stm32h743i-disco.dts
+ + stm32h743i-eval.dts
+ + stm32h750i-art-pi.dts
+
+Boot Sequences
+--------------
+
+For STM32F7 series, 2 boot configurations are supported with and without SPL
+
++----------+------------------------+-------------------------+--------------+
+| **ROM**  | **FSBL**               | **SSBL**                | **OS**       |
++ **code** +------------------------+-------------------------+--------------+
+|          | First Stage Bootloader | Second Stage Bootloader | Linux Kernel |
++          +------------------------+-------------------------+--------------+
+|          | embedded Flash         | DDR                                    |
++----------+------------------------+-------------------------+--------------+
+
+The boot chain with SPL
+```````````````````````
+
+defconfig_file :
+   + **stm32746g-eval_spl_defconfig**
+   + **stm32f746-disco_spl_defconfig**
+   + **stm32f769-disco_spl_defconfig**
+
++-------------+------------+------------+-------+
+|  ROM code   | FSBL       | SSBL       | OS    |
++             +------------+------------+-------+
+|             |U-Boot SPL  | U-Boot     | Linux |
++-------------+------------+------------+-------+
+
+The boot chain without SPL
+``````````````````````````
+
+defconfig_file :
+   + **stm32f429-discovery_defconfig**
+   + **stm32f429-evaluation_defconfig**
+   + **stm32f469-discovery_defconfig**
+   + **stm32746g-eval_defconfig**
+   + **stm32f746-disco_defconfig**
+   + **stm32f769-disco_defconfig**
+   + **stm32h743-disco_defconfig**
+   + **stm32h743-eval_defconfig**
+   + **stm32h750-art-pi_defconfig**
+
++-------------+-----------+-------+
+|  ROM code   | FSBL      | OS    |
++             +-----------+-------+
+|             |U-Boot     | Linux |
++-------------+-----------+-------+
+
+Build Procedure
+---------------
+
+1. Install the required tools for U-Boot
+
+   * install package needed in U-Boot makefile
+     (libssl-dev, swig, libpython-dev...)
+
+  * install ARMv7 toolchain for 32bit Cortex-A (from Linaro,
+     from SDK for STM32MP15x, or any crosstoolchains from your distribution)
+     (you can use any gcc cross compiler compatible with U-Boot)
+
+2. Set the cross compiler::
+
+    # export CROSS_COMPILE=/path/to/toolchain/arm-linux-gnueabi-
+
+3. Select the output directory (optional)::
+
+   # export KBUILD_OUTPUT=/path/to/output
+
+   for example: use one output directory for each configuration::
+
+   # export KBUILD_OUTPUT=stm32f4
+   # export KBUILD_OUTPUT=stm32f7
+   # export KBUILD_OUTPUT=stm32h7
+
+   you can build outside of code directory::
+
+   # export KBUILD_OUTPUT=../build/stm32f4
+
+4. Configure U-Boot::
+
+   # make <defconfig_file>
+
+   For example with <defconfig_file>:
+
+   - For **stm32f429 discovery** board : **stm32f429-discovery_defconfig**
+   - For **stm32f769 discovery** board with SPL: **stm32f769-disco_spl_defconfig**
+   - For **stm32f769 discovery** board without SPL: **stm32f769-disco_defconfig**
+
+5. Configure the device-tree and build the U-Boot image::
+
+   # make DEVICE_TREE=<name> all
+
+   Examples:
+
+  a) boot with SPL on stm32f746 discovery board::
+
+     # export KBUILD_OUTPUT=stm32f746-disco
+     # make stm32f746-disco_spl_defconfig
+     # make DEVICE_TREE=stm32f746-disco all
+
+  b) boot without SPL on stm32f746 discovery board::
+
+     # export KBUILD_OUTPUT=stm32f746-disco
+     # make stm32f746-disco_defconfig
+     # make DEVICE_TREE=stm32f746-disco all
+
+  c) boot on stm32h743 discovery board::
+
+      # export KBUILD_OUTPUT=stm32h743-disco
+      # make stm32h743-disco_defconfig
+      # make DEVICE_TREE=stm32h743i-disco all
+
+  d) boot on stm32h743 evaluation board::
+
+      # export KBUILD_OUTPUT=stm32h743-disco
+      # make stm32h743-eval_defconfig
+      # make DEVICE_TREE=stm32h743i-eval all
+
+6. U-Boot Output files
+
+   So in the output directory (selected by KBUILD_OUTPUT),
+   you can found the needed U-Boot files, for example::
+
+     - stm32f746-disco_defconfig = **u-boot-dtb.bin** and **u-boot.dtb**
+
+        - FSBL = u-boot-dtb.bin
+
+     - stm32f746-disco_spl_defconfig = **u-boot-dtb.bin**, **u-boot.dtb** and **u-boot-with-spl.bin**
+
+       - FSBL + SSBL = u-boot-with-spl.bin
+       - SSBL = u-boot-dtb.bin
+
+7. Flash U-Boot files
+
+Plug STM32 MCUs board using the USB ST-Link connector, hence it will expose
+the flash area as a mass-storage. In this mass-storage you will find the
+following files:
+
+- DETAILS.TXT: give the bootrom version and build
+- MBED.HTM: shortcul to the hardware board description web page from st.com.
+
+Copy/paste the u-boot.bin to this mass-storage. The "COM" LED will
+blink alternatively red and green during the flash process.
+When done the board will reboot automatically.
+
+In case of boot with SPL, by default SPL will try to load either a Linux
+kernel (falcon mode) or, if the key "c" is maintained pressed, the main U-Boot.
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries
  2022-04-13 15:04 ` [PATCH v1 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries Patrice Chotard
@ 2022-04-26 11:29   ` Patrick DELAUNAY
  0 siblings, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:29 UTC (permalink / raw)
  To: Patrice Chotard, u-boot; +Cc: U-Boot STM32, Vikas Manocha

Hi,

On 4/13/22 17:04, Patrice Chotard wrote:
> This allows to concatenate spl and u-boot binaries together.
> Previously, both binaries has to be flashed separately at the correct
> offset (spl at offset 0 and u-boot at offset 0x8000).
> With this patch, only one binary is generated (u-boot-with-spl.bin)
> and has to be copied in flash at offset 0 using openocd for example
> or simply copied in exported mass storage.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   configs/stm32f746-disco_defconfig | 1 +
>   include/configs/stm32f746-disco.h | 1 +
>   2 files changed, 2 insertions(+)
>

Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig
  2022-04-13 15:04 ` [PATCH v1 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig Patrice Chotard
@ 2022-04-26 11:29   ` Patrick DELAUNAY
  0 siblings, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:29 UTC (permalink / raw)
  To: Patrice Chotard, u-boot; +Cc: U-Boot STM32, Vikas Manocha

Hi,


On 4/13/22 17:04, Patrice Chotard wrote:
> The current stm32f746-disco_defconfig file supports SPL, rename it to
> stm32f746-disco_spl_defconfig to reflect the supported configuration.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   board/st/stm32f746-disco/MAINTAINERS                             | 1 +
>   .../{stm32f746-disco_defconfig => stm32f746-disco_spl_defconfig} | 0
>   2 files changed, 1 insertion(+)
>   rename configs/{stm32f746-disco_defconfig => stm32f746-disco_spl_defconfig} (100%)


Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig
  2022-04-13 15:04 ` [PATCH v1 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig Patrice Chotard
@ 2022-04-26 11:30   ` Patrick DELAUNAY
  0 siblings, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:30 UTC (permalink / raw)
  To: Patrice Chotard, u-boot; +Cc: U-Boot STM32, Vikas Manocha

Hi,

On 4/13/22 17:04, Patrice Chotard wrote:
> Add stm32f746-disco_defconfig for stm32f746 discovery board to
> build U-Boot proper.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   configs/stm32f746-disco_defconfig | 64 +++++++++++++++++++++++++++++++
>   1 file changed, 64 insertions(+)
>   create mode 100644 configs/stm32f746-disco_defconfig
>

Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig
  2022-04-13 15:04 ` [PATCH v1 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig Patrice Chotard
@ 2022-04-26 11:30   ` Patrick DELAUNAY
  0 siblings, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:30 UTC (permalink / raw)
  To: Patrice Chotard, u-boot; +Cc: U-Boot STM32, Vikas Manocha

Hi,

On 4/13/22 17:04, Patrice Chotard wrote:
> The current stm32f769-disco_defconfig file supports SPL, rename it to
> stm32f769-disco_spl_defconfig to reflect the supported configuration.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   board/st/stm32f746-disco/MAINTAINERS                             | 1 +
>   .../{stm32f769-disco_defconfig => stm32f769-disco_spl_defconfig} | 0
>   2 files changed, 1 insertion(+)
>   rename configs/{stm32f769-disco_defconfig => stm32f769-disco_spl_defconfig} (100%)
>

Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig
  2022-04-13 15:04 ` [PATCH v1 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig Patrice Chotard
@ 2022-04-26 11:32   ` Patrick DELAUNAY
  0 siblings, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:32 UTC (permalink / raw)
  To: Patrice Chotard, u-boot; +Cc: U-Boot STM32, Vikas Manocha

Hi,

On 4/13/22 17:04, Patrice Chotard wrote:
> Add stm32f769-disco_defconfig for stm32f769 discovery board to
> build U-Boot proper.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   configs/stm32f769-disco_defconfig | 65 +++++++++++++++++++++++++++++++
>   1 file changed, 65 insertions(+)
>   create mode 100644 configs/stm32f769-disco_defconfig
>

Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig
  2022-04-13 15:04 ` [PATCH v1 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig Patrice Chotard
@ 2022-04-26 11:32   ` Patrick DELAUNAY
  0 siblings, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:32 UTC (permalink / raw)
  To: Patrice Chotard, u-boot; +Cc: U-Boot STM32, Vikas Manocha

Hi,

On 4/13/22 17:04, Patrice Chotard wrote:
> Migrate SPL flags to stm32f769-disco_spl_defconfig
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   configs/stm32f769-disco_spl_defconfig | 25 +++++++++++++++++++++----
>   1 file changed, 21 insertions(+), 4 deletions(-)
>

Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 07/12] configs: stm32f746-disco: Migrate SPL flags to defconfig
  2022-04-13 15:04 ` [PATCH v1 07/12] configs: stm32f746-disco: " Patrice Chotard
@ 2022-04-26 11:34   ` Patrick DELAUNAY
  0 siblings, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:34 UTC (permalink / raw)
  To: Patrice Chotard, u-boot; +Cc: U-Boot STM32, Simon Glass, Vikas Manocha

Hi,

On 4/13/22 17:04, Patrice Chotard wrote:
> Migrate SPL flags to stm32f746-disco_spl_defconfig
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   arch/arm/mach-stm32/Kconfig           | 20 --------------------
>   configs/stm32f746-disco_spl_defconfig | 24 ++++++++++++++++++++----
>   2 files changed, 20 insertions(+), 24 deletions(-)
>

Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config
  2022-04-13 15:04 ` [PATCH v1 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config Patrice Chotard
@ 2022-04-26 11:35   ` Patrick DELAUNAY
  0 siblings, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:35 UTC (permalink / raw)
  To: Patrice Chotard, u-boot; +Cc: U-Boot STM32, Vikas Manocha

Hi,

On 4/13/22 17:04, Patrice Chotard wrote:
> Replace CONFIG_SUPPORT_SPL by CONFIG_SPL_BUILD to allow
> dram_init() execution when using none SPL defconfig
> (stm32f746-disco_defconfig).
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   board/st/stm32f746-disco/stm32f746-disco.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile
  2022-04-13 15:04 ` [PATCH v1 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile Patrice Chotard
@ 2022-04-26 11:37   ` Patrick DELAUNAY
  0 siblings, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:37 UTC (permalink / raw)
  To: Patrice Chotard, u-boot; +Cc: U-Boot STM32, Vikas Manocha

Hi,


On 4/13/22 17:04, Patrice Chotard wrote:
> As stm32f46-disco, stm32f769-disco and stm32746g-eval are very similar
> except their respective device tree file. These 3 boards uses the same
> TARGET_STM32F746_DISCO flag (so same include/configs/stm32f746-disco.h
> and same board file board/st/stm32f746-disco/stm32f746-disco.c)
>
> To be able to compile these 3 boards, replace the hard-coded device-tree
> name in include/configs/stm32f746-disco.h by CONFIG_DEFAULT_DEVICE_TREE
> which is set in each board defconfig file with the correct value.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   include/configs/stm32f746-disco.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)



Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig
  2022-04-13 15:04 ` [PATCH v1 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig Patrice Chotard
@ 2022-04-26 11:37   ` Patrick DELAUNAY
  0 siblings, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:37 UTC (permalink / raw)
  To: Patrice Chotard, u-boot; +Cc: U-Boot STM32, Vikas Manocha

Hi,

On 4/13/22 17:04, Patrice Chotard wrote:
> Add stm32746g-eval_defconfig for stm32746g evaluation board to
> build U-Boot proper.
>
> Full board description can be found here :
> https://www.st.com/en/evaluation-tools/stm32746g-eval.html
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   board/st/stm32f746-disco/MAINTAINERS |  1 +
>   configs/stm32746g-eval_defconfig     | 64 ++++++++++++++++++++++++++++
>   2 files changed, 65 insertions(+)
>   create mode 100644 configs/stm32746g-eval_defconfig
>


Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig
  2022-04-13 15:04 ` [PATCH v1 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig Patrice Chotard
@ 2022-04-26 11:38   ` Patrick DELAUNAY
  0 siblings, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:38 UTC (permalink / raw)
  To: Patrice Chotard, u-boot; +Cc: U-Boot STM32, Vikas Manocha

Hi,

On 4/13/22 17:04, Patrice Chotard wrote:
> Add stm32746g-eval_spl_defconfig for stm32746g evaluation board to
> build SPL.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>
>   board/st/stm32f746-disco/MAINTAINERS |  1 +
>   configs/stm32746g-eval_spl_defconfig | 86 ++++++++++++++++++++++++++++
>   2 files changed, 87 insertions(+)
>   create mode 100644 configs/stm32746g-eval_spl_defconfig
>

Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>

Thanks
Patrick


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 12/12] doc: Add documentation for STM32 MCUs
  2022-04-13 15:05 ` [PATCH v1 12/12] doc: Add documentation for STM32 MCUs Patrice Chotard
@ 2022-04-26 11:59   ` Patrick DELAUNAY
  2022-04-27 11:27     ` Patrice CHOTARD
  0 siblings, 1 reply; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-04-26 11:59 UTC (permalink / raw)
  To: Patrice Chotard, u-boot
  Cc: U-Boot STM32, Dillon Min, Kamil Lulko, Vikas Manocha

Hi Patrice

Few minor remarks,

On 4/13/22 17:05, Patrice Chotard wrote:
> Add documentation for STM32 MCUs (F4, F7 and H7 series).
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
>
> ---
>
>   board/st/stm32f429-discovery/MAINTAINERS  |   1 +
>   board/st/stm32f429-evaluation/MAINTAINERS |   1 +
>   board/st/stm32f469-discovery/MAINTAINERS  |   1 +
>   board/st/stm32f746-disco/MAINTAINERS      |   1 +
>   board/st/stm32h743-disco/MAINTAINERS      |   1 +
>   board/st/stm32h743-eval/MAINTAINERS       |   1 +
>   board/st/stm32h750-art-pi/MAINTAINERS     |   1 +
>   doc/board/st/index.rst                    |   1 +
>   doc/board/st/stm32_MCU.rst                | 186 ++++++++++++++++++++++
>   9 files changed, 194 insertions(+)
>   create mode 100644 doc/board/st/stm32_MCU.rst
>
> diff --git a/board/st/stm32f429-discovery/MAINTAINERS b/board/st/stm32f429-discovery/MAINTAINERS
> index fdb62e98e8..7661a15fdd 100644
> --- a/board/st/stm32f429-discovery/MAINTAINERS
> +++ b/board/st/stm32f429-discovery/MAINTAINERS
> @@ -1,6 +1,7 @@
>   STM32F429-DISCOVERY BOARD
>   M:	Kamil Lulko <kamil.lulko@gmail.com>
>   S:	Maintained
> +F:	doc/board/st/
>   F:	board/st/stm32f429-discovery/
>   F:	include/configs/stm32f429-discovery.h
>   F:	configs/stm32f429-discovery_defconfig
> diff --git a/board/st/stm32f429-evaluation/MAINTAINERS b/board/st/stm32f429-evaluation/MAINTAINERS
> index 29d00ef27e..b272893ef7 100644
> --- a/board/st/stm32f429-evaluation/MAINTAINERS
> +++ b/board/st/stm32f429-evaluation/MAINTAINERS
> @@ -1,6 +1,7 @@
>   STM32F429-EVALUATION BOARD
>   M:	Patrice Chotard <patrice.chotard@foss.st.com>
>   S:	Maintained
> +F:	doc/board/st/
>   F:	board/st/stm32f429-evaluation/
>   F:	include/configs/stm32f429-evaluation.h
>   F:	configs/stm32f429-evaluation_defconfig
> diff --git a/board/st/stm32f469-discovery/MAINTAINERS b/board/st/stm32f469-discovery/MAINTAINERS
> index 5a6a78b39e..a95f93f6f6 100644
> --- a/board/st/stm32f469-discovery/MAINTAINERS
> +++ b/board/st/stm32f469-discovery/MAINTAINERS
> @@ -1,6 +1,7 @@
>   STM32F469-DISCOVERY BOARD
>   M:	Patrice Chotard <patrice.chotard@foss.st.com>
>   S:	Maintained
> +F:	doc/board/st/
>   F:	board/st/stm32f469-discovery/
>   F:	include/configs/stm32f469-discovery.h
>   F:	configs/stm32f469-discovery_defconfig
> diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
> index bc0952c563..18e4c99c4f 100644
> --- a/board/st/stm32f746-disco/MAINTAINERS
> +++ b/board/st/stm32f746-disco/MAINTAINERS
> @@ -1,6 +1,7 @@
>   STM32F746 DISCOVERY BOARD
>   M:	Vikas Manocha <vikas.manocha@st.com>
>   S:	Maintained
> +F:	doc/board/st/
>   F:	board/st/stm32f746-disco
>   F:	include/configs/stm32f746-disco.h
>   F:	configs/stm32f746-disco_defconfig
> diff --git a/board/st/stm32h743-disco/MAINTAINERS b/board/st/stm32h743-disco/MAINTAINERS
> index 60fbe344f8..f4ecef3aa5 100644
> --- a/board/st/stm32h743-disco/MAINTAINERS
> +++ b/board/st/stm32h743-disco/MAINTAINERS
> @@ -1,6 +1,7 @@
>   STM32H743 DISCOVERY BOARD
>   M:	Patrice Chotard <patrice.chotard@foss.st.com>
>   S:	Maintained
> +F:	doc/board/st/
>   F:	board/st/stm32h743-disco
>   F:	include/configs/stm32h743-disco.h
>   F:	configs/stm32h743-disco_defconfig
> diff --git a/board/st/stm32h743-eval/MAINTAINERS b/board/st/stm32h743-eval/MAINTAINERS
> index fda93db777..b69e0d4abb 100644
> --- a/board/st/stm32h743-eval/MAINTAINERS
> +++ b/board/st/stm32h743-eval/MAINTAINERS
> @@ -1,6 +1,7 @@
>   STM32H743 EVALUATION BOARD
>   M:	Patrice Chotard <patrice.chotard@foss.st.com>
>   S:	Maintained
> +F:	doc/board/st/
>   F:	board/st/stm32h743-eval
>   F:	include/configs/stm32h743-eval.h
>   F:	configs/stm32h743-eval_defconfig
> diff --git a/board/st/stm32h750-art-pi/MAINTAINERS b/board/st/stm32h750-art-pi/MAINTAINERS
> index 9578833068..2fd69e6d1c 100644
> --- a/board/st/stm32h750-art-pi/MAINTAINERS
> +++ b/board/st/stm32h750-art-pi/MAINTAINERS
> @@ -1,6 +1,7 @@
>   STM32H750 ART PI BOARD
>   M:	Dillon Min <dillon.minfei@gmail.com>
>   S:	Maintained
> +F:	doc/board/st/
>   F:	board/st/stm32h750-art-pi
>   F:	include/configs/stm32h750-art-pi.h
>   F:	configs/stm32h750-art-pi_defconfig
> diff --git a/doc/board/st/index.rst b/doc/board/st/index.rst
> index 9bba42f1da..2a8a4ef3b8 100644
> --- a/doc/board/st/index.rst
> +++ b/doc/board/st/index.rst
> @@ -8,3 +8,4 @@ STMicroelectronics
>   
>      st-dt
>      stm32mp1
> +   stm32_MCU
> diff --git a/doc/board/st/stm32_MCU.rst b/doc/board/st/stm32_MCU.rst
> new file mode 100644
> index 0000000000..84f7c0016e
> --- /dev/null
> +++ b/doc/board/st/stm32_MCU.rst
> @@ -0,0 +1,186 @@
> +.. SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
> +.. sectionauthor:: Patrice Chotard <patrice.chotardy@foss.st.com>
> +
> +STM32 MCU boards
> +=================
> +
> +This is a quick instruction for setup STM32 MCU boards.
> +
> +Supported devices
> +-----------------
> +
> +U-Boot supports the following STMP32 MCU SoCs:
> +
> + - STM32F429
> + - STM32F469
> + - STM32F746
> + - STM32F769
> + - STM32H743
> + - STM32H750
> +
> +SoCs information:
> +-----------------
> +STM32F4 series are Cortex-M4 MCU.
> +STM32F7 and STM32H7 series are Cortex-M7 MCU.
> +
> + + STM32F4 series: https://www.st.com/en/microcontrollers-microprocessors/stm32f4-series.html
> + + STM32F7 series: https://www.st.com/en/microcontrollers-microprocessors/stm32f7-series.html
> + + STM32H7 series: https://www.st.com/en/microcontrollers-microprocessors/stm32h7-series.html
> +
> +Currently the following boards are supported:
> +
> + + stm32f429-disco.dts
> + + stm32f469-disco.dts
> + + stm32746g-eval.dts
> + + stm32f746-disco.dts
> + + stm32f769-disco.dts
> + + stm32h743i-disco.dts
> + + stm32h743i-eval.dts
> + + stm32h750i-art-pi.dts
> +
> +Boot Sequences
> +--------------
> +
> +For STM32F7 series, 2 boot configurations are supported with and without SPL
> +
> ++----------+------------------------+-------------------------+--------------+
> +| **ROM**  | **FSBL**               | **SSBL**                | **OS**       |
> ++ **code** +------------------------+-------------------------+--------------+
> +|          | First Stage Bootloader | Second Stage Bootloader | Linux Kernel |
> ++          +------------------------+-------------------------+--------------+
> +|          | embedded Flash         | DDR                                    |
> ++----------+------------------------+-------------------------+--------------+


no "ROM code" in STM32 MCU


> +
> +The boot chain with SPL
> +```````````````````````
> +
> +defconfig_file :
> +   + **stm32746g-eval_spl_defconfig**
> +   + **stm32f746-disco_spl_defconfig**
> +   + **stm32f769-disco_spl_defconfig**
> +
> ++-------------+------------+------------+-------+
> +|  ROM code   | FSBL       | SSBL       | OS    |
> ++             +------------+------------+-------+
> +|             |U-Boot SPL  | U-Boot     | Linux |
> ++-------------+------------+------------+-------+


no "ROM code" in STM32 MCU

> +
> +The boot chain without SPL
> +``````````````````````````
> +
> +defconfig_file :
> +   + **stm32f429-discovery_defconfig**
> +   + **stm32f429-evaluation_defconfig**
> +   + **stm32f469-discovery_defconfig**
> +   + **stm32746g-eval_defconfig**
> +   + **stm32f746-disco_defconfig**
> +   + **stm32f769-disco_defconfig**
> +   + **stm32h743-disco_defconfig**
> +   + **stm32h743-eval_defconfig**
> +   + **stm32h750-art-pi_defconfig**
> +
> ++-------------+-----------+-------+
> +|  ROM code   | FSBL      | OS    |
> ++             +-----------+-------+
> +|             |U-Boot     | Linux |
> ++-------------+-----------+-------+

no "ROM code" in STM32 MCU

> +
> +Build Procedure
> +---------------
> +
> +1. Install the required tools for U-Boot
> +
> +   * install package needed in U-Boot makefile
> +     (libssl-dev, swig, libpython-dev...)
> +
> +  * install ARMv7 toolchain for 32bit Cortex-A (from Linaro,
> +     from SDK for STM32MP15x, or any crosstoolchains from your distribution)
> +     (you can use any gcc cross compiler compatible with U-Boot)
> +
> +2. Set the cross compiler::
> +
> +    # export CROSS_COMPILE=/path/to/toolchain/arm-linux-gnueabi-
> +
> +3. Select the output directory (optional)::
> +
> +   # export KBUILD_OUTPUT=/path/to/output
> +
> +   for example: use one output directory for each configuration::
> +
> +   # export KBUILD_OUTPUT=stm32f4
> +   # export KBUILD_OUTPUT=stm32f7
> +   # export KBUILD_OUTPUT=stm32h7
> +
> +   you can build outside of code directory::
> +
> +   # export KBUILD_OUTPUT=../build/stm32f4
> +
> +4. Configure U-Boot::
> +
> +   # make <defconfig_file>
> +
> +   For example with <defconfig_file>:
> +
> +   - For **stm32f429 discovery** board : **stm32f429-discovery_defconfig**
> +   - For **stm32f769 discovery** board with SPL: **stm32f769-disco_spl_defconfig**
> +   - For **stm32f769 discovery** board without SPL: **stm32f769-disco_defconfig**
> +
> +5. Configure the device-tree and build the U-Boot image::
> +
> +   # make DEVICE_TREE=<name> all
it is not required as the supported device tree is selected in each 
defconfig.

# make all

> +
> +   Examples:
> +
> +  a) boot with SPL on stm32f746 discovery board::
> +
> +     # export KBUILD_OUTPUT=stm32f746-disco
> +     # make stm32f746-disco_spl_defconfig
> +     # make DEVICE_TREE=stm32f746-disco all
# make all
> +
> +  b) boot without SPL on stm32f746 discovery board::
> +
> +     # export KBUILD_OUTPUT=stm32f746-disco
> +     # make stm32f746-disco_defconfig
> +     # make DEVICE_TREE=stm32f746-disco all


# make all

> +
> +  c) boot on stm32h743 discovery board::
> +
> +      # export KBUILD_OUTPUT=stm32h743-disco
> +      # make stm32h743-disco_defconfig
> +      # make DEVICE_TREE=stm32h743i-disco all

# make all

> +
> +  d) boot on stm32h743 evaluation board::
> +
> +      # export KBUILD_OUTPUT=stm32h743-disco
> +      # make stm32h743-eval_defconfig
> +      # make DEVICE_TREE=stm32h743i-eval all

# make all

> +
> +6. U-Boot Output files
> +
> +   So in the output directory (selected by KBUILD_OUTPUT),
> +   you can found the needed U-Boot files, for example::
> +
> +     - stm32f746-disco_defconfig = **u-boot-dtb.bin** and **u-boot.dtb**
> +
> +        - FSBL = u-boot-dtb.bin
> +
> +     - stm32f746-disco_spl_defconfig = **u-boot-dtb.bin**, **u-boot.dtb** and **u-boot-with-spl.bin**
> +
> +       - FSBL + SSBL = u-boot-with-spl.bin
> +       - SSBL = u-boot-dtb.bin
> +
> +7. Flash U-Boot files
> +
> +Plug STM32 MCUs board using the USB ST-Link connector, hence it will expose
> +the flash area as a mass-storage. In this mass-storage you will find the
> +following files:
> +
> +- DETAILS.TXT: give the bootrom version and build
> +- MBED.HTM: shortcul to the hardware board description web page from st.com.
> +
> +Copy/paste the u-boot.bin to this mass-storage. The "COM" LED will
> +blink alternatively red and green during the flash process.
> +When done the board will reboot automatically.
> +
> +In case of boot with SPL, by default SPL will try to load either a Linux
> +kernel (falcon mode) or, if the key "c" is maintained pressed, the main U-Boot.

regards

Patrick


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH v1 12/12] doc: Add documentation for STM32 MCUs
  2022-04-26 11:59   ` Patrick DELAUNAY
@ 2022-04-27 11:27     ` Patrice CHOTARD
  0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-04-27 11:27 UTC (permalink / raw)
  To: Patrick DELAUNAY, u-boot
  Cc: U-Boot STM32, Dillon Min, Kamil Lulko, Vikas Manocha

Hi Patrick

ok v2 will be sent with your remarks

Thanks

Patrice

On 4/26/22 13:59, Patrick DELAUNAY wrote:
> Hi Patrice
>
> Few minor remarks,
>
> On 4/13/22 17:05, Patrice Chotard wrote:
>> Add documentation for STM32 MCUs (F4, F7 and H7 series).
>>
>> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
>>
>> ---
>>
>>   board/st/stm32f429-discovery/MAINTAINERS  |   1 +
>>   board/st/stm32f429-evaluation/MAINTAINERS |   1 +
>>   board/st/stm32f469-discovery/MAINTAINERS  |   1 +
>>   board/st/stm32f746-disco/MAINTAINERS      |   1 +
>>   board/st/stm32h743-disco/MAINTAINERS      |   1 +
>>   board/st/stm32h743-eval/MAINTAINERS       |   1 +
>>   board/st/stm32h750-art-pi/MAINTAINERS     |   1 +
>>   doc/board/st/index.rst                    |   1 +
>>   doc/board/st/stm32_MCU.rst                | 186 ++++++++++++++++++++++
>>   9 files changed, 194 insertions(+)
>>   create mode 100644 doc/board/st/stm32_MCU.rst
>>
>> diff --git a/board/st/stm32f429-discovery/MAINTAINERS 
>> b/board/st/stm32f429-discovery/MAINTAINERS
>> index fdb62e98e8..7661a15fdd 100644
>> --- a/board/st/stm32f429-discovery/MAINTAINERS
>> +++ b/board/st/stm32f429-discovery/MAINTAINERS
>> @@ -1,6 +1,7 @@
>>   STM32F429-DISCOVERY BOARD
>>   M:    Kamil Lulko <kamil.lulko@gmail.com>
>>   S:    Maintained
>> +F:    doc/board/st/
>>   F:    board/st/stm32f429-discovery/
>>   F:    include/configs/stm32f429-discovery.h
>>   F:    configs/stm32f429-discovery_defconfig
>> diff --git a/board/st/stm32f429-evaluation/MAINTAINERS 
>> b/board/st/stm32f429-evaluation/MAINTAINERS
>> index 29d00ef27e..b272893ef7 100644
>> --- a/board/st/stm32f429-evaluation/MAINTAINERS
>> +++ b/board/st/stm32f429-evaluation/MAINTAINERS
>> @@ -1,6 +1,7 @@
>>   STM32F429-EVALUATION BOARD
>>   M:    Patrice Chotard <patrice.chotard@foss.st.com>
>>   S:    Maintained
>> +F:    doc/board/st/
>>   F:    board/st/stm32f429-evaluation/
>>   F:    include/configs/stm32f429-evaluation.h
>>   F:    configs/stm32f429-evaluation_defconfig
>> diff --git a/board/st/stm32f469-discovery/MAINTAINERS 
>> b/board/st/stm32f469-discovery/MAINTAINERS
>> index 5a6a78b39e..a95f93f6f6 100644
>> --- a/board/st/stm32f469-discovery/MAINTAINERS
>> +++ b/board/st/stm32f469-discovery/MAINTAINERS
>> @@ -1,6 +1,7 @@
>>   STM32F469-DISCOVERY BOARD
>>   M:    Patrice Chotard <patrice.chotard@foss.st.com>
>>   S:    Maintained
>> +F:    doc/board/st/
>>   F:    board/st/stm32f469-discovery/
>>   F:    include/configs/stm32f469-discovery.h
>>   F:    configs/stm32f469-discovery_defconfig
>> diff --git a/board/st/stm32f746-disco/MAINTAINERS 
>> b/board/st/stm32f746-disco/MAINTAINERS
>> index bc0952c563..18e4c99c4f 100644
>> --- a/board/st/stm32f746-disco/MAINTAINERS
>> +++ b/board/st/stm32f746-disco/MAINTAINERS
>> @@ -1,6 +1,7 @@
>>   STM32F746 DISCOVERY BOARD
>>   M:    Vikas Manocha <vikas.manocha@st.com>
>>   S:    Maintained
>> +F:    doc/board/st/
>>   F:    board/st/stm32f746-disco
>>   F:    include/configs/stm32f746-disco.h
>>   F:    configs/stm32f746-disco_defconfig
>> diff --git a/board/st/stm32h743-disco/MAINTAINERS 
>> b/board/st/stm32h743-disco/MAINTAINERS
>> index 60fbe344f8..f4ecef3aa5 100644
>> --- a/board/st/stm32h743-disco/MAINTAINERS
>> +++ b/board/st/stm32h743-disco/MAINTAINERS
>> @@ -1,6 +1,7 @@
>>   STM32H743 DISCOVERY BOARD
>>   M:    Patrice Chotard <patrice.chotard@foss.st.com>
>>   S:    Maintained
>> +F:    doc/board/st/
>>   F:    board/st/stm32h743-disco
>>   F:    include/configs/stm32h743-disco.h
>>   F:    configs/stm32h743-disco_defconfig
>> diff --git a/board/st/stm32h743-eval/MAINTAINERS 
>> b/board/st/stm32h743-eval/MAINTAINERS
>> index fda93db777..b69e0d4abb 100644
>> --- a/board/st/stm32h743-eval/MAINTAINERS
>> +++ b/board/st/stm32h743-eval/MAINTAINERS
>> @@ -1,6 +1,7 @@
>>   STM32H743 EVALUATION BOARD
>>   M:    Patrice Chotard <patrice.chotard@foss.st.com>
>>   S:    Maintained
>> +F:    doc/board/st/
>>   F:    board/st/stm32h743-eval
>>   F:    include/configs/stm32h743-eval.h
>>   F:    configs/stm32h743-eval_defconfig
>> diff --git a/board/st/stm32h750-art-pi/MAINTAINERS 
>> b/board/st/stm32h750-art-pi/MAINTAINERS
>> index 9578833068..2fd69e6d1c 100644
>> --- a/board/st/stm32h750-art-pi/MAINTAINERS
>> +++ b/board/st/stm32h750-art-pi/MAINTAINERS
>> @@ -1,6 +1,7 @@
>>   STM32H750 ART PI BOARD
>>   M:    Dillon Min <dillon.minfei@gmail.com>
>>   S:    Maintained
>> +F:    doc/board/st/
>>   F:    board/st/stm32h750-art-pi
>>   F:    include/configs/stm32h750-art-pi.h
>>   F:    configs/stm32h750-art-pi_defconfig
>> diff --git a/doc/board/st/index.rst b/doc/board/st/index.rst
>> index 9bba42f1da..2a8a4ef3b8 100644
>> --- a/doc/board/st/index.rst
>> +++ b/doc/board/st/index.rst
>> @@ -8,3 +8,4 @@ STMicroelectronics
>>        st-dt
>>      stm32mp1
>> +   stm32_MCU
>> diff --git a/doc/board/st/stm32_MCU.rst b/doc/board/st/stm32_MCU.rst
>> new file mode 100644
>> index 0000000000..84f7c0016e
>> --- /dev/null
>> +++ b/doc/board/st/stm32_MCU.rst
>> @@ -0,0 +1,186 @@
>> +.. SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
>> +.. sectionauthor:: Patrice Chotard <patrice.chotardy@foss.st.com>
>> +
>> +STM32 MCU boards
>> +=================
>> +
>> +This is a quick instruction for setup STM32 MCU boards.
>> +
>> +Supported devices
>> +-----------------
>> +
>> +U-Boot supports the following STMP32 MCU SoCs:
>> +
>> + - STM32F429
>> + - STM32F469
>> + - STM32F746
>> + - STM32F769
>> + - STM32H743
>> + - STM32H750
>> +
>> +SoCs information:
>> +-----------------
>> +STM32F4 series are Cortex-M4 MCU.
>> +STM32F7 and STM32H7 series are Cortex-M7 MCU.
>> +
>> + + STM32F4 series: 
>> https://www.st.com/en/microcontrollers-microprocessors/stm32f4-series.html
>> + + STM32F7 series: 
>> https://www.st.com/en/microcontrollers-microprocessors/stm32f7-series.html
>> + + STM32H7 series: 
>> https://www.st.com/en/microcontrollers-microprocessors/stm32h7-series.html
>> +
>> +Currently the following boards are supported:
>> +
>> + + stm32f429-disco.dts
>> + + stm32f469-disco.dts
>> + + stm32746g-eval.dts
>> + + stm32f746-disco.dts
>> + + stm32f769-disco.dts
>> + + stm32h743i-disco.dts
>> + + stm32h743i-eval.dts
>> + + stm32h750i-art-pi.dts
>> +
>> +Boot Sequences
>> +--------------
>> +
>> +For STM32F7 series, 2 boot configurations are supported with and 
>> without SPL
>> +
>> ++----------+------------------------+-------------------------+--------------+ 
>>
>> +| **ROM**  | **FSBL**               | **SSBL**                | 
>> **OS**       |
>> ++ **code** 
>> +------------------------+-------------------------+--------------+
>> +|          | First Stage Bootloader | Second Stage Bootloader | 
>> Linux Kernel |
>> ++ +------------------------+-------------------------+--------------+
>> +|          | embedded Flash         | 
>> DDR                                    |
>> ++----------+------------------------+-------------------------+--------------+ 
>>
>
>
> no "ROM code" in STM32 MCU
>
>
>> +
>> +The boot chain with SPL
>> +```````````````````````
>> +
>> +defconfig_file :
>> +   + **stm32746g-eval_spl_defconfig**
>> +   + **stm32f746-disco_spl_defconfig**
>> +   + **stm32f769-disco_spl_defconfig**
>> +
>> ++-------------+------------+------------+-------+
>> +|  ROM code   | FSBL       | SSBL       | OS    |
>> ++             +------------+------------+-------+
>> +|             |U-Boot SPL  | U-Boot     | Linux |
>> ++-------------+------------+------------+-------+
>
>
> no "ROM code" in STM32 MCU
>
>> +
>> +The boot chain without SPL
>> +``````````````````````````
>> +
>> +defconfig_file :
>> +   + **stm32f429-discovery_defconfig**
>> +   + **stm32f429-evaluation_defconfig**
>> +   + **stm32f469-discovery_defconfig**
>> +   + **stm32746g-eval_defconfig**
>> +   + **stm32f746-disco_defconfig**
>> +   + **stm32f769-disco_defconfig**
>> +   + **stm32h743-disco_defconfig**
>> +   + **stm32h743-eval_defconfig**
>> +   + **stm32h750-art-pi_defconfig**
>> +
>> ++-------------+-----------+-------+
>> +|  ROM code   | FSBL      | OS    |
>> ++             +-----------+-------+
>> +|             |U-Boot     | Linux |
>> ++-------------+-----------+-------+
>
> no "ROM code" in STM32 MCU
>
>> +
>> +Build Procedure
>> +---------------
>> +
>> +1. Install the required tools for U-Boot
>> +
>> +   * install package needed in U-Boot makefile
>> +     (libssl-dev, swig, libpython-dev...)
>> +
>> +  * install ARMv7 toolchain for 32bit Cortex-A (from Linaro,
>> +     from SDK for STM32MP15x, or any crosstoolchains from your 
>> distribution)
>> +     (you can use any gcc cross compiler compatible with U-Boot)
>> +
>> +2. Set the cross compiler::
>> +
>> +    # export CROSS_COMPILE=/path/to/toolchain/arm-linux-gnueabi-
>> +
>> +3. Select the output directory (optional)::
>> +
>> +   # export KBUILD_OUTPUT=/path/to/output
>> +
>> +   for example: use one output directory for each configuration::
>> +
>> +   # export KBUILD_OUTPUT=stm32f4
>> +   # export KBUILD_OUTPUT=stm32f7
>> +   # export KBUILD_OUTPUT=stm32h7
>> +
>> +   you can build outside of code directory::
>> +
>> +   # export KBUILD_OUTPUT=../build/stm32f4
>> +
>> +4. Configure U-Boot::
>> +
>> +   # make <defconfig_file>
>> +
>> +   For example with <defconfig_file>:
>> +
>> +   - For **stm32f429 discovery** board : 
>> **stm32f429-discovery_defconfig**
>> +   - For **stm32f769 discovery** board with SPL: 
>> **stm32f769-disco_spl_defconfig**
>> +   - For **stm32f769 discovery** board without SPL: 
>> **stm32f769-disco_defconfig**
>> +
>> +5. Configure the device-tree and build the U-Boot image::
>> +
>> +   # make DEVICE_TREE=<name> all
> it is not required as the supported device tree is selected in each 
> defconfig.
>
> # make all
>
>> +
>> +   Examples:
>> +
>> +  a) boot with SPL on stm32f746 discovery board::
>> +
>> +     # export KBUILD_OUTPUT=stm32f746-disco
>> +     # make stm32f746-disco_spl_defconfig
>> +     # make DEVICE_TREE=stm32f746-disco all
> # make all
>> +
>> +  b) boot without SPL on stm32f746 discovery board::
>> +
>> +     # export KBUILD_OUTPUT=stm32f746-disco
>> +     # make stm32f746-disco_defconfig
>> +     # make DEVICE_TREE=stm32f746-disco all
>
>
> # make all
>
>> +
>> +  c) boot on stm32h743 discovery board::
>> +
>> +      # export KBUILD_OUTPUT=stm32h743-disco
>> +      # make stm32h743-disco_defconfig
>> +      # make DEVICE_TREE=stm32h743i-disco all
>
> # make all
>
>> +
>> +  d) boot on stm32h743 evaluation board::
>> +
>> +      # export KBUILD_OUTPUT=stm32h743-disco
>> +      # make stm32h743-eval_defconfig
>> +      # make DEVICE_TREE=stm32h743i-eval all
>
> # make all
>
>> +
>> +6. U-Boot Output files
>> +
>> +   So in the output directory (selected by KBUILD_OUTPUT),
>> +   you can found the needed U-Boot files, for example::
>> +
>> +     - stm32f746-disco_defconfig = **u-boot-dtb.bin** and 
>> **u-boot.dtb**
>> +
>> +        - FSBL = u-boot-dtb.bin
>> +
>> +     - stm32f746-disco_spl_defconfig = **u-boot-dtb.bin**, 
>> **u-boot.dtb** and **u-boot-with-spl.bin**
>> +
>> +       - FSBL + SSBL = u-boot-with-spl.bin
>> +       - SSBL = u-boot-dtb.bin
>> +
>> +7. Flash U-Boot files
>> +
>> +Plug STM32 MCUs board using the USB ST-Link connector, hence it will 
>> expose
>> +the flash area as a mass-storage. In this mass-storage you will find 
>> the
>> +following files:
>> +
>> +- DETAILS.TXT: give the bootrom version and build
>> +- MBED.HTM: shortcul to the hardware board description web page from 
>> st.com.
>> +
>> +Copy/paste the u-boot.bin to this mass-storage. The "COM" LED will
>> +blink alternatively red and green during the flash process.
>> +When done the board will reboot automatically.
>> +
>> +In case of boot with SPL, by default SPL will try to load either a 
>> Linux
>> +kernel (falcon mode) or, if the key "c" is maintained pressed, the 
>> main U-Boot.
>
> regards
>
> Patrick
>


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2022-04-27 11:27 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-13 15:04 [PATCH v1 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
2022-04-13 15:04 ` [PATCH v1 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries Patrice Chotard
2022-04-26 11:29   ` Patrick DELAUNAY
2022-04-13 15:04 ` [PATCH v1 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig Patrice Chotard
2022-04-26 11:29   ` Patrick DELAUNAY
2022-04-13 15:04 ` [PATCH v1 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig Patrice Chotard
2022-04-26 11:30   ` Patrick DELAUNAY
2022-04-13 15:04 ` [PATCH v1 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig Patrice Chotard
2022-04-26 11:30   ` Patrick DELAUNAY
2022-04-13 15:04 ` [PATCH v1 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig Patrice Chotard
2022-04-26 11:32   ` Patrick DELAUNAY
2022-04-13 15:04 ` [PATCH v1 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig Patrice Chotard
2022-04-26 11:32   ` Patrick DELAUNAY
2022-04-13 15:04 ` [PATCH v1 07/12] configs: stm32f746-disco: " Patrice Chotard
2022-04-26 11:34   ` Patrick DELAUNAY
2022-04-13 15:04 ` [PATCH v1 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config Patrice Chotard
2022-04-26 11:35   ` Patrick DELAUNAY
2022-04-13 15:04 ` [PATCH v1 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile Patrice Chotard
2022-04-26 11:37   ` Patrick DELAUNAY
2022-04-13 15:04 ` [PATCH v1 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig Patrice Chotard
2022-04-26 11:37   ` Patrick DELAUNAY
2022-04-13 15:04 ` [PATCH v1 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig Patrice Chotard
2022-04-26 11:38   ` Patrick DELAUNAY
2022-04-13 15:05 ` [PATCH v1 12/12] doc: Add documentation for STM32 MCUs Patrice Chotard
2022-04-26 11:59   ` Patrick DELAUNAY
2022-04-27 11:27     ` Patrice CHOTARD

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.