Commit 13aec8e4 authored by Tony Lindgren's avatar Tony Lindgren

ARM: dts: Use better omap GPMC timings for LAN9220

With the GPMC warnings now enabled, I noticed the LAN9220 timings
can overflow the GPMC registers with 200MHz L3 speed. Earlier we
were just skipping the bad timings and would continue with the
bootloader timings. Now we no longer allow to continue with bad
timings as we have the timings in the .dts files.

We could start using the GPMC clock divider, but let's instead
use the u-boot timings that are known to be working and a bit
faster. These are basically the u-boot NET_GPMC_CONFIG[1-6]
defines deciphered. Except that we don't set gpmc,burst-length
as that's only partially configured and does not seem to work
if fully enabled.

[tony@atomide.com: updated to remove gpmc,burst-length]
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent b5399ea8
...@@ -23,24 +23,29 @@ &gpmc { ...@@ -23,24 +23,29 @@ &gpmc {
ethernet@gpmc { ethernet@gpmc {
compatible = "smsc,lan9221", "smsc,lan9115"; compatible = "smsc,lan9221", "smsc,lan9115";
bank-width = <2>; bank-width = <2>;
gpmc,mux-add-data; gpmc,device-width = <1>;
gpmc,cs-on-ns = <1>; gpmc,cycle2cycle-samecsen = <1>;
gpmc,cs-rd-off-ns = <180>; gpmc,cycle2cycle-diffcsen = <1>;
gpmc,cs-wr-off-ns = <180>; gpmc,cs-on-ns = <5>;
gpmc,adv-rd-off-ns = <18>; gpmc,cs-rd-off-ns = <150>;
gpmc,adv-wr-off-ns = <48>; gpmc,cs-wr-off-ns = <150>;
gpmc,oe-on-ns = <54>; gpmc,adv-on-ns = <0>;
gpmc,oe-off-ns = <168>; gpmc,adv-rd-off-ns = <15>;
gpmc,we-on-ns = <54>; gpmc,adv-wr-off-ns = <40>;
gpmc,we-off-ns = <168>; gpmc,oe-on-ns = <45>;
gpmc,rd-cycle-ns = <186>; gpmc,oe-off-ns = <140>;
gpmc,wr-cycle-ns = <186>; gpmc,we-on-ns = <45>;
gpmc,access-ns = <144>; gpmc,we-off-ns = <140>;
gpmc,page-burst-access-ns = <24>; gpmc,rd-cycle-ns = <155>;
gpmc,bus-turnaround-ns = <90>; gpmc,wr-cycle-ns = <155>;
gpmc,cycle2cycle-delay-ns = <90>; gpmc,access-ns = <120>;
gpmc,cycle2cycle-samecsen; gpmc,page-burst-access-ns = <20>;
gpmc,cycle2cycle-diffcsen; gpmc,bus-turnaround-ns = <75>;
gpmc,cycle2cycle-delay-ns = <75>;
gpmc,wait-monitoring-ns = <0>;
gpmc,clk-activation-ns = <0>;
gpmc,wr-data-mux-bus-ns = <0>;
gpmc,wr-access-ns = <0>;
vddvario-supply = <&vddvario>; vddvario-supply = <&vddvario>;
vdd33a-supply = <&vdd33a>; vdd33a-supply = <&vdd33a>;
reg-io-width = <4>; reg-io-width = <4>;
......
...@@ -22,24 +22,29 @@ smsc2: ethernet@4,0 { ...@@ -22,24 +22,29 @@ smsc2: ethernet@4,0 {
interrupts = <1 IRQ_TYPE_LEVEL_LOW>; interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
reg = <4 0 0xff>; reg = <4 0 0xff>;
bank-width = <2>; bank-width = <2>;
gpmc,mux-add-data; gpmc,device-width = <1>;
gpmc,cs-on-ns = <1>; gpmc,cycle2cycle-samecsen = <1>;
gpmc,cs-rd-off-ns = <180>; gpmc,cycle2cycle-diffcsen = <1>;
gpmc,cs-wr-off-ns = <180>; gpmc,cs-on-ns = <5>;
gpmc,adv-rd-off-ns = <18>; gpmc,cs-rd-off-ns = <150>;
gpmc,adv-wr-off-ns = <48>; gpmc,cs-wr-off-ns = <150>;
gpmc,oe-on-ns = <54>; gpmc,adv-on-ns = <0>;
gpmc,oe-off-ns = <168>; gpmc,adv-rd-off-ns = <15>;
gpmc,we-on-ns = <54>; gpmc,adv-wr-off-ns = <40>;
gpmc,we-off-ns = <168>; gpmc,oe-on-ns = <45>;
gpmc,rd-cycle-ns = <186>; gpmc,oe-off-ns = <140>;
gpmc,wr-cycle-ns = <186>; gpmc,we-on-ns = <45>;
gpmc,access-ns = <144>; gpmc,we-off-ns = <140>;
gpmc,page-burst-access-ns = <24>; gpmc,rd-cycle-ns = <155>;
gpmc,bus-turnaround-ns = <90>; gpmc,wr-cycle-ns = <155>;
gpmc,cycle2cycle-delay-ns = <90>; gpmc,access-ns = <120>;
gpmc,cycle2cycle-samecsen; gpmc,page-burst-access-ns = <20>;
gpmc,cycle2cycle-diffcsen; gpmc,bus-turnaround-ns = <75>;
gpmc,cycle2cycle-delay-ns = <75>;
gpmc,wait-monitoring-ns = <0>;
gpmc,clk-activation-ns = <0>;
gpmc,wr-data-mux-bus-ns = <0>;
gpmc,wr-access-ns = <0>;
vddvario-supply = <&vddvario>; vddvario-supply = <&vddvario>;
vdd33a-supply = <&vdd33a>; vdd33a-supply = <&vdd33a>;
reg-io-width = <4>; reg-io-width = <4>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment