linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* LXT973 support (dual PHY with single MDIO)
@ 2006-05-30  8:48 Laurent Pinchart
  2006-05-30  9:05 ` Wojciech Kromer
  2006-05-30  9:28 ` [SOLVED] " Laurent Pinchart
  0 siblings, 2 replies; 5+ messages in thread
From: Laurent Pinchart @ 2006-05-30  8:48 UTC (permalink / raw)
  To: linuxppc-embedded

Hi everybody,

I'm trying to bring up the two ethernet ports on a LXT973 dual-PHY chip. I've 
declared two FCC platform devices, which are detected and handled by the 
driver/net/fs_enet driver. My issue comes from MDIO support.

The LXT973 has a single MDIO port which answers to two addresses, one for each 
PHY. The MDC and MDIO lines are connected to GPIO pins (no PHY interrupt), so 
I'm using the bitbang MDIO driver. I've declared a MPC82xx_MDIO_BB platform 
device, and set bus_id to "0:00" for both FCC ethernet devices. The first 
ethernet device works fine, but the second complains that the PHY is already 
in use.

As the PHY read/write accesses are protected by the bus->mdio_lock, I thought 
about declaring a second MDIO platform device using the same I/O pins as the 
first. Does anybody knows any problem I could run into using that approach ? 
Is there a better method to handle the LXT973 MDIO ?

Thanks in advance for any help you can provide.

Best regards,

Laurent Pinchart

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

end of thread, other threads:[~2006-05-31  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-30  8:48 LXT973 support (dual PHY with single MDIO) Laurent Pinchart
2006-05-30  9:05 ` Wojciech Kromer
2006-05-30  9:28 ` [SOLVED] " Laurent Pinchart
2006-05-30 14:22   ` Vitaly Bordug
2006-05-30 16:23     ` Andy Fleming

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