tests: drivers: spi: Add MAX32672 boards overlay file
Enable SPI test for MAX32672 boards. Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
This commit is contained in:
parent
ce99d95d5b
commit
d6d47c7ebe
4 changed files with 54 additions and 0 deletions
5
tests/drivers/spi/spi_loopback/boards/max32672evkit.conf
Normal file
5
tests/drivers/spi/spi_loopback/boards/max32672evkit.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
# 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/max32672evkit.overlay
Normal file
22
tests/drivers/spi/spi_loopback/boards/max32672evkit.overlay
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Analog Devices, Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&spi1 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&spi1a_mosi_p0_15 &spi1a_miso_p0_14 &spi1a_sck_p0_16 &spi1a_ss0_p0_17>;
|
||||
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>;
|
||||
};
|
||||
};
|
5
tests/drivers/spi/spi_loopback/boards/max32672fthr.conf
Normal file
5
tests/drivers/spi/spi_loopback/boards/max32672fthr.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
# 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/max32672fthr.overlay
Normal file
22
tests/drivers/spi/spi_loopback/boards/max32672fthr.overlay
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Analog Devices, Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&spi1 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&spi1a_mosi_p0_15 &spi1a_miso_p0_14 &spi1a_sck_p0_16 &spi1a_ss0_p0_17>;
|
||||
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