[openwrt/openwrt] ramips: increase SPI frequency for HIWIFI HC5x61 devices
LEDE Commits
lede-commits at lists.infradead.org
Sun Mar 21 21:45:31 GMT 2021
adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/d160b2c824ea08c476e9ae4eebd1dee23671a9a0
commit d160b2c824ea08c476e9ae4eebd1dee23671a9a0
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Sun Mar 21 22:31:44 2021 +0800
ramips: increase SPI frequency for HIWIFI HC5x61 devices
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 at qq.com>
[adjust commit title and wrap message]
Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
index 369e407319..42a59f285b 100644
--- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
+++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
@@ -31,7 +31,8 @@
flash at 0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <10000000>;
+ spi-max-frequency = <80000000>;
+ m25p,fast-read;
partitions {
compatible = "fixed-partitions";
More information about the lede-commits
mailing list