DART-MX8M UART: Difference between revisions
No edit summary |
No edit summary |
||
Line 54: | Line 54: | ||
{{#ifeq: {{#var:SHOW_SYMPHONY_SECTION}}|true| | {{#ifeq: {{#var:SHOW_SYMPHONY_SECTION}}|true| | ||
On '''{{#var:SYMPHONY_SOM_NAME}}''' all 4 UARTs are enabled by default.<br> | On '''{{#var:SYMPHONY_SOM_NAME}}''' all 4 UARTs are enabled by default.<br> | ||
{{#ifeq: {{#var:HARDWARE_NAME}}|VAR-SOM-MX8M-PLUS| | |||
UART1 is connected to J30 header on Symphony-Board (located on the back of the board).<br> | |||
UART2 is connected to to debug console.<br> | |||
UART3 is connected to Bluetooth module.<br> | |||
UART4 is connected to J18 header.<br> | |||
On {{#var:SYMPHONY_SOM_NAME}} SoMs without WIFI/BT module UART3 is also connected to J18 header.<br> | |||
See the [https://www.variscite.com/wp-content/uploads/2019/07/Symphony-Board-Datasheet.pdf carrier board datasheet] for the exact pinout.<br> | |||
Only UART3 has RTS and CTS lines. | |||
| | |||
UART1 is connected to J30 header on Symphony-Board (located on the back of the board).<br> | UART1 is connected to J30 header on Symphony-Board (located on the back of the board).<br> | ||
UART2 is connected to Bluetooth module.<br> | UART2 is connected to Bluetooth module.<br> | ||
Line 61: | Line 70: | ||
See the [https://www.variscite.com/wp-content/uploads/2019/07/Symphony-Board-Datasheet.pdf carrier board datasheet] for the exact pinout.<br> | See the [https://www.variscite.com/wp-content/uploads/2019/07/Symphony-Board-Datasheet.pdf carrier board datasheet] for the exact pinout.<br> | ||
Only UART2 has RTS and CTS lines. | Only UART2 has RTS and CTS lines. | ||
|}} | |}}}} | ||
= UART naming under Linux = | = UART naming under Linux = | ||
Revision as of 10:44, 9 November 2020
UART Overview
On DART-MX8M all 4 UARTs are enabled by default.
UART1 is connected to debug console.
UART2 and UART3 are connected to J12 header on VAR-DT8MCustomBoard.
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 on DART-MX8M
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 on DART-MX8M
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 invocation of echo command the "hello" string should appear on the terminal.
Disabling UART2
To disable UART2 on DART-MX8M 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.