Skip to content

Commit 64fd644

Browse files
[RPSDK-1389] Zephyr examples add support for RT600 and RT700 DSPs
Signed-off-by: Tomas Galbicka <tomas.galbicka@nxp.com>
1 parent 4a28864 commit 64fd644

31 files changed

Lines changed: 356 additions & 16 deletions

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Zephyr examples added support for RT600 and RT700.
13+
1214
### Updated
1315

1416
- eRPC Zephyr module port updated for Zephyr version 4.4

examples/zephyr/matrix_multiply_mbox/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../remote/zephyr)
1212

1313
if(("${BOARD}" STREQUAL "mimxrt1170_evkb") OR
1414
("${BOARD}" STREQUAL "mimxrt1170_evk") OR
15+
("${BOARD}" STREQUAL "mimxrt685_evk") OR
16+
("${BOARD}" STREQUAL "mimxrt700_evk") OR
1517
("${BOARD}" STREQUAL "mimxrt1160_evk"))
1618
message(STATUS "${BOARD} compile as Main in this sample")
1719
else()
@@ -45,3 +47,7 @@ target_sources(app PRIVATE
4547

4648
# Same for erpc library and erpc_config.h
4749
target_include_directories(erpc PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
50+
51+
if (CONFIG_BOARD_MIMXRT685_EVK OR CONFIG_BOARD_MIMXRT700_EVK)
52+
include("${ZEPHYR_BASE}/samples/boards/nxp/adsp/rtxxx/common/dsp-load.cmake")
53+
endif()

examples/zephyr/matrix_multiply_mbox/Kconfig.sysbuild

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ string
1111
default "mimxrt1170_evk/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evk"
1212
default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk"
1313
default "mimxrt1170_evkb/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evkb"
14+
default "mimxrt685_evk/mimxrt685s/hifi4" if $(BOARD) = "mimxrt685_evk"
15+
default "mimxrt700_evk/mimxrt798s/hifi4" if $(BOARD) = "mimxrt700_evk"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Copyright 2026 NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright 2026 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
8+
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
9+
10+
#include <nxp/nxp_rt6xx_hifi4memsplit.dtsi>
11+
12+
&dsp {
13+
status = "okay";
14+
};
15+
16+
/ {
17+
mbox-consumer {
18+
compatible = "vnd,mbox-consumer";
19+
mboxes = <&mbox 1>, <&mbox 0>;
20+
mbox-names = "tx", "rx";
21+
};
22+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Copyright 2026 NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright 2026 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
8+
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
9+
10+
#include <nxp/nxp_rt6xx_hifi4memsplit.dtsi>
11+
12+
&dsp {
13+
status = "okay";
14+
};
15+
16+
/ {
17+
mbox-consumer {
18+
compatible = "vnd,mbox-consumer";
19+
mboxes = <&mbox4_a 1>, <&mbox4_a 0>;
20+
mbox-names = "tx", "rx";
21+
};
22+
};
23+
24+
mbox: &mbox4_a {
25+
26+
};

examples/zephyr/matrix_multiply_mbox/remote/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1010

1111
if(("${BOARD}" STREQUAL "mimxrt1170_evkb") OR
1212
("${BOARD}" STREQUAL "mimxrt1170_evk") OR
13+
("${BOARD}" STREQUAL "mimxrt685_evk") OR
14+
("${BOARD}" STREQUAL "mimxrt700_evk") OR
1315
("${BOARD}" STREQUAL "mimxrt1160_evk"))
1416
message(STATUS "${BOARD} compile as remote in this sample")
1517
else()
@@ -43,3 +45,7 @@ target_sources(app PRIVATE
4345

4446
# Same for erpc library and erpc_config.h
4547
target_include_directories(erpc PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..)
48+
49+
if (CONFIG_BOARD_MIMXRT685_EVK OR CONFIG_BOARD_MIMXRT700_EVK)
50+
include("${ZEPHYR_BASE}/samples/boards/nxp/adsp/rtxxx/common/remote-dsp-imgs.cmake")
51+
endif()
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Copyright 2026 NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright 2026 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
8+
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
9+
10+
/ {
11+
mbox-consumer {
12+
compatible = "vnd,mbox-consumer";
13+
mboxes = <&mbox 0>, <&mbox 1>;
14+
mbox-names = "tx", "rx";
15+
};
16+
};

0 commit comments

Comments
 (0)