Skip to content

Commit 5f5473e

Browse files
hfakkizozersa
authored andcommitted
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 <[email protected]> Signed-off-by: Furkan Akkiz <[email protected]>
1 parent f89633d commit 5f5473e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2024 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_SPI_ASYNC=y
5+
CONFIG_SPI_MAX32_INTERRUPT=y
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* Increase SRAM2 size to get enough space for image */
8+
&sram2 {
9+
reg = <20008000 DT_SIZE_K(32)>;
10+
};
11+
12+
&spi0 {
13+
slow@0 {
14+
compatible = "test-spi-loopback-slow";
15+
reg = <0>;
16+
spi-max-frequency = <128000>;
17+
};
18+
fast@0 {
19+
compatible = "test-spi-loopback-fast";
20+
reg = <0>;
21+
spi-max-frequency = <500000>;
22+
};
23+
};

0 commit comments

Comments
 (0)