ramips: limit max spi clock frequency to 50 MHz
authorShiji Yang <yangshiji66@qq.com>
Sun, 7 Jul 2024 16:05:14 +0000 (00:05 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 10 Jul 2024 21:41:15 +0000 (23:41 +0200)
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>
27 files changed:
target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts
target/linux/ramips/dts/mt7620a_domywifi.dtsi
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
target/linux/ramips/dts/mt7620a_netcore_nw5212.dts
target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
target/linux/ramips/dts/mt7620a_sercomm_cpj.dtsi
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
target/linux/ramips/dts/mt7621_arcadyan_we420223-99.dts
target/linux/ramips/dts/mt7621_iptime_a6004ns-m.dtsi
target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts
target/linux/ramips/dts/mt7621_jcg_y2.dts
target/linux/ramips/dts/mt7621_snr_snr-cpe-me2-lite.dts
target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts
target/linux/ramips/dts/mt7621_tplink_mr600-v2-eu.dts
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts
target/linux/ramips/dts/mt7621_yuncore_ax820.dts
target/linux/ramips/dts/mt7621_yuncore_fap640.dts
target/linux/ramips/dts/mt7621_yuncore_fap690.dts
target/linux/ramips/dts/mt7628an_duzun_dm06.dts
target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi
target/linux/ramips/dts/mt7628an_motorola_mwr03.dts
target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts

index 2884bfdb0460dc12c80b9880b7bc1cc1748726d0..c7893c3a623523f5768acc0343a0675ce22266ef 100644 (file)
@@ -98,7 +98,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 8ae566d448b999e6f37ec23e85f8c57c3d99f45a..38ec42ac13c52bd70730afdb5fad74bfd88adcab 100644 (file)
@@ -93,7 +93,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index 9a96b0a2759ff9739d895be3a6fff194fa2c61cb..b71908bdcc9bfd9893a9bf05980785f7a2b2ccd1 100644 (file)
@@ -93,7 +93,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 4c24857df1d1025fb8cc3cb13d626187c1abd94b..d390abe55a337413df3adb1b98b647e1f5140e32 100644 (file)
@@ -31,7 +31,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 25287ebc0bc6be553a8e9294e98c041657c4e0c5..06422ef9adfdb09642374f271f8230664605c490 100644 (file)
@@ -73,7 +73,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <70000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index a8a900eac19e75377e2c5cc419b99a3253b56b66..266b199c38e7f13498eba69fbe8cebffc26702c0 100644 (file)
@@ -48,7 +48,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions: partitions {
index 4e123c32bde5c0eae9a8ef5cb02b2365afa50159..5f907233f360a59e3582d240ddedd033d214afde 100644 (file)
@@ -53,7 +53,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index cb125052011c1b88228585e5005a2f5e6bee09a7..8bb231424076a472cc2cb61b560dd3120f64f81f 100644 (file)
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <70000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 95868c9be99f499a537f9d502c33d2802c6aeb70..e35c2b5c0eebbf33edaf58ad0cd3dcd5c6841971 100644 (file)
@@ -78,7 +78,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <70000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 5af7b343d9b4d63428a88bd4441d496dc08bc2e4..d0d636b09d836e76a9ba65f9df6e083cc08fcded 100644 (file)
@@ -59,7 +59,7 @@
        flash0: flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 3ae441f8e3be55d4ab6c5d2bcb43e7e44c55d713..b0c847f84da93e04f877f7f171af1d244a29a4c2 100644 (file)
                compatible = "jedec,spi-nor";
 
                reg = <0>;
-               spi-max-frequency = <70000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index b00fbeb47f913885583884db00ca7939b3e0793c..51f2c311137049203da9f7b615a6449ede4507f8 100644 (file)
@@ -65,7 +65,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 5d346be1d274e6f0bc6e2633612883b197728904..dd95f2de4bd9c1c62d19c1e580534efe1c006bda 100644 (file)
@@ -63,7 +63,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index f8ae9b41df80353bc0f91721d3f179828041d9d6..6390203c57d6b4964688e1be8556105298a5b818 100644 (file)
@@ -41,7 +41,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 38cd1cd8fd87c0e4a06e2dfe63595ad39eabeee9..f5be9b7c8773a5b5d3f5440e9b25ba61f8fca4a9 100644 (file)
@@ -55,7 +55,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <104000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index c626df1ef4e6f4d5fb56683dd14a8da8a819a981..6c94fd8f19491196572d12dff99d22c9915a2faf 100644 (file)
@@ -96,7 +96,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index b7475ec15badb1f61836b9e57177b49b6372d019..04450783ad8dc22a4b62445f300dc0ba681cefa4 100644 (file)
@@ -88,7 +88,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index cfd2344d21c6877df5d33f1ccc595132447a0862..ca4b83bee3e26fa23d2e4b6810ea4b556e051b9a 100644 (file)
@@ -42,7 +42,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index ec81839d1d24908a45f265ab148790929acbdb63..74490de78185c93c6eeac4f8619ca784446b5e57 100644 (file)
@@ -63,7 +63,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <104000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 1aba94a9125591832b384d396c54cd5598ac41ae..7f948d921c6c35935cf69a25292cae4a30dc4661 100644 (file)
@@ -87,7 +87,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index d525dde385b4d921655a374cfc44534c0010b899..14a1b5d4f9616633b251b129dae0eb055710eaea 100644 (file)
@@ -95,7 +95,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index a998b95d4c51eee523643b140868e2ba77d61ed7..ef64e178b077c9598ebc503702ad46ba17fbc3e9 100644 (file)
@@ -65,7 +65,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index b9a105b0e3bae3e9b40d8cf497a1f91df88ce707..82f0cd74cd42e1dff57d211e8086ec576ce7288a 100644 (file)
@@ -96,7 +96,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <60000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index bfc510e06feae05bb0a605357acef98cca25d248..3ad6140543b68da1d9bb59dc9b7b6cd7b5cc3e22 100644 (file)
@@ -36,7 +36,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 2179c48b22835aa968341ced2cfa3d6e41c840b3..383e86517b01c8da9a46b831bea52a9f8266468e 100644 (file)
@@ -47,7 +47,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index e6374e7bac829e6c1ef657af6778548107f0ee75..cbfd220b987f3b10f6c91e3c3db956e169d988af 100644 (file)
@@ -65,7 +65,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <86000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions: partitions {
index d044be395a8a0b95eb045e8e4ad4afe6aacd16ce..ebaa6e107b30dbfb7f20705ddd4d9064b85206c6 100644 (file)
@@ -53,7 +53,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <60000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";