samples: drivers: mbox: add support for nRF VEVIF

Add support for nRF VEVIF.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-02-21 17:36:43 +01:00 committed by Fabio Baltieri
commit 5715691562
8 changed files with 46 additions and 2 deletions

View file

@ -17,7 +17,8 @@ if(("${BOARD}" STREQUAL "nrf5340dk") OR
("${BOARD}" STREQUAL "mimxrt1170_evkb") OR ("${BOARD}" STREQUAL "mimxrt1170_evkb") OR
("${BOARD}" STREQUAL "mimxrt1170_evk") OR ("${BOARD}" STREQUAL "mimxrt1170_evk") OR
("${BOARD}" STREQUAL "mimxrt1160_evk") OR ("${BOARD}" STREQUAL "mimxrt1160_evk") OR
("${BOARD}" STREQUAL "lpcxpresso55s69")) ("${BOARD}" STREQUAL "lpcxpresso55s69") OR
("${BOARD}" STREQUAL "nrf54h20pdk"))
message(STATUS "${BOARD} compile as Main in this sample") message(STATUS "${BOARD} compile as Main in this sample")
else() else()
message(FATAL_ERROR "${BOARD} is not supported for this sample") message(FATAL_ERROR "${BOARD} is not supported for this sample")

View file

@ -14,3 +14,4 @@ string
default "mimxrt1170_evk/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evk" default "mimxrt1170_evk/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evk"
default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk" default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk"
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69" default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
default "nrf54h20pdk/nrf54h20/cpuppr" if $(BOARD) = "nrf54h20pdk"

View file

@ -0,0 +1,2 @@
CONFIG_RX_ENABLED=n
CONFIG_TX_CHANNEL_ID=4

View file

@ -0,0 +1,8 @@
/*
* Copyright 2024 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/
mbox: &cpuppr_vevif {
status = "okay";
};

View file

@ -15,7 +15,8 @@ if(("${BOARD}" STREQUAL "nrf5340dk") OR
("${BOARD}" STREQUAL "mimxrt1170_evk") OR ("${BOARD}" STREQUAL "mimxrt1170_evk") OR
("${BOARD}" STREQUAL "mimxrt1160_evk") OR ("${BOARD}" STREQUAL "mimxrt1160_evk") OR
("${BOARD}" STREQUAL "lpcxpresso55s69") OR ("${BOARD}" STREQUAL "lpcxpresso55s69") OR
("${BOARD}" STREQUAL "adp_xc7k")) ("${BOARD}" STREQUAL "adp_xc7k") OR
("${BOARD}" STREQUAL "nrf54h20pdk"))
message(STATUS "${BOARD} compile as remote in this sample") message(STATUS "${BOARD} compile as remote in this sample")
else() else()
message(FATAL_ERROR "${BOARD} is not supported for this sample") message(FATAL_ERROR "${BOARD} is not supported for this sample")

View file

@ -0,0 +1,2 @@
CONFIG_TX_ENABLED=n
CONFIG_RX_CHANNEL_ID=4

View file

@ -0,0 +1,8 @@
/*
* Copyright 2024 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/
mbox: &cpuppr_vevif {
status = "okay";
};

View file

@ -23,6 +23,27 @@ tests:
- "Pong \\(on channel 0\\)" - "Pong \\(on channel 0\\)"
- "Ping \\(on channel 1\\)" - "Ping \\(on channel 1\\)"
- "Pong \\(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: sample.drivers.mbox.simu:
platform_allow: platform_allow:
- nrf5340bsim_nrf5340_cpuapp - nrf5340bsim_nrf5340_cpuapp