VAR-SOM-MX8 UART: Difference between revisions

From Variscite Wiki
(Created page with "<!-- Set release according to "release" parameter in URL and use RELEASE_SUMO_V1.0_VAR-SOM-MX8 as default --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- --> {{#lst:...")
 
(Migrate INIT_RELEASE_PARAM)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<!-- Set release according to "release" parameter in URL and use RELEASE_SUMO_V1.0_VAR-SOM-MX8 as default
<!-- Set release according to "release" parameter in URL and use RELEASE_SUMO_V1.1_VAR-SOM-MX8 as default
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!--
--> {{INIT_RELEASE_PARAM|RELEASE_SUMO_V1.1_VAR-SOM-MX8}} <!--
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_SUMO_V1.0_VAR-SOM-MX8}}}} <!--
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!--
--> {{PageHeader|{{#var:HARDWARE_NAME}} UART}} {{DocImage|category1=Yocto|category2=VAR-SOM-MX8}} __toc__
--> {{PageHeader|{{#var:HARDWARE_NAME}} UART}} {{DocImage|category1=Yocto|category2=VAR-SOM-MX8}} __toc__



Latest revision as of 15:01, 6 June 2023

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

This page is using the default release RELEASE_SUMO_V1.1_VAR-SOM-MX8.
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-MX8 UART

VAR-SOM-MX8 UART Overview

All 5 UARTs on VAR-SOM-MX8 except UART4 are enabled by default.
UART1 is used as a debug console, UART2 is connected to Bluetooth module, UART3 and UART5 are connected to J18 header on VAR-SOM-MX8 carrier board.
On VAR-SOM-MX8 SOMs without WIFI/BT module UART2 is also connected to J18 header.
UART4 pins are multiplexed with Ethernet PHY on the carrier board. Inspect the carrier board datasheet or schematics for the exact pinout.
Only UART2 has RTS and CTS lines.

UART naming under Linux

The Linux devices corresponding to UART1 - UART5 are /dev/ttyLP0 - /dev/ttyLP4 respectively.

Testing UART3

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

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

For each time you run this echo command the "hello" string should appear on the terminal.

Testing UART5

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

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

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

Disabling UART3

To disable UART2 edit arch/arm64/boot/dts/freescale/fsl-imx8qm-var-som.dts under kernel source directory and modify

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

to

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

Other UARTs can be disabled in the similar manner.