]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: filogic: increase flash speed on Netcore N60 Pro 21802/head
authorst7105 <st7105@gmail.com>
Sat, 31 Jan 2026 07:40:47 +0000 (10:40 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 4 Feb 2026 23:20:01 +0000 (00:20 +0100)
This commit increases the SPI bus frequency from 20 to 52 MHz. Reduces boot
time by 2s. Below is a performance comparison.

spi-max-frequency = <20000000>
> time dd if=/dev/mtd4 of=/dev/null bs=10M count=1
> 1+0 records in
> 1+0 records out
> real    0m 1.86s
> user    0m 0.00s
> sys     0m 0.28s

spi-max-frequency = <52000000>
> time dd if=/dev/mtd4 of=/dev/null bs=10M count=1
> 1+0 records in
> 1+0 records out
> real    0m 1.04s
> user    0m 0.00s
> sys     0m 0.27s

Signed-off-by: st7105 <st7105@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21802
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mediatek/dts/mt7986a-netcore-n60-pro.dts

index d9c6f9dda80c4778388c07f91866db129d2c974f..67b8dd10f1eebd9eeb92e3597043485b2a33dba4 100644 (file)
                compatible = "spi-nand";
                reg = <0>;
 
-               spi-max-frequency = <20000000>;
+               spi-max-frequency = <52000000>;
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>;