ramips: mt7621: use higher SPI clock speed on Mikrotik rbm11g and rbm33g
authorTobias Schramm <t.schramm@manjaro.org>
Wed, 3 Jun 2020 13:10:40 +0000 (15:10 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 3 Jun 2020 14:49:28 +0000 (16:49 +0200)
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 <t.schramm@manjaro.org>
target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts
target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts

index 2b05f1c2f2d8e5c9124b2051a415c568e76c892c..cb13590017658f6021c27635f7a097b7b423b1af 100644 (file)
@@ -83,8 +83,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
        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";
 
                partitions {
                        compatible = "fixed-partitions";
index 490f507fa97c99de4a8ed9a920f3bd0742b788bc..ebe85b09a162e115a328ad257a269e8954a85a2f 100644 (file)
@@ -93,7 +93,7 @@
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <3125000>;
+               spi-max-frequency = <33000000>;
 
                partitions {
                        compatible = "fixed-partitions";
 
                partitions {
                        compatible = "fixed-partitions";
        flash@1 {
                compatible = "jedec,spi-nor";
                reg = <1>;
        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";
 
                partitions {
                        compatible = "fixed-partitions";