Skip to content

Commit b30e388

Browse files
committed
[nrf fromlist] samples: drivers: mbox: Enable sample on L09 and L20
Add board overlays required to run mbox sample on nRF54L09 and nRF54L20 targets. Upstream PR #: TBD Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 5ace1dc commit b30e388

File tree

8 files changed

+103
-3
lines changed

8 files changed

+103
-3
lines changed

samples/drivers/mbox/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR
2222
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR
2323
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPURAD OR
2424
CONFIG_BOARD_NRF54L15DK_NRF54L15_CPUAPP OR
25+
CONFIG_BOARD_NRF54L09PDK_NRF54L09_CPUAPP OR
26+
CONFIG_BOARD_NRF54L20PDK_NRF54L20_CPUAPP OR
2527
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M7)
2628
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample")
2729
else()

samples/drivers/mbox/Kconfig.sysbuild

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ config REMOTE_BOARD
1616
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
1717
default "nrf54h20dk/nrf54h20/cpuapp" if "$(BOARD)${BOARD_QUALIFIERS}" = "nrf54h20dk/nrf54h20/cpurad"
1818
default "nrf54l15dk/nrf54l15/cpuflpr" if $(BOARD) = "nrf54l15dk"
19+
default "nrf54l09pdk/nrf54l09/cpuflpr" if $(BOARD) = "nrf54l09pdk"
20+
default "nrf54l20pdk/nrf54l20/cpuflpr" if $(BOARD) = "nrf54l20pdk"
1921
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
2022
default "esp32_devkitc_wroom/esp32/appcpu" if "$(BOARD)${BOARD_QUALIFIERS}" = "esp32_devkitc_wroom/esp32/procpu"
2123
default "esp32s3_devkitm/esp32s3/appcpu" if "$(BOARD)${BOARD_QUALIFIERS}" = "esp32s3_devkitm/esp32s3/procpu"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2025 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 20>, <&cpuapp_vevif_tx 21>;
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+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2025 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 20>, <&cpuapp_vevif_tx 21>;
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
@@ -21,6 +21,8 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET OR
2121
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUFLPR OR
2222
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR
2323
CONFIG_BOARD_NRF54L15DK_NRF54L15_CPUFLPR OR
24+
CONFIG_BOARD_NRF54L09PDK_NRF54L09_CPUFLPR OR
25+
CONFIG_BOARD_NRF54L20PDK_NRF54L20_CPUFLPR OR
2426
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M4)
2527
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as remote in this sample")
2628
else()
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright 2025 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 21>, <&cpuflpr_vevif_tx 20>;
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+
};
21+
22+
&uart30 {
23+
/delete-property/ hw-flow-control;
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright 2025 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 21>, <&cpuflpr_vevif_tx 20>;
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+
};
21+
22+
&uart30 {
23+
/delete-property/ hw-flow-control;
24+
};

samples/drivers/mbox/sample.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ tests:
8484
- "Pong \\(on channel 0\\)"
8585
- "Ping \\(on channel 1\\)"
8686

87-
sample.drivers.mbox.nrf54l15:
87+
sample.drivers.mbox.nrf54l:
8888
platform_allow:
8989
- nrf54l15dk/nrf54l15/cpuapp
90+
- nrf54l09pdk/nrf54l09/cpuapp
91+
- nrf54l20pdk/nrf54l20/cpuapp
9092
integration_platforms:
9193
- nrf54l15dk/nrf54l15/cpuapp
9294
extra_args: mbox_SNIPPET=nordic-flpr
@@ -99,9 +101,11 @@ tests:
99101
- "Ping \\(on channel 21\\)"
100102
- "Pong \\(on channel 20\\)"
101103

102-
sample.drivers.mbox.nrf54l15_no_multithreading:
104+
sample.drivers.mbox.nrf54l_no_multithreading:
103105
platform_allow:
104106
- nrf54l15dk/nrf54l15/cpuapp
107+
- nrf54l09pdk/nrf54l09/cpuapp
108+
- nrf54l20pdk/nrf54l20/cpuapp
105109
integration_platforms:
106110
- nrf54l15dk/nrf54l15/cpuapp
107111
extra_args:
@@ -117,9 +121,11 @@ tests:
117121
- "Ping \\(on channel 21\\)"
118122
- "Pong \\(on channel 20\\)"
119123

120-
sample.drivers.mbox.nrf54l15_remote_no_multithreading:
124+
sample.drivers.mbox.nrf54l_remote_no_multithreading:
121125
platform_allow:
122126
- nrf54l15dk/nrf54l15/cpuapp
127+
- nrf54l09pdk/nrf54l09/cpuapp
128+
- nrf54l20pdk/nrf54l20/cpuapp
123129
integration_platforms:
124130
- nrf54l15dk/nrf54l15/cpuapp
125131
extra_args:

0 commit comments

Comments
 (0)