Skip to content

Commit

Permalink
tests: drivers: uart: uart_async_api: Enable MAX32 boards
Browse files Browse the repository at this point in the history
Support following boards in asynchronous UART tests:

- MAX32655EVKIT
- MAX32655FTHR
- MAX32666EVKIT
- MAX32666FTHR
- MAX32670EVKIT
- MAX32690EVKIT

Signed-off-by: Tahsin Mutlugun <[email protected]>
  • Loading branch information
ttmut committed Jan 17, 2025
1 parent ccf4a21 commit 57b4023
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

dut: &uart3 {
status = "okay";
pinctrl-0 = <&lpuartb_tx_p2_7 &lpuartb_rx_p2_6>;
pinctrl-names = "default";

dmas = <&dma0 1 MAX32_DMA_SLOT_UART3_TX>, <&dma0 2 MAX32_DMA_SLOT_UART3_RX>;
dma-names = "tx", "rx";

current-speed = <115200>;
data-bits = <8>;
parity = "none";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

dut: &uart3 {
status = "okay";
pinctrl-0 = <&lpuartb_tx_p2_7 &lpuartb_rx_p2_6>;
pinctrl-names = "default";

dmas = <&dma0 1 MAX32_DMA_SLOT_UART3_TX>, <&dma0 2 MAX32_DMA_SLOT_UART3_RX>;
dma-names = "tx", "rx";

current-speed = <115200>;
data-bits = <8>;
parity = "none";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

dut: &uart0 {
status = "okay";
pinctrl-0 = <&uart0_tx_p0_9 &uart0_rx_p0_10>;
pinctrl-names = "default";

dmas = <&dma0 1 MAX32_DMA_SLOT_UART0_TX>, <&dma0 2 MAX32_DMA_SLOT_UART0_RX>;
dma-names = "tx", "rx";

current-speed = <115200>;
data-bits = <8>;
parity = "none";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

dut: &uart0 {
status = "okay";
pinctrl-0 = <&uart0_tx_p0_9 &uart0_rx_p0_10>;
pinctrl-names = "default";

dmas = <&dma0 1 MAX32_DMA_SLOT_UART0_TX>, <&dma0 2 MAX32_DMA_SLOT_UART0_RX>;
dma-names = "tx", "rx";

current-speed = <115200>;
data-bits = <8>;
parity = "none";
};
18 changes: 18 additions & 0 deletions tests/drivers/uart/uart_async_api/boards/max32670evkit.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

dut: &uart1 {
status = "okay";
pinctrl-0 = <&uart1a_tx_p0_29 &uart1a_rx_p0_28>;
pinctrl-names = "default";

dmas = <&dma0 1 MAX32_DMA_SLOT_UART1_TX>, <&dma0 2 MAX32_DMA_SLOT_UART1_RX>;
dma-names = "tx", "rx";

current-speed = <115200>;
data-bits = <8>;
parity = "none";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

dut: &uart0 {
status = "okay";
pinctrl-0 = <&uart0a_tx_p2_12 &uart0a_rx_p2_11>;
pinctrl-names = "default";

dmas = <&dma0 1 MAX32_DMA_SLOT_UART0_TX>, <&dma0 2 MAX32_DMA_SLOT_UART0_RX>;
dma-names = "tx", "rx";

current-speed = <115200>;
data-bits = <8>;
parity = "none";
};

0 comments on commit 57b4023

Please sign in to comment.