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: NCalvin Johnson <calvin.johnson@oss.nxp.com> Signed-off-by: NIoana Ciornei <ioana.ciornei@nxp.com> Acked-by: NGrant Likely <grant.likely@arm.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
drivers/net/mdio/fwnode_mdio.c
0 → 100644
include/linux/fwnode_mdio.h
0 → 100644
想要评论请 注册 或 登录