Skip to content

Commit 1a96088

Browse files
author
Raffael Rostagno
committed
tests: drivers: spi_loopback: Update DTS settings for DMA
Update DTS settings to add DMA configuration to devices which support GDMA peripheral, in order to perform operations via DMA driver instead of HAL functions. Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
1 parent 21a6fc5 commit 1a96088

File tree

10 files changed

+40
-0
lines changed

10 files changed

+40
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
CONFIG_SPI_ESP32_INTERRUPT=y
22
CONFIG_HEAP_MEM_POOL_SIZE=32768
3+
CONFIG_DMA=y

tests/drivers/spi/spi_loopback/socs/esp32c2.overlay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@
4141
pinctrl-0 = <&spim2_loopback>;
4242
pinctrl-names = "default";
4343
status = "okay";
44+
45+
dmas = <&dma 0>, <&dma 1>;
46+
dma-names = "rx", "tx";
47+
};
48+
49+
&dma {
50+
status = "okay";
4451
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
CONFIG_SPI_ESP32_INTERRUPT=y
22
CONFIG_HEAP_MEM_POOL_SIZE=32768
3+
CONFIG_DMA=y

tests/drivers/spi/spi_loopback/socs/esp32c3.overlay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@
4141
pinctrl-0 = <&spim2_loopback>;
4242
pinctrl-names = "default";
4343
status = "okay";
44+
45+
dmas = <&dma 0>, <&dma 1>;
46+
dma-names = "rx", "tx";
47+
};
48+
49+
&dma {
50+
status = "okay";
4451
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
CONFIG_SPI_ESP32_INTERRUPT=y
22
CONFIG_HEAP_MEM_POOL_SIZE=32768
3+
CONFIG_DMA=y

tests/drivers/spi/spi_loopback/socs/esp32c3_usb.overlay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@
4141
pinctrl-0 = <&spim2_loopback>;
4242
pinctrl-names = "default";
4343
status = "okay";
44+
45+
dmas = <&dma 0>, <&dma 1>;
46+
dma-names = "rx", "tx";
47+
};
48+
49+
&dma {
50+
status = "okay";
4451
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
CONFIG_SPI_ESP32_INTERRUPT=y
22
CONFIG_HEAP_MEM_POOL_SIZE=32768
3+
CONFIG_DMA=y

tests/drivers/spi/spi_loopback/socs/esp32c6_hpcore.overlay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@
4141
pinctrl-0 = <&spim2_loopback>;
4242
pinctrl-names = "default";
4343
status = "okay";
44+
45+
dmas = <&dma 0>, <&dma 1>;
46+
dma-names = "rx", "tx";
47+
};
48+
49+
&dma {
50+
status = "okay";
4451
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CONFIG_SPI_ESP32_INTERRUPT=y
2+
CONFIG_DMA=y

tests/drivers/spi/spi_loopback/socs/esp32s3_procpu.overlay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@
4141
pinctrl-0 = <&spim3_loopback>;
4242
pinctrl-names = "default";
4343
status = "okay";
44+
45+
dmas = <&dma 0>, <&dma 1>;
46+
dma-names = "rx", "tx";
47+
};
48+
49+
&dma {
50+
status = "okay";
4451
};

0 commit comments

Comments
 (0)