From da00d0e7b98d109e4e4bca159fc9912500a58d57 Mon Sep 17 00:00:00 2001 From: Guillaume Gautier Date: Fri, 9 Feb 2024 14:27:05 +0100 Subject: [PATCH] boards: Convert nucleo_wba55cg to HWM v2 Port the board to HWMv2. Signed-off-by: Guillaume Gautier --- .../boards_legacy/arm/nucleo_wba55cg/Kconfig.board | 8 -------- .../arm => st}/nucleo_wba55cg/Kconfig.defconfig | 3 --- boards/st/nucleo_wba55cg/Kconfig.nucleo_wba55cg | 5 +++++ .../nucleo_wba55cg/arduino_r3_connector.dtsi | 0 .../arm => st}/nucleo_wba55cg/board.cmake | 0 boards/st/nucleo_wba55cg/board.yml | 5 +++++ .../nucleo_wba55cg/doc/img/nucleowba55cg.jpg | Bin .../nucleo_wba55cg/doc/nucleo_wba55cg.rst | 0 .../arm => st}/nucleo_wba55cg/nucleo_wba55cg.dts | 0 .../arm => st}/nucleo_wba55cg/nucleo_wba55cg.yaml | 0 .../nucleo_wba55cg/nucleo_wba55cg_defconfig | 3 --- .../arm => st}/nucleo_wba55cg/support/openocd.cfg | 0 12 files changed, 10 insertions(+), 14 deletions(-) delete mode 100644 boards/boards_legacy/arm/nucleo_wba55cg/Kconfig.board rename boards/{boards_legacy/arm => st}/nucleo_wba55cg/Kconfig.defconfig (85%) create mode 100644 boards/st/nucleo_wba55cg/Kconfig.nucleo_wba55cg rename boards/{boards_legacy/arm => st}/nucleo_wba55cg/arduino_r3_connector.dtsi (100%) rename boards/{boards_legacy/arm => st}/nucleo_wba55cg/board.cmake (100%) create mode 100644 boards/st/nucleo_wba55cg/board.yml rename boards/{boards_legacy/arm => st}/nucleo_wba55cg/doc/img/nucleowba55cg.jpg (100%) rename boards/{boards_legacy/arm => st}/nucleo_wba55cg/doc/nucleo_wba55cg.rst (100%) rename boards/{boards_legacy/arm => st}/nucleo_wba55cg/nucleo_wba55cg.dts (100%) rename boards/{boards_legacy/arm => st}/nucleo_wba55cg/nucleo_wba55cg.yaml (100%) rename boards/{boards_legacy/arm => st}/nucleo_wba55cg/nucleo_wba55cg_defconfig (88%) rename boards/{boards_legacy/arm => st}/nucleo_wba55cg/support/openocd.cfg (100%) diff --git a/boards/boards_legacy/arm/nucleo_wba55cg/Kconfig.board b/boards/boards_legacy/arm/nucleo_wba55cg/Kconfig.board deleted file mode 100644 index 44bb0e5dcd8..00000000000 --- a/boards/boards_legacy/arm/nucleo_wba55cg/Kconfig.board +++ /dev/null @@ -1,8 +0,0 @@ -# STM32WBA55CG Nucleo board configuration - -# Copyright (c) 2023 STMicroelectronics -# SPDX-License-Identifier: Apache-2.0 - -config BOARD_NUCLEO_WBA55CG - bool "Nucleo WBA55CG Development Board" - depends on SOC_STM32WBA55XX diff --git a/boards/boards_legacy/arm/nucleo_wba55cg/Kconfig.defconfig b/boards/st/nucleo_wba55cg/Kconfig.defconfig similarity index 85% rename from boards/boards_legacy/arm/nucleo_wba55cg/Kconfig.defconfig rename to boards/st/nucleo_wba55cg/Kconfig.defconfig index ed24776ee4e..4a4717a5659 100644 --- a/boards/boards_legacy/arm/nucleo_wba55cg/Kconfig.defconfig +++ b/boards/st/nucleo_wba55cg/Kconfig.defconfig @@ -6,9 +6,6 @@ if BOARD_NUCLEO_WBA55CG -config BOARD - default "nucleo_wba55cg" - config SPI_STM32_INTERRUPT default y depends on SPI diff --git a/boards/st/nucleo_wba55cg/Kconfig.nucleo_wba55cg b/boards/st/nucleo_wba55cg/Kconfig.nucleo_wba55cg new file mode 100644 index 00000000000..83289b3635b --- /dev/null +++ b/boards/st/nucleo_wba55cg/Kconfig.nucleo_wba55cg @@ -0,0 +1,5 @@ +# Copyright (c) 2023 STMicroelectronics +# SPDX-License-Identifier: Apache-2.0 + +config BOARD_NUCLEO_WBA55CG + select SOC_STM32WBA55XX diff --git a/boards/boards_legacy/arm/nucleo_wba55cg/arduino_r3_connector.dtsi b/boards/st/nucleo_wba55cg/arduino_r3_connector.dtsi similarity index 100% rename from boards/boards_legacy/arm/nucleo_wba55cg/arduino_r3_connector.dtsi rename to boards/st/nucleo_wba55cg/arduino_r3_connector.dtsi diff --git a/boards/boards_legacy/arm/nucleo_wba55cg/board.cmake b/boards/st/nucleo_wba55cg/board.cmake similarity index 100% rename from boards/boards_legacy/arm/nucleo_wba55cg/board.cmake rename to boards/st/nucleo_wba55cg/board.cmake diff --git a/boards/st/nucleo_wba55cg/board.yml b/boards/st/nucleo_wba55cg/board.yml new file mode 100644 index 00000000000..2fbe6b2bca4 --- /dev/null +++ b/boards/st/nucleo_wba55cg/board.yml @@ -0,0 +1,5 @@ +board: + name: nucleo_wba55cg + vendor: st + socs: + - name: stm32wba55xx diff --git a/boards/boards_legacy/arm/nucleo_wba55cg/doc/img/nucleowba55cg.jpg b/boards/st/nucleo_wba55cg/doc/img/nucleowba55cg.jpg similarity index 100% rename from boards/boards_legacy/arm/nucleo_wba55cg/doc/img/nucleowba55cg.jpg rename to boards/st/nucleo_wba55cg/doc/img/nucleowba55cg.jpg diff --git a/boards/boards_legacy/arm/nucleo_wba55cg/doc/nucleo_wba55cg.rst b/boards/st/nucleo_wba55cg/doc/nucleo_wba55cg.rst similarity index 100% rename from boards/boards_legacy/arm/nucleo_wba55cg/doc/nucleo_wba55cg.rst rename to boards/st/nucleo_wba55cg/doc/nucleo_wba55cg.rst diff --git a/boards/boards_legacy/arm/nucleo_wba55cg/nucleo_wba55cg.dts b/boards/st/nucleo_wba55cg/nucleo_wba55cg.dts similarity index 100% rename from boards/boards_legacy/arm/nucleo_wba55cg/nucleo_wba55cg.dts rename to boards/st/nucleo_wba55cg/nucleo_wba55cg.dts diff --git a/boards/boards_legacy/arm/nucleo_wba55cg/nucleo_wba55cg.yaml b/boards/st/nucleo_wba55cg/nucleo_wba55cg.yaml similarity index 100% rename from boards/boards_legacy/arm/nucleo_wba55cg/nucleo_wba55cg.yaml rename to boards/st/nucleo_wba55cg/nucleo_wba55cg.yaml diff --git a/boards/boards_legacy/arm/nucleo_wba55cg/nucleo_wba55cg_defconfig b/boards/st/nucleo_wba55cg/nucleo_wba55cg_defconfig similarity index 88% rename from boards/boards_legacy/arm/nucleo_wba55cg/nucleo_wba55cg_defconfig rename to boards/st/nucleo_wba55cg/nucleo_wba55cg_defconfig index 2c523d88019..98bb440f4ab 100644 --- a/boards/boards_legacy/arm/nucleo_wba55cg/nucleo_wba55cg_defconfig +++ b/boards/st/nucleo_wba55cg/nucleo_wba55cg_defconfig @@ -1,9 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2023 STMicroelectronics -CONFIG_SOC_SERIES_STM32WBAX=y -CONFIG_SOC_STM32WBA55XX=y - # enable uart driver CONFIG_SERIAL=y diff --git a/boards/boards_legacy/arm/nucleo_wba55cg/support/openocd.cfg b/boards/st/nucleo_wba55cg/support/openocd.cfg similarity index 100% rename from boards/boards_legacy/arm/nucleo_wba55cg/support/openocd.cfg rename to boards/st/nucleo_wba55cg/support/openocd.cfg