Skip to content

Commit

Permalink
boards: nxp: convert mimxrt595_evk to hardware model v2
Browse files Browse the repository at this point in the history
Convert mimxrt595_evk to hardware model v2. Both the CM33 and Fusion F1
DSP devicetrees are moved to reside in the same board folder

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
  • Loading branch information
danieldegrasse committed Feb 27, 2024
1 parent cf5d190 commit b34d496
Show file tree
Hide file tree
Showing 63 changed files with 67 additions and 84 deletions.
8 changes: 0 additions & 8 deletions boards/boards_legacy/arm/mimxrt595_evk/Kconfig

This file was deleted.

9 changes: 0 additions & 9 deletions boards/boards_legacy/arm/mimxrt595_evk/Kconfig.board

This file was deleted.

6 changes: 0 additions & 6 deletions boards/boards_legacy/xtensa/nxp_adsp_rt595/Kconfig.board

This file was deleted.

9 changes: 0 additions & 9 deletions boards/boards_legacy/xtensa/nxp_adsp_rt595/Kconfig.defconfig

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
# SPDX-License-Identifier: Apache-2.0
#

zephyr_library()
zephyr_library_sources(board.c)
zephyr_library_include_directories(.)
if(CONFIG_BOARD_MIMXRT595_EVK_MIMXRT595S_CM33)
zephyr_library()
zephyr_library_sources(board.c)
zephyr_library_include_directories(.)
endif()

if(CONFIG_NXP_IMX_RT5XX_BOOT_HEADER)
if(NOT DEFINED CONFIG_BOARD_MIMXRT595_EVK)
if(CONFIG_NXP_IMXRT_BOOT_HEADER)
if(NOT DEFINED CONFIG_BOARD_MIMXRT595_EVK_MIMXRT595S_CM33)
message(WARNING "It appears you are using the board definition for "
"the MIMXRT595-EVK, but targeting a custom board. You may need to "
"update your flash configuration block data")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Copyright 2022, NXP
# Copyright (c) 2023 Google LLC.
# SPDX-License-Identifier: Apache-2.0

config BOARD_INIT_PRIORITY
int "Board initialization priority"
default 45
help
Board initialization priority.

DT_ADSP_RESET_MEM := $(dt_nodelabel_path,adsp_reset)
DT_ADSP_DATA_MEM := $(dt_nodelabel_path,adsp_data)
DT_ADSP_TEXT_MEM := $(dt_nodelabel_path,adsp_text)

if BOARD_NXP_ADSP_RT595
if BOARD_MIMXRT595_EVK_MIMXRT595S_F1

config RT595_ADSP_STACK_SIZE
hex "Boot time stack size"
Expand Down Expand Up @@ -38,4 +45,4 @@ config RT595_ADSP_TEXT_MEM_SIZE
hex
default $(dt_node_reg_size_hex,$(DT_ADSP_TEXT_MEM))

endif # BOARD_NXP_ADSP_RT595
endif # BOARD_MIMXRT595_EVK_RT595_F1
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
# Copyright 2022-2023, NXP
# SPDX-License-Identifier: Apache-2.0

if BOARD_MIMXRT595_EVK

config BOARD
default "mimxrt595_evk_cm33"
if BOARD_MIMXRT595_EVK_MIMXRT595S_CM33

config FLASH_MCUX_FLEXSPI_MX25UM51345G
default y if FLASH
Expand Down Expand Up @@ -39,4 +36,4 @@ config PM_DEVICE
config REGULATOR
default y if PM || POWEROFF

endif # BOARD_MIMXRT595_EVK
endif # BOARD_MIMXRT595_EVK_MIMXRT595S_CM33
10 changes: 10 additions & 0 deletions boards/nxp/mimxrt595_evk/Kconfig.mimxrt595_evk
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Copyright 2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#

config BOARD_MIMXRT595_EVK
select SOC_PART_NUMBER_MIMXRT595SFFOC
select SOC_MIMXRT595S_CM33 if BOARD_MIMXRT595_EVK_MIMXRT595S_CM33
select SOC_MIMXRT595S_F1 if BOARD_MIMXRT595_EVK_MIMXRT595S_F1
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions boards/nxp/mimxrt595_evk/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: mimxrt595_evk
vendor: nxp
socs:
- name: mimxrt595s
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ already supported, which can also be re-used on this mimxrt595_evk board:

The default configuration can be found in the defconfig file:

``boards/arm/mimxrt595_evk/mimxrt595_evk_cm33_defconfig``
:zephyr_file:`boards/nxp/mimxrt595_evk/mimxrt595_evk_mimxrt595s_cm33_defconfig`

Other hardware features are not currently supported by the port.

Expand Down Expand Up @@ -179,13 +179,13 @@ configured as USART for the console and the remaining are not used.
Fusion F1 DSP Core
==================

You can build a Zephyr application for the RT500 DSP core using nxp_adsp_rt595
board. Xtensa toolchain supporting RT500 DSP core is included in Zephyr SDK.
You can build a Zephyr application for the RT500 DSP core by targeting the F1
SOC. Xtensa toolchain supporting RT500 DSP core is included in Zephyr SDK.
To build the hello_world sample for the RT500 DSP core:

.. code-block:: shell
$ west build -b nxp_adsp_rt595 samples/hello_world
$ west build -b mimxrt595_evk/mimxrt595s/f1 samples/hello_world
For detailed instructions on how to debug DSP firmware, please refer to
this document: `Getting Started with Xplorer for EVK-MIMXRT595`_
Expand Down Expand Up @@ -249,7 +249,7 @@ Here is an example for the :ref:`hello_world` application. This example uses the

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt595_evk_cm33
:board: mimxrt595_evk/mimxrt595s/cm33
:goals: flash

Open a serial terminal, reset the board (press the RESET button), and you should
Expand All @@ -258,7 +258,7 @@ see the following message in the terminal:
.. code-block:: console
*** Booting Zephyr OS v2.7 ***
Hello World! mimxrt595_evk_cm33
Hello World! mimxrt595_evk
Debugging
=========
Expand All @@ -268,7 +268,7 @@ Here is an example for the :ref:`hello_world` application. This example uses the

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt595_evk_cm33
:board: mimxrt595_evk/mimxrt595s/cm33
:goals: debug

Open a serial terminal, step through the application in your debugger, and you
Expand All @@ -277,7 +277,7 @@ should see the following message in the terminal:
.. code-block:: console
*** Booting Zephyr OS v2.7 ***
Hello World! mimxrt595_evk_cm33
Hello World! mimxrt595_evk
Troubleshooting
===============
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <nxp/nxp_rt5xx.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>

#include "mimxrt595_evk_cm33-pinctrl.dtsi"
#include "mimxrt595_evk_mimxrt595s_cm33-pinctrl.dtsi"


/ {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#

identifier: mimxrt595_evk_cm33
identifier: mimxrt595_evk/mimxrt595s/cm33
name: NXP MIMXRT595-EVK
type: mcu
arch: arm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#
# Copyright 2022, NXP
# Copyright 2022,2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#

CONFIG_SOC_MIMXRT595S_CM33=y
CONFIG_SOC_SERIES_IMX_RT5XX=y
CONFIG_BOARD_MIMXRT595_EVK=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
identifier: nxp_adsp_rt595
name: i.MXRT595 DSP
identifier: mimxrt595_evk/mimxrt595s/f1
name: i.MXRT595 Fusion F1 DSP
type: mcu
arch: xtensa
toolchain:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
CONFIG_SOC_SERIES_NXP_RT5XX=y
CONFIG_SOC_NXP_RT595=y
CONFIG_BOARD_NXP_ADSP_RT595=y

CONFIG_GEN_ISR_TABLES=y
CONFIG_GEN_IRQ_VECTOR_TABLE=n
CONFIG_XTENSA_SMALL_VECTOR_TABLE_ENTRY=y
CONFIG_NXP_IMXRT_BOOT_HEADER=n
File renamed without changes.
2 changes: 1 addition & 1 deletion boards/shields/g1120b0mipi/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ example:

.. zephyr-app-commands::
:zephyr-app: samples/drivers/display
:board: mimxrt595_evk_cm33
:board: mimxrt595_evk/mimxrt595s/cm33
:shield: g1120b0mipi
:goals: build

Expand Down
2 changes: 1 addition & 1 deletion samples/boards/mimxrt595_evk_cm33/system_off/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Building, Flashing and Running

.. zephyr-app-commands::
:zephyr-app: samples/boards/mimxrt595_evk_cm33/system_off
:board: mimxrt595_evk_cm33
:board: mimxrt595_evk/mimxrt595s/cm33
:goals: build flash
:compact:

Expand Down
4 changes: 2 additions & 2 deletions samples/boards/mimxrt595_evk_cm33/system_off/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ sample:
common:
tags: power
tests:
sample.boards.mimxrt595_evk_cm33.system_off:
sample.boards.mimxrt595_evk.system_off:
build_only: true
platform_allow: mimxrt595_evk_cm33
platform_allow: mimxrt595_evk/mimxrt595s/cm33
4 changes: 2 additions & 2 deletions samples/drivers/display/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ tests:
harness_config:
fixture: fixture_display
sample.display.mcux_dcnano_lcdif:
platform_allow: mimxrt595_evk_cm33
platform_allow: mimxrt595_evk/mimxrt595s/cm33
tags: display
harness: console
extra_args: SHIELD=rk055hdmipi4m
Expand Down Expand Up @@ -136,7 +136,7 @@ tests:
harness_config:
fixture: fixture_display
sample.display.g1120b0mipi:
platform_allow: mimxrt595_evk_cm33
platform_allow: mimxrt595_evk/mimxrt595s/cm33
tags: display
harness: console
extra_args: SHIELD=g1120b0mipi
Expand Down
2 changes: 1 addition & 1 deletion samples/drivers/memc/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This application can be built and executed on an RT595 EVK as follows:
.. zephyr-app-commands::
:zephyr-app: samples/drivers/memc
:host-os: unix
:board: mimxrt595_evk_cm33
:board: mimxrt595_evk/mimxrt595s/cm33
:goals: run
:compact:

Expand Down
2 changes: 1 addition & 1 deletion samples/drivers/memc/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ common:
tags: memc
filter: dt_alias_exists("sram-ext")
integration_platforms:
- mimxrt595_evk_cm33
- mimxrt595_evk/mimxrt595s/cm33
harness: console
harness_config:
type: one_line
Expand Down
2 changes: 1 addition & 1 deletion samples/sensor/fxos8700/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Sample can be built and executed for the MIMXRT595-EVK as follows:

.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxos8700
:board: mimxrt595_evk_cm33
:board: mimxrt595_evk/mimxrt595s/cm33
:goals: build flash
:compact:

Expand Down
4 changes: 2 additions & 2 deletions samples/sensor/fxos8700/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tests:
- mimxrt685_evk
- frdm_k22f
- mimxrt1024_evk
- mimxrt595_evk_cm33
- mimxrt595_evk/mimxrt595s/cm33
integration_platforms:
- frdm_k64f
extra_configs:
Expand All @@ -35,7 +35,7 @@ tests:
- lpcxpresso55s69_cpu0
- reel_board
- mimxrt685_evk
- mimxrt595_evk_cm33
- mimxrt595_evk/mimxrt595s/cm33
integration_platforms:
- bbc_microbit
extra_args: CONF_FILE=prj_accel.conf
2 changes: 1 addition & 1 deletion samples/subsys/display/lvgl/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tests:
extra_args: SHIELD="rk055hdmipi4m"
platform_allow:
- mimxrt1170_evk/mimxrt1176/cm7
- mimxrt595_evk_cm33
- mimxrt595_evk/mimxrt595s/cm33
integration_platforms:
- mimxrt1170_evk/mimxrt1176/cm7
sample.subsys.display.lvgl.st_b_lcd40_dsi1_mb1166:
Expand Down
2 changes: 1 addition & 1 deletion tests/boot/test_mcuboot/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tests:
- mimxrt1064_evk
- mimxrt1160_evk/mimxrt1166/cm7
- mimxrt1170_evk/mimxrt1176/cm7
- mimxrt595_evk_cm33
- mimxrt595_evk/mimxrt595s/cm33
- mimxrt685_evk
- nrf52840dk/nrf52840
integration_platforms:
Expand Down
2 changes: 1 addition & 1 deletion tests/drivers/audio/dmic_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ tests:
harness: ztest
filter: dt_alias_exists("dmic-dev")
integration_platforms:
- mimxrt595_evk_cm33
- mimxrt595_evk/mimxrt595s/cm33
2 changes: 1 addition & 1 deletion tests/drivers/disk/disk_performance/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tests:
tags: sdhc
integration_platforms:
- mimxrt1064_evk
- mimxrt595_evk_cm33
- mimxrt595_evk/mimxrt595s/cm33
drivers.disk.disk_performance.disk.nvme:
extra_configs:
- CONFIG_NVME=y
Expand Down
2 changes: 1 addition & 1 deletion tests/drivers/dma/chan_link_transfer/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tests:
- dma
platform_allow:
- frdm_k64f
- mimxrt595_evk_cm33
- mimxrt595_evk/mimxrt595s/cm33
- mimxrt1050_evk
- mimxrt1060_evk
- mimxrt1064_evk
Expand Down
4 changes: 2 additions & 2 deletions tests/drivers/i2s/i2s_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tests:
- userspace
filter: not CONFIG_I2S_TEST_USE_GPIO_LOOPBACK
platform_exclude:
- mimxrt595_evk_cm33
- mimxrt595_evk/mimxrt595s/cm33
- mimxrt685_evk
drivers.i2s.gpio_loopback:
depends_on:
Expand All @@ -18,7 +18,7 @@ tests:
filter: CONFIG_I2S_TEST_USE_GPIO_LOOPBACK
harness: ztest
platform_exclude:
- mimxrt595_evk
- mimxrt595_evk/mimxrt595s/cm33
- mimxrt685_evk
harness_config:
fixture: gpio_loopback
2 changes: 1 addition & 1 deletion tests/subsys/pm/power_mgmt_soc/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tests:
- nucleo_wb55rg
- nucleo_l476rg
- twr_ke18f
- mimxrt595_evk_cm33
- mimxrt595_evk/mimxrt595s/cm33
tags: pm
integration_platforms:
- mec15xxevb_assy6853
2 changes: 1 addition & 1 deletion tests/subsys/sd/mmc/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ tests:
tags: sdhc
min_ram: 32
integration_platforms:
- mimxrt595_evk_cm33
- mimxrt595_evk/mimxrt595s/cm33

0 comments on commit b34d496

Please sign in to comment.