Skip to content

Commit 2269b7e

Browse files
committed
samples: zephyr: nrfx: Add test for nRF7120
Add nrf7120dk cpuapp support to nrfx gppi integration test. Signed-off-by: Dhanoo Surasarang <[email protected]>
1 parent 18ee80d commit 2269b7e

File tree

9 files changed

+61
-0
lines changed

9 files changed

+61
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,7 @@
672672
/samples/wifi/provisioning/softap/*.rst @nrfconnect/ncs-cia-doc
673673
/samples/zephyr/basic/blinky/ @nrfconnect/ncs-low-level-test @nrfconnect/ncs-ll-ursus
674674
/samples/zephyr/bluetooth/ @nrfconnect/ncs-low-level-test
675+
/samples/zephyr/boards/nordic/nrfx/ @nrfconnect/ncs-low-level-test
675676
/samples/zephyr/boards/nordic/spis_wakeup/ @nrfconnect/ncs-low-level-test
676677
/samples/zephyr/boards/nordic/system_off/ @nrfconnect/ncs-low-level-test
677678
/samples/zephyr/drivers/adc/ @nrfconnect/ncs-low-level-test
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
cmake_minimum_required(VERSION 3.20.0)
8+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
9+
project(nrf_nrfx)
10+
11+
target_sources(app PRIVATE ${ZEPHYR_BASE}/samples/boards/nordic/nrfx/src/main.c)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source "samples/boards/nordic/nrfx/Kconfig"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
This sample extends the same-named Zephyr sample to verify it
2+
with Nordic development kits.
3+
4+
Source code and basic configuration files can be found in the corresponding folder structure in zephyr/samples/boards/nordic/nrfx.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_NRFX_GPIOTE20=y
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/ {
2+
aliases {
3+
led0 = &led1; /* LED1 is on gpio1 pin 10 */
4+
sw0 = &button0; /* Button0 is on gpio1 pin 13 */
5+
};
6+
};
7+
8+
&gpio1 {
9+
status = "okay";
10+
gpiote-instance = <&gpiote20>;
11+
};
12+
13+
&gpiote20 {
14+
status = "okay";
15+
owned-channels = <0 1>;
16+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_GPIO=n
2+
CONFIG_LOG=y
3+
CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100
4+
CONFIG_NRFX_GPPI=y
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
sample:
2+
name: nrfx use example
3+
tests:
4+
nrf.extended.sample.boards.nrf.nrfx:
5+
platform_allow:
6+
- nrf7120dk/nrf7120/cpuapp
7+
integration_platforms:
8+
- nrf7120dk/nrf7120/cpuapp
9+
tags:
10+
- ci_samples_zephyr_boards_nordic_nrfx
11+
- board
12+
harness: console
13+
harness_config:
14+
type: multi_line
15+
ordered: true
16+
regex:
17+
- "nrfx_gpiote initialized"
18+
- "\\(D\\)PPI configured, leaving main()"

scripts/ci/tags.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,6 +1635,11 @@ ci_samples_zephyr_drivers_mbox:
16351635
- nrf/samples/zephyr/drivers/mbox/
16361636
- zephyr/samples/drivers/mbox/
16371637

1638+
ci_samples_zephyr_boards_nordic_nrfx:
1639+
files:
1640+
- nrf/samples/zephyr/boards/nordic/nrfx/
1641+
- zephyr/samples/boards/nordic/nrfx/
1642+
16381643
ci_samples_zephyr_boards_nordic_spis_wakeup:
16391644
files:
16401645
- nrf/samples/zephyr/boards/nordic/spis_wakeup/

0 commit comments

Comments
 (0)