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:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] Any dependent changes have been merged and published in downstream modules
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 disablesspi_for_lcd
andspi_for_touch
because their pinctrl definitions conflict withuart1
.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: