tests: drivers: gpio_basic_api: add more boards

add nucleo_h745zi_q_stm32h745xx_m7 overlay
add stm32mp257f_ev1_stm32mp257fxx_m33 overlay

Signed-off-by: Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
This commit is contained in:
Alexander Kozhinov 2025-03-01 22:40:50 +01:00 committed by Chris Friedt
parent 10dd8fe11d
commit 6303018b1c
4 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,16 @@
/*
* Copyright (c) 2025 Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/* loopback with arduino header D0 (PB7) and D1 (PB6) */
/ {
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)>;
};
};

View File

@ -0,0 +1,16 @@
/*
* Copyright (c) 2025 Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/* loopback with arduino header D0 (PB7) and D1 (PB6) */
/ {
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)>;
};
};

View File

@ -0,0 +1,23 @@
/*
* Copyright (c) 2025 Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* PB7 (GPIO.SPI3 SCK / GPIO11) and PB8 (GPIO.SPI3 MOSI / GPIO10)
* must be shorted by a wire.
*/
/ {
resources {
compatible = "test-gpio-basic-api";
status = "okay";
out-gpios = <&gpiob 7 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
in-gpios = <&gpiob 8 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;
};
};
&gpiob {
status = "okay";
};

View File

@ -77,6 +77,9 @@ tests:
- nucleo_wb09ke
- nucleo_wb05kz
- nucleo_wba55cg
- nucleo_h745zi_q/stm32h745xx/m7
- nucleo_h745zi_q/stm32h745xx/m4
- stm32mp257f_ev1/stm32mp257fxx/m33
integration_platforms:
- mimxrt595_evk/mimxrt595s/cm33
drivers.gpio.st_2pin_arduino: