ramips: increase SPI frequency for Phicomm series devices
authorShiji Yang <yangshiji66@qq.com>
Sun, 21 Mar 2021 09:51:00 +0000 (17:51 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 21 Mar 2021 21:45:20 +0000 (22:45 +0100)
From many teardown image in the internet, I find Phicomm K1/k2 series use
Winbond W25Q64/W25Q128 or GigaDevice GD25Q64/GD25Q128 Flash chips. both of
them support 100+ MHz clock spi operate and fast-read instruction. PSG1218
with W25x or GD25x has been tested and it can run well in OpenWrt v19.07.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
[improve commit title]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi
target/linux/ramips/dts/mt7621_phicomm_k2p.dts

index 85d43468aac1a2d3fca5dd78e98b7544486c5e75..2684da6ac33bdc8ce99573efb864850d4151691e 100644 (file)
@@ -50,7 +50,8 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <24000000>;
+               spi-max-frequency = <80000000>;
+               m25p,fast-read;
 
                partitions {
                        compatible = "fixed-partitions";
index ea87d64ecc3925302c55b31222eac3e5262e1c91..27c4ec31dc4e565f97ae1db0e1b55559a546b5fe 100644 (file)
@@ -53,7 +53,8 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <10000000>;
+               spi-max-frequency = <80000000>;
+               m25p,fast-read;
 
                partitions {
                        compatible = "fixed-partitions";
index c3ec73b681a25df6b087be044359d039b8c88297..4d518bf20673d80ff0493a493525c63ad95842b1 100644 (file)
@@ -50,7 +50,8 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <10000000>;
+               spi-max-frequency = <80000000>;
+               m25p,fast-read;
 
                partitions {
                        compatible = "fixed-partitions";
index 83169cd1e9b705ca7b50c48b0f1b245bbd3f8a68..ec24c713ea9df3fdd35c49a5469e8e52b0aae3c9 100644 (file)
@@ -50,7 +50,8 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <10000000>;
+               spi-max-frequency = <80000000>;
+               m25p,fast-read;
 
                partitions {
                        compatible = "fixed-partitions";