Skip to content

Commit bd40190

Browse files
jaz1-nordicnashif
authored andcommitted
samples: mbox: Add nRF54L15 to MBOX sample targets
Add nRF54L15 APP and FLPR cores to ping-pong sample application. Signed-off-by: Jakub Zymelka <[email protected]>
1 parent 9473e32 commit bd40190

File tree

7 files changed

+80
-0
lines changed

7 files changed

+80
-0
lines changed

samples/drivers/mbox/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR
1818
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR
1919
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
2020
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR
21+
CONFIG_BOARD_NRF54L15PDK_NRF54L15_CPUAPP OR
2122
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M7)
2223
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample")
2324
else()

samples/drivers/mbox/Kconfig.sysbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ string
1515
default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk"
1616
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
1717
default "nrf54h20dk/nrf54h20/cpuppr" if $(BOARD) = "nrf54h20dk"
18+
default "nrf54l15pdk/nrf54l15/cpuflpr" if $(BOARD) = "nrf54l15pdk"
1819
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
mbox-consumer {
8+
compatible = "vnd,mbox-consumer";
9+
mboxes = <&cpuapp_vevif_rx 15>, <&cpuapp_vevif_tx 16>;
10+
mbox-names = "rx", "tx";
11+
};
12+
};
13+
14+
&cpuapp_vevif_rx {
15+
status = "okay";
16+
};
17+
18+
&cpuapp_vevif_tx {
19+
status = "okay";
20+
};

samples/drivers/mbox/remote/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET OR
1616
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM4 OR
1717
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1 OR
1818
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR OR
19+
CONFIG_BOARD_NRF54L15PDK_NRF54L15_CPUFLPR OR
20+
CONFIG_BOARD_NRF54L15PDK_NRF54L15_CPUFLPR_XIP OR
1921
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M4)
2022
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as remote in this sample")
2123
else()
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
mbox-consumer {
8+
compatible = "vnd,mbox-consumer";
9+
mboxes = <&cpuflpr_vevif_rx 16>, <&cpuflpr_vevif_tx 15>;
10+
mbox-names = "rx", "tx";
11+
};
12+
};
13+
14+
&cpuflpr_vevif_rx {
15+
status = "okay";
16+
};
17+
18+
&cpuflpr_vevif_tx {
19+
status = "okay";
20+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
mbox-consumer {
8+
compatible = "vnd,mbox-consumer";
9+
mboxes = <&cpuflpr_vevif_rx 16>, <&cpuflpr_vevif_tx 15>;
10+
mbox-names = "rx", "tx";
11+
};
12+
};
13+
14+
&cpuflpr_vevif_rx {
15+
status = "okay";
16+
};
17+
18+
&cpuflpr_vevif_tx {
19+
status = "okay";
20+
};

samples/drivers/mbox/sample.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,19 @@ tests:
6868
- "Pong \\(on channel 0\\)"
6969
- "Ping \\(on channel 1\\)"
7070
- "Pong \\(on channel 1\\)"
71+
72+
sample.drivers.mbox.nrf54l15:
73+
platform_allow:
74+
- nrf54l15pdk/nrf54l15/cpuapp
75+
integration_platforms:
76+
- nrf54l15pdk/nrf54l15/cpuapp
77+
extra_args:
78+
mbox_SNIPPET=nordic-flpr
79+
sysbuild: true
80+
harness: console
81+
harness_config:
82+
type: multi_line
83+
ordered: false
84+
regex:
85+
- "Ping \\(on channel 16\\)"
86+
- "Pong \\(on channel 15\\)"

0 commit comments

Comments
 (0)