Skip to content

Commit 6ffe69c

Browse files
mertekrenttmut
authored andcommitted
tests: drivers: spi: Add MAX32657 overlay files
Enable 'spi_loopback' test for MAX32657 boards. Signed-off-by: Mert Ekren <mert.ekren@analog.com>
1 parent fda89e3 commit 6ffe69c

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# Copyright (c) 2024 Analog Devices, Inc.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
CONFIG_SPI_MAX32_INTERRUPT=y
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright (c) 2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dma1 {
8+
status = "okay";
9+
};
10+
11+
&spi0 {
12+
dmas = <&dma1 1 MAX32_DMA_SLOT_SPI_TX>, <&dma1 2 MAX32_DMA_SLOT_SPI_RX>;
13+
dma-names = "tx", "rx";
14+
15+
slow@1 {
16+
compatible = "test-spi-loopback-slow";
17+
reg = <1>;
18+
spi-max-frequency = <128000>;
19+
};
20+
fast@1 {
21+
compatible = "test-spi-loopback-fast";
22+
reg = <1>;
23+
spi-max-frequency = <500000>;
24+
};
25+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# Copyright (c) 2024 Analog Devices, Inc.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
CONFIG_SPI_MAX32_INTERRUPT=y
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&spi0 {
8+
slow@1 {
9+
compatible = "test-spi-loopback-slow";
10+
reg = <1>;
11+
spi-max-frequency = <128000>;
12+
};
13+
fast@1 {
14+
compatible = "test-spi-loopback-fast";
15+
reg = <1>;
16+
spi-max-frequency = <500000>;
17+
};
18+
};

0 commit comments

Comments
 (0)