Skip to content

Commit 68fd628

Browse files
erdemsimseknordicjm
authored andcommitted
tests: drivers: gpio: Enable hpf_gpio_basic_api on nRF7120
Enables hpf_gpio_basic_api on nRF7120. Signed-off-by: Erdem Simsek <erdem.simsek@nordicsemi.no>
1 parent 3693970 commit 68fd628

3 files changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* Test requires GPIO loopback between P2.00 and P1.01. */
8+
9+
/ {
10+
resources {
11+
compatible = "test-hpf-gpio";
12+
out-gpios = <&hpf_gpio 0 GPIO_ACTIVE_HIGH>;
13+
in-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
14+
};
15+
};
16+
17+
&gpiote20 {
18+
status = "okay";
19+
};
20+
21+
&gpio1 {
22+
status = "okay";
23+
};

tests/drivers/gpio/hpf_gpio_basic_api/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ common:
1313
- nrf54lm20dk/nrf54lm20a/cpuapp
1414
- nrf54lm20dk/nrf54lm20b/cpuapp
1515
- nrf54lv10dk/nrf54lv10a/cpuapp
16+
- nrf7120dk/nrf7120/cpuapp
1617
integration_platforms:
1718
- nrf54l15dk/nrf54l15/cpuapp
1819
sysbuild: true
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* Test requires GPIO loopback between P2.09 and P1.01. */
8+
9+
/ {
10+
/* Test requirements:
11+
* out-gpios[0] wire connected with in-gpios[0],
12+
* out-gpios[1] wire connected with in-gpios[1],
13+
* etc.
14+
* Output-input GPIO pair must have identical active level flag.
15+
* All outputs must be on the same device.
16+
*/
17+
zephyr,user {
18+
out-gpios = <&hpf_gpio 9 GPIO_ACTIVE_HIGH>;
19+
in-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
20+
};
21+
};
22+
23+
&gpiote20 {
24+
status = "okay";
25+
};
26+
27+
&gpio1 {
28+
status = "okay";
29+
};

0 commit comments

Comments
 (0)