UART0 and/or UART1 interfaces in OpenWRT

GreyWolf
 
Posts: 2
Joined: Sun Jan 28, 2024 3:47 pm

UART0 and/or UART1 interfaces in OpenWRT

Sat Feb 03, 2024 1:16 pm

How do I enable UART0 and/or UART1 interfaces in OpenWRT?

Vonger
 
Posts: 906
Joined: Sun Oct 19, 2014 6:00 am

Re: UART0 and/or UART1 interfaces in OpenWRT

Sat Feb 03, 2024 11:23 pm

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";
};

GreyWolf
 
Posts: 2
Joined: Sun Jan 28, 2024 3:47 pm

Re: UART0 and/or UART1 interfaces in OpenWRT

Sun Feb 04, 2024 11:41 am

Thank you

Return to VoCore2/Lite/Ultimate

Who is online

Users browsing this forum: No registered users and 3 guests