MX9 UART: Difference between revisions

From Variscite Wiki
(Created page with "<!-- Set release according to "release" parameter in URL and use mx93-yocto-kirkstone-5.15.71_2.2.0-v1.0 as default --> {{INIT_RELEASE_PARAM|mx93-yocto-kirkstone-5.15.71_2.2.0...")
 
No edit summary
Line 20: Line 20:
| lpuart1
| lpuart1
| Connected to Symphony board serial console
| Connected to Symphony board serial console
|-
| UART1
| /dev/ttyLP1
| lpuart2
| Disabled by default, see datasheet
|-
|-
| UART2
| UART2
Line 50: Line 45:
| lpuart7
| lpuart7
| Connected to Symphony board J18.3 and J18.5
| Connected to Symphony board J18.3 and J18.5
|-
| UART7
| /dev/ttyLP7
| lpuart8
| Disabled by default, see datasheet
|}
|}



Revision as of 00:02, 20 January 2023

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

This page is using the default release mx93-yocto-kirkstone-5.15.71_2.2.0-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-MX93 UART

VAR-SOM-MX93 UART Overview

The VAR-SOM-MX93 exposes up to seven LPUART interfaces, some of which are multiplexed with other peripherals.

Serial Port Device Node Device Tree Note
UART0 /dev/ttyLP0 lpuart1 Connected to Symphony board serial console
UART2 /dev/ttyLP2 lpuart3 Disabled by default, see datasheet
UART3 /dev/ttyLP3 lpuart4 Disabled by default, see datasheet
UART4 /dev/ttyLP4 lpuart5 Used on SOM for Bluetooth interface and can be accessible only if the BT is disabled or SOM without "WBD" and "WB"
UART5 /dev/ttyLP5 lpuart6 Connected to Symphony board J18.7 and J18.9
UART6 /dev/ttyLP6 lpuart7 Connected to Symphony board J18.3 and J18.5
UART7 /dev/ttyLP7 lpuart8 Disabled by default, see datasheet

Testing UART5

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

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

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/ttyLP6 -echo -onlcr 115200
# cat /dev/ttyLP6 &
# echo hello > /dev/ttyLP6

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

Disabling UART5

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

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

to

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

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