Skip to content

Commit

Permalink
[nrf fromlist] samples: drivers: mbox: add support for nRF BELLBOARD
Browse files Browse the repository at this point in the history
Add support for testing BELLBOARD between cpuapp (local) and cpuppr
(remote).

Upstream PR: zephyrproject-rtos/zephyr#69303

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 8787b05200fca7cef7c741122a20df2157940219)
  • Loading branch information
gmarull authored and carlescufi committed Feb 28, 2024
1 parent 4ff2b8a commit e669f36
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_TX_ENABLED=n
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright 2024 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/

mbox: &cpuapp_bellboard {
nordic,interrupt-mapping = <0x00000001 0>;
status = "okay";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_RX_ENABLED=n
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright 2024 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/

mbox: &cpuapp_bellboard {
status = "okay";
};
20 changes: 20 additions & 0 deletions samples/drivers/mbox/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,26 @@ tests:
- "Ping \\(on channel 4\\)"
- "Pong \\(on channel 4\\)"

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

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

0 comments on commit e669f36

Please sign in to comment.