Skip to content

Commit

Permalink
tests: drivers: spi: spi_loopback: Support RTIO tests for APARD32690
Browse files Browse the repository at this point in the history
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 16, 2024
1 parent eb7dad1 commit 83a268d
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
16 changes: 16 additions & 0 deletions boards/adi/apard32690/apard32690_max32690_m4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,22 @@ arduino_serial: &uart1 {
current-speed = <115200>;
};

&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>;
Expand Down
Original file line number Diff line number Diff line change
@@ -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>;
};
};
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
6 changes: 6 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,9 @@ 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:
- OVERLAY_CONFIG="overlay-max32-spi-rtio.conf"
filter: CONFIG_SOC_FAMILY_MAX32
platform_allow:
- apard32690/max32690/m4

0 comments on commit 83a268d

Please sign in to comment.