ramips: limit max spi clock frequency to 50 MHz
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>
This commit is contained in:
@@ -145,7 +145,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <70000000>;
|
spi-max-frequency = <50000000>;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
compatible = "fixed-partitions";
|
compatible = "fixed-partitions";
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
compatible = "fixed-partitions";
|
compatible = "fixed-partitions";
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <70000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions: partitions {
|
partitions: partitions {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -158,7 +158,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <70000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <70000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
flash0: flash@0 {
|
flash0: flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
|
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <70000000>;
|
spi-max-frequency = <50000000>;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
compatible = "fixed-partitions";
|
compatible = "fixed-partitions";
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <104000000>;
|
spi-max-frequency = <50000000>;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
compatible = "fixed-partitions";
|
compatible = "fixed-partitions";
|
||||||
|
|||||||
@@ -102,7 +102,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
compatible = "fixed-partitions";
|
compatible = "fixed-partitions";
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
compatible = "fixed-partitions";
|
compatible = "fixed-partitions";
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <104000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -100,7 +100,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <60000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <80000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <86000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions: partitions {
|
partitions: partitions {
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <104000000>;
|
spi-max-frequency = <50000000>;
|
||||||
m25p,fast-read;
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <60000000>;
|
spi-max-frequency = <50000000>;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
compatible = "fixed-partitions";
|
compatible = "fixed-partitions";
|
||||||
|
|||||||
Reference in New Issue
Block a user