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
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
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";
};
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
3 posts
Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests