boards: Convert arduino_opta_m4 to HWM v2

Port the board to HWMv2.

Additionally, change the board name to arduino_opta
as the compilation target is now fully explicit on the
core in use.
Besides, it will ease a potential addition of the m7 core.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
Erwan Gouriou
2024-02-05 17:53:06 +01:00
committed by Carles Cufi
parent b4f852f738
commit 4c86af7eae
10 changed files with 15 additions and 26 deletions

View File

@@ -0,0 +1,5 @@
# Copyright (c) 2023 Felipe Neves
# SPDX-License-Identifier: Apache-2.0
config BOARD_ARDUINO_OPTA
select SOC_STM32H747XX_M4

View File

@@ -1,4 +1,4 @@
identifier: arduino_opta_m4
identifier: arduino_opta/stm32h747xx/m4
name: ARDUINO OPTA (M4)
type: mcu
arch: arm

View File

@@ -1,11 +1,6 @@
# Copyright (c) 2023 Felipe Neves
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_STM32H7X=y
CONFIG_SOC_STM32H747XX=y
CONFIG_BOARD_ARDUINO_OPTA_M4=y
# enable GPIO
CONFIG_GPIO=y

View File

@@ -0,0 +1,5 @@
board:
name: arduino_opta
vendor: arduino
socs:
- name: stm32h747xx

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -1,7 +1,7 @@
.. _arduino_opta_m4_board:
Arduino OPTA M4-Core
#######################
####################
Overview
********
@@ -63,7 +63,7 @@ The current Zephyr arduino_opta_m4 board configuration supports the following ha
Other hardware features are not yet supported on Zephyr porting.
The default configuration per core can be found in the defconfig files:
``boards/arm/arduino_opta_m4/arduino_opta_m4_defconfig``
:zephyr_file:`boards/arduino/arduino_opta/arduino_opta_m4_defconfig`
Pin Mapping
===========
@@ -107,7 +107,7 @@ two cores. This is done in 3 ways:
Programming and Debugging
*************************
Applications for the ``arduino_opta_m4`` use the regular Zephyr build commands.
Applications for the ``arduino_opta`` use the regular Zephyr build commands.
See :ref:`build_an_application` for more information about application builds.
Flashing
@@ -135,7 +135,7 @@ Here is an example for the :zephyr:code-sample:`blinky` application on M4 core.
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: arduino_opta_m4
:board: arduino_opta/stm32h747xx/m4
:goals: build flash
Starting the application on the ARDUINO OPTA M4

View File

@@ -1,7 +0,0 @@
# Copyright (c) 2023 Felipe Neves
# SPDX-License-Identifier: Apache-2.0
config BOARD_ARDUINO_OPTA_M4
bool "Arduino OPTA Programmable Logic Controller M4 Core"
depends on SOC_STM32H747XX
select CPU_CORTEX_M4

View File

@@ -1,9 +0,0 @@
# Copyright (c) 2023 Felipe Neves
# SPDX-License-Identifier: Apache-2.0
if BOARD_ARDUINO_OPTA_M4
config BOARD
default "arduino_opta_m4"
endif # BOARD_ARDUINO_OPTA_M4