tests: drivers: spi: spi_loopback: Update xmc45_relax_kit to use dma
Update test to use DMA for spi transfers. Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
This commit is contained in:
parent
8494b6413a
commit
b2d7cf05a9
@ -1,2 +1,3 @@
|
||||
CONFIG_SPI_XMC4XXX_INTERRUPT=y
|
||||
CONFIG_SPI_XMC4XXX_DMA=y
|
||||
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
|
||||
|
||||
@ -4,6 +4,8 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/dt-bindings/dma/infineon-xmc4xxx-dma.h>
|
||||
|
||||
&spi_mosi_p1_5_u0c0 {
|
||||
drive-strength = "strong-soft-edge";
|
||||
hwctrl = "disabled";
|
||||
@ -24,8 +26,10 @@
|
||||
pinctrl-0 = <&spi_mosi_p1_5_u0c0 &spi_miso_p1_4_u0c0 &spi_sclk_p0_8_u0c0>;
|
||||
pinctrl-names = "default";
|
||||
miso-src = "DX0B";
|
||||
interrupts = <84 1>;
|
||||
interrupt-names = "rx";
|
||||
interrupts = <84 1 85 1>;
|
||||
interrupt-names = "tx", "rx";
|
||||
dmas = <&dma0 1 0 XMC4XXX_SET_CONFIG(0,10)>, <&dma0 2 0 XMC4XXX_SET_CONFIG(2,11)>;
|
||||
dma-names = "tx", "rx";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
@ -42,3 +46,7 @@
|
||||
spi-max-frequency = <16000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&dma0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user