Skip to content

Commit

Permalink
test: driver: uart: add silabs slwrb4180a overlay for async usart test
Browse files Browse the repository at this point in the history
Add overlay for slwrb4180a board to test async silabs usart driver with
dma.

Signed-off-by: Martin Hoff <[email protected]>
  • Loading branch information
Martinhoff-maker authored and kartben committed Feb 5, 2025
1 parent 4a31f02 commit e783f69
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions tests/drivers/uart/uart_async_api/boards/slwrb4180a.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright (c) 2025, Silicon Laboratories Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

/*
* Need to connect PC0 and PC1 of the Expension Pin header
*/
/ {
chosen {
zephyr,console = &usart1;
zephyr,shell-uart = &usart1;
zephyr,uart-pipe = &usart1;
};
};

&pinctrl{
usart0_default: usart0_default {
group0 {
pins = <USART0_TX_PC0>;
drive-push-pull;
output-high;
};
group1 {
pins = <USART0_RX_PC1>;
input-enable;
silabs,input-filter;
};
};
usart1_default: usart1_default {
group0 {
pins = <USART1_TX_PA5>;
drive-push-pull;
output-high;
};
group1 {
pins = <USART1_RX_PA6>;
input-enable;
silabs,input-filter;
};
};
};

dut: &usart0 {
dmas = <&dma0 DMA_REQSEL_USART0TXBL>,
<&dma0 DMA_REQSEL_USART0RXDATAV>;
dma-names = "tx", "rx";
pinctrl-0 = <&usart0_default>;
pinctrl-names = "default";
};

&usart1 {
current-speed = <115200>;
pinctrl-0 = <&usart1_default>;
pinctrl-names = "default";
status = "okay";
};

&dma0 {
status = "okay";
};

0 comments on commit e783f69

Please sign in to comment.