-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: uart_elementary: esp32: Add test configs
Add test configuration for ESP32 devices. Signed-off-by: Raffael Rostagno <[email protected]>
- Loading branch information
Raffael Rostagno
committed
Nov 26, 2024
1 parent
9b2f736
commit 32513c7
Showing
8 changed files
with
198 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_DUAL_UART_TEST=y |
46 changes: 46 additions & 0 deletions
46
tests/drivers/uart/uart_elementary/socs/esp32_procpu.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
uart1_test: uart1_test { | ||
group1 { | ||
pinmux = <UART1_TX_GPIO2>, | ||
<UART1_RTS_GPIO4>; | ||
input-enable; | ||
}; | ||
group2 { | ||
pinmux = <UART1_RX_GPIO3>, | ||
<UART1_CTS_GPIO5>; | ||
output-enable; | ||
}; | ||
}; | ||
|
||
uart2_test: uart2_test { | ||
group1 { | ||
pinmux = <UART2_TX_GPIO3>, | ||
<UART1_RTS_GPIO5>; | ||
input-enable; | ||
}; | ||
group2 { | ||
pinmux = <UART2_RX_GPIO2>, | ||
<UART1_CTS_GPIO4>; | ||
output-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
dut: &uart1 { | ||
status = "okay"; | ||
pinctrl-0 = <&uart1_test>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
}; | ||
|
||
dut_aux: &uart2 { | ||
status = "okay"; | ||
pinctrl-0 = <&uart2_test>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
uart1_test: uart1_test { | ||
group1 { | ||
pinmux = <UART1_TX_GPIO2>, | ||
<UART1_RTS_GPIO3>; | ||
input-enable; | ||
}; | ||
group2 { | ||
pinmux = <UART1_RX_GPIO2>, | ||
<UART1_CTS_GPIO3>; | ||
output-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
dut: &uart1 { | ||
status = "okay"; | ||
pinctrl-0 = <&uart1_test>; | ||
pinctrl-names = "default"; | ||
current-speed = <74880>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
uart1_test: uart1_test { | ||
group1 { | ||
pinmux = <UART1_TX_GPIO2>, | ||
<UART1_RTS_GPIO3>; | ||
input-enable; | ||
}; | ||
group2 { | ||
pinmux = <UART1_RX_GPIO2>, | ||
<UART1_CTS_GPIO3>; | ||
output-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
dut: &uart1 { | ||
status = "okay"; | ||
pinctrl-0 = <&uart1_test>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
uart1_test: uart1_test { | ||
group1 { | ||
pinmux = <UART1_TX_GPIO2>, | ||
<UART1_RTS_GPIO3>; | ||
input-enable; | ||
}; | ||
group2 { | ||
pinmux = <UART1_RX_GPIO2>, | ||
<UART1_CTS_GPIO3>; | ||
output-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
dut: &uart1 { | ||
status = "okay"; | ||
pinctrl-0 = <&uart1_test>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
uart1_test: uart1_test { | ||
group1 { | ||
pinmux = <UART1_TX_GPIO2>, | ||
<UART1_RTS_GPIO3>; | ||
input-enable; | ||
}; | ||
group2 { | ||
pinmux = <UART1_RX_GPIO2>, | ||
<UART1_CTS_GPIO3>; | ||
output-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
dut: &uart1 { | ||
status = "okay"; | ||
pinctrl-0 = <&uart1_test>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_DUAL_UART_TEST=y |
46 changes: 46 additions & 0 deletions
46
tests/drivers/uart/uart_elementary/socs/esp32s3_procpu.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
uart1_test: uart1_test { | ||
group1 { | ||
pinmux = <UART1_TX_GPIO2>, | ||
<UART1_RTS_GPIO4>; | ||
input-enable; | ||
}; | ||
group2 { | ||
pinmux = <UART1_RX_GPIO3>, | ||
<UART1_CTS_GPIO5>; | ||
output-enable; | ||
}; | ||
}; | ||
|
||
uart2_test: uart2_test { | ||
group1 { | ||
pinmux = <UART2_TX_GPIO3>, | ||
<UART1_RTS_GPIO5>; | ||
input-enable; | ||
}; | ||
group2 { | ||
pinmux = <UART2_RX_GPIO2>, | ||
<UART1_CTS_GPIO4>; | ||
output-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
dut: &uart1 { | ||
status = "okay"; | ||
pinctrl-0 = <&uart1_test>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
}; | ||
|
||
dut_aux: &uart2 { | ||
status = "okay"; | ||
pinctrl-0 = <&uart2_test>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
}; |