Skip to content

Commit ef10a9b

Browse files
ankeXiaofabiobaltieri
authored andcommitted
tests: drivers: gpio: gpio_basic_api: add ke17z overlay file
Add frdm_ke17z_fgpio.overlay to add fgpio configuration, and add update testcase.yml to add FGPIO driver test for frdm_ke17z and frdm_ke17z512 platforms. Updated ke17z512 gpio test pins to avoid conflicts with I2C pin. Signed-off-by: Anke Xiao <[email protected]>
1 parent 22c6f32 commit ef10a9b

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

tests/drivers/gpio/gpio_basic_api/boards/frdm_ke17z512.overlay

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
/ {
88
resources {
99
compatible = "test-gpio-basic-api";
10-
out-gpios = <&gpioe 0 0>; /* Arduino D13 */
11-
in-gpios = <&gpioe 1 0>; /* Arduino D12 */
10+
out-gpios = <&gpioc 6 0>; /* Arduino D0 J1-2 */
11+
in-gpios = <&gpioc 7 0>; /* Arduino D1 J1-4 */
1212
};
1313
};
14+
15+
&gpioc {
16+
status = "okay";
17+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright NXP 2024
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
resources {
9+
compatible = "test-gpio-basic-api";
10+
out-gpios = <&fgpioa 14 0>; /* J1-16 */
11+
in-gpios = <&fgpioa 17 0>; /* J1-14 */
12+
};
13+
};
14+
15+
&fgpioa{
16+
status = "okay";
17+
};

tests/drivers/gpio/gpio_basic_api/testcase.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ tests:
2020
drivers.gpio.mr_canhubk3_wkpu:
2121
platform_allow: mr_canhubk3
2222
extra_args: "DTC_OVERLAY_FILE=boards/mr_canhubk3_wkpu.overlay"
23+
24+
drivers.gpio.2pin_ke17z_fgpio:
25+
min_flash: 34
26+
filter: dt_compat_enabled("test-gpio-basic-api")
27+
platform_allow:
28+
- frdm_ke17z
29+
- frdm_ke17z512
30+
extra_args: "DTC_OVERLAY_FILE=boards/frdm_ke17z_fgpio.overlay"
31+
harness_config:
32+
fixture: fgpio_loopback

0 commit comments

Comments
 (0)