ramips: speed up spi frequency for Youku YK-L1
authorShiji Yang <yangshiji66@qq.com>
Sun, 21 Mar 2021 14:43:59 +0000 (22:43 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 22 Mar 2021 19:54:34 +0000 (20:54 +0100)
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@qq.com>
target/linux/ramips/dts/mt7620a_youku_yk1.dts

index 8727b011d414fa0dfed8bead36a766810c342229..3b84b07b8b297051404d7e217e2d46c34e8330f5 100644 (file)
@@ -69,7 +69,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <25000000>;
+               spi-max-frequency = <80000000>;
                m25p,fast-read;
 
                partitions {