From fa845af309eb6994cdbcdf60ce6543d52269f259 Mon Sep 17 00:00:00 2001 From: Abderrahmane Jarmouni Date: Tue, 6 Feb 2024 17:46:46 +0100 Subject: [PATCH] boards: Convert blackpill_f411ce to HWM v2 Port the board to HWMv2. Signed-off-by: Abderrahmane Jarmouni --- .../arm/blackpill_f411ce/Kconfig.board | 8 -------- .../weact/blackpill_f411ce/Kconfig.blackpill_f411ce | 5 +++++ .../blackpill_f411ce/Kconfig.defconfig | 3 --- .../blackpill_f411ce/blackpill_f411ce.dts | 0 .../blackpill_f411ce/blackpill_f411ce.yaml | 0 .../blackpill_f411ce/blackpill_f411ce_defconfig | 3 --- .../arm => weact}/blackpill_f411ce/board.cmake | 0 boards/weact/blackpill_f411ce/board.yml | 5 +++++ .../blackpill_f411ce/doc/img/Blackpill_Pinout.jpg | Bin .../blackpill_f411ce/doc/img/blackpill-v2.jpg | Bin .../arm => weact}/blackpill_f411ce/doc/index.rst | 0 .../blackpill_f411ce/support/openocd.cfg | 0 12 files changed, 10 insertions(+), 14 deletions(-) delete mode 100644 boards/boards_legacy/arm/blackpill_f411ce/Kconfig.board create mode 100644 boards/weact/blackpill_f411ce/Kconfig.blackpill_f411ce rename boards/{boards_legacy/arm => weact}/blackpill_f411ce/Kconfig.defconfig (85%) rename boards/{boards_legacy/arm => weact}/blackpill_f411ce/blackpill_f411ce.dts (100%) rename boards/{boards_legacy/arm => weact}/blackpill_f411ce/blackpill_f411ce.yaml (100%) rename boards/{boards_legacy/arm => weact}/blackpill_f411ce/blackpill_f411ce_defconfig (86%) rename boards/{boards_legacy/arm => weact}/blackpill_f411ce/board.cmake (100%) create mode 100644 boards/weact/blackpill_f411ce/board.yml rename boards/{boards_legacy/arm => weact}/blackpill_f411ce/doc/img/Blackpill_Pinout.jpg (100%) rename boards/{boards_legacy/arm => weact}/blackpill_f411ce/doc/img/blackpill-v2.jpg (100%) rename boards/{boards_legacy/arm => weact}/blackpill_f411ce/doc/index.rst (100%) rename boards/{boards_legacy/arm => weact}/blackpill_f411ce/support/openocd.cfg (100%) diff --git a/boards/boards_legacy/arm/blackpill_f411ce/Kconfig.board b/boards/boards_legacy/arm/blackpill_f411ce/Kconfig.board deleted file mode 100644 index c636f2af74a..00000000000 --- a/boards/boards_legacy/arm/blackpill_f411ce/Kconfig.board +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2020 Brian Bradley -# SPDX-License-Identifier: Apache-2.0 - -# STM32F411CE based Black Pill V2.0+ board configuration - -config BOARD_BLACKPILL_F411CE - bool "WeAct Studio Black Pill V2.0+ Board" - depends on SOC_STM32F411XE diff --git a/boards/weact/blackpill_f411ce/Kconfig.blackpill_f411ce b/boards/weact/blackpill_f411ce/Kconfig.blackpill_f411ce new file mode 100644 index 00000000000..c6d1b632da1 --- /dev/null +++ b/boards/weact/blackpill_f411ce/Kconfig.blackpill_f411ce @@ -0,0 +1,5 @@ +# Copyright (c) 2020 Brian Bradley +# SPDX-License-Identifier: Apache-2.0 + +config BOARD_BLACKPILL_F411CE + select SOC_STM32F411XE diff --git a/boards/boards_legacy/arm/blackpill_f411ce/Kconfig.defconfig b/boards/weact/blackpill_f411ce/Kconfig.defconfig similarity index 85% rename from boards/boards_legacy/arm/blackpill_f411ce/Kconfig.defconfig rename to boards/weact/blackpill_f411ce/Kconfig.defconfig index e54fc87004e..a14284ed4c5 100644 --- a/boards/boards_legacy/arm/blackpill_f411ce/Kconfig.defconfig +++ b/boards/weact/blackpill_f411ce/Kconfig.defconfig @@ -5,9 +5,6 @@ if BOARD_BLACKPILL_F411CE -config BOARD - default "blackpill_f411ce" - config SPI_STM32_INTERRUPT default y depends on SPI diff --git a/boards/boards_legacy/arm/blackpill_f411ce/blackpill_f411ce.dts b/boards/weact/blackpill_f411ce/blackpill_f411ce.dts similarity index 100% rename from boards/boards_legacy/arm/blackpill_f411ce/blackpill_f411ce.dts rename to boards/weact/blackpill_f411ce/blackpill_f411ce.dts diff --git a/boards/boards_legacy/arm/blackpill_f411ce/blackpill_f411ce.yaml b/boards/weact/blackpill_f411ce/blackpill_f411ce.yaml similarity index 100% rename from boards/boards_legacy/arm/blackpill_f411ce/blackpill_f411ce.yaml rename to boards/weact/blackpill_f411ce/blackpill_f411ce.yaml diff --git a/boards/boards_legacy/arm/blackpill_f411ce/blackpill_f411ce_defconfig b/boards/weact/blackpill_f411ce/blackpill_f411ce_defconfig similarity index 86% rename from boards/boards_legacy/arm/blackpill_f411ce/blackpill_f411ce_defconfig rename to boards/weact/blackpill_f411ce/blackpill_f411ce_defconfig index 1c1d2d96925..8f08a2bfe96 100644 --- a/boards/boards_legacy/arm/blackpill_f411ce/blackpill_f411ce_defconfig +++ b/boards/weact/blackpill_f411ce/blackpill_f411ce_defconfig @@ -1,8 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -CONFIG_SOC_SERIES_STM32F4X=y -CONFIG_SOC_STM32F411XE=y - # Enable MPU CONFIG_ARM_MPU=y diff --git a/boards/boards_legacy/arm/blackpill_f411ce/board.cmake b/boards/weact/blackpill_f411ce/board.cmake similarity index 100% rename from boards/boards_legacy/arm/blackpill_f411ce/board.cmake rename to boards/weact/blackpill_f411ce/board.cmake diff --git a/boards/weact/blackpill_f411ce/board.yml b/boards/weact/blackpill_f411ce/board.yml new file mode 100644 index 00000000000..b145c5e7f01 --- /dev/null +++ b/boards/weact/blackpill_f411ce/board.yml @@ -0,0 +1,5 @@ +board: + name: blackpill_f411ce + vendor: weact + socs: + - name: stm32f411xe diff --git a/boards/boards_legacy/arm/blackpill_f411ce/doc/img/Blackpill_Pinout.jpg b/boards/weact/blackpill_f411ce/doc/img/Blackpill_Pinout.jpg similarity index 100% rename from boards/boards_legacy/arm/blackpill_f411ce/doc/img/Blackpill_Pinout.jpg rename to boards/weact/blackpill_f411ce/doc/img/Blackpill_Pinout.jpg diff --git a/boards/boards_legacy/arm/blackpill_f411ce/doc/img/blackpill-v2.jpg b/boards/weact/blackpill_f411ce/doc/img/blackpill-v2.jpg similarity index 100% rename from boards/boards_legacy/arm/blackpill_f411ce/doc/img/blackpill-v2.jpg rename to boards/weact/blackpill_f411ce/doc/img/blackpill-v2.jpg diff --git a/boards/boards_legacy/arm/blackpill_f411ce/doc/index.rst b/boards/weact/blackpill_f411ce/doc/index.rst similarity index 100% rename from boards/boards_legacy/arm/blackpill_f411ce/doc/index.rst rename to boards/weact/blackpill_f411ce/doc/index.rst diff --git a/boards/boards_legacy/arm/blackpill_f411ce/support/openocd.cfg b/boards/weact/blackpill_f411ce/support/openocd.cfg similarity index 100% rename from boards/boards_legacy/arm/blackpill_f411ce/support/openocd.cfg rename to boards/weact/blackpill_f411ce/support/openocd.cfg