From b08819dff7f531c2c9e7f1b9220487e679d37d50 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Mon, 5 Feb 2024 17:54:59 +0100 Subject: [PATCH] boards: Convert nucleo_h7a3zi_q to HWM v2 Port the board to HWMv2. Signed-off-by: Erwan Gouriou --- .../boards_legacy/arm/nucleo_h7a3zi_q/Kconfig.board | 8 -------- .../arm => st}/nucleo_h7a3zi_q/Kconfig.defconfig | 3 --- boards/st/nucleo_h7a3zi_q/Kconfig.nucleo_h7a3zi_q | 5 +++++ .../nucleo_h7a3zi_q/arduino_r3_connector.dtsi | 0 .../arm => st}/nucleo_h7a3zi_q/board.cmake | 0 boards/st/nucleo_h7a3zi_q/board.yml | 5 +++++ .../nucleo_h7a3zi_q/doc/img/nucleo_h7a3zi_q.jpg | Bin .../arm => st}/nucleo_h7a3zi_q/doc/index.rst | 2 +- .../arm => st}/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts | 0 .../arm => st}/nucleo_h7a3zi_q/nucleo_h7a3zi_q.yaml | 0 .../nucleo_h7a3zi_q/nucleo_h7a3zi_q_defconfig | 3 --- .../arm => st}/nucleo_h7a3zi_q/support/openocd.cfg | 0 12 files changed, 11 insertions(+), 15 deletions(-) delete mode 100644 boards/boards_legacy/arm/nucleo_h7a3zi_q/Kconfig.board rename boards/{boards_legacy/arm => st}/nucleo_h7a3zi_q/Kconfig.defconfig (85%) create mode 100644 boards/st/nucleo_h7a3zi_q/Kconfig.nucleo_h7a3zi_q rename boards/{boards_legacy/arm => st}/nucleo_h7a3zi_q/arduino_r3_connector.dtsi (100%) rename boards/{boards_legacy/arm => st}/nucleo_h7a3zi_q/board.cmake (100%) create mode 100644 boards/st/nucleo_h7a3zi_q/board.yml rename boards/{boards_legacy/arm => st}/nucleo_h7a3zi_q/doc/img/nucleo_h7a3zi_q.jpg (100%) rename boards/{boards_legacy/arm => st}/nucleo_h7a3zi_q/doc/index.rst (98%) rename boards/{boards_legacy/arm => st}/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts (100%) rename boards/{boards_legacy/arm => st}/nucleo_h7a3zi_q/nucleo_h7a3zi_q.yaml (100%) rename boards/{boards_legacy/arm => st}/nucleo_h7a3zi_q/nucleo_h7a3zi_q_defconfig (87%) rename boards/{boards_legacy/arm => st}/nucleo_h7a3zi_q/support/openocd.cfg (100%) diff --git a/boards/boards_legacy/arm/nucleo_h7a3zi_q/Kconfig.board b/boards/boards_legacy/arm/nucleo_h7a3zi_q/Kconfig.board deleted file mode 100644 index 3d8317ac286..00000000000 --- a/boards/boards_legacy/arm/nucleo_h7a3zi_q/Kconfig.board +++ /dev/null @@ -1,8 +0,0 @@ -# STM32H7A3ZI-Q Nucleo board configuration - -# Copyright (c) 2021 Electrolance Solutions -# SPDX-License-Identifier: Apache-2.0 - -config BOARD_NUCLEO_H7A3ZI_Q - bool "Nucleo H75A3ZI-Q Development Board" - depends on SOC_STM32H7A3XXQ diff --git a/boards/boards_legacy/arm/nucleo_h7a3zi_q/Kconfig.defconfig b/boards/st/nucleo_h7a3zi_q/Kconfig.defconfig similarity index 85% rename from boards/boards_legacy/arm/nucleo_h7a3zi_q/Kconfig.defconfig rename to boards/st/nucleo_h7a3zi_q/Kconfig.defconfig index ec43ace7dcb..e8fd3484ea7 100644 --- a/boards/boards_legacy/arm/nucleo_h7a3zi_q/Kconfig.defconfig +++ b/boards/st/nucleo_h7a3zi_q/Kconfig.defconfig @@ -5,9 +5,6 @@ if BOARD_NUCLEO_H7A3ZI_Q -config BOARD - default "nucleo_h7a3zi_q" - config USB_DC_HAS_HS_SUPPORT default y depends on USB_DC_STM32 diff --git a/boards/st/nucleo_h7a3zi_q/Kconfig.nucleo_h7a3zi_q b/boards/st/nucleo_h7a3zi_q/Kconfig.nucleo_h7a3zi_q new file mode 100644 index 00000000000..7a00b2bd8fe --- /dev/null +++ b/boards/st/nucleo_h7a3zi_q/Kconfig.nucleo_h7a3zi_q @@ -0,0 +1,5 @@ +# Copyright (c) 2021 Electrolance Solutions +# SPDX-License-Identifier: Apache-2.0 + +config BOARD_NUCLEO_H7A3ZI_Q + select SOC_STM32H7A3XXQ diff --git a/boards/boards_legacy/arm/nucleo_h7a3zi_q/arduino_r3_connector.dtsi b/boards/st/nucleo_h7a3zi_q/arduino_r3_connector.dtsi similarity index 100% rename from boards/boards_legacy/arm/nucleo_h7a3zi_q/arduino_r3_connector.dtsi rename to boards/st/nucleo_h7a3zi_q/arduino_r3_connector.dtsi diff --git a/boards/boards_legacy/arm/nucleo_h7a3zi_q/board.cmake b/boards/st/nucleo_h7a3zi_q/board.cmake similarity index 100% rename from boards/boards_legacy/arm/nucleo_h7a3zi_q/board.cmake rename to boards/st/nucleo_h7a3zi_q/board.cmake diff --git a/boards/st/nucleo_h7a3zi_q/board.yml b/boards/st/nucleo_h7a3zi_q/board.yml new file mode 100644 index 00000000000..0c64ac88228 --- /dev/null +++ b/boards/st/nucleo_h7a3zi_q/board.yml @@ -0,0 +1,5 @@ +board: + name: nucleo_h7a3zi_q + vendor: st + socs: + - name: stm32h7a3xx diff --git a/boards/boards_legacy/arm/nucleo_h7a3zi_q/doc/img/nucleo_h7a3zi_q.jpg b/boards/st/nucleo_h7a3zi_q/doc/img/nucleo_h7a3zi_q.jpg similarity index 100% rename from boards/boards_legacy/arm/nucleo_h7a3zi_q/doc/img/nucleo_h7a3zi_q.jpg rename to boards/st/nucleo_h7a3zi_q/doc/img/nucleo_h7a3zi_q.jpg diff --git a/boards/boards_legacy/arm/nucleo_h7a3zi_q/doc/index.rst b/boards/st/nucleo_h7a3zi_q/doc/index.rst similarity index 98% rename from boards/boards_legacy/arm/nucleo_h7a3zi_q/doc/index.rst rename to boards/st/nucleo_h7a3zi_q/doc/index.rst index 1144f13e731..484c7e82196 100644 --- a/boards/boards_legacy/arm/nucleo_h7a3zi_q/doc/index.rst +++ b/boards/st/nucleo_h7a3zi_q/doc/index.rst @@ -115,7 +115,7 @@ features: Other hardware features are not yet supported on this Zephyr port. The default configuration can be found in the defconfig file: -``boards/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q_defconfig`` +:zephyr_file:`boards/st/nucleo_h7a3zi_q/nucleo_h7a3zi_q_defconfig` For more details please refer to `STM32 Nucleo-144 board User Manual`_. diff --git a/boards/boards_legacy/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts b/boards/st/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts similarity index 100% rename from boards/boards_legacy/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts rename to boards/st/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts diff --git a/boards/boards_legacy/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.yaml b/boards/st/nucleo_h7a3zi_q/nucleo_h7a3zi_q.yaml similarity index 100% rename from boards/boards_legacy/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.yaml rename to boards/st/nucleo_h7a3zi_q/nucleo_h7a3zi_q.yaml diff --git a/boards/boards_legacy/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q_defconfig b/boards/st/nucleo_h7a3zi_q/nucleo_h7a3zi_q_defconfig similarity index 87% rename from boards/boards_legacy/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q_defconfig rename to boards/st/nucleo_h7a3zi_q/nucleo_h7a3zi_q_defconfig index 86ed02f8045..5490e9f1fc7 100644 --- a/boards/boards_legacy/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q_defconfig +++ b/boards/st/nucleo_h7a3zi_q/nucleo_h7a3zi_q_defconfig @@ -1,9 +1,6 @@ # Copyright (c) 2021 Electrolance Solutions # SPDX-License-Identifier: Apache-2.0 -CONFIG_SOC_SERIES_STM32H7X=y -CONFIG_SOC_STM32H7A3XXQ=y - # Enable MPU CONFIG_ARM_MPU=y diff --git a/boards/boards_legacy/arm/nucleo_h7a3zi_q/support/openocd.cfg b/boards/st/nucleo_h7a3zi_q/support/openocd.cfg similarity index 100% rename from boards/boards_legacy/arm/nucleo_h7a3zi_q/support/openocd.cfg rename to boards/st/nucleo_h7a3zi_q/support/openocd.cfg