Skip to content

Commit 031be6c

Browse files
committed
tests: drivers: gpio: add nrf54h20dk_nrf54h20_cpuppr
Enable GPIO tests on nRF54H20 CPUPPR. Signed-off-by: Piotr Krzyzanowski <[email protected]>
1 parent e0e8f74 commit 031be6c

File tree

6 files changed

+88
-0
lines changed

6 files changed

+88
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_NRF_REGTOOL_VERBOSITY=1
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 = <&gpio0 0 GPIO_ACTIVE_HIGH>, <&gpio2 8 GPIO_ACTIVE_HIGH>,
18+
<&gpio1 2 GPIO_ACTIVE_HIGH>, <&gpio7 2 GPIO_ACTIVE_HIGH>,
19+
<&gpio7 6 GPIO_ACTIVE_HIGH>, <&gpio1 5 GPIO_ACTIVE_HIGH>;
20+
};
21+
22+
in_gpios: in_gpios {
23+
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>, <&gpio2 9 GPIO_ACTIVE_HIGH>,
24+
<&gpio1 3 GPIO_ACTIVE_HIGH>, <&gpio1 0 GPIO_ACTIVE_HIGH>,
25+
<&gpio7 7 GPIO_ACTIVE_HIGH>, <&gpio7 1 GPIO_ACTIVE_HIGH>;
26+
};
27+
};
28+
};
29+
30+
&gpiote130 {
31+
status = "okay";
32+
owned-channels = <7>;
33+
};
34+
35+
&gpio0 {
36+
status = "okay";
37+
};
38+
39+
&gpio1 {
40+
status = "okay";
41+
};
42+
43+
&gpio2 {
44+
status = "okay";
45+
};
46+
47+
&gpio7 {
48+
status = "okay";
49+
};

tests/drivers/gpio/gpio_more_loops/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ tests:
1313
drivers.gpio.gpio_more_loops:
1414
platform_allow:
1515
- nrf54h20dk/nrf54h20/cpuapp
16+
- nrf54h20dk/nrf54h20/cpuppr
1617
- nrf54l15dk/nrf54l15/cpuapp
1718
- nrf54l15dk/nrf54l15/cpuflpr
1819
- nrf54lm20dk/nrf54lm20a/cpuapp
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_NRF_REGTOOL_VERBOSITY=1
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+
* NFC antenna connected to the DK.
10+
*/
11+
test_gpios {
12+
compatible = "gpio-leds";
13+
out_gpios: out_gpios {
14+
gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
15+
};
16+
17+
in_gpios: in_gpios {
18+
gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
19+
};
20+
};
21+
};
22+
23+
&nfct {
24+
status = "disabled";
25+
nfct-pins-as-gpios;
26+
};
27+
28+
&gpiote130 {
29+
status = "okay";
30+
owned-channels = <7>;
31+
};
32+
33+
&gpio2 {
34+
status = "okay";
35+
};

tests/drivers/gpio/gpio_nfct/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ tests:
1414
platform_allow:
1515
- nrf54h20dk/nrf54h20/cpuapp
1616
- nrf54h20dk/nrf54h20/cpurad
17+
- nrf54h20dk/nrf54h20/cpuppr
1718
- nrf54l15dk/nrf54l15/cpuapp
1819
- nrf54lm20dk/nrf54lm20a/cpuapp
1920
- nrf7120pdk/nrf7120/cpuapp

0 commit comments

Comments
 (0)