Skip to content

Commit fbd651e

Browse files
Raffael RostagnoMaureenHelm
authored andcommitted
boards: esp32c6_devkitc: Test files for DMA and UART async, doc update
Test files for DMA and UART async. esp32c6_devkitc doc update Signed-off-by: Raffael Rostagno <[email protected]>
1 parent f4802dd commit fbd651e

File tree

6 files changed

+49
-0
lines changed

6 files changed

+49
-0
lines changed

boards/espressif/esp32c6_devkitc/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ Current Zephyr's ESP32-C6-DevKitC board supports the following features:
100100
+------------+------------+-------------------------------------+
101101
| SPI DMA | on-chip | spi |
102102
+------------+------------+-------------------------------------+
103+
| GDMA | on-chip | dma |
104+
+------------+------------+-------------------------------------+
103105

104106
System requirements
105107
*******************

boards/espressif/esp32c6_devkitc/esp32c6_devkitc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ supported:
99
- gpio
1010
- watchdog
1111
- uart
12+
- dma
1213
- spi
1314
testing:
1415
ignore_tags:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=4
2+
CONFIG_DMA_LOOP_TRANSFER_SIZE=4094
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dma {
8+
status = "okay";
9+
};
10+
11+
tst_dma0: &dma { };
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_HEAP_MEM_POOL_SIZE=32768
2+
CONFIG_DMA=y
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
uart1_test: uart1_test {
9+
group1 {
10+
pinmux = <UART1_TX_GPIO2>;
11+
input-enable; /* Connect GPIO2 and GPIO3 externally for testing */
12+
};
13+
group2 {
14+
pinmux = <UART1_RX_GPIO3>;
15+
output-enable; /* Connect GPIO2 and GPIO3 externally for testing */
16+
};
17+
};
18+
};
19+
20+
dut: &uart1 {
21+
status = "okay";
22+
current-speed = <115200>;
23+
pinctrl-0 = <&uart1_test>;
24+
pinctrl-names = "default";
25+
dmas = <&dma 0>, <&dma 1>;
26+
dma-names = "rx", "tx";
27+
};
28+
29+
&dma {
30+
status = "okay";
31+
};

0 commit comments

Comments
 (0)