ramips: increase SPI frequency for MT7620 Archer
authorDavid Bauer <mail@david-bauer.net>
Tue, 21 Jul 2020 18:11:28 +0000 (20:11 +0200)
committerDavid Bauer <mail@david-bauer.net>
Wed, 22 Jul 2020 15:20:24 +0000 (17:20 +0200)
Increase the SPI frequency for the MT7620 based TP-Link Archer
series to 30MHz.

TP-Link uses different SPI flash chips for the same board
revision, so be conservative to not break boards with a
different chip. 30MHz should be well supported by all chips.

Tested on Archer C2 v1 (GD25Q64B) and Archer C20i (W25Q64FV).

Archer C20i (before)
====================
root@OpenWrt:~# time dd if=/dev/mtd1 of=/tmp/test.bin bs=64k
122+0 records in
122+0 records out
real 0m 15.30s
user 0m 0.00s
sys 0m 15.29s

Archer C20i (after)
===================
root@OpenWrt:~# time dd if=/dev/mtd1 of=/tmp/test.bin bs=64k
122+0 records in
122+0 records out
real 0m 5.99s
user 0m 0.00s
sys 0m 5.98s

Signed-off-by: David Bauer <mail@david-bauer.net>
Acked-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
target/linux/ramips/dts/mt7620a_tplink_archer.dtsi

index c0b2c1ae920980794827dc0213851404d0b17b06..75ddc5fb5d89563f78f743b00958f629e56fefc1 100644 (file)
@@ -82,7 +82,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <10000000>;
+               spi-max-frequency = <30000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index c3c0efdfe6b77f5890d4fe6a35e6aad4cf7752fd..0c0f4bb8e9041b2643ad9422e0f44324256261b0 100644 (file)
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <10000000>;
+               spi-max-frequency = <30000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index 184627b9f4b54ade4d4707f73ddf2bacdc3e0e7b..670bad615d0701138aa02f992016332209ce393b 100644 (file)
@@ -43,7 +43,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <10000000>;
+               spi-max-frequency = <30000000>;
 
                partitions {
                        compatible = "fixed-partitions";