linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Direct MII connection between MPC8313 and VIRTEX FPGA
@ 2009-06-25 15:11 Frank Prepelica
  2009-06-25 20:05 ` Grant Likely
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Prepelica @ 2009-06-25 15:11 UTC (permalink / raw)
  To: linuxppc-dev

Hi all,

we removed the ethernet PHYs (MARVELL) from our customized board (based =
on MPC8313ERDB) and=20
connected the CPU Ethernet lines directly to a FPGA which is now =
emulating the PHY. But the ifconfig=20
command cannot find that eth device anymore. Does the emulated PHY needs =
to provide MDIO=20
information that the ETH device can be found again?

Any help is very appreciated

Best regards
Frank





Frank Prepelica
Software Design Engineer

Ubidyne GmbH
Lise-Meitner-Str.-14
89081 Ulm - Germany

Phone:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 +49 731 88 00 71 58
Fax:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 +49 731 88 00 71 99
Email:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
frank.prepelica@ubidyne.com
Homepage:=A0=A0=A0=A0=A0=A0 www.ubidyne.com
=A0
Registered office: Ulm
District court of Ulm: HRB 5295
Managing Directors:
Dipl. Ing. Ken Hawk
Dipl. Ing. Beat M=FCller
Dipl. Ing. Mike Levis

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

* Re: Direct MII connection between MPC8313 and VIRTEX FPGA
  2009-06-25 15:11 Frank Prepelica
@ 2009-06-25 20:05 ` Grant Likely
  0 siblings, 0 replies; 5+ messages in thread
From: Grant Likely @ 2009-06-25 20:05 UTC (permalink / raw)
  To: Frank Prepelica; +Cc: linuxppc-dev

On Thu, Jun 25, 2009 at 9:11 AM, Frank
Prepelica<Frank.Prepelica@ubidyne.com> wrote:
> Hi all,
>
> we removed the ethernet PHYs (MARVELL) from our customized board (based on MPC8313ERDB) and
> connected the CPU Ethernet lines directly to a FPGA which is now emulating the PHY. But the ifconfig
> command cannot find that eth device anymore. Does the emulated PHY needs to provide MDIO
> information that the ETH device can be found again?

No, you just need to make sure that the Ethernet driver is able to
support fixed speed MII links without a PHY.  It's trivial to do, but
not all drivers support it.  Search for "current-speed" in
drivers/net/fec_mpc52xx.c for an example.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

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

* Re: Direct MII connection between MPC8313 and VIRTEX FPGA
  2009-06-29  8:23 ` AW: " Frank Prepelica
@ 2009-06-29 15:40   ` Grant Likely
  0 siblings, 0 replies; 5+ messages in thread
From: Grant Likely @ 2009-06-29 15:40 UTC (permalink / raw)
  To: Frank Prepelica; +Cc: linuxppc-dev

On Mon, Jun 29, 2009 at 2:23 AM, Frank
Prepelica<Frank.Prepelica@ubidyne.com> wrote:
> Hi Grant
>
> Thanks for your response!
>
> I have searched for "current-speed" in drivers/net/fec_mpc52xx.c but I cannot find anything. However we are using the gianfar.c Ethernet driver.
> Do you know whether this driver supports fixed MII links without PHY?

What kernel version are you using?

> I've got another question regarding MII connection between and MPC and a Virtex FPGA. Whats about the PHY address which has to be set in the DTB file? Do I have to modify the DTB at all?

Yes, you need to modify the DTB.  You have a back to back MII
connection, not a phy, so you do *not* want to have a PHY node in the
device tree.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

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

* AW: Direct MII connection between MPC8313 and VIRTEX FPGA
@ 2009-06-30  8:35 Frank Prepelica
  2009-06-30 16:16 ` Grant Likely
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Prepelica @ 2009-06-30  8:35 UTC (permalink / raw)
  To: Grant Likely; +Cc: linuxppc-dev

> What kernel version are you using?

We are using kernel version 2.6.24. I've searched for "current speed" in =
version 2.6.28.7 and I've found that string.

> Yes, you need to modify the DTB.  You have a back to back MII
> connection, not a phy, so you do *not* want to have a PHY node in the
> device tree.

Hmm, but I do have a "PHY", don't I?. The "PHY" will be emulated in the =
FPGA. Of course, it's not a physical PHY but it should look like one.
So, do I really need the remove the complete PHY description in the DTB?


=09
		=20
=20

Frank Prepelica
Software Design Engineer

Ubidyne GmbH
Lise-Meitner-Str.-14
89081 Ulm - Germany



> -----Urspr=FCngliche Nachricht-----
> Von: Grant Likely [mailto:grant.likely@secretlab.ca]
> Gesendet: Montag, 29. Juni 2009 17:40
> An: Frank Prepelica
> Cc: linuxppc-dev@ozlabs.org
> Betreff: Re: Direct MII connection between MPC8313 and VIRTEX FPGA
>=20
> On Mon, Jun 29, 2009 at 2:23 AM, Frank
> Prepelica<Frank.Prepelica@ubidyne.com> wrote:
> > Hi Grant
> >
> > Thanks for your response!
> >
> > I have searched for "current-speed" in drivers/net/fec_mpc52xx.c but =
I
> cannot find anything. However we are using the gianfar.c Ethernet =
driver.
> > Do you know whether this driver supports fixed MII links without =
PHY?
>=20
> What kernel version are you using?
>=20
> > I've got another question regarding MII connection between and MPC =
and a
> Virtex FPGA. Whats about the PHY address which has to be set in the =
DTB
> file? Do I have to modify the DTB at all?
>=20
> Yes, you need to modify the DTB.  You have a back to back MII
> connection, not a phy, so you do *not* want to have a PHY node in the
> device tree.
>=20
> g.
>=20
> --
> Grant Likely, B.Sc., P.Eng.
> Secret Lab Technologies Ltd.

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

* Re: Direct MII connection between MPC8313 and VIRTEX FPGA
  2009-06-30  8:35 AW: Direct MII connection between MPC8313 and VIRTEX FPGA Frank Prepelica
@ 2009-06-30 16:16 ` Grant Likely
  0 siblings, 0 replies; 5+ messages in thread
From: Grant Likely @ 2009-06-30 16:16 UTC (permalink / raw)
  To: Frank Prepelica; +Cc: linuxppc-dev

On Tue, Jun 30, 2009 at 2:35 AM, Frank
Prepelica<Frank.Prepelica@ubidyne.com> wrote:
>> What kernel version are you using?
>
> We are using kernel version 2.6.24. I've searched for "current speed" in =
version 2.6.28.7 and I've found that string.
>
>> Yes, you need to modify the DTB. =A0You have a back to back MII
>> connection, not a phy, so you do *not* want to have a PHY node in the
>> device tree.
>
> Hmm, but I do have a "PHY", don't I?. The "PHY" will be emulated in the F=
PGA. Of course, it's not a physical PHY but it should look like one.

No, it sounds like you don't.  If you've got a back-to-back MII
connection, then you can fix the link speed and you don't need to do
any form of PHY emulation.  ie. you don't need to wire up the MDIO
pins.

> So, do I really need the remove the complete PHY description in the DTB?

yes.

--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

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

end of thread, other threads:[~2009-07-01  0:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-30  8:35 AW: Direct MII connection between MPC8313 and VIRTEX FPGA Frank Prepelica
2009-06-30 16:16 ` Grant Likely
     [not found] <Acn10GL8UFkH8grcTWecohRthafWswCvtYhQ>
2009-06-29  8:23 ` AW: " Frank Prepelica
2009-06-29 15:40   ` Grant Likely
  -- strict thread matches above, loose matches on Subject: below --
2009-06-25 15:11 Frank Prepelica
2009-06-25 20:05 ` Grant Likely

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).