openwrt/target/linux/ramips
Adrian Schmutzler a508ab1ac8 ramips: increase spi-max-frequency to 50 MHz for D-Link DIR-810L
Read times drop when increasing frequency to 25 MHz and 50 MHz,
but not in between or for further increase. So, use 50 MHz as the
lowest frequency with the fastest speed.

Test results (thanks to Roger):

The device reports a mx25l6405d flash chip. I tried all the maximum
values in the devices' datasheet (Table 10. AC CHARACTERISTICS). All of
them worked with and without "m25p,fast-read":

> 10 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    1m 33.00s
user    0m 0.01s
sys    1m 7.56s

> 25 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 34.42s
user    0m 0.02s
sys    0m 23.58s

> 25 MHz, fast read
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 34.45s
user    0m 0.02s
sys    0m 23.59s

> 33 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 34.39s
user    0m 0.00s
sys    0m 23.60s

> 33 MHz, fast read
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 34.46s
user    0m 0.01s
sys    0m 23.62s

> 50 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.81s
user    0m 0.01s
sys    0m 18.25s

> 50 MHz, fast read
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.84s
user    0m 0.00s
sys    0m 18.25s

> 66 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.80s
user    0m 0.01s
sys    0m 18.23s

> 66 MHz, fast read
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.80s
user    0m 0.02s
sys    0m 18.23s

> 86 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.84s
user    0m 0.01s
sys    0m 18.24s

> 86 MHz, fast read
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.80s
user    0m 0.02s
sys    0m 18.23s

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Tested-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
2020-03-05 12:53:50 +01:00
..
base-files ramips: move set-irq-affinity script to mt7621 subtarget 2020-01-03 00:08:35 +01:00
dts ramips: increase spi-max-frequency to 50 MHz for D-Link DIR-810L 2020-03-05 12:53:50 +01:00
files-4.14/drivers ramips: mt7530: more detailed output for unexpected etag_ctrl 2020-03-03 23:06:00 +08:00
image ramips: add support for NETGEAR R6700v2/AC2400 2020-03-04 23:02:46 +01:00
mt76x8 ramips: fix HiWiFi HC5761A switch settings 2020-02-14 14:10:51 +01:00
mt7620 ramips: convert TP-Link MT7620 boards to tpt trigger 2020-01-02 21:41:58 +01:00
mt7621 ramips: add support for NETGEAR R6700v2/AC2400 2020-03-04 23:02:46 +01:00
patches-4.14 kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
rt288x ramips: rt288x: use flash location for wan_mac in 02_network 2019-12-12 13:11:49 +01:00
rt305x ramips: rt305x: use flash location for wan_mac in 02_network 2019-12-12 13:11:58 +01:00
rt3883 ramips: fix USB LED for Belkin F9K1109v1 2019-12-20 15:54:33 +01:00
Makefile ramips: switch to linux 4.14 2018-04-06 18:07:43 +02:00
modules.mk kernel: fix typos in KernelPackage description 2020-02-08 17:58:38 +01:00