]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dts: mt7622: use accurate clock source fot mtk_timer
authorWeijie Gao <weijie.gao@mediatek.com>
Tue, 12 Jan 2021 05:44:11 +0000 (13:44 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 18 Jan 2021 20:23:06 +0000 (15:23 -0500)
The input system clock for mt7622 timer is 10MHz and can be retrieved
through the clk driver.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
arch/arm/dts/mt7622.dtsi

index d888545809199d1e7e76e078cb43e2fc37c8743d..5c2e0251ded2edb26f2a0ae6cf67b6164b6f40b3 100644 (file)
                compatible = "mediatek,timer";
                reg = <0x10004000 0x80>;
                interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_LOW>;
-               clocks = <&system_clk>;
+               clocks = <&infracfg CLK_INFRA_APXGPT_PD>;
                clock-names = "system-clk";
        };
 
-       system_clk: dummy13m {
-               compatible = "fixed-clock";
-               clock-frequency = <13000000>;
-               #clock-cells = <0>;
-       };
-
        infracfg: infracfg@10000000 {
                compatible = "mediatek,mt7622-infracfg",
                             "syscon";