tools/elfutils: refresh portability patch for macOS
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.14 / 0215-arm64-dts-mt7622-turn-uart0-clock-to-real-ones.patch
1 From 84b3092b3773777de1ba1ad142e53247fb881ddd Mon Sep 17 00:00:00 2001
2 From: Sean Wang <sean.wang@mediatek.com>
3 Date: Thu, 28 Dec 2017 18:00:11 +0800
4 Subject: [PATCH 215/224] arm64: dts: mt7622: turn uart0 clock to real ones
5
6 This patch also cleans up two oscillators that provide clocks for MT7623.
7 Switch the uart clocks to the real ones while at it.
8
9 Signed-off-by: Sean Wang <sean.wang@mediatek.com>
10 Cc: Matthias Brugger <matthias.bgg@gmail.com>
11 ---
12 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 15 ++-------------
13 1 file changed, 2 insertions(+), 13 deletions(-)
14
15 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
16 +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
17 @@ -91,18 +91,6 @@
18 };
19 };
20
21 - uart_clk: dummy25m {
22 - compatible = "fixed-clock";
23 - #clock-cells = <0>;
24 - clock-frequency = <25000000>;
25 - };
26 -
27 - bus_clk: dummy280m {
28 - compatible = "fixed-clock";
29 - #clock-cells = <0>;
30 - clock-frequency = <280000000>;
31 - };
32 -
33 pwrap_clk: dummy40m {
34 compatible = "fixed-clock";
35 clock-frequency = <40000000>;
36 @@ -234,7 +222,8 @@
37 "mediatek,mt6577-uart";
38 reg = <0 0x11002000 0 0x400>;
39 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
40 - clocks = <&uart_clk>, <&bus_clk>;
41 + clocks = <&topckgen CLK_TOP_UART_SEL>,
42 + <&pericfg CLK_PERI_UART1_PD>;
43 clock-names = "baud", "bus";
44 status = "disabled";
45 };