[OpenWrt-Devel] [PATCH] ramips: Increase GB-PC1 SPI frequency to 50MHz

Rosen Penev rosenp at gmail.com
Fri Feb 1 00:34:10 EST 2019


The specific flash chip used (W25Q256FVEM) accepts 50MHz for read requests
and higher for others.

Based on upstream commit: 97738374a310b9116f9c33832737e517226d3722

time dd if=/dev/mtdblock3 of=/dev/null bs=64k from

42.96s to 17.26.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 target/linux/ramips/dts/GB-PC1.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/dts/GB-PC1.dts b/target/linux/ramips/dts/GB-PC1.dts
index 40f81762b1..029b02a97b 100644
--- a/target/linux/ramips/dts/GB-PC1.dts
+++ b/target/linux/ramips/dts/GB-PC1.dts
@@ -71,7 +71,7 @@
 	m25p80 at 0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <10000000>;
+		spi-max-frequency = <50000000>;
 
 		partitions {
 			compatible = "fixed-partitions";
-- 
2.17.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list