arm64: dts: mediatek: mt7986: correct timer frequency
Subsystems (2)
PATCH 1/1 arm64: dts: mediatek: mt7986: correct timer frequency
The MT7986 architected timer runs at 12,986,200 Hz rather than 13 MHz. Firmware reports 13 MHz through CNTFRQ_EL0, causing the system clock to run slow by about 1062 ppm. This exceeds the kernel's 500 ppm NTP correction limit and leaves clock discipline saturated.
The corrected rate comes from MediaTek's downstream OpenWrt feed, where it is applied to both MT7986A and MT7986B. Since upstream mt7986b.dtsi includes mt7986a.dtsi, add it once to the common timer node so the architected timer driver uses the actual counter rate.
--- arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +1 -0
@@ -657,6 +657,7 @@ cpu_trip_active_low: active-low { timer { compatible = "arm,armv8-timer"; interrupt-parent = <&gic>; + clock-frequency = <12986200>; interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
base-commit: cf72cbb39da84b6f02f90c07f33b102fc10b16f0
Signature · 1 line
2.43.0
Quoted 11 lines · Andrea Pesaresi
The MT7986 architected timer runs at 12,986,200 Hz rather than 13 MHz. Firmware reports 13 MHz through
CNTFRQ_EL0, causing the system clock to run slow by about 1062 ppm. This exceeds the kernel's 500 ppm NTP correction limit and leaves clock discipline saturated.The corrected rate comes from MediaTek's downstream OpenWrt feed, where it is applied to both MT7986A and MT7986B. Since upstream
mt7986b.dtsiincludesmt7986a.dtsi, add it once to the common timer node so the architected timer driver uses the actual counter rate.[...]
Applied to v7.3-next/dts64, thanks!
[1/1] arm64: dts: mediatek: mt7986: correct timer frequency
commit: 1cf18e4b9815beaf0439c5b57b65b45151c82ad7
Cheers,
Angelo