-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: drivers: spi: spi_loopback: Add support for RTIO tests for APA…
…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
1 parent
e02f5c0
commit 5507933
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
tests/drivers/spi/spi_loopback/boards/apard32690_max32690_m4.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Run compliance checks on patch series (PR)MISSING_EOF_NEWLINE
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters