Configuring UART GPIO

The configuration file, jh7100-common.dtsi, is located under:/linux/arch/riscv/boot/dts/starfive.

4 channels of UART are supported at the most:

  • Uart3 is for Debug.
  • Uart0 is for Bluetooth.
  • Uart1 and Uart2 can be used.

The configured UART GPIO number is the number contained in the Pin Name. For more details about the GPIO Pin Name, see the GPIO Pinout in this document.