]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dts: mtmips: enable high-speed UART support for mt7628
authorWeijie Gao <weijie.gao@mediatek.com>
Wed, 25 Sep 2019 09:45:20 +0000 (17:45 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 25 Oct 2019 15:20:44 +0000 (17:20 +0200)
All three UARTs of mt7628 are actually MediaTek's high-speed UARTs which
support baudrate up to 921600.
The high-speed UART is compatible with ns16550 when baudrate <= 115200.

Add compatible string to dtsi file so u-boot can use it when serial_mtk
driver is built in.

Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
arch/mips/dts/mt7628a.dtsi

index 6bc0722b074b08d0fbe9f06a83cd470f0dd0bf48..e9241a0737f5e08f4927ae8be3948c44634cb4c1 100644 (file)
                };
 
                uart0: uartlite@c00 {
-                       compatible = "ns16550a";
+                       compatible = "mediatek,hsuart", "ns16550a";
                        reg = <0xc00 0x100>;
 
                        clock-frequency = <40000000>;
                };
 
                uart1: uart1@d00 {
-                       compatible = "ns16550a";
+                       compatible = "mediatek,hsuart", "ns16550a";
                        reg = <0xd00 0x100>;
 
                        clock-frequency = <40000000>;
                };
 
                uart2: uart2@e00 {
-                       compatible = "ns16550a";
+                       compatible = "mediatek,hsuart", "ns16550a";
                        reg = <0xe00 0x100>;
 
                        clock-frequency = <40000000>;