tests: drivers: spi: Add MAX32670EVKIT overlay file
Enable SPI test for MAX32670EVKIT. Signed-off-by: Mert Ekren <mert.ekren@analog.com>
This commit is contained in:
parent
28938bb958
commit
f5b34e9bd3
2 changed files with 29 additions and 0 deletions
7
tests/drivers/spi/spi_loopback/boards/max32670evkit.conf
Normal file
7
tests/drivers/spi/spi_loopback/boards/max32670evkit.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# Copyright (c) 2024 Analog Devices, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
CONFIG_SPI_ASYNC=y
|
||||
CONFIG_SPI_MAX32_INTERRUPT=y
|
22
tests/drivers/spi/spi_loopback/boards/max32670evkit.overlay
Normal file
22
tests/drivers/spi/spi_loopback/boards/max32670evkit.overlay
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Analog Devices, Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&spi0_mosi_p0_3 &spi0_miso_p0_2 &spi0_sck_p0_4 &spi0_ss0_p0_5>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
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>;
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue