From 263582164f8155bbbf269927f061fd1b004f0ff8 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Tue, 20 Dec 2022 12:39:20 +0100 Subject: [PATCH] tests: drivers: spi loopback on the stm32h573i_dk (interrupt) Add the configuration for running the spi_loopback (interrupt mode) on the stm32h573i_dk disco kit. The SPI2 is enabled by the board DTS Connect pin D11 and D12 on the Arduino connector (CN13) Signed-off-by: Francois Ramu --- .../spi_loopback/boards/stm32h573i_dk.overlay | 22 +++++++++++++++++++ tests/drivers/spi/spi_loopback/testcase.yaml | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tests/drivers/spi/spi_loopback/boards/stm32h573i_dk.overlay diff --git a/tests/drivers/spi/spi_loopback/boards/stm32h573i_dk.overlay b/tests/drivers/spi/spi_loopback/boards/stm32h573i_dk.overlay new file mode 100644 index 00000000000000..0966bd4d008e73 --- /dev/null +++ b/tests/drivers/spi/spi_loopback/boards/stm32h573i_dk.overlay @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2023 STMicroelectronics + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&rcc { + apb1-prescaler = <2>; +}; + +&spi2 { + slow@0 { + compatible = "test-spi-loopback-slow"; + reg = <0>; + spi-max-frequency = <500000>; + }; + fast@0 { + compatible = "test-spi-loopback-fast"; + reg = <0>; + spi-max-frequency = <10000000>; + }; +}; diff --git a/tests/drivers/spi/spi_loopback/testcase.yaml b/tests/drivers/spi/spi_loopback/testcase.yaml index 3dea99e464462e..3a834276e80e32 100644 --- a/tests/drivers/spi/spi_loopback/testcase.yaml +++ b/tests/drivers/spi/spi_loopback/testcase.yaml @@ -28,7 +28,7 @@ tests: extra_args: OVERLAY_CONFIG="overlay-stm32-spi-dma.conf" filter: CONFIG_SOC_FAMILY_STM32 platform_allow: nucleo_g474re nucleo_f207zg nucleo_f429zi nucleo_f746zg nucleo_wb55rg - nucleo_l152re nucleo_wl55jc nucleo_h743zi + nucleo_l152re nucleo_wl55jc nucleo_h743zi stm32h573i_dk integration_platforms: - nucleo_g474re drivers.spi.gd32_spi_interrupt.loopback: