Răsfoiți Sursa

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 <[email protected]>
Shiji Yang 1 an în urmă
părinte
comite
73eeac49be
29 a modificat fișierele cu 29 adăugiri și 29 ștergeri
  1. 1 1
      target/linux/ramips/dts/mt7620a_bolt_bl100.dts
  2. 1 1
      target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
  3. 1 1
      target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts
  4. 1 1
      target/linux/ramips/dts/mt7620a_domywifi.dtsi
  5. 1 1
      target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
  6. 1 1
      target/linux/ramips/dts/mt7620a_netcore_nw5212.dts
  7. 1 1
      target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
  8. 1 1
      target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
  9. 1 1
      target/linux/ramips/dts/mt7620a_sercomm_cpj.dtsi
  10. 1 1
      target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
  11. 1 1
      target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
  12. 1 1
      target/linux/ramips/dts/mt7621_arcadyan_we420223-99.dts
  13. 1 1
      target/linux/ramips/dts/mt7621_iptime_a6004ns-m.dtsi
  14. 1 1
      target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts
  15. 1 1
      target/linux/ramips/dts/mt7621_jcg_y2.dts
  16. 1 1
      target/linux/ramips/dts/mt7621_snr_snr-cpe-me2-lite.dts
  17. 1 1
      target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts
  18. 1 1
      target/linux/ramips/dts/mt7621_tplink_mr600-v2-eu.dts
  19. 1 1
      target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
  20. 1 1
      target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts
  21. 1 1
      target/linux/ramips/dts/mt7621_yuncore_ax820.dts
  22. 1 1
      target/linux/ramips/dts/mt7621_yuncore_fap640.dts
  23. 1 1
      target/linux/ramips/dts/mt7621_yuncore_fap690.dts
  24. 1 1
      target/linux/ramips/dts/mt7628an_duzun_dm06.dts
  25. 1 1
      target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi
  26. 1 1
      target/linux/ramips/dts/mt7628an_motorola_mwr03.dts
  27. 1 1
      target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
  28. 1 1
      target/linux/ramips/dts/mt7628an_tplink_archer-mr200-v5.dts
  29. 1 1
      target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts

+ 1 - 1
target/linux/ramips/dts/mt7620a_bolt_bl100.dts

@@ -145,7 +145,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <70000000>;
+		spi-max-frequency = <50000000>;
 
 		partitions {
 			compatible = "fixed-partitions";

+ 1 - 1
target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts

@@ -101,7 +101,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts

@@ -97,7 +97,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 
 		partitions {
 			compatible = "fixed-partitions";

+ 1 - 1
target/linux/ramips/dts/mt7620a_domywifi.dtsi

@@ -95,7 +95,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi

@@ -31,7 +31,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7620a_netcore_nw5212.dts

@@ -75,7 +75,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <70000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi

@@ -52,7 +52,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions: partitions {

+ 1 - 1
target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts

@@ -55,7 +55,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7620a_sercomm_cpj.dtsi

@@ -158,7 +158,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <70000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts

@@ -83,7 +83,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <70000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi

@@ -63,7 +63,7 @@
 	flash0: flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7621_arcadyan_we420223-99.dts

@@ -97,7 +97,7 @@
 		compatible = "jedec,spi-nor";
 
 		reg = <0>;
-		spi-max-frequency = <70000000>;
+		spi-max-frequency = <50000000>;
 
 		partitions {
 			compatible = "fixed-partitions";

+ 1 - 1
target/linux/ramips/dts/mt7621_iptime_a6004ns-m.dtsi

@@ -68,7 +68,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts

@@ -65,7 +65,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7621_jcg_y2.dts

@@ -41,7 +41,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7621_snr_snr-cpe-me2-lite.dts

@@ -53,7 +53,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <104000000>;
+		spi-max-frequency = <50000000>;
 
 		partitions {
 			compatible = "fixed-partitions";

+ 1 - 1
target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts

@@ -102,7 +102,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 
 		partitions {
 			compatible = "fixed-partitions";

+ 1 - 1
target/linux/ramips/dts/mt7621_tplink_mr600-v2-eu.dts

@@ -92,7 +92,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 
 		partitions {
 			compatible = "fixed-partitions";

+ 1 - 1
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi

@@ -44,7 +44,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts

@@ -67,7 +67,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <104000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7621_yuncore_ax820.dts

@@ -87,7 +87,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7621_yuncore_fap640.dts

@@ -100,7 +100,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7621_yuncore_fap690.dts

@@ -69,7 +69,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7628an_duzun_dm06.dts

@@ -96,7 +96,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <60000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi

@@ -36,7 +36,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7628an_motorola_mwr03.dts

@@ -50,7 +50,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <80000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi

@@ -70,7 +70,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <86000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions: partitions {

+ 1 - 1
target/linux/ramips/dts/mt7628an_tplink_archer-mr200-v5.dts

@@ -89,7 +89,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <104000000>;
+		spi-max-frequency = <50000000>;
 		m25p,fast-read;
 
 		partitions {

+ 1 - 1
target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts

@@ -56,7 +56,7 @@
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <60000000>;
+		spi-max-frequency = <50000000>;
 
 		partitions {
 			compatible = "fixed-partitions";