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)
committerNick Hainke <vincent@systemli.org>
Wed, 10 Jul 2024 10:20:35 +0000 (12:20 +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>
29 files changed:
target/linux/ramips/dts/mt7620a_bolt_bl100.dts
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/mt7628an_tplink_archer-mr200-v5.dts
target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts

index e4bc6e211b4e858431f07aeaa1522c2ab439d72c..cb1f3b8055af56f5bf821ce42ca0dbb5763fe970 100644 (file)
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <70000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index 7ea288615c79171d40e4a7719cbb08282d30fa84..6ed3063ecba21db1978e884e08f3bae783fd1b8f 100644 (file)
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 978de470f0a1827b783760e5565d9befef126596..645030b5bbdf5172272a1b33d323191b5f78234d 100644 (file)
@@ -97,7 +97,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index e2bd8e103bda08eb7315f8b904df16fdc809cc2d..844c1a4ee49a1cc03520a76d55a8763ccf089d20 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 7fcd68e6ba2ea808a9b9b5684e889ec51b00194e..6a602b841168a5cb93e6a3f22c796dcbbf28ddb7 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 2e112c71791f20538919e4af3258aaa7e270e178..439ad2a11807d17d02e710dfa78b7afaea9d8573 100644 (file)
@@ -75,7 +75,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <70000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 4faa45933fd86b69ee767f40e8506bb80c7ce3a5..ce53781e60007233a3d01c1f832dd3ff091e1fd8 100644 (file)
@@ -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 {
index c5c4d01835b81dc0240faf5ff524ea8a771e6c98..b032cd9d4f601c85cd6851e5dc5d7048357b5285 100644 (file)
@@ -55,7 +55,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 8c565385e8f55e9fc14dde4e24fefdf4a59a9c6d..cedefe3c5ed9d12a5f0b66fa4e525fe8d642155a 100644 (file)
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <70000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index c0141b196dabbfdbfe3de43e396800f504b46d15..41221891f77024d4edfa0ed960f503bddedd0e66 100644 (file)
@@ -83,7 +83,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <70000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 2f9920fc4561d754d2781a9e51acd8969c82435e..2ddb0d8408cccd67739ab3395d8eda6cb8455954 100644 (file)
@@ -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 {
index 4a5194c3639194791812b0adc77105c4d155275f..6895052eb92b1bbcb1426118e8e0df370c0e5994 100644 (file)
@@ -97,7 +97,7 @@
                compatible = "jedec,spi-nor";
 
                reg = <0>;
-               spi-max-frequency = <70000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index 6bfdffefb7c8e9a1dfdc3a257e78f233885508b2..24869f3d564b49f08fadbe8d67bd07f2f07e39b0 100644 (file)
@@ -68,7 +68,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 548ab7ba599f37e230ff63b2e95a317061a0a512..f1c593ea8304553d39855bb4572ef2349698f765 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 5012bc3d62f561fbd0ca3573f0032d3dcecb87fa..555beae04f69e76e816162c12e4ffa222c4ba0bd 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 cd0e7465ff2ab4202117ae469b1ae60b99bbef7c..8ee88b2609977d640b114f328bb05d2a7f14dd1e 100644 (file)
@@ -53,7 +53,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <104000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index de352741f8bbd33b93d16e5eaa6d17e6e3dbc6fb..4917ffc81e5cef3571ca79db1687973b95ae10bd 100644 (file)
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index 234202ba87a8213585627b5063924c7562278bfd..165b48d20914de2d42b2ed428985c46f7aadb04d 100644 (file)
@@ -92,7 +92,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index 3264a8673c1eaff6070bc058ccd2add9ed51af85..ff2c39d70491eb088a5387b3cc52443166e60121 100644 (file)
@@ -44,7 +44,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 7090869c4e0c4fc98328b4027496f49cf3ac3a45..d40f56e1e9c092934f89393186408cb650ebea5a 100644 (file)
@@ -67,7 +67,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <104000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 316c1800983ab3eac39016a9c05e487d0ed9ce34..51421aba6a02940e71f393ea43bf0acc50621a85 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 536b45e03f359b91cd715968ae294629dcea9125..5e18ded9b0dba79d7ccf01001a82c4db4f929cf0 100644 (file)
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 9f7ca430922f36f55e86781e5f11ee3c32bd26f9..bb25ade1a8022167d18d30edbf63b1c5df67bb4e 100644 (file)
@@ -69,7 +69,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 59d411f88fb15c122014e9f62f89fda6dddd39f7..1c40c12cafd7f4020554572b6dda63a8808611b1 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 42bb804c6571dec8b7aa536e8ce0b44b009738d6..4b114c94145aee8b9a67a43b91a9096ff03b8f8d 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 1c57fce196bb841710f6e3433eca7cd90934d50c..7b288701c931032d00f492e870b402511cb4ad48 100644 (file)
@@ -50,7 +50,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <80000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 41e5fb7e4b722ef3cd4aea7b768ec077bb245c58..a8e735396704e318f871d5f93bb2280559e0a081 100644 (file)
@@ -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 {
index 177cd4db8a5758e9f735ac624ca469c044547bc0..b6a5a61b7ce2252a0416c24671a1a7680af99d89 100644 (file)
@@ -89,7 +89,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <104000000>;
+               spi-max-frequency = <50000000>;
                m25p,fast-read;
 
                partitions {
index 7755b5dfefb8aa4f9cd927a5078b8210401051ed..658a71066a559a5e51507c83f48b4d9f3125cabb 100644 (file)
@@ -56,7 +56,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <60000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";