Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:applications:gpio:uart

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:applications:gpio:uart [2023/11/07 05:09]
nick [Enable UART]
products:sbc:common:applications:gpio:uart [2024/08/06 08:27] (current)
nick
Line 17: Line 17:
 | :::       | :::          16(TX)  |  GPIOD_2   | :::                | :::           | | :::       | :::          16(TX)  |  GPIOD_2   | :::                | :::           |
 ===== Enable UART ===== ===== Enable UART =====
 +
 +==== Linux ====
 +
  
 In order to use the UART, you need to enable the UART function via [[products:sbc:common:configurations:device-tree-overlay|Device Tree Overlay]]. In order to use the UART, you need to enable the UART function via [[products:sbc:common:configurations:device-tree-overlay|Device Tree Overlay]].
Line 42: Line 45:
  
  
-e.g. Enable ''UART_E'', you need to add ''uart_e'' to node ''fdt_overlays'' if it doesn't exist.+e.g. Enable ''UART_C'', you need to add ''uart3'' to node ''fdt_overlays'' if it doesn't exist.
  
 ```shell ```shell
-fdt_overlays=uart_e+fdt_overlays=uart3
  
 ``` ```
Line 52: Line 55:
  
 ```shell ```shell
-$ ls /dev/ttyS4 +$ ls /dev/ttyS3 
-/dev/ttyS4+/dev/ttyS3
 ``` ```
  
Line 61: Line 64:
  
  
-e.g. Enable ''UART_E'', you need to add ''uart_e'' to node ''fdt_overlays'' if it doesn't exist.+e.g. Enable ''UART_C'', you need to add ''uart3'' to node ''fdt_overlays'' if it doesn't exist.
  
 ```shell ```shell
-fdt_overlays=uart_e+fdt_overlays=uart3
  
 ``` ```
Line 71: Line 74:
  
 ```shell ```shell
-$ ls /dev/ttyS4 +$ ls /dev/ttyS3 
-/dev/ttyS4+/dev/ttyS3
 ``` ```
  
Line 112: Line 115:
 /dev/ttyS2 /dev/ttyS2
 ``` ```
 +
 +</tabbox>
 +
 +
 +==== Android ====
 +
 +<tabbox VIM1S>
 +
 +''UART_C'' is enabled by default in ''kvim1s.dts'', The corresponding device node is ''/dev/ttyS2''.
 +
 +
 +<tabbox VIM4>
 +
 +''UART_E'' is enabled by default, the corresponding dev node is ''/dev/ttyS4''.
 +
 +<tabbox VIM3>
 +
 +''UART_C'' is enabled by default in ''kvim3.dts'', The corresponding device node is ''/dev/ttyS3''.
  
 </tabbox> </tabbox>
Last modified: 2023/11/07 05:09 by nick