From dc5977dbbacdf7be43b3520198172830b0450e3b Mon Sep 17 00:00:00 2001 From: Guillaume Gautier Date: Fri, 16 Feb 2024 08:39:06 +0100 Subject: [PATCH] boards: Convert nucleo_h563zi to HWM v2 Port the board to HWMv2. Signed-off-by: Guillaume Gautier --- .../boards_legacy/arm/nucleo_h563zi/Kconfig.board | 8 -------- .../arm => st}/nucleo_h563zi/Kconfig.defconfig | 3 --- boards/st/nucleo_h563zi/Kconfig.nucleo_h563zi | 5 +++++ .../nucleo_h563zi/arduino_r3_connector.dtsi | 0 .../arm => st}/nucleo_h563zi/board.cmake | 0 boards/st/nucleo_h563zi/board.yml | 5 +++++ .../nucleo_h563zi/doc/img/nucleo_h563zi.jpg | Bin .../arm => st}/nucleo_h563zi/doc/index.rst | 4 ++-- .../nucleo_h563zi/nucleo_h563zi-common.dtsi | 0 .../arm => st}/nucleo_h563zi/nucleo_h563zi.dts | 0 .../arm => st}/nucleo_h563zi/nucleo_h563zi.yaml | 0 .../nucleo_h563zi/nucleo_h563zi_defconfig | 3 --- .../nucleo_h563zi/st_morpho_connector.dtsi | 0 13 files changed, 12 insertions(+), 16 deletions(-) delete mode 100644 boards/boards_legacy/arm/nucleo_h563zi/Kconfig.board rename boards/{boards_legacy/arm => st}/nucleo_h563zi/Kconfig.defconfig (86%) create mode 100644 boards/st/nucleo_h563zi/Kconfig.nucleo_h563zi rename boards/{boards_legacy/arm => st}/nucleo_h563zi/arduino_r3_connector.dtsi (100%) rename boards/{boards_legacy/arm => st}/nucleo_h563zi/board.cmake (100%) create mode 100644 boards/st/nucleo_h563zi/board.yml rename boards/{boards_legacy/arm => st}/nucleo_h563zi/doc/img/nucleo_h563zi.jpg (100%) rename boards/{boards_legacy/arm => st}/nucleo_h563zi/doc/index.rst (98%) rename boards/{boards_legacy/arm => st}/nucleo_h563zi/nucleo_h563zi-common.dtsi (100%) rename boards/{boards_legacy/arm => st}/nucleo_h563zi/nucleo_h563zi.dts (100%) rename boards/{boards_legacy/arm => st}/nucleo_h563zi/nucleo_h563zi.yaml (100%) rename boards/{boards_legacy/arm => st}/nucleo_h563zi/nucleo_h563zi_defconfig (85%) rename boards/{boards_legacy/arm => st}/nucleo_h563zi/st_morpho_connector.dtsi (100%) diff --git a/boards/boards_legacy/arm/nucleo_h563zi/Kconfig.board b/boards/boards_legacy/arm/nucleo_h563zi/Kconfig.board deleted file mode 100644 index debcb2a4ab8..00000000000 --- a/boards/boards_legacy/arm/nucleo_h563zi/Kconfig.board +++ /dev/null @@ -1,8 +0,0 @@ -# STM32H563ZI Nucleo board configuration - -# Copyright (c) 2023 Thomas Stranger -# SPDX-License-Identifier: Apache-2.0 - -config BOARD_NUCLEO_H563ZI - bool "Nucleo H563ZI Development Board" - depends on SOC_STM32H563XX diff --git a/boards/boards_legacy/arm/nucleo_h563zi/Kconfig.defconfig b/boards/st/nucleo_h563zi/Kconfig.defconfig similarity index 86% rename from boards/boards_legacy/arm/nucleo_h563zi/Kconfig.defconfig rename to boards/st/nucleo_h563zi/Kconfig.defconfig index 4730fdb7a79..54426df3945 100644 --- a/boards/boards_legacy/arm/nucleo_h563zi/Kconfig.defconfig +++ b/boards/st/nucleo_h563zi/Kconfig.defconfig @@ -5,9 +5,6 @@ if BOARD_NUCLEO_H563ZI -config BOARD - default "nucleo_h563zi" - if NETWORKING config NET_L2_ETHERNET diff --git a/boards/st/nucleo_h563zi/Kconfig.nucleo_h563zi b/boards/st/nucleo_h563zi/Kconfig.nucleo_h563zi new file mode 100644 index 00000000000..49209ab6a16 --- /dev/null +++ b/boards/st/nucleo_h563zi/Kconfig.nucleo_h563zi @@ -0,0 +1,5 @@ +# Copyright (c) 2023 Thomas Stranger +# SPDX-License-Identifier: Apache-2.0 + +config BOARD_NUCLEO_H563ZI + select SOC_STM32H563XX diff --git a/boards/boards_legacy/arm/nucleo_h563zi/arduino_r3_connector.dtsi b/boards/st/nucleo_h563zi/arduino_r3_connector.dtsi similarity index 100% rename from boards/boards_legacy/arm/nucleo_h563zi/arduino_r3_connector.dtsi rename to boards/st/nucleo_h563zi/arduino_r3_connector.dtsi diff --git a/boards/boards_legacy/arm/nucleo_h563zi/board.cmake b/boards/st/nucleo_h563zi/board.cmake similarity index 100% rename from boards/boards_legacy/arm/nucleo_h563zi/board.cmake rename to boards/st/nucleo_h563zi/board.cmake diff --git a/boards/st/nucleo_h563zi/board.yml b/boards/st/nucleo_h563zi/board.yml new file mode 100644 index 00000000000..42319f55755 --- /dev/null +++ b/boards/st/nucleo_h563zi/board.yml @@ -0,0 +1,5 @@ +board: + name: nucleo_h563zi + vendor: st + socs: + - name: stm32h563xx diff --git a/boards/boards_legacy/arm/nucleo_h563zi/doc/img/nucleo_h563zi.jpg b/boards/st/nucleo_h563zi/doc/img/nucleo_h563zi.jpg similarity index 100% rename from boards/boards_legacy/arm/nucleo_h563zi/doc/img/nucleo_h563zi.jpg rename to boards/st/nucleo_h563zi/doc/img/nucleo_h563zi.jpg diff --git a/boards/boards_legacy/arm/nucleo_h563zi/doc/index.rst b/boards/st/nucleo_h563zi/doc/index.rst similarity index 98% rename from boards/boards_legacy/arm/nucleo_h563zi/doc/index.rst rename to boards/st/nucleo_h563zi/doc/index.rst index 7d1ac5c5b5a..9be05804330 100644 --- a/boards/boards_legacy/arm/nucleo_h563zi/doc/index.rst +++ b/boards/st/nucleo_h563zi/doc/index.rst @@ -183,8 +183,8 @@ The default configuration can be found in the defconfig and dts files: - Secure target: - - :zephyr_file:`boards/arm/nucleo_h563zi/nucleo_h563zi_defconfig` - - :zephyr_file:`boards/arm/nucleo_h563zi/nucleo_h563zi.dts` + - :zephyr_file:`boards/st/nucleo_h563zi/nucleo_h563zi_defconfig` + - :zephyr_file:`boards/st/nucleo_h563zi/nucleo_h563zi.dts` Zephyr board options ==================== diff --git a/boards/boards_legacy/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi b/boards/st/nucleo_h563zi/nucleo_h563zi-common.dtsi similarity index 100% rename from boards/boards_legacy/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi rename to boards/st/nucleo_h563zi/nucleo_h563zi-common.dtsi diff --git a/boards/boards_legacy/arm/nucleo_h563zi/nucleo_h563zi.dts b/boards/st/nucleo_h563zi/nucleo_h563zi.dts similarity index 100% rename from boards/boards_legacy/arm/nucleo_h563zi/nucleo_h563zi.dts rename to boards/st/nucleo_h563zi/nucleo_h563zi.dts diff --git a/boards/boards_legacy/arm/nucleo_h563zi/nucleo_h563zi.yaml b/boards/st/nucleo_h563zi/nucleo_h563zi.yaml similarity index 100% rename from boards/boards_legacy/arm/nucleo_h563zi/nucleo_h563zi.yaml rename to boards/st/nucleo_h563zi/nucleo_h563zi.yaml diff --git a/boards/boards_legacy/arm/nucleo_h563zi/nucleo_h563zi_defconfig b/boards/st/nucleo_h563zi/nucleo_h563zi_defconfig similarity index 85% rename from boards/boards_legacy/arm/nucleo_h563zi/nucleo_h563zi_defconfig rename to boards/st/nucleo_h563zi/nucleo_h563zi_defconfig index a14e2d48eec..d751abf075b 100644 --- a/boards/boards_legacy/arm/nucleo_h563zi/nucleo_h563zi_defconfig +++ b/boards/st/nucleo_h563zi/nucleo_h563zi_defconfig @@ -1,8 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -CONFIG_SOC_SERIES_STM32H5X=y -CONFIG_SOC_STM32H563XX=y - # enable uart driver CONFIG_SERIAL=y diff --git a/boards/boards_legacy/arm/nucleo_h563zi/st_morpho_connector.dtsi b/boards/st/nucleo_h563zi/st_morpho_connector.dtsi similarity index 100% rename from boards/boards_legacy/arm/nucleo_h563zi/st_morpho_connector.dtsi rename to boards/st/nucleo_h563zi/st_morpho_connector.dtsi