ramips: mt762{0,8}: reduce default MMC clock to 24 MHz
authorShiji Yang <yangshiji66@qq.com>
Wed, 25 Dec 2024 12:33:23 +0000 (20:33 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 26 Dec 2024 14:23:49 +0000 (15:23 +0100)
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@qq.com>
Link: https://github.com/openwrt/openwrt/pull/17375
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ramips/dts/mt7620a.dtsi
target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
target/linux/ramips/dts/mt7628an.dtsi

index 93b4286193a8e19ff882234f7b4eecb6d1c64516..0555674802c0a3b710f6d044e804edb11ce0117d 100644 (file)
                interrupt-parent = <&intc>;
                interrupts = <14>;
 
-               max-frequency = <48000000>;
+               max-frequency = <24000000>;
 
                pinctrl-names = "default", "state_uhs";
                pinctrl-0 = <&sdhci_pins>;
index 29aff9958a8797ea5e573ea044289353b3575405..2cb7017972e2060f166464e71919203e47625873 100644 (file)
        };
 };
 
-&sdhci {
-       max-frequency = <24000000>;
-};
-
 &wmac {
        pinctrl-names = "default", "pa_gpio";
        pinctrl-0 = <&pa_pins>;
index 239211b1e18bf399a1eca371f5ca30f6a3916d3a..79763332b8bf589da568812096745e97b1567450 100644 (file)
                interrupt-parent = <&intc>;
                interrupts = <14>;
 
-               max-frequency = <48000000>;
+               max-frequency = <24000000>;
 
                pinctrl-names = "default", "state_uhs";
                pinctrl-0 = <&sdxc_pins>;