From 6303018b1c08aa7063b9bec63d8d55dfc1c01b68 Mon Sep 17 00:00:00 2001 From: Alexander Kozhinov Date: Sat, 1 Mar 2025 22:40:50 +0100 Subject: [PATCH] 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 --- .../nucleo_h745zi_q_stm32h745xx_m4.overlay | 16 +++++++++++++ .../nucleo_h745zi_q_stm32h745xx_m7.overlay | 16 +++++++++++++ .../stm32mp257f_ev1_stm32mp257fxx_m33.overlay | 23 +++++++++++++++++++ .../drivers/gpio/gpio_basic_api/testcase.yaml | 3 +++ 4 files changed, 58 insertions(+) create mode 100644 tests/drivers/gpio/gpio_basic_api/boards/nucleo_h745zi_q_stm32h745xx_m4.overlay create mode 100644 tests/drivers/gpio/gpio_basic_api/boards/nucleo_h745zi_q_stm32h745xx_m7.overlay create mode 100644 tests/drivers/gpio/gpio_basic_api/boards/stm32mp257f_ev1_stm32mp257fxx_m33.overlay diff --git a/tests/drivers/gpio/gpio_basic_api/boards/nucleo_h745zi_q_stm32h745xx_m4.overlay b/tests/drivers/gpio/gpio_basic_api/boards/nucleo_h745zi_q_stm32h745xx_m4.overlay new file mode 100644 index 00000000000..ebb48a49813 --- /dev/null +++ b/tests/drivers/gpio/gpio_basic_api/boards/nucleo_h745zi_q_stm32h745xx_m4.overlay @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Alexander Kozhinov + * + * 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)>; + }; +}; diff --git a/tests/drivers/gpio/gpio_basic_api/boards/nucleo_h745zi_q_stm32h745xx_m7.overlay b/tests/drivers/gpio/gpio_basic_api/boards/nucleo_h745zi_q_stm32h745xx_m7.overlay new file mode 100644 index 00000000000..ebb48a49813 --- /dev/null +++ b/tests/drivers/gpio/gpio_basic_api/boards/nucleo_h745zi_q_stm32h745xx_m7.overlay @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Alexander Kozhinov + * + * 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)>; + }; +}; diff --git a/tests/drivers/gpio/gpio_basic_api/boards/stm32mp257f_ev1_stm32mp257fxx_m33.overlay b/tests/drivers/gpio/gpio_basic_api/boards/stm32mp257f_ev1_stm32mp257fxx_m33.overlay new file mode 100644 index 00000000000..192bdff7bc7 --- /dev/null +++ b/tests/drivers/gpio/gpio_basic_api/boards/stm32mp257f_ev1_stm32mp257fxx_m33.overlay @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2025 Alexander Kozhinov + * + * 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"; +}; diff --git a/tests/drivers/gpio/gpio_basic_api/testcase.yaml b/tests/drivers/gpio/gpio_basic_api/testcase.yaml index 71f55e493cc..97083a30fef 100644 --- a/tests/drivers/gpio/gpio_basic_api/testcase.yaml +++ b/tests/drivers/gpio/gpio_basic_api/testcase.yaml @@ -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: