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 [2024/08/06 03:22]
nick
products:sbc:common:applications:gpio:uart [2026/09/15 03:27] (current)
nick
Line 16: Line 16:
 ^  VIM1S    |  UART_C     |  15(RX)  |  GPIOD_3   |  uart_c            |  /dev/ttyS2   | ^  VIM1S    |  UART_C     |  15(RX)  |  GPIOD_3   |  uart_c            |  /dev/ttyS2   |
 | :::       | :::         |  16(TX)  |  GPIOD_2   | :::                | :::           | | :::       | :::         |  16(TX)  |  GPIOD_2   | :::                | :::           |
 +^  VIM-5    |  UART_AO_E  |  15(RX)  |  GPIOD_9   |  uart_ao_e         |  /dev/ttyS4   |
 +| :::       | :::         |  16(TX)  |  GPIOD_8   | :::                | :::           |
 ===== Enable UART ===== ===== Enable UART =====
  
Line 115: Line 117:
 /dev/ttyS2 /dev/ttyS2
 ``` ```
 +
 +<tabbox VIM-5>
 +
 +Edit ''/boot/dtb/amlogic/kvim-5.dtb.overlay.env'' to add uart node to ''fdt_overlays'' node if it doesn't exist.
 +
 +
 +e.g. Enable ''UART_AO_E'', you need to add ''uart_ao_e'' to node ''fdt_overlays'' if it doesn't exist.
 +
 +```shell
 +fdt_overlays=uart_ao_e
 +
 +```
 +
 +After reboot, you will see the UART device node.
 +
 +```shell
 +$ ls /dev/ttyS4
 +/dev/ttyS4
 +```
 +
  
 </tabbox> </tabbox>
Line 123: Line 145:
 <tabbox VIM1S> <tabbox VIM1S>
  
-Tabbed Content+''UART_C'' is enabled by default in ''kvim1s.dts'', The corresponding device node is ''/dev/ttyS2''. 
  
 <tabbox VIM4> <tabbox VIM4>
Line 130: Line 153:
  
 <tabbox VIM3> <tabbox VIM3>
 +
 +''UART_C'' is enabled by default in ''kvim3.dts'', The corresponding device node is ''/dev/ttyS3''.
  
 </tabbox> </tabbox>
Last modified: 2024/08/06 03:22 by nick