tests: drivers: spi: spi_loopback: Enable nucleo_g474re DMA support
Enable DMA support for the Nucleo g474re board Signed-off-by: Erwin Rol <erwin@erwinrol.com>
This commit is contained in:
parent
5a8d458c8d
commit
f770dc7121
2 changed files with 30 additions and 1 deletions
|
@ -1,5 +1,11 @@
|
|||
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"
|
||||
CONFIG_SPI_STM32_INTERRUPT=y
|
||||
|
||||
CONFIG_SPI_STM32_DMA=y
|
||||
CONFIG_SPI_STM32_INTERRUPT=n
|
||||
|
||||
CONFIG_SPI_ASYNC=n
|
||||
|
||||
CONFIG_SPI_LOOPBACK_MODE_LOOP=n
|
||||
|
||||
# Reduce bus clock speed to be able to reach SPI_LOOPBACK_SLOW_FREQ = 500000
|
||||
# with max prescaler 256
|
||||
|
|
23
tests/drivers/spi/spi_loopback/boards/nucleo_g474re.overlay
Normal file
23
tests/drivers/spi/spi_loopback/boards/nucleo_g474re.overlay
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Erwin Rol <erwin@erwinrol.com>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&spi1 {
|
||||
dmas = <&dmamux1 0 11 0x20440 0
|
||||
&dmamux1 8 10 0x20480 0>;
|
||||
dma-names = "tx", "rx";
|
||||
};
|
||||
|
||||
&dma1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dma2 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dmamux1 {
|
||||
status = "okay";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue