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 <raffael.rostagno@espressif.com>
This commit is contained in:
Raffael Rostagno 2024-06-07 10:08:09 -03:00 committed by Maureen Helm
commit fbd651e799
6 changed files with 49 additions and 0 deletions

View file

@ -100,6 +100,8 @@ Current Zephyr's ESP32-C6-DevKitC board supports the following features:
+------------+------------+-------------------------------------+
| SPI DMA | on-chip | spi |
+------------+------------+-------------------------------------+
| GDMA | on-chip | dma |
+------------+------------+-------------------------------------+
System requirements
*******************

View file

@ -9,6 +9,7 @@ supported:
- gpio
- watchdog
- uart
- dma
- spi
testing:
ignore_tags:

View file

@ -0,0 +1,2 @@
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=4
CONFIG_DMA_LOOP_TRANSFER_SIZE=4094

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
&dma {
status = "okay";
};
tst_dma0: &dma { };

View file

@ -0,0 +1,2 @@
CONFIG_HEAP_MEM_POOL_SIZE=32768
CONFIG_DMA=y

View file

@ -0,0 +1,31 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
&pinctrl {
uart1_test: uart1_test {
group1 {
pinmux = <UART1_TX_GPIO2>;
input-enable; /* Connect GPIO2 and GPIO3 externally for testing */
};
group2 {
pinmux = <UART1_RX_GPIO3>;
output-enable; /* Connect GPIO2 and GPIO3 externally for testing */
};
};
};
dut: &uart1 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart1_test>;
pinctrl-names = "default";
dmas = <&dma 0>, <&dma 1>;
dma-names = "rx", "tx";
};
&dma {
status = "okay";
};