]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm: dts: mt2701: Use real clock for UARTs
authorErin Lo <erin.lo@mediatek.com>
Fri, 4 Nov 2016 07:43:08 +0000 (15:43 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 11 Nov 2016 14:25:09 +0000 (15:25 +0100)
We used to use a fixed rate clock for the UARTs. Now that we have clock
support we can associate the correct clocks to the UARTs and drop the
26MHz fixed rate UART clock.

Signed-off-by: Erin Lo <erin.lo@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/boot/dts/mt2701.dtsi

index c9a8dbf415ffba734db6e3178406304df4fb7440..7eab6f4c4665746af3a5e7bcaa237d5115d6a428 100644 (file)
@@ -73,12 +73,6 @@ rtc_clk: dummy32k {
                #clock-cells = <0>;
        };
 
-       uart_clk: dummy26m {
-               compatible = "fixed-clock";
-               clock-frequency = <26000000>;
-               #clock-cells = <0>;
-       };
-
        clk26m: oscillator@0 {
                compatible = "fixed-clock";
                #clock-cells = <0>;
@@ -186,7 +180,8 @@ uart0: serial@11002000 {
                             "mediatek,mt6577-uart";
                reg = <0 0x11002000 0 0x400>;
                interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
-               clocks = <&uart_clk>;
+               clocks = <&pericfg CLK_PERI_UART0_SEL>, <&pericfg CLK_PERI_UART0>;
+               clock-names = "baud", "bus";
                status = "disabled";
        };
 
@@ -195,7 +190,8 @@ uart1: serial@11003000 {
                             "mediatek,mt6577-uart";
                reg = <0 0x11003000 0 0x400>;
                interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
-               clocks = <&uart_clk>;
+               clocks = <&pericfg CLK_PERI_UART1_SEL>, <&pericfg CLK_PERI_UART1>;
+               clock-names = "baud", "bus";
                status = "disabled";
        };
 
@@ -204,7 +200,8 @@ uart2: serial@11004000 {
                             "mediatek,mt6577-uart";
                reg = <0 0x11004000 0 0x400>;
                interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
-               clocks = <&uart_clk>;
+               clocks = <&pericfg CLK_PERI_UART2_SEL>, <&pericfg CLK_PERI_UART2>;
+               clock-names = "baud", "bus";
                status = "disabled";
        };
 
@@ -213,7 +210,8 @@ uart3: serial@11005000 {
                             "mediatek,mt6577-uart";
                reg = <0 0x11005000 0 0x400>;
                interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
-               clocks = <&uart_clk>;
+               clocks = <&pericfg CLK_PERI_UART3_SEL>, <&pericfg CLK_PERI_UART3>;
+               clock-names = "baud", "bus";
                status = "disabled";
        };
 };