Skip to content

Commit 803c382

Browse files
committed
tests: zephyr: drivers: gpio: enable for l09
Based on zephyr. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent 5689592 commit 803c382

File tree

15 files changed

+138
-0
lines changed

15 files changed

+138
-0
lines changed

.github/test-spec.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@
642642
- "tests/drivers/uart/**/*"
643643
- "tests/subsys/event_manager_proxy/**/*"
644644
- "tests/zephyr/drivers/comparator/**/*"
645+
- "tests/zephyr/drivers/gpio/**/*"
645646
- "tests/zephyr/drivers/flash/**/*"
646647
- "tests/zephyr/drivers/i2c/**/*"
647648
- "tests/zephyr/drivers/mspi/**/*"

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,7 @@
920920
/tests/subsys/zigbee/ @nrfconnect/ncs-zigbee
921921
/tests/zephyr/drivers/comparator/ @nrfconnect/ncs-low-level-test
922922
/tests/zephyr/drivers/flash/common/ @nrfconnect/ncs-low-level-test @nrfconnect/ncs-ll-ursus
923+
/tests/zephyr/drivers/gpio/ @nrfconnect/ncs-low-level-test
923924
/tests/zephyr/drivers/i2c/i2c_bme688/ @nrfconnect/ncs-low-level-test
924925
/tests/zephyr/drivers/i2c/i2c_target_api/ @nrfconnect/ncs-low-level-test
925926
/tests/zephyr/drivers/mspi/api/ @nrfconnect/ncs-low-level-test @nrfconnect/ncs-ll-ursus

scripts/ci/tags.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,3 +1594,8 @@ ci_tests_zephyr_boards_nrf_comp:
15941594
files:
15951595
- nrf/tests/zephyr/boards/nrf/comp/
15961596
- zephyr/tests/boards/nrf/comp/
1597+
1598+
ci_tests_zephyr_drivers_gpio:
1599+
files:
1600+
- nrf/tests/zephyr/drivers/gpio/
1601+
- zephyr/tests/drivers/gpio/
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
/* Test requirements:
9+
* out-gpios[0] wire connected with in-gpios[0],
10+
* out-gpios[1] wire connected with in-gpios[1],
11+
* etc.
12+
* Output-input GPIO pair must have identical active level flag.
13+
*/
14+
test_gpios {
15+
compatible = "gpio-leds";
16+
out_gpios: out_gpios {
17+
gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
18+
};
19+
20+
in_gpios: in_gpios {
21+
gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
22+
};
23+
};
24+
};
25+
26+
&gpiote20 {
27+
status = "okay";
28+
};
29+
30+
&gpio1 {
31+
status = "okay";
32+
};

tests/drivers/gpio/gpio_more_loops/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ tests:
1414
platform_allow:
1515
- nrf54l15dk/nrf54l15/cpuapp
1616
- nrf54l20pdk/nrf54l20/cpuapp
17+
- nrf54l09pdk/nrf54l09/cpuapp
1718
- nrf54h20dk/nrf54h20/cpuapp
1819
integration_platforms:
1920
- nrf54l15dk/nrf54l15/cpuapp
2021
- nrf54l20pdk/nrf54l20/cpuapp
22+
- nrf54l09pdk/nrf54l09/cpuapp
2123
- nrf54h20dk/nrf54h20/cpuapp
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
cmake_minimum_required(VERSION 3.20.0)
8+
9+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
10+
project(gpio_basic_api)
11+
12+
FILE(GLOB app_sources ${ZEPHYR_BASE}/tests/drivers/gpio/gpio_basic_api/src/main.c ${ZEPHYR_BASE}/tests/drivers/gpio/gpio_basic_api/src/test*.c)
13+
target_sources(app PRIVATE ${app_sources})
14+
target_sources_ifdef(CONFIG_GPIO_EMUL app PRIVATE ${ZEPHYR_BASE}/tests/drivers/gpio/gpio_basic_api/src/gpio_emul_callback.c)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source "tests/drivers/gpio/gpio_basic_api/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/tests/drivers/i2c/i2c_target_api.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SKIP_PULL_TEST=y
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/ {
2+
resources {
3+
compatible = "test-gpio-basic-api";
4+
out-gpios = <&gpio1 10 0>;
5+
in-gpios = <&gpio1 11 0>;
6+
};
7+
};
8+
9+
&gpiote20 {
10+
status = "okay";
11+
};
12+
13+
&gpio1 {
14+
status = "okay";
15+
};

0 commit comments

Comments
 (0)