Skip to content

Commit eacdaa3

Browse files
hakehuangjhedberg
authored andcommitted
tests: gpio: enable gpio_basic_api on arduino for frdm_rw612
enable gpio test on frdm_rw612 board add hsgpio test on frdm_rw612 Signed-off-by: Hake Huang <[email protected]>
1 parent 625e2ac commit eacdaa3

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

boards/nxp/frdm_rw612/frdm_rw612.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ toolchain:
1414
ram: 960
1515
flash: 65536
1616
supported:
17+
- arduino_gpio
1718
- gpio
1819
- dma
1920
- spi
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright NXP 2025
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
resources {
9+
compatible = "test-gpio-basic-api";
10+
out-gpios = <&hsgpio0 18 GPIO_ACTIVE_HIGH>; /* gpio18 J7-2 */
11+
in-gpios = <&hsgpio1 12 GPIO_ACTIVE_HIGH>; /* gpio44 J7-4 */
12+
};
13+
};
14+
15+
&hsgpio0 {
16+
status = "okay";
17+
};
18+
19+
&hsgpio1 {
20+
status = "okay";
21+
};

tests/drivers/gpio/gpio_basic_api/testcase.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,11 @@ tests:
130130
- nrf54h20dk/nrf54h20/cpurad
131131
extra_args:
132132
- DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpurad_gpiote0.overlay"
133+
drivers.gpio.2pin_hsgpio:
134+
min_flash: 34
135+
filter: dt_compat_enabled("test-gpio-basic-api")
136+
platform_allow:
137+
- frdm_rw612
138+
extra_args: "DTC_OVERLAY_FILE=boards/frdm_rw612_hsgpio.overlay"
139+
harness_config:
140+
fixture: hsgpio_loopback

0 commit comments

Comments
 (0)