[OpenWrt-Devel] [PATCH] lantiq: spi-max-frequency
Daniel Gimpelevich
daniel at gimpelevich.san-francisco.ca.us
Mon Nov 9 14:36:07 EST 2015
On Thu, 2015-02-26 at 16:02 +0100, Joerg Jungermann wrote:
> Hi,
>
> I have here multiple TD-W8970 with Annex A and Annex B.
>
> > m25p80 at 0 {
> > #address-cells = <1>;
> > #size-cells = <1>;
> > compatible = "s25fl129p0";
> > reg = <0 0>;
> > linux,modalias = "m25p80", "mx25l3205d";
> > spi-max-frequency = <1000000>;
>
> I increased spi-max-frequency = <50000000>.
> According to the datasheets I found that is maximum frequency.
>
> With my 3 models (2x A, 1x B) these settings work with BB (kernel
> 3.10) well.
> I have not yet tested 3.18.
> I benchmarked boot up times from spi-flash with my build.
> I could lower bootup times (from uboot to init-completed) from 2m01s
> to 1m18s.
>
> I suggest backporting this increase of the spi freq to BB.
>
> best regards
Index: target/linux/lantiq/dts/DGN3500.dtsi
===================================================================
--- a/target/linux/lantiq/dts/DGN3500.dtsi (revision 47278)
+++ b/target/linux/lantiq/dts/DGN3500.dtsi (working copy)
@@ -85,7 +85,7 @@
compatible = "s25fl129p0";
reg = <0 0>;
linux,modalias = "m25p80", "mx25l3205d";
- spi-max-frequency = <1000000>;
+ spi-max-frequency = <50000000>;
partition at 0 {
reg = <0x0 0x10000>;
Index: target/linux/lantiq/dts/TDW89X0.dtsi
===================================================================
--- a/target/linux/lantiq/dts/TDW89X0.dtsi (revision 47278)
+++ b/target/linux/lantiq/dts/TDW89X0.dtsi (working copy)
@@ -160,7 +160,7 @@
compatible = "en25q64", "m25p80";
reg = <0 0>;
linux,modalias = "en25q64";
- spi-max-frequency = <1000000>;
+ spi-max-frequency = <50000000>;
partition at 0 {
reg = <0x0 0x20000>;
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list