Page 1 of 1

UART0 and/or UART1 interfaces in OpenWRT

Posted: Sat Feb 03, 2024 1:16 pm
by GreyWolf
How do I enable UART0 and/or UART1 interfaces in OpenWRT?

Re: UART0 and/or UART1 interfaces in OpenWRT

Posted: Sat Feb 03, 2024 11:23 pm
by Vonger
To use UART1 and UART0 in Linux, you will need two stages
1. enable pinmux so UART0 and UART1 pins are convert into UART mode.
2. enable driver to use UART0 and UART1.

You will need to modify mt7628an_vocore_vocore2.dts or mt7628an_vocore_vocore2.dtsi in openwrt source code to enable them(need to compile new firmware)

Add this

&uart0 {
status = "okay";
};

&uart1 {
status = "okay";
};

&uart2 {
status = "okay";
};

Re: UART0 and/or UART1 interfaces in OpenWRT

Posted: Sun Feb 04, 2024 11:41 am
by GreyWolf
Thank you