From 96183b1a0c07ea69dc2ae915444486762ac7ea82 Mon Sep 17 00:00:00 2001 From: Guillaume Gautier Date: Thu, 8 Feb 2024 09:02:49 +0100 Subject: [PATCH] boards: Convert nucleo_c031c6 to HWM v2 Port the board to HWMv2. Signed-off-by: Guillaume Gautier --- .../boards_legacy/arm/nucleo_c031c6/Kconfig.board | 8 -------- .../arm/nucleo_c031c6/Kconfig.defconfig | 11 ----------- boards/st/nucleo_c031c6/Kconfig.nucleo_c031c6 | 5 +++++ .../nucleo_c031c6/arduino_r3_connector.dtsi | 0 .../arm => st}/nucleo_c031c6/board.cmake | 0 boards/st/nucleo_c031c6/board.yml | 5 +++++ .../nucleo_c031c6/doc/img/nucleo_c031c6.jpg | Bin .../arm => st}/nucleo_c031c6/doc/index.rst | 0 .../arm => st}/nucleo_c031c6/nucleo_c031c6.dts | 0 .../arm => st}/nucleo_c031c6/nucleo_c031c6.yaml | 0 .../nucleo_c031c6/nucleo_c031c6_defconfig | 6 ------ 11 files changed, 10 insertions(+), 25 deletions(-) delete mode 100644 boards/boards_legacy/arm/nucleo_c031c6/Kconfig.board delete mode 100644 boards/boards_legacy/arm/nucleo_c031c6/Kconfig.defconfig create mode 100644 boards/st/nucleo_c031c6/Kconfig.nucleo_c031c6 rename boards/{boards_legacy/arm => st}/nucleo_c031c6/arduino_r3_connector.dtsi (100%) rename boards/{boards_legacy/arm => st}/nucleo_c031c6/board.cmake (100%) create mode 100644 boards/st/nucleo_c031c6/board.yml rename boards/{boards_legacy/arm => st}/nucleo_c031c6/doc/img/nucleo_c031c6.jpg (100%) rename boards/{boards_legacy/arm => st}/nucleo_c031c6/doc/index.rst (100%) rename boards/{boards_legacy/arm => st}/nucleo_c031c6/nucleo_c031c6.dts (100%) rename boards/{boards_legacy/arm => st}/nucleo_c031c6/nucleo_c031c6.yaml (100%) rename boards/{boards_legacy/arm => st}/nucleo_c031c6/nucleo_c031c6_defconfig (71%) diff --git a/boards/boards_legacy/arm/nucleo_c031c6/Kconfig.board b/boards/boards_legacy/arm/nucleo_c031c6/Kconfig.board deleted file mode 100644 index 7cc977547553..000000000000 --- a/boards/boards_legacy/arm/nucleo_c031c6/Kconfig.board +++ /dev/null @@ -1,8 +0,0 @@ -# STM32 Nucleo-64 development board with STM32C031C6 MCU configuration - -# Copyright (c) 2023 Benjamin Björnsson -# SPDX-License-Identifier: Apache-2.0 - -config BOARD_NUCLEO_C031C6 - bool "NUCLEO-64 C031C6 Development Board" - depends on SOC_STM32C031XX diff --git a/boards/boards_legacy/arm/nucleo_c031c6/Kconfig.defconfig b/boards/boards_legacy/arm/nucleo_c031c6/Kconfig.defconfig deleted file mode 100644 index acaa8c977eb4..000000000000 --- a/boards/boards_legacy/arm/nucleo_c031c6/Kconfig.defconfig +++ /dev/null @@ -1,11 +0,0 @@ -# STM32 Nucleo-64 development board with STM32C031C6 MCU - -# Copyright (c) 2023 Benjamin Björnsson -# SPDX-License-Identifier: Apache-2.0 - -if BOARD_NUCLEO_C031C6 - -config BOARD - default "nucleo_c031c6" - -endif # BOARD_NUCLEO_C031C6 diff --git a/boards/st/nucleo_c031c6/Kconfig.nucleo_c031c6 b/boards/st/nucleo_c031c6/Kconfig.nucleo_c031c6 new file mode 100644 index 000000000000..839f9916405a --- /dev/null +++ b/boards/st/nucleo_c031c6/Kconfig.nucleo_c031c6 @@ -0,0 +1,5 @@ +# Copyright (c) 2023 Benjamin Björnsson +# SPDX-License-Identifier: Apache-2.0 + +config BOARD_NUCLEO_C031C6 + select SOC_STM32C031XX diff --git a/boards/boards_legacy/arm/nucleo_c031c6/arduino_r3_connector.dtsi b/boards/st/nucleo_c031c6/arduino_r3_connector.dtsi similarity index 100% rename from boards/boards_legacy/arm/nucleo_c031c6/arduino_r3_connector.dtsi rename to boards/st/nucleo_c031c6/arduino_r3_connector.dtsi diff --git a/boards/boards_legacy/arm/nucleo_c031c6/board.cmake b/boards/st/nucleo_c031c6/board.cmake similarity index 100% rename from boards/boards_legacy/arm/nucleo_c031c6/board.cmake rename to boards/st/nucleo_c031c6/board.cmake diff --git a/boards/st/nucleo_c031c6/board.yml b/boards/st/nucleo_c031c6/board.yml new file mode 100644 index 000000000000..37d48de4d52d --- /dev/null +++ b/boards/st/nucleo_c031c6/board.yml @@ -0,0 +1,5 @@ +board: + name: nucleo_c031c6 + vendor: st + socs: + - name: stm32c031xx diff --git a/boards/boards_legacy/arm/nucleo_c031c6/doc/img/nucleo_c031c6.jpg b/boards/st/nucleo_c031c6/doc/img/nucleo_c031c6.jpg similarity index 100% rename from boards/boards_legacy/arm/nucleo_c031c6/doc/img/nucleo_c031c6.jpg rename to boards/st/nucleo_c031c6/doc/img/nucleo_c031c6.jpg diff --git a/boards/boards_legacy/arm/nucleo_c031c6/doc/index.rst b/boards/st/nucleo_c031c6/doc/index.rst similarity index 100% rename from boards/boards_legacy/arm/nucleo_c031c6/doc/index.rst rename to boards/st/nucleo_c031c6/doc/index.rst diff --git a/boards/boards_legacy/arm/nucleo_c031c6/nucleo_c031c6.dts b/boards/st/nucleo_c031c6/nucleo_c031c6.dts similarity index 100% rename from boards/boards_legacy/arm/nucleo_c031c6/nucleo_c031c6.dts rename to boards/st/nucleo_c031c6/nucleo_c031c6.dts diff --git a/boards/boards_legacy/arm/nucleo_c031c6/nucleo_c031c6.yaml b/boards/st/nucleo_c031c6/nucleo_c031c6.yaml similarity index 100% rename from boards/boards_legacy/arm/nucleo_c031c6/nucleo_c031c6.yaml rename to boards/st/nucleo_c031c6/nucleo_c031c6.yaml diff --git a/boards/boards_legacy/arm/nucleo_c031c6/nucleo_c031c6_defconfig b/boards/st/nucleo_c031c6/nucleo_c031c6_defconfig similarity index 71% rename from boards/boards_legacy/arm/nucleo_c031c6/nucleo_c031c6_defconfig rename to boards/st/nucleo_c031c6/nucleo_c031c6_defconfig index c955a55e0e45..1a570d28d132 100644 --- a/boards/boards_legacy/arm/nucleo_c031c6/nucleo_c031c6_defconfig +++ b/boards/st/nucleo_c031c6/nucleo_c031c6_defconfig @@ -1,11 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -# Zephyr Kernel Configuration -CONFIG_SOC_SERIES_STM32C0X=y - -# Platform Configuration -CONFIG_SOC_STM32C031XX=y - # Serial Drivers CONFIG_SERIAL=y CONFIG_UART_INTERRUPT_DRIVEN=y