#19700: How to Enable UART in MT7620a
-------------------------+------------------------
Reporter: EbdWRT | Owner: developers
Type: task | Status: new
Priority: highest | Milestone:
Component: kernel | Version: Trunk
Keywords: mt7620 UART |
-------------------------+------------------------
Hello
I have platform with MT7620. I also use Image Builder to create bin image.
Now I whant to enable UART interface in my platform. I think that I must
add inode to DT in mt7620.dts file but I do not know what must be the
correct syntax. My propozition is below. I also need that UART worked as
ttyS0 and console I whant to attached to ttyS1 So:
in file mt7620.dts
{{{
chosen {bootargs = "console=ttyS1,15200";};
}}}
{{{
uart@500 {
compatible = "ralink,mt7620a-uart",
"ralink,rt2880-uart", "ns16550a";
reg = <0x500 0x100>;
interrupt-parent = <&intc>;
interrupts = <5>;
reg-shift = <2>;
pinctrl-names = "default";
pinctrl-0 = <&uartf_pins>;
status = "ok";
};
}}}
Please tell me wheter above syntax is correct ?
--
Ticket URL: <https://dev.openwrt.org/ticket/19700>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets