Skip to content

Commit c500931

Browse files
Hi-Im-Davidnordic-piks
authored andcommitted
tests: drivers: gpio: Enable gpio tests on nrf7120pdk
Add overlays required to execute gpio tests on nrf7120pdk. Signed-off-by: David Jewsbury <[email protected]>
1 parent 766cde6 commit c500931

File tree

4 files changed

+79
-0
lines changed

4 files changed

+79
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 = <&gpio2 8 GPIO_ACTIVE_HIGH>, <&gpio1 8 GPIO_ACTIVE_HIGH>,
18+
<&gpio1 10 GPIO_ACTIVE_HIGH>, <&gpio1 12 GPIO_ACTIVE_HIGH>,
19+
<&gpio2 10 GPIO_ACTIVE_HIGH>;
20+
};
21+
22+
in_gpios: in_gpios {
23+
gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>, <&gpio1 9 GPIO_ACTIVE_HIGH>,
24+
<&gpio1 11 GPIO_ACTIVE_HIGH>, <&gpio1 13 GPIO_ACTIVE_HIGH>,
25+
<&gpio1 14 GPIO_ACTIVE_HIGH>;
26+
};
27+
};
28+
};
29+
30+
&gpiote20 {
31+
status = "okay";
32+
};
33+
34+
&gpio1 {
35+
status = "okay";
36+
};
37+
38+
&gpio2 {
39+
status = "okay";
40+
};

tests/drivers/gpio/gpio_more_loops/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ tests:
1919
- nrf54l20pdk/nrf54l20/cpuapp
2020
- nrf54l20pdk/nrf54l20/cpuflpr
2121
- nrf54h20dk/nrf54h20/cpuapp
22+
- nrf7120pdk/nrf7120/cpuapp
2223
integration_platforms:
2324
- nrf54l15dk/nrf54l15/cpuapp
2425
- nrf54l20pdk/nrf54l20/cpuapp
2526
- nrf54l09pdk/nrf54l09/cpuapp
2627
- nrf54h20dk/nrf54h20/cpuapp
28+
- nrf7120pdk/nrf7120/cpuapp
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
/* Test requirements:
9+
* P1.00 shorted with P1.01;
10+
* P1.02 shorted with P1.03.
11+
* (NFC pins are P1.01 and P1.02)
12+
*/
13+
test_gpios {
14+
compatible = "gpio-leds";
15+
out_gpios: out_gpios {
16+
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>, <&gpio1 2 GPIO_ACTIVE_HIGH>;
17+
};
18+
19+
in_gpios: in_gpios {
20+
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>, <&gpio1 3 GPIO_ACTIVE_HIGH>;
21+
};
22+
};
23+
};
24+
25+
&uicr {
26+
nfct-pins-as-gpios;
27+
};
28+
29+
&gpiote20 {
30+
status = "okay";
31+
};
32+
33+
&gpio1 {
34+
status = "okay";
35+
};

tests/drivers/gpio/gpio_nfct/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ tests:
1616
- nrf54l20pdk/nrf54l20/cpuapp
1717
- nrf54h20dk/nrf54h20/cpuapp
1818
- nrf54h20dk/nrf54h20/cpurad
19+
- nrf7120pdk/nrf7120/cpuapp
1920
integration_platforms:
2021
- nrf54l15dk/nrf54l15/cpuapp
2122
- nrf54l20pdk/nrf54l20/cpuapp
2223
- nrf54h20dk/nrf54h20/cpuapp
24+
- nrf7120pdk/nrf7120/cpuapp

0 commit comments

Comments
 (0)