net: mdiobus: Introduce fwnode_mdiobus_register_phy()
Introduce fwnode_mdiobus_register_phy() to register PHYs on the mdiobus. From the compatible string, identify whether the PHY is c45 and based on this create a PHY device instance which is registered on the mdiobus. Along with fwnode_mdiobus_register_phy() also introduce fwnode_find_mii_timestamper() and fwnode_mdiobus_phy_device_register() since they are needed. While at it, also use the newly introduced fwnode operation in of_mdiobus_phy_device_register(). Signed-off-by:Calvin Johnson <calvin.johnson@oss.nxp.com> Signed-off-by:
Ioana Ciornei <ioana.ciornei@nxp.com> Acked-by:
Grant Likely <grant.likely@arm.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- MAINTAINERS 1 addition, 0 deletionsMAINTAINERS
- drivers/net/mdio/Kconfig 7 additions, 0 deletionsdrivers/net/mdio/Kconfig
- drivers/net/mdio/Makefile 2 additions, 1 deletiondrivers/net/mdio/Makefile
- drivers/net/mdio/fwnode_mdio.c 144 additions, 0 deletionsdrivers/net/mdio/fwnode_mdio.c
- drivers/net/mdio/of_mdio.c 5 additions, 39 deletionsdrivers/net/mdio/of_mdio.c
- include/linux/fwnode_mdio.h 35 additions, 0 deletionsinclude/linux/fwnode_mdio.h
drivers/net/mdio/fwnode_mdio.c
0 → 100644
include/linux/fwnode_mdio.h
0 → 100644
Please register or sign in to comment