Skip to content

Commit 5a8d458

Browse files
lowlandernashif
authored andcommitted
tests: drivers: spi: spi_loopback: Enable nucleo_l4r5zi DMA support
Enable DMA support for the Nucleo l4r5zi board Signed-off-by: Erwin Rol <[email protected]>
1 parent 80cc1b7 commit 5a8d458

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"
2-
CONFIG_SPI_STM32_INTERRUPT=y
2+
3+
CONFIG_SPI_STM32_DMA=y
4+
CONFIG_SPI_STM32_INTERRUPT=n
5+
6+
CONFIG_SPI_ASYNC=n
7+
8+
CONFIG_SPI_LOOPBACK_MODE_LOOP=n
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2020 Erwin Rol <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&spi1 {
8+
dmas = <&dmamux1 0 11 0x20440 0
9+
&dmamux1 7 10 0x20480 0>;
10+
dma-names = "tx", "rx";
11+
};
12+
13+
&dma1 {
14+
status = "okay";
15+
};
16+
17+
&dma2 {
18+
status = "okay";
19+
};
20+
21+
&dmamux1 {
22+
status = "okay";
23+
};

0 commit comments

Comments
 (0)