tests: gpio: gpio_basic_api: update customerized board list
update boards that can not use the common pins mimxrt102x reuse with ethernet mimxrt106x has external pull up lpcxpresso55s3x reuse with int add CONFIG_SKIP_PULL_TEST by default to be more general user can enable this test in customized case with select pin ST prefer to using D9 D10 pair to testing. Signed-off-by: Hake Huang <hake.huang@nxp.com>
This commit is contained in:
parent
2d0e6d7fbe
commit
999e31e26f
14 changed files with 212 additions and 5 deletions
16
tests/drivers/gpio/gpio_basic_api/arduino_D9D10.overlay
Normal file
16
tests/drivers/gpio/gpio_basic_api/arduino_D9D10.overlay
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* loopback with arduino header D9 and D10 */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
resources {
|
||||||
|
compatible = "test-gpio-basic-api";
|
||||||
|
status = "okay";
|
||||||
|
out-gpios = <&arduino_header 15 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
in-gpios = <&arduino_header 16 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,2 @@
|
||||||
|
CONFIG_SKIP_PULL_TEST=y
|
||||||
|
CONFIG_READ_DELAY=100
|
|
@ -0,0 +1,15 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2019, 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* loopback with arduino header A0 and A1 */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
resources {
|
||||||
|
compatible = "test-gpio-basic-api";
|
||||||
|
out-gpios = <&arduino_header 0 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
in-gpios = <&arduino_header 1 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,13 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2019, 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
resources {
|
||||||
|
compatible = "test-gpio-basic-api";
|
||||||
|
out-gpios = <&arduino_header 0 (GPIO_PUSH_PULL | GPIO_PULL_UP)>; /* Arduino A0 */
|
||||||
|
in-gpios = <&arduino_header 1 (GPIO_PUSH_PULL | GPIO_PULL_UP)>; /* Arduino A1 */
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* loopback with arduino header D0 and D1 */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
resources {
|
||||||
|
compatible = "test-gpio-basic-api";
|
||||||
|
status = "okay";
|
||||||
|
out-gpios = <&arduino_header 6 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
in-gpios = <&arduino_header 7 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* loopback with arduino header D0 and D1 */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
resources {
|
||||||
|
compatible = "test-gpio-basic-api";
|
||||||
|
status = "okay";
|
||||||
|
out-gpios = <&arduino_header 6 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
in-gpios = <&arduino_header 7 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* loopback with arduino header D0 and D1 */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
resources {
|
||||||
|
compatible = "test-gpio-basic-api";
|
||||||
|
status = "okay";
|
||||||
|
out-gpios = <&arduino_header 6 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
in-gpios = <&arduino_header 7 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* loopback with arduino header D0 and D1 */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
resources {
|
||||||
|
compatible = "test-gpio-basic-api";
|
||||||
|
status = "okay";
|
||||||
|
out-gpios = <&arduino_header 6 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
in-gpios = <&arduino_header 7 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* loopback with arduino header D0 and D1 */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
resources {
|
||||||
|
compatible = "test-gpio-basic-api";
|
||||||
|
status = "okay";
|
||||||
|
out-gpios = <&arduino_header 6 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
in-gpios = <&arduino_header 7 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* loopback with arduino header D10 and D11 */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
resources {
|
||||||
|
compatible = "test-gpio-basic-api";
|
||||||
|
status = "okay";
|
||||||
|
out-gpios = <&arduino_header 16 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
in-gpios = <&arduino_header 17 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* loopback with arduino header D10 and D11 */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
resources {
|
||||||
|
compatible = "test-gpio-basic-api";
|
||||||
|
status = "okay";
|
||||||
|
out-gpios = <&arduino_header 16 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
in-gpios = <&arduino_header 17 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* loopback with arduino header D2 and D3 */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
resources {
|
||||||
|
compatible = "test-gpio-basic-api";
|
||||||
|
status = "okay";
|
||||||
|
out-gpios = <&arduino_header 8 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
in-gpios = <&arduino_header 9 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -36,15 +36,23 @@ tests:
|
||||||
depends_on:
|
depends_on:
|
||||||
- gpio
|
- gpio
|
||||||
- arduino_gpio
|
- arduino_gpio
|
||||||
filter: dt_compat_enabled("test-gpio-basic-api") and dt_compat_enabled("arduino-header-r3")
|
filter: >
|
||||||
extra_args: "DTC_OVERLAY_FILE=arduino.overlay"
|
dt_compat_enabled("test-gpio-basic-api") and dt_compat_enabled("arduino-header-r3")
|
||||||
|
and not CONFIG_SOC_FAMILY_STM32
|
||||||
|
extra_args: "DTC_OVERLAY_FILE=arduino_D2D3.overlay"
|
||||||
|
extra_configs:
|
||||||
|
- CONFIG_SKIP_PULL_TEST=y
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- frdm_k64f
|
- frdm_k64f
|
||||||
platform_exclude:
|
platform_exclude:
|
||||||
# below boards are mikro bus not arduino
|
# below boards are customized
|
||||||
- da14695_dk_usb
|
|
||||||
- mimxrt595_evk/mimxrt595s/cm33
|
- mimxrt595_evk/mimxrt595s/cm33
|
||||||
|
- mimxrt1020_evk
|
||||||
|
- mimxrt1040_evk
|
||||||
|
- mimxrt1060_evk
|
||||||
|
- mimxrt1060_evkb
|
||||||
|
- lpcxpresso55s69/lpc55s69/cpu0
|
||||||
|
- lpcxpresso55s36
|
||||||
drivers.gpio.2pin_arduino_customized:
|
drivers.gpio.2pin_arduino_customized:
|
||||||
min_flash: 34
|
min_flash: 34
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -53,3 +61,28 @@ tests:
|
||||||
filter: dt_compat_enabled("test-gpio-basic-api") and dt_compat_enabled("arduino-header-r3")
|
filter: dt_compat_enabled("test-gpio-basic-api") and dt_compat_enabled("arduino-header-r3")
|
||||||
platform_allow:
|
platform_allow:
|
||||||
- mimxrt595_evk/mimxrt595s/cm33
|
- mimxrt595_evk/mimxrt595s/cm33
|
||||||
|
- mimxrt1020_evk
|
||||||
|
- mimxrt1040_evk
|
||||||
|
- mimxrt1060_evk
|
||||||
|
- mimxrt1060_evkb
|
||||||
|
- lpcxpresso55s69/lpc55s69/cpu0
|
||||||
|
- lpcxpresso55s36
|
||||||
|
- nucleo_wb09ke
|
||||||
|
- nucleo_wb05kz
|
||||||
|
- nucleo_wba55cg
|
||||||
|
drivers.gpio.st_2pin_arduino:
|
||||||
|
min_flash: 34
|
||||||
|
depends_on:
|
||||||
|
- gpio
|
||||||
|
- arduino_gpio
|
||||||
|
filter: >
|
||||||
|
dt_compat_enabled("test-gpio-basic-api") and dt_compat_enabled("arduino-header-r3")
|
||||||
|
and CONFIG_SOC_FAMILY_STM32
|
||||||
|
extra_args: "DTC_OVERLAY_FILE=arduino_D9D10.overlay"
|
||||||
|
integration_platforms:
|
||||||
|
- disco_l475_iot1
|
||||||
|
platform_exclude:
|
||||||
|
# below boards need customized
|
||||||
|
- nucleo_wb05kz
|
||||||
|
- nucleo_wb09ke
|
||||||
|
- nucleo_wba55cg
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue