[openwrt/openwrt] ramips: mt762{0,8}: reduce default MMC clock to 24 MHz
LEDE Commits
lede-commits at lists.infradead.org
Sat Jan 4 10:44:53 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/cc733e7e2a2da29ca90fba8ca91bb3752a6c9b65
commit cc733e7e2a2da29ca90fba8ca91bb3752a6c9b65
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Wed Dec 25 20:33:23 2024 +0800
ramips: mt762{0,8}: reduce default MMC clock to 24 MHz
The upstream mtk-sd driver did not perform specific timing
optimization for MT762x series SoC, hence the SDHC peripheral
of some boards cannot run at too high frequency. Reduce the
maximum clock frequency to fix the mmc read/write error.
Closes: https://github.com/openwrt/openwrt/issues/17364
Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
Link: https://github.com/openwrt/openwrt/pull/17375
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
(cherry picked from commit de0c143742517d401c4730137f092be8fb7e882a)
---
target/linux/ramips/dts/mt7620a.dtsi | 2 +-
target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts | 4 ----
target/linux/ramips/dts/mt7628an.dtsi | 2 +-
3 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/target/linux/ramips/dts/mt7620a.dtsi b/target/linux/ramips/dts/mt7620a.dtsi
index 93b4286193..0555674802 100644
--- a/target/linux/ramips/dts/mt7620a.dtsi
+++ b/target/linux/ramips/dts/mt7620a.dtsi
@@ -540,7 +540,7 @@
interrupt-parent = <&intc>;
interrupts = <14>;
- max-frequency = <48000000>;
+ max-frequency = <24000000>;
pinctrl-names = "default", "state_uhs";
pinctrl-0 = <&sdhci_pins>;
diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts b/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
index 29aff9958a..2cb7017972 100644
--- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
+++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
@@ -108,10 +108,6 @@
};
};
-&sdhci {
- max-frequency = <24000000>;
-};
-
&wmac {
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi
index 239211b1e1..79763332b8 100644
--- a/target/linux/ramips/dts/mt7628an.dtsi
+++ b/target/linux/ramips/dts/mt7628an.dtsi
@@ -394,7 +394,7 @@
interrupt-parent = <&intc>;
interrupts = <14>;
- max-frequency = <48000000>;
+ max-frequency = <24000000>;
pinctrl-names = "default", "state_uhs";
pinctrl-0 = <&sdxc_pins>;
More information about the lede-commits
mailing list