Skip to content

Commit d710b42

Browse files
committed
tests: drivers: gpio: gpio_basic_api: add from zephyr, support nrf7120
Support of zephyr gpio tests from ncs repo for nrf7120. Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
1 parent 4a5c1c2 commit d710b42

File tree

5 files changed

+39
-1
lines changed

5 files changed

+39
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
This sample extends the same-named Zephyr sample to verify it
22
with Nordic development kits.
33

4-
Source code and basic configuration files can be found in the corresponding folder structure in zephyr/tests/drivers/i2c/i2c_target_api.
4+
Source code and basic configuration files can be found in the corresponding folder structure in zephyr/tests/drivers/gpio/gpio_basic_api.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
resources {
9+
compatible = "test-gpio-basic-api";
10+
out-gpios = <&gpio1 10 0>;
11+
in-gpios = <&gpio1 11 0>;
12+
};
13+
};
14+
15+
&gpiote20 {
16+
status = "okay";
17+
};
18+
19+
&gpio1 {
20+
status = "okay";
21+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "nrf7120dk_nrf7120_cpuapp.overlay"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "nrf7120dk_nrf7120_cpuapp.overlay"

tests/zephyr/drivers/gpio/gpio_basic_api/testcase.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ tests:
1313
integration_platforms:
1414
- nrf54l09pdk/nrf54l09/cpuapp
1515
- nrf54l20pdk/nrf54l20/cpuapp
16+
- nrf54l20pdk/nrf54l20/cpuapp
17+
- nrf7120pdk/nrf7120/cpuapp
1618
platform_allow:
1719
- nrf54l09pdk/nrf54l09/cpuapp
1820
- nrf54l09pdk/nrf54l09/cpuflpr
1921
- nrf54l20pdk/nrf54l20/cpuapp
2022
- nrf54l20pdk/nrf54l20/cpuflpr
23+
- nrf7120pdk/nrf7120/cpuapp

0 commit comments

Comments
 (0)