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:
parent
f4802dd7bd
commit
fbd651e799
6 changed files with 49 additions and 0 deletions
|
@ -100,6 +100,8 @@ Current Zephyr's ESP32-C6-DevKitC board supports the following features:
|
||||||
+------------+------------+-------------------------------------+
|
+------------+------------+-------------------------------------+
|
||||||
| SPI DMA | on-chip | spi |
|
| SPI DMA | on-chip | spi |
|
||||||
+------------+------------+-------------------------------------+
|
+------------+------------+-------------------------------------+
|
||||||
|
| GDMA | on-chip | dma |
|
||||||
|
+------------+------------+-------------------------------------+
|
||||||
|
|
||||||
System requirements
|
System requirements
|
||||||
*******************
|
*******************
|
||||||
|
|
|
@ -9,6 +9,7 @@ supported:
|
||||||
- gpio
|
- gpio
|
||||||
- watchdog
|
- watchdog
|
||||||
- uart
|
- uart
|
||||||
|
- dma
|
||||||
- spi
|
- spi
|
||||||
testing:
|
testing:
|
||||||
ignore_tags:
|
ignore_tags:
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=4
|
||||||
|
CONFIG_DMA_LOOP_TRANSFER_SIZE=4094
|
|
@ -0,0 +1,11 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
&dma {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
tst_dma0: &dma { };
|
|
@ -0,0 +1,2 @@
|
||||||
|
CONFIG_HEAP_MEM_POOL_SIZE=32768
|
||||||
|
CONFIG_DMA=y
|
|
@ -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";
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue