[PATCH] devicetree support for ethernet phys

Sascha Hauer s.hauer at pengutronix.de
Wed May 21 05:18:50 PDT 2014


This series adds support for specifying ethernet phys in the
devicetree and to connect them with ethernet devices. We already
have beginning support for that used in the orion-gbe driver.
This series has the advantage that the devicetree handling is
completely transparent to the ethernet driver as long as it
fills in the device_nodes of the devices correctly. Also support
for limiting the speed in devicetree is added. This is useful
for boards which have gigabit controllers and gigabit phys but
only 100MBit magnetics.

Sascha

----------------------------------------------------------------
Sascha Hauer (10):
      net: phy: factor out phy_device_attach function
      net: phy: move setting of phy_map to phy_register_device
      net: phy: register phys specified in devicetree
      net: phy: Support finding a phy in the devicetree
      net: phy: Support limiting phy speed in the devicetree
      net: orion-gbe: use transparent-to-driver of mdio functions
      net: phy: remove now unused of_phy_device_connect
      net: phy: genphy: always write MII_CTRL1000 when available
      net: phy: genphy: Make it work with of_set_phy_supported
      net: fec_imx: Add devicetree support for mdio bus

 drivers/net/fec_imx.c        |   5 ++
 drivers/net/orion-gbe.c      |  62 +++++++++-------
 drivers/net/phy/mdio-mvebu.c |   1 +
 drivers/net/phy/mdio_bus.c   | 107 ++++++++++++++++++++++++++-
 drivers/net/phy/phy.c        | 169 ++++++++++++++++++++++++-------------------
 include/linux/phy.h          |  36 ++++-----
 6 files changed, 253 insertions(+), 127 deletions(-)



More information about the barebox mailing list