Browse Source

boards: Convert stm32_min_dev to HWM v2

Port the board to HWMv2.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
pull/69687/head
Erwan Gouriou 1 year ago committed by Jamie McCrae
parent
commit
86ab2bd430
  1. 12
      boards/arm/stm32_min_dev/Kconfig.board
  2. 12
      boards/arm/stm32_min_dev/Kconfig.defconfig
  3. 15
      boards/arm/stm32_min_dev/stm32_min_dev_blue.yaml
  4. 20
      boards/arm/stm32_min_dev/stm32_min_dev_blue_defconfig
  5. 7
      boards/v2/others/stm32_min_dev/Kconfig.stm32_min_dev
  6. 0
      boards/v2/others/stm32_min_dev/board.cmake
  7. 7
      boards/v2/others/stm32_min_dev/board.yml
  8. 0
      boards/v2/others/stm32_min_dev/doc/img/stm32_min_dev.jpg
  9. 0
      boards/v2/others/stm32_min_dev/doc/img/stm32_min_dev_pinout_blue.jpg
  10. 8
      boards/v2/others/stm32_min_dev/doc/index.rst
  11. 8
      boards/v2/others/stm32_min_dev/revision.cmake
  12. 0
      boards/v2/others/stm32_min_dev/stm32_min_dev.dts
  13. 5
      boards/v2/others/stm32_min_dev/stm32_min_dev.yaml
  14. 4
      boards/v2/others/stm32_min_dev/stm32_min_dev_defconfig
  15. 3
      boards/v2/others/stm32_min_dev/stm32_min_dev_stm32f103xb_black.overlay
  16. 3
      boards/v2/others/stm32_min_dev/stm32_min_dev_stm32f103xb_blue.overlay
  17. 0
      boards/v2/others/stm32_min_dev/support/openocd.cfg
  18. 2
      samples/subsys/mgmt/osdp/control_panel/sample.yaml
  19. 2
      samples/subsys/mgmt/osdp/peripheral_device/sample.yaml
  20. 3
      tests/kernel/gen_isr_table/testcase.yaml

12
boards/arm/stm32_min_dev/Kconfig.board

@ -1,12 +0,0 @@
# STM32 Minimum Development Board Configuration
# Copyright (c) 2017, embedjournal.com
# SPDX-License-Identifier: Apache-2.0
config BOARD_STM32_MIN_DEV_BLUE
bool "STM32 Minimum Development Board (Blue)"
depends on SOC_STM32F103X8
config BOARD_STM32_MIN_DEV_BLACK
bool "STM32 Minimum Development Board (Black)"
depends on SOC_STM32F103X8

12
boards/arm/stm32_min_dev/Kconfig.defconfig

@ -1,12 +0,0 @@
# STM32 Minimum Development Board Configuration
# Copyright (c) 2017, embedjournal.com
# SPDX-License-Identifier: Apache-2.0
if BOARD_STM32_MIN_DEV_BLUE || BOARD_STM32_MIN_DEV_BLACK
config BOARD
default "stm32_min_dev_blue" if BOARD_STM32_MIN_DEV_BLUE
default "stm32_min_dev_black" if BOARD_STM32_MIN_DEV_BLACK
endif # BOARD_STM32_MIN_DEV_BLUE || BOARD_STM32_MIN_DEV_BLACK

15
boards/arm/stm32_min_dev/stm32_min_dev_blue.yaml

@ -1,15 +0,0 @@
identifier: stm32_min_dev_blue
name: STM32 Minimum Development Board (Blue)
type: mcu
arch: arm
toolchain:
- zephyr
- gnuarmemb
- xtools
ram: 20
supported:
- i2c
- pwm
- spi
- adc
vendor: st

20
boards/arm/stm32_min_dev/stm32_min_dev_blue_defconfig

@ -1,20 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_STM32F1X=y
CONFIG_SOC_STM32F103X8=y
# enable uart driver
CONFIG_SERIAL=y
# enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
# enable GPIO
CONFIG_GPIO=y
# enable clock control
CONFIG_CLOCK_CONTROL=y
# enable pin controller
CONFIG_PINCTRL=y

7
boards/v2/others/stm32_min_dev/Kconfig.stm32_min_dev

@ -0,0 +1,7 @@
# STM32 Minimum Development Board Configuration
# Copyright (c) 2017, embedjournal.com
# SPDX-License-Identifier: Apache-2.0
config BOARD_STM32_MIN_DEV
select SOC_STM32F103X8

0
boards/arm/stm32_min_dev/board.cmake → boards/v2/others/stm32_min_dev/board.cmake

7
boards/v2/others/stm32_min_dev/board.yml

@ -0,0 +1,7 @@
board:
name: stm32_min_dev
vendor: others
revision:
format: custom
socs:
- name: stm32f103xb

0
boards/arm/stm32_min_dev/doc/img/stm32_min_dev.jpg → boards/v2/others/stm32_min_dev/doc/img/stm32_min_dev.jpg

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

0
boards/arm/stm32_min_dev/doc/img/stm32_min_dev_pinout_blue.jpg → boards/v2/others/stm32_min_dev/doc/img/stm32_min_dev_pinout_blue.jpg

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

8
boards/arm/stm32_min_dev/doc/index.rst → boards/v2/others/stm32_min_dev/doc/index.rst

@ -13,7 +13,7 @@ are two variants of the board:
- Blue Pill Board - Blue Pill Board
- Black Pill Board - Black Pill Board
Zephyr applications can use the stm32_min_dev_blue or stm32_min_dev_black board Zephyr applications can use the stm32_min_dev@blue or stm32_min_dev@black board
configuration to use these boards. configuration to use these boards.
.. figure:: img/stm32_min_dev.jpg .. figure:: img/stm32_min_dev.jpg
@ -154,7 +154,7 @@ variants respectively.
Programming and Debugging Programming and Debugging
************************* *************************
Applications for the ``stm32_min_dev_(blue|black)`` board configuration can be Applications for the ``stm32_min_dev@(blue|black)`` board configuration can be
built and flashed in the usual way (see :ref:`build_an_application` and built and flashed in the usual way (see :ref:`build_an_application` and
:ref:`application_run` for more details). :ref:`application_run` for more details).
@ -165,7 +165,7 @@ Here is an example for the :zephyr:code-sample:`blinky` application.
.. zephyr-app-commands:: .. zephyr-app-commands::
:zephyr-app: samples/basic/blinky :zephyr-app: samples/basic/blinky
:board: stm32_min_dev_blue :board: stm32_min_dev
:goals: build flash :goals: build flash
Debugging Debugging
@ -176,7 +176,7 @@ You can debug an application in the usual way. Here is an example for the
.. zephyr-app-commands:: .. zephyr-app-commands::
:zephyr-app: samples/hello_world :zephyr-app: samples/hello_world
:board: stm32_min_dev_blue :board: stm32_min_dev
:maybe-skip-config: :maybe-skip-config:
:goals: debug :goals: debug

8
boards/v2/others/stm32_min_dev/revision.cmake

@ -0,0 +1,8 @@
set(LEGEND_REVISIONS "blue" "black")
if (NOT DEFINED BOARD_REVISION)
set(BOARD_REVISION "blue")
else()
if (NOT BOARD_REVISION IN_LIST LEGEND_REVISIONS)
message(FATAL_ERROR "${BOARD_REVISION} is not a valid revision for Legend. Accepted revisions: ${LEGEND_REVISIONS}")
endif()
endif()

0
boards/arm/stm32_min_dev/stm32_min_dev.dtsi → boards/v2/others/stm32_min_dev/stm32_min_dev.dts

5
boards/arm/stm32_min_dev/stm32_min_dev_black.yaml → boards/v2/others/stm32_min_dev/stm32_min_dev.yaml

@ -1,5 +1,5 @@
identifier: stm32_min_dev_black identifier: stm32_min_dev
name: STM32 Minimum Development Board (Black) name: STM32 Minimum Development Board
type: mcu type: mcu
arch: arm arch: arm
toolchain: toolchain:
@ -13,4 +13,3 @@ supported:
- spi - spi
- adc - adc
- gpio - gpio
vendor: st

4
boards/arm/stm32_min_dev/stm32_min_dev_black_defconfig → boards/v2/others/stm32_min_dev/stm32_min_dev_defconfig

@ -3,10 +3,6 @@
# Copyright (c) 2019, embedjournal.com # Copyright (c) 2019, embedjournal.com
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
#
CONFIG_SOC_SERIES_STM32F1X=y
CONFIG_SOC_STM32F103X8=y
# enable uart driver # enable uart driver
CONFIG_SERIAL=y CONFIG_SERIAL=y

3
boards/arm/stm32_min_dev/stm32_min_dev_black.dts → boards/v2/others/stm32_min_dev/stm32_min_dev_stm32f103xb_black.overlay

@ -4,9 +4,6 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
/dts-v1/;
#include "stm32_min_dev.dtsi"
/ { / {
model = "STM32 Minimum Development Board (Black)"; model = "STM32 Minimum Development Board (Black)";
compatible = "stm32_min_dev_black", "st,stm32f103c8"; compatible = "stm32_min_dev_black", "st,stm32f103c8";

3
boards/arm/stm32_min_dev/stm32_min_dev_blue.dts → boards/v2/others/stm32_min_dev/stm32_min_dev_stm32f103xb_blue.overlay

@ -4,9 +4,6 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
/dts-v1/;
#include "stm32_min_dev.dtsi"
/ { / {
model = "STM32 Minimum Development Board (Blue)"; model = "STM32 Minimum Development Board (Blue)";
compatible = "stm32_min_dev_blue", "st,stm32f103c8"; compatible = "stm32_min_dev_blue", "st,stm32f103c8";

0
boards/arm/stm32_min_dev/support/openocd.cfg → boards/v2/others/stm32_min_dev/support/openocd.cfg

2
samples/subsys/mgmt/osdp/control_panel/sample.yaml

@ -8,7 +8,7 @@ common:
dt_chosen_enabled("zephyr,osdp-uart") and CONFIG_SERIAL dt_chosen_enabled("zephyr,osdp-uart") and CONFIG_SERIAL
harness: osdp harness: osdp
integration_platforms: integration_platforms:
- stm32_min_dev_black - stm32_min_dev
tests: tests:
sample.mgmt.osdp.control_panel: sample.mgmt.osdp.control_panel:
extra_args: CONF_FILE=prj.conf extra_args: CONF_FILE=prj.conf

2
samples/subsys/mgmt/osdp/peripheral_device/sample.yaml

@ -8,7 +8,7 @@ common:
dt_chosen_enabled("zephyr,osdp-uart") and CONFIG_SERIAL dt_chosen_enabled("zephyr,osdp-uart") and CONFIG_SERIAL
harness: osdp harness: osdp
integration_platforms: integration_platforms:
- stm32_min_dev_black - stm32_min_dev
tests: tests:
sample.mgmt.osdp.peripheral_device: sample.mgmt.osdp.peripheral_device:
extra_args: CONF_FILE=prj.conf extra_args: CONF_FILE=prj.conf

3
tests/kernel/gen_isr_table/testcase.yaml

@ -23,8 +23,7 @@ tests:
- stmf103_mini - stmf103_mini
- nucleo_f103rb - nucleo_f103rb
- olimexino_stm32 - olimexino_stm32
- stm32_min_dev_black - stm32_min_dev
- stm32_min_dev_blue
- usb_kw24d512 - usb_kw24d512
- v2m_beetle - v2m_beetle
- cc1352r1_launchxl - cc1352r1_launchxl

Loading…
Cancel
Save