DART-MX8M UART: Difference between revisions
No edit summary |
|||
Line 1: | Line 1: | ||
{{PageHeader|DART-MX8M - UART}} {{DocImage|category1=DART-MX8M|category2=Yocto}} __toc__ | <!-- Set release according to "release" parameter in URL and use RELEASE_MORTY_V1.0_DART-MX8M as default | ||
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | |||
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_MORTY_V1.0_DART-MX8M}}}} <!-- | |||
-->{{PageHeader|DART-MX8M - UART}} {{DocImage|category1=DART-MX8M|category2=Yocto}} __toc__ | |||
= DART-MX8M UART Overview = | = DART-MX8M UART Overview = | ||
Line 36: | Line 39: | ||
= Disabling UART2 = | = Disabling UART2 = | ||
To disable UART2 edit arch/arm64/boot/dts/variscite/imx8m- | To disable UART2 edit arch/arm64/boot/dts/{{#ifeq: {{#var:YOCTO_NAME}} | Morty |variscite/imx8m-var-dart-common.dtsi|freescale/fsl-imx8mq-var-dart-common.dtsi}} under kernel source directory and modify | ||
<pre> | <pre> |
Revision as of 02:45, 28 February 2019
DART-MX8M UART Overview
All 4 UARTs on DART-MX8M are enabled by default.
UART1 is connected to debug console, UART2 and UART3 are connected to J12 header on DART-MX8M carrier board, UART4 is connected to Bluetooth module.
On DART-MX8M SoMs without WIFI/BT module UART4 is also connected to J12 header.
See the carrier board datasheet for the exact pinout.
Only UART4 has RTS and CTS lines.
UART naming under Linux
The Linux devices corresponding to UART1 - UART4 are /dev/ttymxc0 - /dev/ttymxc3 respectively.
Testing UART2
Short J12.4 and J12.6 pins and run the following commands:
stty -F /dev/ttymxc1 -echo -onlcr 115200 cat /dev/ttymxc1 & echo hello > /dev/ttymxc1
For each time you run this echo command the "hello" string should appear on the terminal.
Testing UART3
Short J12.11 and J12.13 pins and run the following commands:
stty -F /dev/ttymxc2 -echo -onlcr 115200 cat /dev/ttymxc2 & echo hello > /dev/ttymxc2
For each time you run this echo command the "hello" string should appear on the terminal.
Disabling UART2
To disable UART2 edit arch/arm64/boot/dts/freescale/fsl-imx8mq-var-dart-common.dtsi under kernel source directory and modify
&uart2 { ... status = "okay"; };
to
&uart2 { ... status = "disabled"; };
Other UARTs can be disabled in the same manner.