Skip to content

Commit

Permalink
boards: esp32c6_devkitc: Test files for DMA and UART async
Browse files Browse the repository at this point in the history
Test files for DMA and UART async

Signed-off-by: Raffael Rostagno <[email protected]>
  • Loading branch information
Raffael Rostagno committed Jul 4, 2024
1 parent a0ab2d5 commit d04e833
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/drivers/dma/loop_transfer/boards/esp32c6_devkitc.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=4
CONFIG_DMA_LOOP_TRANSFER_SIZE=4094
11 changes: 11 additions & 0 deletions tests/drivers/dma/loop_transfer/boards/esp32c6_devkitc.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/

&dma {
status = "okay";
};

tst_dma0: &dma { };
2 changes: 2 additions & 0 deletions tests/drivers/uart/uart_async_api/boards/esp32c6_devkitc.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_HEAP_MEM_POOL_SIZE=32768
CONFIG_DMA=y
31 changes: 31 additions & 0 deletions tests/drivers/uart/uart_async_api/boards/esp32c6_devkitc.overlay
Original file line number Diff line number Diff line change
@@ -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";
};

0 comments on commit d04e833

Please sign in to comment.