linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: MPC8xx, FEC and DP83847 !?
@ 2002-03-21 16:49 Kerl, John
       [not found] ` <3C9A1F5C.61673202@imc-berlin.de>
  0 siblings, 1 reply; 7+ messages in thread
From: Kerl, John @ 2002-03-21 16:49 UTC (permalink / raw)
  To: 'Steven Scholz', LinuxPPC, PPCBoot


We are using a DP83846 with 857T FEC.  At the software
level, I am just using the plain fec.c, and it works for me.

One note (if you want details, I'll have to check with my
hardware guys and get back to you, but here's the gist):
The Motorola reference boards use port D for MII, but we
used PCMCIA/port A pins instead.  This caused us a bit of
trouble when bringing up the board, but the resolution
was that we had to clear PDPAR[UT], set ECNTRL[PIN_MUX]
and set UTMODE[SPLIT].  I pasted these few lines into
fec.c's init function and it works like a charm.



-----Original Message-----
From: Steven Scholz [mailto:steven.scholz@imc-berlin.de]
Sent: Thursday, March 21, 2002 5:37 AM
To: LinuxPPC; PPCBoot
Subject: MPC8xx, FEC and DP83847 !?



Hi there,

I am about to redesign my board and consider to replace Level One's
LXT971 with National's DP83847.

Is anyone using National's Phyter DP83846/7 together with MPC8xx FEC?
Is there support for this chip like it is for LXT97x, AMD79c874 and
QS6612?
Or do I have to use ./drivers/net/natsemi.c or somthing similar?

Are there any (dis)advantages over the LXT971?

Cheers,

Steven


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: MPC8xx, FEC and DP83847 !?
@ 2002-03-21 16:56 Jean-Denis Boyer
  0 siblings, 0 replies; 7+ messages in thread
From: Jean-Denis Boyer @ 2002-03-21 16:56 UTC (permalink / raw)
  To: 'Steven Scholz'; +Cc: LinuxPPC, PPCBoot


Steven,

> I am about to redesign my board and consider to replace Level One's
> LXT971 with National's DP83847.

> Are there any (dis)advantages over the LXT971?

We have experienced many problems using the NS DP83846, on many of our
boards,
even though one model is using the DP83843, and never had problem with it.
We decided to throw away the DP83846 to use the LXT972A instead.
This has fixed many stability problems we have had.

Well, the DP83847 looks more recent, so I can not say about its stability.
We have spent too much effort... :-(

Some advantages for the LXT972A?
- The price was a bit cheaper for us, but that may
  depend on the quantities (I don't have this information).
- The DP83847 can not drive an external IRQ on the PPC, while LXT can.
- The LXT972A can drive 3 LEDs. The LED behavior is easy to configure and
  is very versatile. It perfectly suited our needs, since we use
  only 1 LED to display both the link state and the activity
  (as many hubs do). The DP83847 outputs 6 LEDs with dedicated behavior.
  To combine the link, rx and tx, you need additional hardware.

> Is anyone using National's Phyter DP83846/7 together with MPC8xx FEC?

However, I have added to the 8xx FEC driver the support for the DP83846.
I can give it to you, just ask.

Hope this information helps!

--------------------------------------------
 Jean-Denis Boyer, B.Eng., System Architect
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-8749 x241
--------------------------------------------


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: MPC8xx, FEC and DP83847 !?
@ 2002-03-21 18:43 Jean-Denis Boyer
  0 siblings, 0 replies; 7+ messages in thread
From: Jean-Denis Boyer @ 2002-03-21 18:43 UTC (permalink / raw)
  To: 'Steven Scholz'; +Cc: LinuxPPC


Steven,

> > - The DP83847 can not drive an external IRQ on the PPC,
> while LXT can.
> So does that mean, that the kernel can't detect link changes?
Exactly!

However, I have added a call back, driven by the timer interrupt,
to periodically check for link changes. Of course, it can not
be detected as fast as with interrupt, but it will be correct
in most applications.

Detecting link changes at run-time is not absolutely neccessary,
except for the duplex mode, because the FEC must be aware of it.

> Is there any special reason why your code is not in a recent
> kernel (e.g DENX)?
You are the first one to ask for it ;-)
Really, I have sent it in the past (without the timer call back),
along with a bug fix. But someone at MVista (Tom Rini, I think),
decided not to integrate it for now, since only a few (or no) people
were using it, and it did not follow extensive testing.

And BTW, Mr. Denx just asked me for the patch a few minutes ago.


Another cool thing I have added to the 8xx FEC driver is the standard IOCTL
interface,
to manipulate the PHY through the mii-tool program (net-tools package).
If someone wants it, I will prepare a patch.

--------------------------------------------
 Jean-Denis Boyer, B.Eng., System Architect
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-8749 x241
--------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: MPC8xx, FEC and DP83847 !?
@ 2002-03-21 18:55 Jean-Denis Boyer
  0 siblings, 0 replies; 7+ messages in thread
From: Jean-Denis Boyer @ 2002-03-21 18:55 UTC (permalink / raw)
  To: 'Wolfgang Denk'; +Cc: LinuxPPC


> In most cases you can just switch off the whole MDIO stuff  and  rely
> on  autonegotiation; the only thing you lose is a kernel message when
> the link status changes. Of course this requires sane hardware, which
> is not always the case :-(

On full duplex connections, we have experienced problems with
the kernel-level BOOTP/DHCP. The offer returned by the server was not
caught. After investigating, it appeared that even though the PHY
auto-negociated correctly, the FEC was not aware of the full duplex
condition. I had to fix it by correctly reading the duplex mode
from the PHY, since this information should be given to the FEC.

It may also cause a 'working but deficient' communication,
especially under heavy traffic, since the collision detection should
be disabled in full duplex.

--------------------------------------------
 Jean-Denis Boyer, B.Eng., System Architect
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-8749 x241
--------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-03-21 19:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-21 16:49 MPC8xx, FEC and DP83847 !? Kerl, John
     [not found] ` <3C9A1F5C.61673202@imc-berlin.de>
2002-03-21 18:25   ` Wolfgang Denk
2002-03-21 19:34   ` Dan Malek
2002-03-21 19:57     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2002-03-21 16:56 Jean-Denis Boyer
2002-03-21 18:43 Jean-Denis Boyer
2002-03-21 18:55 Jean-Denis Boyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).