[openwrt/openwrt] ath79: mikrotik: fix reference clock of Routerboard 911G
LEDE Commits
lede-commits at lists.infradead.org
Wed Feb 12 15:25:21 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/40fc6bd5cc679875e38ea1769527affdb5be12ba
commit 40fc6bd5cc679875e38ea1769527affdb5be12ba
Author: Lech Perczak <lech.perczak at gmail.com>
AuthorDate: Wed Feb 12 02:25:53 2025 +0100
ath79: mikrotik: fix reference clock of Routerboard 911G
When support for Routerboard 911G was introduced, Routerboad 912UAG
device tree was used as a base, and the common part. This led to use of
40MHz as the reference clock frequency for both [1], while RB911G uses 25MHz
crystal on the board, causing heavy system clock drift.
Split the definition, and set the reference clock frequency for RB911G
back to 25MHz.
[1] a716ac556497 ("ath79: fix reference clock for RouterBoard 912UAG")
Fixes: bcc44b1212b2 ("ath79: support for MikroTik RouterBOARD 911G-(2,5)HPnD")
Signed-off-by: Lech Perczak <lech.perczak at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17944
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g-xhpnd.dts | 4 ++++
target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g.dtsi | 4 ----
target/linux/ath79/dts/ar9342_mikrotik_routerboard-912uag-2hpnd.dts | 4 ++++
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g-xhpnd.dts b/target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g-xhpnd.dts
index 5fa44b4412..655c590f8c 100644
--- a/target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g-xhpnd.dts
+++ b/target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g-xhpnd.dts
@@ -9,3 +9,7 @@
compatible = "mikrotik,routerboard-911g-xhpnd", "qca,ar9342";
model = "MikroTik RouterBOARD 911G-(2,5)HPnD";
};
+
+&ref {
+ clock-frequency = <25000000>;
+};
diff --git a/target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g.dtsi b/target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g.dtsi
index 0c98a6634e..3a8c60456f 100644
--- a/target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g.dtsi
+++ b/target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g.dtsi
@@ -146,10 +146,6 @@
};
};
-&ref {
- clock-frequency = <40000000>;
-};
-
&spi {
status = "okay";
diff --git a/target/linux/ath79/dts/ar9342_mikrotik_routerboard-912uag-2hpnd.dts b/target/linux/ath79/dts/ar9342_mikrotik_routerboard-912uag-2hpnd.dts
index 81d7284b3d..4cf62349f5 100644
--- a/target/linux/ath79/dts/ar9342_mikrotik_routerboard-912uag-2hpnd.dts
+++ b/target/linux/ath79/dts/ar9342_mikrotik_routerboard-912uag-2hpnd.dts
@@ -10,6 +10,10 @@
model = "MikroTik RouterBOARD 912UAG-(2,5)HPnD";
};
+&ref {
+ clock-frequency = <40000000>;
+};
+
&pcie {
status = "okay";
};
More information about the lede-commits
mailing list