ramips: increase SPI frequency for HIWIFI HC5x61 devices
authorShiji Yang <yangshiji66@qq.com>
Sun, 21 Mar 2021 14:31:44 +0000 (22:31 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 21 Mar 2021 21:45:20 +0000 (22:45 +0100)
HIWIFI HC5x61 devices support high speed spi clock up to 100+ MHz.
So set spi frequency to 80 MHz here (Due to frequency division the
real clock is 48 MHz).
I have tested HC5661 and it can run well in OpenWrt v19.07.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
[adjust commit title and wrap message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi

index 369e40731926f258390febacfa9a8f658cfb80ee..42a59f285b0cd741e1f23dd787b6b1205dc25ba9 100644 (file)
@@ -31,7 +31,8 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <10000000>;
+               spi-max-frequency = <80000000>;
+               m25p,fast-read;
 
                partitions {
                        compatible = "fixed-partitions";