Skip to content

Commit 44e02cc

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 8f60b74 commit 44e02cc

File tree

7 files changed

+154
-0
lines changed

7 files changed

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

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 0x0 0x0 >;
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)