Skip to content

Commit 06cf8bd

Browse files
nordic-seglrlubos
authored andcommitted
[nrf fromtree] 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]> (cherry picked from commit bd40190) Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 5c24516 commit 06cf8bd

File tree

7 files changed

+82
-2
lines changed

7 files changed

+82
-2
lines changed

samples/drivers/mbox/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ 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_NRF54H20DK_NRF54H20_CPURAD)
21+
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPURAD OR
22+
CONFIG_BOARD_NRF54L15PDK_NRF54L15_CPUAPP)
2223
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample")
2324
else()
2425
message(FATAL_ERROR "${BOARD}${BOARD_QUALIFIERS} is not supported for this sample")

samples/drivers/mbox/Kconfig.sysbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ string
1616
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
1717
default "nrf54h20dk/nrf54h20/cpuppr" if "$(BOARD)${BOARD_QUALIFIERS}" = "nrf54h20dk/nrf54h20/cpuapp"
1818
default "nrf54h20dk/nrf54h20/cpuapp" if "$(BOARD)${BOARD_QUALIFIERS}" = "nrf54h20dk/nrf54h20/cpurad"
19+
default "nrf54l15pdk/nrf54l15/cpuflpr" if $(BOARD) = "nrf54l15pdk"
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ 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_NRF54H20DK_NRF54H20_CPUAPP)
19+
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR
20+
CONFIG_BOARD_NRF54L15PDK_NRF54L15_CPUFLPR OR
21+
CONFIG_BOARD_NRF54L15PDK_NRF54L15_CPUFLPR_XIP)
2022
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as remote in this sample")
2123
else()
2224
message(FATAL_ERROR "${BOARD}${BOARD_QUALIFIERS} is not supported for this sample")
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
@@ -66,3 +66,19 @@ tests:
6666
- "Pong \\(on channel 0\\)"
6767
- "Ping \\(on channel 1\\)"
6868
- "Pong \\(on channel 1\\)"
69+
70+
sample.drivers.mbox.nrf54l15:
71+
platform_allow:
72+
- nrf54l15pdk/nrf54l15/cpuapp
73+
integration_platforms:
74+
- nrf54l15pdk/nrf54l15/cpuapp
75+
extra_args:
76+
mbox_SNIPPET=nordic-flpr
77+
sysbuild: true
78+
harness: console
79+
harness_config:
80+
type: multi_line
81+
ordered: false
82+
regex:
83+
- "Ping \\(on channel 16\\)"
84+
- "Pong \\(on channel 15\\)"

0 commit comments

Comments
 (0)