Browse Source

boards: Convert arduino_portenta_h7 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 Carles Cufi
parent
commit
44bcfe57c7
  1. 2
      boards/arduino/arduino_portenta_h7/CMakeLists.txt
  2. 8
      boards/arduino/arduino_portenta_h7/Kconfig.arduino_portenta_h7
  3. 0
      boards/arduino/arduino_portenta_h7/arduino_portenta_h7-common.dtsi
  4. 0
      boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m4.dts
  5. 2
      boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m4.yaml
  6. 6
      boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m4_defconfig
  7. 0
      boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m7.dts
  8. 2
      boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m7.yaml
  9. 6
      boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m7_defconfig
  10. 0
      boards/arduino/arduino_portenta_h7/board.c
  11. 0
      boards/arduino/arduino_portenta_h7/board.cmake
  12. 5
      boards/arduino/arduino_portenta_h7/board.yml
  13. 0
      boards/arduino/arduino_portenta_h7/doc/img/arduino_portenta_h7.jpeg
  14. 8
      boards/arduino/arduino_portenta_h7/doc/index.rst
  15. 14
      boards/boards_legacy/arm/arduino_portenta_h7/Kconfig.board
  16. 12
      boards/boards_legacy/arm/arduino_portenta_h7/Kconfig.defconfig

2
boards/boards_legacy/arm/arduino_portenta_h7/CMakeLists.txt → boards/arduino/arduino_portenta_h7/CMakeLists.txt

@ -1,7 +1,7 @@
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>. # Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if(CONFIG_BOARD_ARDUINO_PORTENTA_H7_M7) if(CONFIG_BOARD_ARDUINO_PORTENTA_H7_STM32H747XX_M7)
zephyr_library() zephyr_library()
zephyr_library_sources(board.c) zephyr_library_sources(board.c)

8
boards/arduino/arduino_portenta_h7/Kconfig.arduino_portenta_h7

@ -0,0 +1,8 @@
# Arduino Portenta H7 board configuration
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>.
# SPDX-License-Identifier: Apache-2.0
config BOARD_ARDUINO_PORTENTA_H7
select SOC_STM32H747XX_M7 if BOARD_ARDUINO_PORTENTA_H7_STM32H747XX_M7
select SOC_STM32H747XX_M4 if BOARD_ARDUINO_PORTENTA_H7_STM32H747XX_M4

0
boards/boards_legacy/arm/arduino_portenta_h7/arduino_portenta_h7-common.dtsi → boards/arduino/arduino_portenta_h7/arduino_portenta_h7-common.dtsi

0
boards/boards_legacy/arm/arduino_portenta_h7/arduino_portenta_h7_m4.dts → boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m4.dts

2
boards/boards_legacy/arm/arduino_portenta_h7/arduino_portenta_h7_m4.yaml → boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m4.yaml

@ -1,4 +1,4 @@
identifier: arduino_portenta_h7_m4 identifier: arduino_portenta_h7/stm32h747xx/m4
name: Arduino Portenta H7 (M4) name: Arduino Portenta H7 (M4)
type: mcu type: mcu
arch: arm arch: arm

6
boards/boards_legacy/arm/arduino_portenta_h7/arduino_portenta_h7_m4_defconfig → boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m4_defconfig

@ -1,12 +1,6 @@
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>. # Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_STM32H7X=y
CONFIG_SOC_STM32H747XX=y
# Board config should be specified since there are 2 possible targets
CONFIG_BOARD_ARDUINO_PORTENTA_H7_M4=y
# Enable GPIO # Enable GPIO
CONFIG_GPIO=y CONFIG_GPIO=y

0
boards/boards_legacy/arm/arduino_portenta_h7/arduino_portenta_h7_m7.dts → boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m7.dts

2
boards/boards_legacy/arm/arduino_portenta_h7/arduino_portenta_h7_m7.yaml → boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m7.yaml

@ -1,4 +1,4 @@
identifier: arduino_portenta_h7_m7 identifier: arduino_portenta_h7/stm32h747xx/m7
name: Arduino Portenta H7 (M7) name: Arduino Portenta H7 (M7)
type: mcu type: mcu
arch: arm arch: arm

6
boards/boards_legacy/arm/arduino_portenta_h7/arduino_portenta_h7_m7_defconfig → boards/arduino/arduino_portenta_h7/arduino_portenta_h7_stm32h747xx_m7_defconfig

@ -1,12 +1,6 @@
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>. # Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_STM32H7X=y
CONFIG_SOC_STM32H747XX=y
# Board config should be specified since there are 2 possible targets
CONFIG_BOARD_ARDUINO_PORTENTA_H7_M7=y
# Enable the internal SMPS regulator # Enable the internal SMPS regulator
CONFIG_POWER_SUPPLY_DIRECT_SMPS=y CONFIG_POWER_SUPPLY_DIRECT_SMPS=y

0
boards/boards_legacy/arm/arduino_portenta_h7/board.c → boards/arduino/arduino_portenta_h7/board.c

0
boards/boards_legacy/arm/arduino_portenta_h7/board.cmake → boards/arduino/arduino_portenta_h7/board.cmake

5
boards/arduino/arduino_portenta_h7/board.yml

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

0
boards/boards_legacy/arm/arduino_portenta_h7/doc/img/arduino_portenta_h7.jpeg → boards/arduino/arduino_portenta_h7/doc/img/arduino_portenta_h7.jpeg

Before

Width:  |  Height:  |  Size: 177 KiB

After

Width:  |  Height:  |  Size: 177 KiB

8
boards/boards_legacy/arm/arduino_portenta_h7/doc/index.rst → boards/arduino/arduino_portenta_h7/doc/index.rst

@ -1,7 +1,7 @@
.. _arduino_portenta_h7_board: .. _arduino_portenta_h7_board:
Arduino Portenta H7 Arduino Portenta H7
####################### ###################
Overview Overview
******** ********
@ -103,7 +103,7 @@ Here is an example for the :ref:`hello_world` application.
.. zephyr-app-commands:: .. zephyr-app-commands::
:zephyr-app: samples/hello_world :zephyr-app: samples/hello_world
:board: arduino_portenta_h7_m7 :board: arduino_portenta_h7/stm32h747xx/m7
:goals: build flash :goals: build flash
Run a serial host program to connect with your board: Run a serial host program to connect with your board:
@ -116,7 +116,7 @@ You should see the following message on the console:
.. code-block:: console .. code-block:: console
Hello World! arduino_portenta_m7 Hello World! arduino_portenta_h7
Similarly, you can build and flash samples on the M4 target. For this, please Similarly, you can build and flash samples on the M4 target. For this, please
take care of the resource sharing (UART port used for console for instance). take care of the resource sharing (UART port used for console for instance).
@ -125,7 +125,7 @@ Here is an example for the :zephyr:code-sample:`blinky` application on M4 core.
.. zephyr-app-commands:: .. zephyr-app-commands::
:zephyr-app: samples/basic/blinky :zephyr-app: samples/basic/blinky
:board: arduino_portenta_h7_m4 :board: arduino_portenta_h7/stm32h747xx/m4
:goals: build flash :goals: build flash
.. _ARDUINO_PORTENTA_H7 website: .. _ARDUINO_PORTENTA_H7 website:

14
boards/boards_legacy/arm/arduino_portenta_h7/Kconfig.board

@ -1,14 +0,0 @@
# Arduino Portenta H7 board configuration
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>.
# SPDX-License-Identifier: Apache-2.0
config BOARD_ARDUINO_PORTENTA_H7_M7
bool "Arduino Portenta H7 Board"
depends on SOC_STM32H747XX
select CPU_CORTEX_M7
config BOARD_ARDUINO_PORTENTA_H7_M4
bool "Arduino Portenta H7 Board"
depends on SOC_STM32H747XX
select CPU_CORTEX_M4

12
boards/boards_legacy/arm/arduino_portenta_h7/Kconfig.defconfig

@ -1,12 +0,0 @@
# Arduino Portenta H7 board configuration
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>.
# SPDX-License-Identifier: Apache-2.0
if BOARD_ARDUINO_PORTENTA_H7_M7 || BOARD_ARDUINO_PORTENTA_H7_M4
config BOARD
default "arduino_portenta_h7_m7" if BOARD_ARDUINO_PORTENTA_H7_M7
default "arduino_portenta_h7_m4" if BOARD_ARDUINO_PORTENTA_H7_M4
endif # BOARD_ARDUINO_PORTENTA_H7_M7 || BOARD_ARDUINO_PORTENTA_H7_M4
Loading…
Cancel
Save