This is an old revision of the document!
This page introduces the usage of UART on 16-pin Header.
For Edge2, in order to use the UART , you need to attach the IO extension board.
UART | PIN | GPIO Name | GPIO Number | DT Overlays Node | Device Node | |
---|---|---|---|---|---|---|
Edge2 | UART7 | 12(TX) | GPIO3_C0 | 112 | edge2-io-uart | /dev/ttyS7 |
14(RX) | GPIO3_C1 | 113 |
In order to use the UART, you need to enable the UART function via Device Tree Overlay.
Edit /boot/dtb/rockchip/rk3588s-khadas-edge2.dtb.overlay.env
to add uart node to fdt_overlays
node if it doesn't exist.
e.g. Enable UART7
, you need to add edge2-io-uart
to node fdt_overlays
if it doesn't exist.
fdt_overlays=edge2-io-uart
After reboot, you will see the UART device node.
$ ls /dev/ttyS7
/dev/ttyS7
If you want to use normal GPIO instead of UART, you can remove the UART node in Device Tree Overlay.