tests: drivers: spi: Enable spi driver tests for max32662evkit board

Enable SPI test for MAX32662EVKIT.
SRAM size increased to get enough space for SPI test image

Co-Authored-By: Sadik Ozer <sadik.ozer@analog.com>
Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
This commit is contained in:
Furkan Akkiz 2024-01-19 12:40:22 +03:00 committed by Anas Nashif
commit 5f5473ed33
2 changed files with 28 additions and 0 deletions

View 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

View file

@ -0,0 +1,23 @@
/*
* Copyright (c) 2024 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/* Increase SRAM2 size to get enough space for image */
&sram2 {
reg = <20008000 DT_SIZE_K(32)>;
};
&spi0 {
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>;
};
};