Skip to content

Commit f35dfd3

Browse files
committed
[nrf fromtree] samples: drivers: mbox: Enable sample on L09 and L20
Add board overlays required to run mbox sample on nRF54L09 and nRF54L20 targets. Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit 9bb5e2f)
1 parent 6ad6c26 commit f35dfd3

File tree

8 files changed

+105
-3
lines changed

8 files changed

+105
-3
lines changed

samples/drivers/mbox/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR
2424
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR
2525
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPURAD OR
2626
CONFIG_BOARD_NRF54L15DK_NRF54L15_CPUAPP OR
27+
CONFIG_BOARD_NRF54L09PDK_NRF54L09_CPUAPP OR
28+
CONFIG_BOARD_NRF54L20PDK_NRF54L20_CPUAPP OR
2729
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M7)
2830
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample")
2931
else()

samples/drivers/mbox/Kconfig.sysbuild

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ config REMOTE_BOARD
1818
default "frdm_mcxn947/mcxn947/cpu1" if $(BOARD) = "frdm_mcxn947"
1919
default "nrf54h20dk/nrf54h20/cpuapp" if "$(BOARD)${BOARD_QUALIFIERS}" = "nrf54h20dk/nrf54h20/cpurad"
2020
default "nrf54l15dk/nrf54l15/cpuflpr" if $(BOARD) = "nrf54l15dk"
21+
default "nrf54l09pdk/nrf54l09/cpuflpr" if $(BOARD) = "nrf54l09pdk"
22+
default "nrf54l20pdk/nrf54l20/cpuflpr" if $(BOARD) = "nrf54l20pdk"
2123
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
2224
default "esp32_devkitc_wroom/esp32/appcpu" if "$(BOARD)${BOARD_QUALIFIERS}" = "esp32_devkitc_wroom/esp32/procpu"
2325
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
@@ -23,6 +23,8 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET OR
2323
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUFLPR OR
2424
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR
2525
CONFIG_BOARD_NRF54L15DK_NRF54L15_CPUFLPR OR
26+
CONFIG_BOARD_NRF54L09PDK_NRF54L09_CPUFLPR OR
27+
CONFIG_BOARD_NRF54L20PDK_NRF54L20_CPUFLPR OR
2628
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M4)
2729
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as remote in this sample")
2830
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: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ tests:
1010
platform_exclude:
1111
- nrf54h20dk/nrf54h20/cpuapp
1212
- nrf54h20dk/nrf54h20/cpurad
13+
- nrf54l09pdk/nrf54l09/cpuapp
1314
- nrf54l15dk/nrf54l15/cpuapp
15+
- nrf54l20pdk/nrf54l20/cpuapp
1416
integration_platforms:
1517
- nrf5340dk/nrf5340/cpuapp
1618
harness: console
@@ -71,9 +73,11 @@ tests:
7173
- "Ping \\(on channel 18\\)"
7274
- "Pong \\(on channel 12\\)"
7375

74-
sample.drivers.mbox.nrf54l15:
76+
sample.drivers.mbox.nrf54l:
7577
platform_allow:
7678
- nrf54l15dk/nrf54l15/cpuapp
79+
- nrf54l09pdk/nrf54l09/cpuapp
80+
- nrf54l20pdk/nrf54l20/cpuapp
7781
integration_platforms:
7882
- nrf54l15dk/nrf54l15/cpuapp
7983
extra_args: mbox_SNIPPET=nordic-flpr
@@ -86,9 +90,11 @@ tests:
8690
- "Ping \\(on channel 21\\)"
8791
- "Pong \\(on channel 20\\)"
8892

89-
sample.drivers.mbox.nrf54l15_no_multithreading:
93+
sample.drivers.mbox.nrf54l_no_multithreading:
9094
platform_allow:
9195
- nrf54l15dk/nrf54l15/cpuapp
96+
- nrf54l09pdk/nrf54l09/cpuapp
97+
- nrf54l20pdk/nrf54l20/cpuapp
9298
integration_platforms:
9399
- nrf54l15dk/nrf54l15/cpuapp
94100
extra_args:
@@ -104,9 +110,11 @@ tests:
104110
- "Ping \\(on channel 21\\)"
105111
- "Pong \\(on channel 20\\)"
106112

107-
sample.drivers.mbox.nrf54l15_remote_no_multithreading:
113+
sample.drivers.mbox.nrf54l_remote_no_multithreading:
108114
platform_allow:
109115
- nrf54l15dk/nrf54l15/cpuapp
116+
- nrf54l09pdk/nrf54l09/cpuapp
117+
- nrf54l20pdk/nrf54l20/cpuapp
110118
integration_platforms:
111119
- nrf54l15dk/nrf54l15/cpuapp
112120
extra_args:

0 commit comments

Comments
 (0)