Skip to content

Commit

Permalink
[nrf fromlist] samples: drivers: mbox: add support for nRF VEVIF
Browse files Browse the repository at this point in the history
Add support for nRF VEVIF.

Upstream PR: zephyrproject-rtos/zephyr#69303

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
(cherry picked from commit d40fd1f886666d0d61a7a555439857c5654bec55)
(cherry picked from commit 599986a)
(cherry picked from commit a66f3be)
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
  • Loading branch information
gmarull authored and rlubos committed Mar 14, 2024
1 parent 5d1f848 commit ff9d02d
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 2 deletions.
3 changes: 2 additions & 1 deletion samples/drivers/mbox/CMakeLists.txt
Expand Up @@ -17,7 +17,8 @@ if(("${BOARD}" STREQUAL "nrf5340dk_nrf5340_cpuapp") OR
("${BOARD}" STREQUAL "mimxrt1170_evkb_cm7") OR
("${BOARD}" STREQUAL "mimxrt1170_evk_cm7") OR
("${BOARD}" STREQUAL "mimxrt1160_evk_cm7") OR
("${BOARD}" STREQUAL "lpcxpresso55s69_cpu0"))
("${BOARD}" STREQUAL "lpcxpresso55s69_cpu0") OR
("${BOARD}" STREQUAL "nrf54h20pdk_nrf54h20_cpuapp"))
message(STATUS "${BOARD} compile as Main in this sample")
else()
message(FATAL_ERROR "${BOARD} is not supported for this sample")
Expand Down
1 change: 1 addition & 0 deletions samples/drivers/mbox/Kconfig.sysbuild
Expand Up @@ -14,3 +14,4 @@ string
default "mimxrt1170_evk_cm4" if $(BOARD) = "mimxrt1170_evk_cm7"
default "mimxrt1160_evk_cm4" if $(BOARD) = "mimxrt1160_evk_cm7"
default "lpcxpresso55s69_cpu1" if $(BOARD) = "lpcxpresso55s69_cpu0"
default "nrf54h20pdk_nrf54h20_cpuppr" if $(BOARD) = "nrf54h20pdk_nrf54h20_cpuapp"
@@ -0,0 +1,2 @@
CONFIG_RX_ENABLED=n
CONFIG_TX_CHANNEL_ID=4
@@ -0,0 +1,8 @@
/*
* Copyright 2024 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/

mbox: &cpuppr_vevif {
status = "okay";
};
3 changes: 2 additions & 1 deletion samples/drivers/mbox/remote/CMakeLists.txt
Expand Up @@ -15,7 +15,8 @@ if(("${BOARD}" STREQUAL "nrf5340dk_nrf5340_cpunet") OR
("${BOARD}" STREQUAL "mimxrt1170_evk_cm4") OR
("${BOARD}" STREQUAL "mimxrt1160_evk_cm4") OR
("${BOARD}" STREQUAL "lpcxpresso55s69_cpu1") OR
("${BOARD}" STREQUAL "adp_xc7k_ae350"))
("${BOARD}" STREQUAL "adp_xc7k_ae350") OR
("${BOARD}" STREQUAL "nrf54h20pdk_nrf54h20_cpuppr"))
message(STATUS "${BOARD} compile as remote in this sample")
else()
message(FATAL_ERROR "${BOARD} is not supported for this sample")
Expand Down
@@ -0,0 +1,2 @@
CONFIG_TX_ENABLED=n
CONFIG_RX_CHANNEL_ID=4
@@ -0,0 +1,8 @@
/*
* Copyright 2024 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/

mbox: &cpuppr_vevif {
status = "okay";
};
21 changes: 21 additions & 0 deletions samples/drivers/mbox/sample.yaml
Expand Up @@ -23,6 +23,27 @@ tests:
- "Pong \\(on channel 0\\)"
- "Ping \\(on channel 1\\)"
- "Pong \\(on channel 1\\)"

sample.drivers.mbox.nrf54h20_vevif:
platform_allow:
- nrf54h20pdk_nrf54h20_cpuapp
integration_platforms:
- nrf54h20pdk_nrf54h20_cpuapp
extra_args:
mbox_SNIPPET=nordic-ppr
mbox_EXTRA_CONF_FILE=boards/nrf54h20pdk_nrf54h20_cpuapp_vevif.conf
mbox_DTC_OVERLAY_FILE=boards/nrf54h20pdk_nrf54h20_cpuapp_vevif.overlay
remote_EXTRA_CONF_FILE=boards/nrf54h20pdk_nrf54h20_cpuppr_vevif.conf
remote_DTC_OVERLAY_FILE=boards/nrf54h20pdk_nrf54h20_cpuppr_vevif.overlay
sysbuild: true
harness: console
harness_config:
type: multi_line
ordered: false
regex:
- "Ping \\(on channel 4\\)"
- "Pong \\(on channel 4\\)"

sample.drivers.mbox.simu:
platform_allow:
- nrf5340bsim_nrf5340_cpuapp
Expand Down

0 comments on commit ff9d02d

Please sign in to comment.