ramips: gl-mt1300: downclock SPI to 50MHz
authorMichael Lyle <mlyle@lyle.org>
Sun, 30 Oct 2022 04:00:41 +0000 (21:00 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 12 Nov 2022 20:55:11 +0000 (21:55 +0100)
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)

target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts

index 384da1bfa9faaa67fd73fb15a664b3b3ca655a8b..7e3dc8cc03dfd7522cfaec13cc5993cd67906a9e 100644 (file)
@@ -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 {