From 2f5a242f6762ce7233168785f1eb1ebcd1e4bd36 Mon Sep 17 00:00:00 2001 From: Tobias Schramm Date: Wed, 3 Jun 2020 15:10:40 +0200 Subject: [PATCH] ramips: mt7621: use higher SPI clock speed on Mikrotik rbm11g and rbm33g Previously the dts were using a value determined by empirical testing, because of a spi driver/clock bug. The bug was fixed quite some time ago. 33 MHz is the default clock frequency used by RouterBOOT and thus safe. Signed-off-by: Tobias Schramm --- target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts | 3 +-- target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts index 2b05f1c2f2..cb13590017 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts @@ -83,8 +83,7 @@ flash@0 { compatible = "jedec,spi-nor"; reg = <0>; - // XXX empiric value to obtain actual 10MHz SCK at the chip - spi-max-frequency = <3125000>; + spi-max-frequency = <33000000>; partitions { compatible = "fixed-partitions"; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts index 490f507fa9..ebe85b09a1 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts @@ -93,7 +93,7 @@ flash@0 { compatible = "jedec,spi-nor"; reg = <0>; - spi-max-frequency = <3125000>; + spi-max-frequency = <33000000>; partitions { compatible = "fixed-partitions"; @@ -139,8 +139,7 @@ flash@1 { compatible = "jedec,spi-nor"; reg = <1>; - // XXX empiric value to obtain actual 10MHz SCK at the chip - spi-max-frequency = <3125000>; + spi-max-frequency = <33000000>; partitions { compatible = "fixed-partitions"; -- 2.25.1