AM62 UART: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Set release according to "release" parameter in URL and use am62-yocto-dunfell-5.10.140_08.06.00.42-v1.0 as default
<!-- Set release according to "release" parameter in URL and use am62-yocto-dunfell-5.10.168_08.06.00.42-v1.0 as default
--> {{INIT_RELEASE_PARAM|am62-yocto-dunfell-5.10.140_08.06.00.42-v1.0}}<!--
--> {{INIT_RELEASE_PARAM|am62-yocto-dunfell-5.10.168_08.06.00.42-v1.0}}<!--
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!--
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!--
--> {{COMMON_YOCTO_VARS}} <!--
--> {{COMMON_YOCTO_VARS}} <!--
Line 8: Line 8:
= {{#var:HARDWARE_NAME}} UART Overview =
= {{#var:HARDWARE_NAME}} UART Overview =


The {{#var:HARDWARE_NAME}} exposes up to seven LPUART interfaces, some of which are multiplexed with other peripherals.
The {{#var:HARDWARE_NAME}} exposes up to nine UART interfaces, some of which are multiplexed with other peripherals. The following serial ports are enabled by default in Variscite's Symphony board device tree:


{| class="wikitable"  
{| class="wikitable"  
Line 38: Line 38:
|}
|}


= Testing UART0 =
Refer to the SOM datasheet for more information about the other serial ports.
 
= Testing UART2 =


Short J18.7 and J18.9 pins and run the following commands:
Short J18.7 and J18.9 pins and run the following commands:
<pre>
<pre>
# stty -F /dev/ttyS0 -echo -onlcr 115200
# stty -F /dev/ttyS2 -echo -onlcr 115200
# cat /dev/ttyS0 &
# cat /dev/ttyS2 &
# echo hello > /dev/ttyS0
# echo hello > /dev/ttyS2
</pre>
</pre>



Latest revision as of 16:10, 26 April 2023

Warning: This page is designed to be used with a 'release' URL parameter.

This page is using the default release am62-yocto-dunfell-5.10.168_08.06.00.42-v1.0.
To view this page for a specific Variscite SoM and software release, please follow these steps:

  1. Visit variwiki.com
  2. Select your SoM
  3. Select the software release
VAR-SOM-AM62 UART

VAR-SOM-AM62 UART Overview

The VAR-SOM-AM62 exposes up to nine UART interfaces, some of which are multiplexed with other peripherals. The following serial ports are enabled by default in Variscite's Symphony board device tree:

Serial Port Device Node Device Tree Note
UART0 /dev/ttyS0 main_uart0 Connected to Symphony board serial console
UART2 /dev/ttyS2 main_uart2 Connected to Symphony board J18.7 and J18.9
UART5 /dev/ttyS5 main_uart5 Used on SOM for Bluetooth interface and can be accessible only if the variscite-bt Systemd service is disabled or SOM without "WBD" and "WB"
UART6 /dev/ttyS6 main_uart6 Connected to Symphony board J18.3 and J18.5

Refer to the SOM datasheet for more information about the other serial ports.

Testing UART2

Short J18.7 and J18.9 pins and run the following commands:

# stty -F /dev/ttyS2 -echo -onlcr 115200
# cat /dev/ttyS2 &
# echo hello > /dev/ttyS2

For each invocation of echo command the "hello" string should appear on the terminal.

Testing UART6

Short J18.3 and J18.5 pins and run the following commands:

# stty -F /dev/ttyS6 -echo -onlcr 115200
# cat /dev/ttyS6 &
# echo hello > /dev/ttyS6

For each invocation of echo command the "hello" string should appear on the terminal.

Disabling UART6

To disable UART5 edit arch/arm64/boot/dts/ti/k3-am625-var-som-symphony.dts under kernel source directory and modify

&main_uart6 {
        ...
        status = "okay";
};

to

&main_uart6 {
        ...
        status = "disabled";
};

Other UARTs can be disabled in a similar manner by referencing the table above.