From 2507752d7f065f2b93a322bef5ccb8779bfcce4a Mon Sep 17 00:00:00 2001 From: Dimitrije Lilic Date: Thu, 12 Sep 2024 15:55:17 +0200 Subject: [PATCH] tests: drivers: spi: spi_loopback: Support RTIO tests for APARD32690 Add overlay for APARD32690 board and add a new test case to test RTIO functionalities of SPI MAX32 driver. Signed-off-by: Dimitrije Lilic --- .../boards/apard32690_max32690_m4.overlay | 19 +++++++++++++++++++ .../spi_loopback/overlay-max32-spi-rtio.conf | 7 +++++++ tests/drivers/spi/spi_loopback/testcase.yaml | 6 ++++++ 3 files changed, 32 insertions(+) create mode 100644 tests/drivers/spi/spi_loopback/boards/apard32690_max32690_m4.overlay create mode 100644 tests/drivers/spi/spi_loopback/overlay-max32-spi-rtio.conf diff --git a/tests/drivers/spi/spi_loopback/boards/apard32690_max32690_m4.overlay b/tests/drivers/spi/spi_loopback/boards/apard32690_max32690_m4.overlay new file mode 100644 index 00000000000..0a3dbc158db --- /dev/null +++ b/tests/drivers/spi/spi_loopback/boards/apard32690_max32690_m4.overlay @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2024 Analog Devices, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +arduino_spi: &spi1 { + status = "okay"; + slow@0 { + compatible = "test-spi-loopback-slow"; + reg = <0>; + spi-max-frequency = <128000>; + }; + fast@0 { + compatible = "test-spi-loopback-fast"; + reg = <0>; + spi-max-frequency = <500000>; + }; +}; diff --git a/tests/drivers/spi/spi_loopback/overlay-max32-spi-rtio.conf b/tests/drivers/spi/spi_loopback/overlay-max32-spi-rtio.conf new file mode 100644 index 00000000000..dcf44166a3b --- /dev/null +++ b/tests/drivers/spi/spi_loopback/overlay-max32-spi-rtio.conf @@ -0,0 +1,7 @@ +# +# Copyright (c) 2024 Analog Devices, Inc. +# +# SPDX-License-Identifier: Apache-2.0 +# +CONFIG_SPI_RTIO=y +CONFIG_SPI_ASYNC=n diff --git a/tests/drivers/spi/spi_loopback/testcase.yaml b/tests/drivers/spi/spi_loopback/testcase.yaml index 3087e65c640..5ed122bfd01 100644 --- a/tests/drivers/spi/spi_loopback/testcase.yaml +++ b/tests/drivers/spi/spi_loopback/testcase.yaml @@ -210,3 +210,9 @@ tests: platform_allow: - s32z2xxdc2/s32z270/rtu0 - s32z2xxdc2/s32z270/rtu1 + drivers.spi.max32_spi_rtio.loopback: + extra_args: + - OVERLAY_CONFIG="overlay-max32-spi-rtio.conf" + filter: CONFIG_SOC_FAMILY_MAX32 + platform_allow: + - apard32690/max32690/m4