Skip to content

Commit 3f88f52

Browse files
tests: drivers: gpio: add overlay to run test on NXP frdm_mcxw23 and mcxw23_evk
Support arduino_gpio example for NXP frdm_mcxw23 and mcxw23_evk boards. Test using tests/drivers/gpio/gpio_basic_api. Signed-off-by: Allen Zhang <[email protected]>
1 parent 3e581f5 commit 3f88f52

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* loopback with arduino header D12 and D13
8+
* To test this sample, connect J2_5 to J2_6 on frdm_mcxw23
9+
*/
10+
11+
/ {
12+
resources {
13+
compatible = "test-gpio-basic-api";
14+
status = "okay";
15+
out-gpios = <&arduino_header ARDUINO_HEADER_R3_D12 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
16+
in-gpios = <&arduino_header ARDUINO_HEADER_R3_D13 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
17+
};
18+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_SKIP_PULL_TEST=y
2+
CONFIG_READ_DELAY=10
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* loopback with arduino header D10 and D13
8+
* To test this sample, connect J24_3 to J24_6 on mcxw23_evk
9+
*/
10+
11+
/ {
12+
resources {
13+
compatible = "test-gpio-basic-api";
14+
status = "okay";
15+
out-gpios = <&arduino_header ARDUINO_HEADER_R3_D13 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
16+
in-gpios = <&arduino_header ARDUINO_HEADER_R3_D10 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
17+
};
18+
};

tests/drivers/gpio/gpio_basic_api/testcase.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ tests:
6666
- mimxrt1060_evk@C/mimxrt1062/qspi
6767
- lpcxpresso55s69/lpc55s69/cpu0
6868
- lpcxpresso55s36
69+
- frdm_mcxw23
70+
- mcxw23_evk
6971
drivers.gpio.2pin_arduino_customized:
7072
min_flash: 34
7173
depends_on:
@@ -85,6 +87,8 @@ tests:
8587
- nucleo_h745zi_q/stm32h745xx/m7
8688
- nucleo_h745zi_q/stm32h745xx/m4
8789
- stm32mp257f_ev1/stm32mp257fxx/m33
90+
- frdm_mcxw23
91+
- mcxw23_evk
8892
integration_platforms:
8993
- mimxrt595_evk/mimxrt595s/cm33
9094
drivers.gpio.st_2pin_arduino:

0 commit comments

Comments
 (0)