In the past few years, we have received several reports about SPI
Flash not working properly. This is caused by excessively fast
clock frequency. It's really annoying to fix them one by one. Let's
reduce these aggressive frequencies to 50 MHz. This is a safe and
suggested value in the vendor SDK.
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
(cherry picked from commit
73eeac49be566d389df728b5335f7146d03d2f90)
Link: https://github.com/openwrt/openwrt/pull/15919
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <70000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions: partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <70000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <70000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash0: flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <70000000>;
+ spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <104000000>;
+ spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <104000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <60000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <80000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <86000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
partitions: partitions {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <60000000>;
+ spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";