Skip to content

Commit

Permalink
ramips: gl-mt1300: downclock SPI to 50MHz
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mlyle authored and hauke committed Nov 7, 2022
1 parent 02aa7a2 commit 961e01f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts
Expand Up @@ -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 {
Expand Down

0 comments on commit 961e01f

Please sign in to comment.