redrathnure / armbian-mkspi

Armbian Linux Build Framework
https://www.armbian.com
GNU General Public License v2.0
95 stars 12 forks source link

Add DTBO to allow enabling UART1 #26

Closed frap129 closed 4 months ago

frap129 commented 7 months ago

Description

Added a new dtb overlay to enable UART1 on the MKS Pi. The existing rockchip-rk3328-uart1.dtbo allows for registering UART1, but no connections on it work. The new overlay includes the contents of the generic rk3328 version, but also disables spi_for_lcd and spi_for_touch because their pinctrl definitions conflict with uart1.

I don't know of any other MKS Pi based devices that actually use UART1, but this should work for any that need it.

How Has This Been Tested?

This has been tested on the QIDI X_7 v1.0, the motherboard in the QIDI Q1 Pro 3D Printer. The TJC display on the printer uses UART1 rather than SPI0, and does not function without this overlay enabled.

To use it, add overlays=mkspi-uart1 to the end of /boot/armbianEnv.txt

Checklist: