From: Chen-Yu Tsai Date: Thu, 1 Dec 2022 08:42:29 +0000 (+0800) Subject: arm64: dts: mediatek: mt8186: Fix systimer 13 MHz clock description X-Git-Tag: v6.1.21~1419 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57991c89c9b8216fcd86729c4cd0ea58746c99b9;p=platform%2Fkernel%2Flinux-starfive.git arm64: dts: mediatek: mt8186: Fix systimer 13 MHz clock description [ Upstream commit b391efba57ff085233d5ead5e01817bf4b71d999 ] The systimer block derives its 13 MHz clock by dividing the main 26 MHz oscillator clock by 2 internally. The 13 MHz clock is not a separate oscillator. Fix this by making the 13 MHz clock a divide-by-2 fixed factor clock, taking its input from the main 26 MHz oscillator. Fixes: 2e78620b1350 ("arm64: dts: Add MediaTek MT8186 dts and evaluation board and Makefile") Signed-off-by: Chen-Yu Tsai Reviewed-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20221201084229.3464449-5-wenst@chromium.org Signed-off-by: Matthias Brugger Signed-off-by: Sasha Levin --- diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index 64693c1..fb32e3e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -211,10 +211,12 @@ }; }; - clk13m: oscillator-13m { - compatible = "fixed-clock"; + clk13m: fixed-factor-clock-13m { + compatible = "fixed-factor-clock"; #clock-cells = <0>; - clock-frequency = <13000000>; + clocks = <&clk26m>; + clock-div = <2>; + clock-mult = <1>; clock-output-names = "clk13m"; };