Skip to content

Commit d2334ac

Browse files
nordic-pikrrlubos
authored andcommitted
[nrf fromlist] tests: drivers: gpio: add nrf54h20dk_nrf54h20_cpuppr
Enable GPIO tests on nRF54H20 CPUPPR. Upstream PR #: 97073 Signed-off-by: Piotr Krzyzanowski <[email protected]>
1 parent 37b9a01 commit d2334ac

File tree

5 files changed

+104
-0
lines changed

5 files changed

+104
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
/ {
4+
aliases {
5+
led0 = &led0;
6+
};
7+
8+
leds {
9+
compatible = "gpio-leds";
10+
led0: led_0 {
11+
gpios = <&gpio9 0 GPIO_ACTIVE_HIGH>;
12+
label = "Green LED 0";
13+
};
14+
};
15+
};
16+
17+
&gpiote130 {
18+
status = "okay";
19+
};
20+
21+
&gpio9 {
22+
status = "okay";
23+
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
/ {
4+
aliases {
5+
led0 = &led0;
6+
};
7+
8+
leds {
9+
compatible = "gpio-leds";
10+
led0: led_0 {
11+
gpios = <&gpio9 0 GPIO_ACTIVE_HIGH>;
12+
label = "Green LED 0";
13+
};
14+
};
15+
};
16+
17+
&gpiote130 {
18+
status = "okay";
19+
};
20+
21+
&gpio9 {
22+
status = "okay";
23+
};
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
/ {
4+
zephyr,user {
5+
output-high-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
6+
output-low-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
7+
input-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
8+
};
9+
};
10+
11+
&gpio0 {
12+
status = "okay";
13+
hog1 {
14+
gpio-hog;
15+
gpios = <3 GPIO_ACTIVE_LOW>;
16+
output-high;
17+
};
18+
19+
hog2 {
20+
gpio-hog;
21+
gpios = <4 GPIO_ACTIVE_HIGH>;
22+
output-low;
23+
};
24+
25+
hog3 {
26+
gpio-hog;
27+
gpios = <1 GPIO_ACTIVE_LOW>;
28+
input;
29+
};
30+
};
31+
32+
&gpiote130 {
33+
status = "okay";
34+
};

tests/drivers/gpio/gpio_hogs/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ tests:
1111
- nrf52840dk/nrf52840
1212
- nrf54l15dk/nrf54l15/cpuapp
1313
- nrf54h20dk/nrf54h20/cpuapp
14+
- nrf54h20dk/nrf54h20/cpuppr
1415
- nucleo_g474re
1516
- nrf52_bsim
1617
- nrf5340bsim/nrf5340/cpuapp
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
/ {
4+
aliases {
5+
led0 = &led0;
6+
};
7+
8+
leds {
9+
compatible = "gpio-leds";
10+
led0: led_0 {
11+
gpios = <&gpio9 0 GPIO_ACTIVE_HIGH>;
12+
label = "Green LED 0";
13+
};
14+
};
15+
};
16+
17+
&gpiote130 {
18+
status = "okay";
19+
};
20+
21+
&gpio9 {
22+
status = "okay";
23+
};

0 commit comments

Comments
 (0)