Lines Matching refs:ethdev
122 struct udevice *ethdev, in dm_mdio_phy_connect() argument
130 return phy_connect(pdata->mii_bus, phyaddr, ethdev, interface); in dm_mdio_phy_connect()
133 static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev, in dm_eth_connect_phy_handle() argument
143 ofnode_valid(dev_read_subnode(ethdev, "fixed-link"))) { in dm_eth_connect_phy_handle()
144 phy = phy_connect(NULL, -1, ethdev, interface); in dm_eth_connect_phy_handle()
149 if (!dev_read_phandle_with_args(ethdev, phy_handle_str[i], NULL, in dm_eth_connect_phy_handle()
154 dev_dbg(ethdev, "can't find PHY node\n"); in dm_eth_connect_phy_handle()
163 dev_dbg(ethdev, "missing reg property in phy node\n"); in dm_eth_connect_phy_handle()
170 dev_dbg(ethdev, "can't find MDIO bus for node %s\n", in dm_eth_connect_phy_handle()
175 phy = dm_mdio_phy_connect(mdiodev, phy_addr, ethdev, interface); in dm_eth_connect_phy_handle()
185 struct phy_device *dm_eth_phy_connect(struct udevice *ethdev) in dm_eth_phy_connect() argument
192 if (!dev_has_ofnode(ethdev)) { in dm_eth_phy_connect()
193 debug("%s: supplied eth dev has no DT node!\n", ethdev->name); in dm_eth_phy_connect()
199 if_str = dev_read_string(ethdev, phy_mode_str[i]); in dm_eth_phy_connect()
208 dev_dbg(ethdev, "can't find interface mode, default to NONE\n"); in dm_eth_phy_connect()
210 phy = dm_eth_connect_phy_handle(ethdev, interface); in dm_eth_phy_connect()