[openwrt/openwrt] ramips: speed up spi frequency for Youku YK-L1
LEDE Commits
lede-commits at lists.infradead.org
Mon Mar 22 20:02:53 GMT 2021
adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/bf7ddb18f1bfa0b61b4dc43732c114f20900bd4b
commit bf7ddb18f1bfa0b61b4dc43732c114f20900bd4b
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Sun Mar 21 22:43:59 2021 +0800
ramips: speed up spi frequency for Youku YK-L1
Youku YK-L1 has a huge storage space up to 32 MB. It is better to
use a higher spi clock to read or write serial nor flash chips.
Youku YK-L1 has Winbond w25q256fvfg on board that can support
104 MHz spi clock so 48 MHz is safe enough.
The real frequency can only be sysclk(580MHz ) /3 /(2^n) so 80 MHz
defined in dts file will set only 48 MHz in spi bus.
Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
---
target/linux/ramips/dts/mt7620a_youku_yk1.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/ramips/dts/mt7620a_youku_yk1.dts b/target/linux/ramips/dts/mt7620a_youku_yk1.dts
index 8727b011d4..3b84b07b8b 100644
--- a/target/linux/ramips/dts/mt7620a_youku_yk1.dts
+++ b/target/linux/ramips/dts/mt7620a_youku_yk1.dts
@@ -69,7 +69,7 @@
flash at 0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <25000000>;
+ spi-max-frequency = <80000000>;
m25p,fast-read;
partitions {
More information about the lede-commits
mailing list