-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
samples: zephyr: drivers: mbox: Enable sample on nRF54L09 and L20 #21051
Merged
nordic-piks
merged 6 commits into
nrfconnect:main
from
nordic-segl:NRF-7225_Enable-FLPR-in-extended-tests
Mar 21, 2025
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ca78bde
samples: zephyr: drivers: mbox: Enable sample on nRF54L09 and L20
nordic-segl 14fca76
tests: zephyr: drivers: gpio: gpio_basic_api: Enable test on nRF54L* …
nordic-segl eab3bb9
tests: zephyr: drivers: timer: Enable test on nRF54L* FLPR
nordic-segl e3e874f
tests: zephyr: boards: nrf: qdec: Enable test on nRF54L20 FLPR
nordic-segl 0d83967
samples: zephyr: drivers: watchdog: Eanble test on nRF54L* FLPR
nordic-segl e9e782f
tests: zephyr: drivers: watchdog: Enable test on nRF54L* FLPR
nordic-segl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# Copyright (c) 2025 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
|
||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
|
||
set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../remote/zephyr) | ||
|
||
if(CONFIG_BOARD_NRF54L09PDK_NRF54L09_CPUAPP OR | ||
CONFIG_BOARD_NRF54L20PDK_NRF54L20_CPUAPP) | ||
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample") | ||
else() | ||
message(FATAL_ERROR "${BOARD}${BOARD_QUALIFIERS} is not supported for this sample") | ||
endif() | ||
|
||
if(NOT SYSBUILD) | ||
message(FATAL_ERROR | ||
" This is a multi-image application that should be built using sysbuild.\n" | ||
" Add --sysbuild argument to west build command to prepare all the images.") | ||
endif() | ||
|
||
project(mbox_ipc) | ||
|
||
enable_language(C ASM) | ||
|
||
target_sources(app PRIVATE ${ZEPHYR_BASE}/samples/drivers/mbox/src/main.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
source "samples/drivers/mbox/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# Copyright (c) 2025 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
source "share/sysbuild/Kconfig" | ||
|
||
config REMOTE_BOARD | ||
string "Remote board" | ||
default "nrf54l09pdk/nrf54l09/cpuflpr" if $(BOARD) = "nrf54l09pdk" | ||
default "nrf54l20pdk/nrf54l20/cpuflpr" if $(BOARD) = "nrf54l20pdk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This sample extends the same-named Zephyr sample to verify it with Nordic development kits. | ||
|
||
Source code and basic configuration files can be found in the corresponding folder structure in zephyr/samples/drivers/mbox. |
20 changes: 20 additions & 0 deletions
20
samples/zephyr/drivers/mbox/boards/nrf54l09pdk_nrf54l09_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright 2025 Nordic Semiconductor ASA | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&cpuapp_vevif_rx 20>, <&cpuapp_vevif_tx 21>; | ||
mbox-names = "rx", "tx"; | ||
}; | ||
}; | ||
|
||
&cpuapp_vevif_rx { | ||
status = "okay"; | ||
}; | ||
|
||
&cpuapp_vevif_tx { | ||
status = "okay"; | ||
}; |
20 changes: 20 additions & 0 deletions
20
samples/zephyr/drivers/mbox/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright 2025 Nordic Semiconductor ASA | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&cpuapp_vevif_rx 20>, <&cpuapp_vevif_tx 21>; | ||
mbox-names = "rx", "tx"; | ||
}; | ||
}; | ||
|
||
&cpuapp_vevif_rx { | ||
status = "okay"; | ||
}; | ||
|
||
&cpuapp_vevif_tx { | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONFIG_PRINTK=y | ||
CONFIG_MBOX=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Copyright (c) 2021 Carlo Caione <ccaione@baylibre.com> | ||
# Copyright 2023-2025 NXP | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
|
||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
|
||
if(CONFIG_BOARD_NRF54L09PDK_NRF54L09_CPUFLPR OR | ||
CONFIG_BOARD_NRF54L20PDK_NRF54L20_CPUFLPR) | ||
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as remote in this sample") | ||
else() | ||
message(FATAL_ERROR "${BOARD}${BOARD_QUALIFIERS} is not supported for this sample") | ||
endif() | ||
|
||
project(mbox_ipc_remote) | ||
|
||
target_sources(app PRIVATE ${ZEPHYR_BASE}/samples/drivers/mbox/remote/src/main.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
source "samples/drivers/mbox/remote/Kconfig" |
24 changes: 24 additions & 0 deletions
24
samples/zephyr/drivers/mbox/remote/boards/nrf54l09pdk_nrf54l09_cpuflpr.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright 2025 Nordic Semiconductor ASA | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&cpuflpr_vevif_rx 21>, <&cpuflpr_vevif_tx 20>; | ||
mbox-names = "rx", "tx"; | ||
}; | ||
}; | ||
|
||
&cpuflpr_vevif_rx { | ||
status = "okay"; | ||
}; | ||
|
||
&cpuflpr_vevif_tx { | ||
status = "okay"; | ||
}; | ||
|
||
&uart30 { | ||
/delete-property/ hw-flow-control; | ||
}; |
24 changes: 24 additions & 0 deletions
24
samples/zephyr/drivers/mbox/remote/boards/nrf54l20pdk_nrf54l20_cpuflpr.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright 2025 Nordic Semiconductor ASA | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&cpuflpr_vevif_rx 21>, <&cpuflpr_vevif_tx 20>; | ||
mbox-names = "rx", "tx"; | ||
}; | ||
}; | ||
|
||
&cpuflpr_vevif_rx { | ||
status = "okay"; | ||
}; | ||
|
||
&cpuflpr_vevif_tx { | ||
status = "okay"; | ||
}; | ||
|
||
&uart30 { | ||
/delete-property/ hw-flow-control; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONFIG_STDOUT_CONSOLE=n | ||
CONFIG_MBOX=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
sample: | ||
name: MBOX IPC sample | ||
common: | ||
sysbuild: true | ||
tags: | ||
- mbox | ||
- ci_samples_zephyr_drivers_mbox | ||
timeout: 30 | ||
tests: | ||
nrf.extended.sample.drivers.mbox.nrf54l: | ||
platform_allow: | ||
- nrf54l09pdk/nrf54l09/cpuapp | ||
- nrf54l20pdk/nrf54l20/cpuapp | ||
integration_platforms: | ||
- nrf54l20pdk/nrf54l20/cpuapp | ||
extra_args: mbox_SNIPPET=nordic-flpr | ||
sysbuild: true | ||
harness: console | ||
harness_config: | ||
type: multi_line | ||
ordered: false | ||
regex: | ||
- "Ping \\(on channel 21\\)" | ||
- "Pong \\(on channel 20\\)" | ||
|
||
nrf.extended.sample.drivers.mbox.nrf54l_no_multithreading: | ||
platform_allow: | ||
- nrf54l09pdk/nrf54l09/cpuapp | ||
- nrf54l20pdk/nrf54l20/cpuapp | ||
integration_platforms: | ||
- nrf54l20pdk/nrf54l20/cpuapp | ||
extra_args: | ||
- mbox_SNIPPET=nordic-flpr | ||
- mbox_CONFIG_MULTITHREADING=n | ||
- remote_CONFIG_MULTITHREADING=n | ||
sysbuild: true | ||
harness: console | ||
harness_config: | ||
type: multi_line | ||
ordered: false | ||
regex: | ||
- "Ping \\(on channel 21\\)" | ||
- "Pong \\(on channel 20\\)" | ||
|
||
nrf.extended.sample.drivers.mbox.nrf54l_remote_no_multithreading: | ||
platform_allow: | ||
- nrf54l09pdk/nrf54l09/cpuapp | ||
- nrf54l20pdk/nrf54l20/cpuapp | ||
integration_platforms: | ||
- nrf54l20pdk/nrf54l20/cpuapp | ||
extra_args: | ||
- mbox_SNIPPET=nordic-flpr | ||
- remote_CONFIG_MULTITHREADING=n | ||
sysbuild: true | ||
harness: console | ||
harness_config: | ||
type: multi_line | ||
ordered: false | ||
regex: | ||
- "Ping \\(on channel 21\\)" | ||
- "Pong \\(on channel 20\\)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# Copyright (c) 2025 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
if("${SB_CONFIG_REMOTE_BOARD}" STREQUAL "") | ||
message(FATAL_ERROR | ||
"Target ${BOARD}${BOARD_QUALIFIERS} not supported for this sample. " | ||
"There is no remote board selected in Kconfig.sysbuild") | ||
endif() | ||
|
||
set(REMOTE_APP remote) | ||
|
||
ExternalZephyrProject_Add( | ||
APPLICATION ${REMOTE_APP} | ||
SOURCE_DIR ${APP_DIR}/${REMOTE_APP} | ||
BOARD ${SB_CONFIG_REMOTE_BOARD} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SB_CONFIG_PARTITION_MANAGER=n |
3 changes: 3 additions & 0 deletions
3
samples/zephyr/drivers/watchdog/boards/nrf54l09pdk_nrf54l09_cpuflpr.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
&wdt31 { | ||
status = "okay"; | ||
}; |
3 changes: 3 additions & 0 deletions
3
samples/zephyr/drivers/watchdog/boards/nrf54l20pdk_nrf54l20_cpuflpr.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
&wdt31 { | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
tests/zephyr/boards/nrf/qdec/boards/nrf54l20pdk_nrf54l20_common.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/ { | ||
aliases { | ||
qdec0 = &qdec20; | ||
qenca = &phase_a; | ||
qencb = &phase_b; | ||
}; | ||
|
||
encoder-emulate { | ||
compatible = "gpio-leds"; | ||
phase_a: phase_a { | ||
gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; | ||
}; | ||
phase_b: phase_b { | ||
gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
}; | ||
|
||
&pinctrl { | ||
qdec_pinctrl: qdec_pinctrl { | ||
group1 { | ||
psels = <NRF_PSEL(QDEC_A, 1, 8)>, | ||
<NRF_PSEL(QDEC_B, 1, 10)>; | ||
}; | ||
}; | ||
|
||
qdec_sleep_pinctrl: qdec_sleep_pinctrl { | ||
group1 { | ||
psels = <NRF_PSEL(QDEC_A, 1, 8)>, | ||
<NRF_PSEL(QDEC_B, 1, 10)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&gpio1 { | ||
status = "okay"; | ||
}; | ||
|
||
&qdec20 { | ||
status = "okay"; | ||
pinctrl-0 = <&qdec_pinctrl>; | ||
pinctrl-1 = <&qdec_sleep_pinctrl>; | ||
pinctrl-names = "default", "sleep"; | ||
steps = <127>; | ||
led-pre = <500>; | ||
zephyr,pm-device-runtime-auto; | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error out if sysbuild needed and not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, added.