Lines Matching defs:phy
196 * port. The phy address is obtained from the device tree.
207 int aliases, eth, phy, phy_parent, phandle, ret;
241 /* Get handle to phy */
242 phy_handle = (uint32_t *) fdt_getprop(fdt_addr, eth, "phy-handle", NULL);
245 cvmx_dprintf("ERROR : phy handle not found in device tree ipd_port=%d"
250 phy = fdt_node_offset_by_phandle(fdt_addr, phandle);
251 if (phy < 0)
253 cvmx_dprintf("ERROR : cannot find phy for ipd_port=%d ret=%d\n",
254 ipd_port, phy);
257 phy_comaptible_str = (const char *) fdt_getprop(fdt_addr, phy,
261 cvmx_dprintf("ERROR : no compatible prop in phy\n");
279 phy_parent = fdt_parent_offset(fdt_addr, phy);
282 cvmx_dprintf("ERROR : cannot find phy parent for ipd_port=%d ret=%d\n",
294 cvmx_dprintf("ERROR : unable to get reg property in phy mdio\n");
298 //cvmx_dprintf("phy parent=%s reg_base=%08x unit=%d \n",
313 phy_addr_ptr = (uint32_t *) fdt_getprop(fdt_addr, phy, "reg", NULL);
321 * port. The phy address is obtained from the device tree.
917 * device tree information to determine the phy address and type of PHY.