[openwrt/openwrt] ramips: increase SPI frequency for Phicomm series devices

LEDE Commits lede-commits at lists.infradead.org
Sun Mar 21 21:45:32 GMT 2021


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/c36e47c5dad038cdfa0ded1608638ddeb8ce1f32

commit c36e47c5dad038cdfa0ded1608638ddeb8ce1f32
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Sun Mar 21 17:51:00 2021 +0800

    ramips: increase SPI frequency for Phicomm series devices
    
    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 at qq.com>
    [improve commit title]
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 target/linux/ramips/dts/mt7620a_phicomm_k2g.dts      | 3 ++-
 target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts  | 3 ++-
 target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi | 3 ++-
 target/linux/ramips/dts/mt7621_phicomm_k2p.dts       | 3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
index 85d43468aa..2684da6ac3 100644
--- a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
+++ b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
@@ -50,7 +50,8 @@
 	flash at 0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <24000000>;
+		spi-max-frequency = <80000000>;
+		m25p,fast-read;
 
 		partitions {
 			compatible = "fixed-partitions";
diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
index ea87d64ecc..27c4ec31dc 100644
--- a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
+++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
@@ -53,7 +53,8 @@
 	flash at 0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <10000000>;
+		spi-max-frequency = <80000000>;
+		m25p,fast-read;
 
 		partitions {
 			compatible = "fixed-partitions";
diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi b/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi
index c3ec73b681..4d518bf206 100644
--- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi
+++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi
@@ -50,7 +50,8 @@
 	flash at 0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <10000000>;
+		spi-max-frequency = <80000000>;
+		m25p,fast-read;
 
 		partitions {
 			compatible = "fixed-partitions";
diff --git a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts b/target/linux/ramips/dts/mt7621_phicomm_k2p.dts
index 83169cd1e9..ec24c713ea 100644
--- a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts
+++ b/target/linux/ramips/dts/mt7621_phicomm_k2p.dts
@@ -50,7 +50,8 @@
 	flash at 0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <10000000>;
+		spi-max-frequency = <80000000>;
+		m25p,fast-read;
 
 		partitions {
 			compatible = "fixed-partitions";



More information about the lede-commits mailing list