boards: verdin_imx8mp: convert to HVMv2

Convert verdin_imx8mp to HWMv2. Only the M7 core of the iMX8MP is
currently supported

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse
2024-02-29 22:57:06 +00:00
committed by Jamie
parent f2eb7652ce
commit 8ea02f4e63
14 changed files with 35 additions and 34 deletions

View File

@@ -1,9 +0,0 @@
# VERDIN_IMX8MP_M7 board
# Copyright (c) 2023 Toradex
# SPDX-License-Identifier: Apache-2.0
config BOARD_VERDIN_IMX8MP_M7
bool "Toradex iMX8M Plus M7"
depends on SOC_SERIES_IMX8ML_M7
select SOC_PART_NUMBER_MIMX8ML8DVNLZ

View File

@@ -1,12 +1,9 @@
# VERDIN_IMX8MP_M7 board defconfig
# VERDIN_IMX8MP board defconfig
# Copyright (c) 2023 Toradex
# SPDX-License-Identifier: Apache-2.0
if BOARD_VERDIN_IMX8MP_M7
config BOARD
default "verdin_imx8mp_m7"
if BOARD_VERDIN_IMX8MP
if !XIP
config FLASH_SIZE
@@ -15,4 +12,4 @@ config FLASH_BASE_ADDRESS
default 0
endif
endif # BOARD_VERDIN_IMX8MP_M7
endif # BOARD_VERDIN_IMX8MP

View File

@@ -0,0 +1,9 @@
# VERDIN_IMX8MP board
# Copyright (c) 2023 Toradex
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0
config BOARD_VERDIN_IMX8MP
select SOC_MIMX8MP_M7 if BOARD_VERDIN_IMX8MP_MIMX8ML8_M7 || BOARD_VERDIN_IMX8MP_MIMX8ML8_M7_DDR
select SOC_PART_NUMBER_MIMX8ML8DVNLZ

View File

@@ -0,0 +1,8 @@
board:
name: verdin_imx8mp
vendor: toradex
socs:
- name: mimx8ml8
variants:
- name: ddr
cpucluster: m7

View File

@@ -1,4 +1,4 @@
.. _verdin_imx8mp_m7:
.. _verdin_imx8mp:
Toradex Verdin iMX8M Plus SoM
#############################
@@ -127,10 +127,10 @@ The Zephyr verdin_imx8mp_m7 board configuration supports the following hardware
The default configuration can be found in the defconfig file:
- :zephyr_file:`boards/arm/verdin_imx8mp_m7/verdin_imx8mp_m7_itcm_defconfig`, if you choose to use
- :zephyr_file:`boards/toradex/verdin_imx8mp/verdin_imx8mp_mimx8ml8_m7_defconfig`, if you choose to use
the ITCM memory.
- :zephyr_file:`boards/arm/verdin_imx8mp_m7/verdin_imx8mp_m7_ddr_defconfig`, if you choose to use
- :zephyr_file:`boards/toradex/verdin_imx8mp/verdin_imx8mp_mimx8ml8_m7_ddr_defconfig`, if you choose to use
the DDR memory.
It is recommended to disable peripherals used by the M7 core on the Linux host.
@@ -151,8 +151,8 @@ UART4 is used, WiFI/BT will not work properly.
If the WiFi/BT is needed, then another UART should be used for Zephyr (UART1 for example). You can
change the UART by changing the ``zephyr,console`` and ``zephyr,shell-uart`` in the
:zephyr_file:`boards/arm/verdin_imx8mp_m7_itcm.dts` or
:zephyr_file:`boards/arm/verdin_imx8mp_m7_ddr.dts` file.
:zephyr_file:`boards/toradex/verdin_imx8mp/verdin_imx8mp_mimx8ml8_m7.dts` or
:zephyr_file:`boards/toradex/verdin_imx8mp/verdin_imx8mp_mimx8ml8_m7_ddr.dts` file.
+---------------+-----------------+---------------------------+
| Board Name | SoC Name | Usage |
@@ -209,8 +209,8 @@ Manual`_ (section 2.1 to 2.3)
At compilation time you have to choose which RAM will be used. To facilitate this process, there are
two targets available:
- ``verdin_imx8mp_m7_itcm``, which uses the ITCM configuration.
- ``verdin_imx8mp_m7_ddr``, which uses the DDR configuration.
- ``verdin_imx8mp/mimx8ml8/m7``, which uses the ITCM configuration.
- ``verdin_imx8mp/mimx8ml8/m7/ddr``, which uses the DDR configuration.
Starting the Cortex-M7 via U-Boot
@@ -255,7 +255,7 @@ Here is an example for the :ref:`hello_world` application.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: verdin_imx8mp_m7_ddr
:board: verdin_imx8mp/mimx8ml8/m7/ddr
:goals: debug
Open a serial terminal, step through the application in your debugger, and you
@@ -264,7 +264,7 @@ should see the following message in the terminal:
.. code-block:: console
*** Booting Zephyr OS build zephyr-v3.4.0-2300-g03905f7e55d2 ***
Hello World! verdin_imx8mp_m7_ddr
Hello World! verdin_imx8mp
References
==========

View File

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 99 KiB

View File

@@ -7,7 +7,7 @@
/dts-v1/;
#include <nxp/nxp_imx8ml_m7.dtsi>
#include "verdin_imx8mp_m7-pinctrl.dtsi"
#include "verdin_imx8mp-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {

View File

@@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#
identifier: verdin_imx8mp_m7_itcm
identifier: verdin_imx8mp/mimx8ml8/m7
name: Toradex Verdin iMX8M Plus (ITCM)
type: mcu
arch: arm

View File

@@ -7,7 +7,7 @@
/dts-v1/;
#include <nxp/nxp_imx8ml_m7.dtsi>
#include "verdin_imx8mp_m7-pinctrl.dtsi"
#include "verdin_imx8mp-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {

View File

@@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#
identifier: verdin_imx8mp_m7_ddr
identifier: verdin_imx8mp/mimx8ml8/m7/ddr
name: Toradex Verdin iMX8M Plus (DDR)
type: mcu
arch: arm

View File

@@ -1,12 +1,10 @@
#
# Copyright (c) 2023 Toradex
# Copyright 2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SOC_SERIES_IMX8ML_M7=y
CONFIG_SOC_MIMX8ML8=y
CONFIG_BOARD_VERDIN_IMX8MP_M7=y
CONFIG_CLOCK_CONTROL=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y

View File

@@ -1,12 +1,10 @@
#
# Copyright (c) 2023 Toradex
# Copyright 2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SOC_SERIES_IMX8ML_M7=y
CONFIG_SOC_MIMX8ML8=y
CONFIG_BOARD_VERDIN_IMX8MP_M7=y
CONFIG_CLOCK_CONTROL=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y