devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to handle software controlled bus switches in the device tree?
@ 2011-04-06 16:08 David Daney
  0 siblings, 0 replies; only message in thread
From: David Daney @ 2011-04-06 16:08 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

I have some boards that have I2C controlled switches that are used to 
control the connection of Ethernet PHY devices to their MDIO busses.

There are two MDIO busses, and the PHY can be attached to one or the 
other based on the setting of the switch.

I can describe the presence of the switch on the I2C bus, but boot 
software or an operating system needs to set the switch to realize a 
PHY/MDIO bus topology.

Currently we are hard-coding the switch initialization in the bootloader 
and then assuming a fixed PHY topology based on that initialization.

It would be nice to somehow be able to specify the configuration in the 
device tree, but there are some dependencies.

The I2C bus and switch driver would have to be initialized to set the 
switches to the proper values before the MDIO/PHY drivers were started.

Any ideas about how to approach this problem?

Thanks in advance,
David Daney

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-06 16:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-06 16:08 How to handle software controlled bus switches in the device tree? David Daney

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