Skip to content

Commit

Permalink
tests: drivers: spi: spi_loopback: Add support for RTIO tests for APA…
Browse files Browse the repository at this point in the history
…RD32690 board

Add overlay for APARD32690 board and add a new test case to
test RTIO functionalities of SPI MAX32 driver.

Signed-off-by: Dimitrije Lilic <dimitrije.lilic@orioninc.com>
  • Loading branch information
dimitrije-lilic committed Sep 12, 2024
1 parent e02f5c0 commit 5507933
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Copyright (c) 2024 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

&spi1a_miso_p1_28 {
power-source = <MAX32_VSEL_VDDIOH>;
};

&spi1a_mosi_p1_29 {
power-source = <MAX32_VSEL_VDDIOH>;
};

&spi1a_sck_p1_26 {
power-source = <MAX32_VSEL_VDDIOH>;
};

&spi1a_ss0_p1_23 {
power-source = <MAX32_VSEL_VDDIOH>;
};

arduino_spi: &spi1 {
pinctrl-0 = <&spi1a_miso_p1_28 &spi1a_mosi_p1_29 &spi1a_sck_p1_26
&spi1a_ss0_p1_23>;
pinctrl-names = "default";
compatible = "adi,max32-spi";
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>;
};
};

Check warning on line 39 in tests/drivers/spi/spi_loopback/boards/apard32690_max32690_m4.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

MISSING_EOF_NEWLINE

tests/drivers/spi/spi_loopback/boards/apard32690_max32690_m4.overlay:39 adding a line without newline at end of file
7 changes: 7 additions & 0 deletions tests/drivers/spi/spi_loopback/overlay-max32-spi-rtio.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2024 Analog Devices, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SPI_RTIO=y
CONFIG_SPI_ASYNC=n
7 changes: 7 additions & 0 deletions tests/drivers/spi/spi_loopback/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,10 @@ tests:
drivers.spi.max32_dma.loopback:
extra_args: OVERLAY_CONFIG="overlay-max32-spi-dma.conf"
filter: CONFIG_SOC_FAMILY_MAX32
drivers.spi.max32_spi_rtio.loopback:
extra_args:

Check warning on line 208 in tests/drivers/spi/spi_loopback/testcase.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (trailing-spaces)

tests/drivers/spi/spi_loopback/testcase.yaml:208 trailing spaces
- OVERLAY_CONFIG="overlay-max32-spi-rtio.conf"
- DTC_OVERLAY_FILE="boards/apard32690_max32690_m4.overlay"
filter: CONFIG_SOC_FAMILY_MAX32
platform_allow:
- apard32690/max32690/m4

Check warning on line 213 in tests/drivers/spi/spi_loopback/testcase.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (new-line-at-end-of-file)

tests/drivers/spi/spi_loopback/testcase.yaml:213 no new line character at the end of file

0 comments on commit 5507933

Please sign in to comment.