arm64: dts: mt8173: add reference clock for usb
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Tue, 7 Feb 2017 06:13:31 +0000 (14:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2017 06:44:52 +0000 (07:44 +0100)
Due to the reference clock comes from 26M oscillator directly
on mt8173, and it is a fixed-clock in DTS which always turned
on, we ignore it before. But on some platforms, it comes
from PLL, and need be controlled, so here add it, no matter
it is a fixed-clock or not.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/mediatek/mt8173.dtsi

index 12e7027..40a02b2 100644 (file)
                               <&phy_port1 PHY_TYPE_USB2>;
                        power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
                        clocks = <&topckgen CLK_TOP_USB30_SEL>,
+                                <&clk26m>,
                                 <&pericfg CLK_PERI_USB0>,
                                 <&pericfg CLK_PERI_USB1>;
                        clock-names = "sys_ck",
+                                     "ref_ck",
                                      "wakeup_deb_p0",
                                      "wakeup_deb_p1";
                        mediatek,syscon-wakeup = <&pericfg>;
                                reg-names = "mac";
                                interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_LOW>;
                                power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
-                               clocks = <&topckgen CLK_TOP_USB30_SEL>;
-                               clock-names = "sys_ck";
+                               clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
+                               clock-names = "sys_ck", "ref_ck";
                                status = "disabled";
                        };
                };