aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorMichael Lyle <mlyle@lyle.org>2022-10-29 21:00:41 -0700
committerHauke Mehrtens <hauke@hauke-m.de>2022-11-12 21:55:11 +0100
commit9155d405130041e9abaf1fcbc03dd7f6746a1fc9 (patch)
tree1afa29222a095d07acd3c9d0fe651fd0ee92216a /target
parentca124d2e4b5cb2ea74640198721e85571a5c43b3 (diff)
downloadupstream-9155d405130041e9abaf1fcbc03dd7f6746a1fc9.tar.gz
upstream-9155d405130041e9abaf1fcbc03dd7f6746a1fc9.tar.bz2
upstream-9155d405130041e9abaf1fcbc03dd7f6746a1fc9.zip
ramips: gl-mt1300: downclock SPI to 50MHz
The SPI max frequency was set to 80MHz, considerably higher than the vendor clocks it in their firmware (10MHz). Multiple users reported jffs2 corruption/instability in GitHub issue #10461. My unit has a W25Q256; datasheet specifies maximum SPI frequency for read command of 50MHz. Thanks to @DragonBlueP for suggesting to eliminate m25p,fast-read; and @MPannen1979 for identifying the problem. Fixes: #10461 Signed-off-by: Michael Lyle <mlyle@lyle.org> (cherry picked from commit 961e01fc67e7d9e60557df3474fa326216aa4839)
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts b/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts
index 384da1bfa9..7e3dc8cc03 100644
--- a/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts
+++ b/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts
@@ -67,8 +67,7 @@
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
- m25p,fast-read;
+ spi-max-frequency = <50000000>;
broken-flash-reset;
partitions {