From 9cf624c410d73f1eb2f74891b91a41b2a6c54d42 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Fri, 16 Feb 2024 09:37:59 +0100 Subject: [PATCH] boards: gd32vf103v_eval: port to HWMv2 Port the board to HWMv2. Signed-off-by: Gerard Marull-Paretas --- .../riscv/gd32vf103v_eval/Kconfig.defconfig | 9 --------- .../gd32vf103v_eval/Kconfig.gd32vf103v_eval} | 3 +-- .../riscv => gd}/gd32vf103v_eval/board.cmake | 0 boards/gd/gd32vf103v_eval/board.yml | 5 +++++ .../gd32vf103v_eval/doc/img/gd32vf103v_eval.jpg | Bin .../riscv => gd}/gd32vf103v_eval/doc/index.rst | 0 .../gd32vf103v_eval/gd32vf103v_eval-pinctrl.dtsi | 0 .../gd32vf103v_eval/gd32vf103v_eval.dts | 0 .../gd32vf103v_eval/gd32vf103v_eval.yaml | 0 .../gd32vf103v_eval/gd32vf103v_eval_defconfig | 4 ---- .../gd32vf103v_eval/support/openocd.cfg | 0 11 files changed, 6 insertions(+), 15 deletions(-) delete mode 100644 boards/boards_legacy/riscv/gd32vf103v_eval/Kconfig.defconfig rename boards/{boards_legacy/riscv/gd32vf103v_eval/Kconfig.board => gd/gd32vf103v_eval/Kconfig.gd32vf103v_eval} (65%) rename boards/{boards_legacy/riscv => gd}/gd32vf103v_eval/board.cmake (100%) create mode 100644 boards/gd/gd32vf103v_eval/board.yml rename boards/{boards_legacy/riscv => gd}/gd32vf103v_eval/doc/img/gd32vf103v_eval.jpg (100%) rename boards/{boards_legacy/riscv => gd}/gd32vf103v_eval/doc/index.rst (100%) rename boards/{boards_legacy/riscv => gd}/gd32vf103v_eval/gd32vf103v_eval-pinctrl.dtsi (100%) rename boards/{boards_legacy/riscv => gd}/gd32vf103v_eval/gd32vf103v_eval.dts (100%) rename boards/{boards_legacy/riscv => gd}/gd32vf103v_eval/gd32vf103v_eval.yaml (100%) rename boards/{boards_legacy/riscv => gd}/gd32vf103v_eval/gd32vf103v_eval_defconfig (68%) rename boards/{boards_legacy/riscv => gd}/gd32vf103v_eval/support/openocd.cfg (100%) diff --git a/boards/boards_legacy/riscv/gd32vf103v_eval/Kconfig.defconfig b/boards/boards_legacy/riscv/gd32vf103v_eval/Kconfig.defconfig deleted file mode 100644 index e3c8b4150f7..00000000000 --- a/boards/boards_legacy/riscv/gd32vf103v_eval/Kconfig.defconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2021 Teslabs Engineering S.L. -# SPDX-License-Identifier: Apache-2.0 - -if BOARD_GD32VF103V_EVAL - -config BOARD - default "gd32vf103v_eval" - -endif # BOARD_GD32VF103V_EVAL diff --git a/boards/boards_legacy/riscv/gd32vf103v_eval/Kconfig.board b/boards/gd/gd32vf103v_eval/Kconfig.gd32vf103v_eval similarity index 65% rename from boards/boards_legacy/riscv/gd32vf103v_eval/Kconfig.board rename to boards/gd/gd32vf103v_eval/Kconfig.gd32vf103v_eval index 1893adae071..77de39c9612 100644 --- a/boards/boards_legacy/riscv/gd32vf103v_eval/Kconfig.board +++ b/boards/gd/gd32vf103v_eval/Kconfig.gd32vf103v_eval @@ -2,5 +2,4 @@ # SPDX-License-Identifier: Apache-2.0 config BOARD_GD32VF103V_EVAL - bool "GigaDevice GD32VF103V-EVAL" - depends on SOC_GD32VF103 + select SOC_GD32VF103 diff --git a/boards/boards_legacy/riscv/gd32vf103v_eval/board.cmake b/boards/gd/gd32vf103v_eval/board.cmake similarity index 100% rename from boards/boards_legacy/riscv/gd32vf103v_eval/board.cmake rename to boards/gd/gd32vf103v_eval/board.cmake diff --git a/boards/gd/gd32vf103v_eval/board.yml b/boards/gd/gd32vf103v_eval/board.yml new file mode 100644 index 00000000000..5d970642f36 --- /dev/null +++ b/boards/gd/gd32vf103v_eval/board.yml @@ -0,0 +1,5 @@ +board: + name: gd32vf103v_eval + vendor: GigaDevice Semiconductor + socs: + - name: gd32vf103 diff --git a/boards/boards_legacy/riscv/gd32vf103v_eval/doc/img/gd32vf103v_eval.jpg b/boards/gd/gd32vf103v_eval/doc/img/gd32vf103v_eval.jpg similarity index 100% rename from boards/boards_legacy/riscv/gd32vf103v_eval/doc/img/gd32vf103v_eval.jpg rename to boards/gd/gd32vf103v_eval/doc/img/gd32vf103v_eval.jpg diff --git a/boards/boards_legacy/riscv/gd32vf103v_eval/doc/index.rst b/boards/gd/gd32vf103v_eval/doc/index.rst similarity index 100% rename from boards/boards_legacy/riscv/gd32vf103v_eval/doc/index.rst rename to boards/gd/gd32vf103v_eval/doc/index.rst diff --git a/boards/boards_legacy/riscv/gd32vf103v_eval/gd32vf103v_eval-pinctrl.dtsi b/boards/gd/gd32vf103v_eval/gd32vf103v_eval-pinctrl.dtsi similarity index 100% rename from boards/boards_legacy/riscv/gd32vf103v_eval/gd32vf103v_eval-pinctrl.dtsi rename to boards/gd/gd32vf103v_eval/gd32vf103v_eval-pinctrl.dtsi diff --git a/boards/boards_legacy/riscv/gd32vf103v_eval/gd32vf103v_eval.dts b/boards/gd/gd32vf103v_eval/gd32vf103v_eval.dts similarity index 100% rename from boards/boards_legacy/riscv/gd32vf103v_eval/gd32vf103v_eval.dts rename to boards/gd/gd32vf103v_eval/gd32vf103v_eval.dts diff --git a/boards/boards_legacy/riscv/gd32vf103v_eval/gd32vf103v_eval.yaml b/boards/gd/gd32vf103v_eval/gd32vf103v_eval.yaml similarity index 100% rename from boards/boards_legacy/riscv/gd32vf103v_eval/gd32vf103v_eval.yaml rename to boards/gd/gd32vf103v_eval/gd32vf103v_eval.yaml diff --git a/boards/boards_legacy/riscv/gd32vf103v_eval/gd32vf103v_eval_defconfig b/boards/gd/gd32vf103v_eval/gd32vf103v_eval_defconfig similarity index 68% rename from boards/boards_legacy/riscv/gd32vf103v_eval/gd32vf103v_eval_defconfig rename to boards/gd/gd32vf103v_eval/gd32vf103v_eval_defconfig index 078392eed2a..e34c644b264 100644 --- a/boards/boards_legacy/riscv/gd32vf103v_eval/gd32vf103v_eval_defconfig +++ b/boards/gd/gd32vf103v_eval/gd32vf103v_eval_defconfig @@ -1,10 +1,6 @@ # Copyright (c) 2021, Teslabs Engineering S.L. # SPDX-License-Identifier: Apache-2.0 -CONFIG_SOC_SERIES_GD32VF103=y -CONFIG_SOC_GD32VF103=y -CONFIG_BOARD_GD32VF103V_EVAL=y - CONFIG_GD32_HXTAL_8MHZ=y CONFIG_GPIO=y diff --git a/boards/boards_legacy/riscv/gd32vf103v_eval/support/openocd.cfg b/boards/gd/gd32vf103v_eval/support/openocd.cfg similarity index 100% rename from boards/boards_legacy/riscv/gd32vf103v_eval/support/openocd.cfg rename to boards/gd/gd32vf103v_eval/support/openocd.cfg