Skip to content

Commit 7484e74

Browse files
committed
tests: drivers: gpio: basic_api: Add nrf54h20/cpurad GPIOTE0 config
Add configuration for testing GPIOTE0 instance on nrf54h20/cpurad. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
1 parent 3949f5d commit 7484e74

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&pinctrl {
4+
gpiote0_default_alt: gpiote0_default_alt {
5+
group1 {
6+
psels = <NRF_PSEL(SPIM_SCK, 1, 4)>;
7+
};
8+
};
9+
};
10+
11+
/ {
12+
resources {
13+
compatible = "test-gpio-basic-api";
14+
out-gpios = <&gpio1 5 0>;
15+
in-gpios = <&gpio1 4 0>;
16+
};
17+
};
18+
19+
&gpio1 {
20+
status = "okay";
21+
gpiote-instance = <&gpiote0>;
22+
};
23+
24+
&gpiote0 {
25+
status = "okay";
26+
pinctrl-0 = <&gpiote0_default_alt>;
27+
pinctrl-names = "default";
28+
};

tests/drivers/gpio/gpio_basic_api/testcase.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,10 @@ tests:
111111
platform_allow:
112112
- siwx917_rb4338a
113113
extra_args: "DTC_OVERLAY_FILE=boards/siwx917_rb4338a-uulp.overlay"
114+
drivers.gpio.2pin.nrf54h20_cpurad_gpiote0:
115+
harness_config:
116+
fixture: i2s_loopback # Loopback includes the pin pair needed for that test
117+
platform_allow:
118+
- nrf54h20dk/nrf54h20/cpurad
119+
extra_args:
120+
- DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpurad_gpiote0.overlay"

0 commit comments

Comments
 (0)