lantiq: Slow down SPI flash on the DGN3500
authorDaniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Thu, 9 Jun 2016 09:12:03 +0000 (02:12 -0700)
committerJohn Crispin <john@phrozen.org>
Wed, 22 Jun 2016 17:32:06 +0000 (19:32 +0200)
The bootloader uses 30 MHz as the SPI frequency for flash on the Germany and
North America models, and 50 MHz for it on the worldwide model, but the Lantiq
SPI driver in OpenWrt and LEDE may access the flash differently such that
writes are capped at 20 MHz, leading to read errors reported on the worldwide
model at 30 MHz.

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Acked-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
target/linux/lantiq/dts/DGN3500.dtsi

index 569fa9f11c5c9cefb89dd84099a6ba675e98fabb..bc50e4ae6501b0433b097dc00c7c0e3f821a1d6f 100644 (file)
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <4 0>;
-               spi-max-frequency = <30000000>;
+               spi-max-frequency = <20000000>;
 
                partitions {
                        compatible = "fixed-partitions";