Skip to content

Commit

Permalink
ramips: mt762{0,8}: reduce default MMC clock to 24 MHz
Browse files Browse the repository at this point in the history
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: openwrt/openwrt#17364
Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt/openwrt#17375
Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
DragonBluep authored and hauke committed Dec 26, 2024
1 parent df222e5 commit de0c143
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion target/linux/ramips/dts/mt7620a.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@
interrupt-parent = <&intc>;
interrupts = <14>;

max-frequency = <48000000>;
max-frequency = <24000000>;

pinctrl-names = "default", "state_uhs";
pinctrl-0 = <&sdhci_pins>;
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@
};
};

&sdhci {
max-frequency = <24000000>;
};

&wmac {
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
Expand Down
2 changes: 1 addition & 1 deletion target/linux/ramips/dts/mt7628an.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
interrupt-parent = <&intc>;
interrupts = <14>;

max-frequency = <48000000>;
max-frequency = <24000000>;

pinctrl-names = "default", "state_uhs";
pinctrl-0 = <&sdxc_pins>;
Expand Down

0 comments on commit de0c143

Please sign in to comment.