Lines Matching refs:child
64 struct device_node *child, u32 addr)
68 rc = of_irq_get(child, 0);
79 if (of_property_read_bool(child, "broken-turn-around"))
82 of_property_read_u32(child, "reset-assert-us",
84 of_property_read_u32(child, "reset-deassert-us",
89 of_node_get(child);
90 phy->mdio.dev.of_node = child;
91 phy->mdio.dev.fwnode = of_fwnode_handle(child);
97 of_node_put(child);
102 child, addr);
108 struct device_node *child, u32 addr)
116 mii_ts = of_find_mii_timestamper(child);
120 is_c45 = of_device_is_compatible(child,
123 if (!is_c45 && !of_get_phy_id(child, &phy_id))
133 rc = of_mdiobus_phy_device_register(mdio, phy, child, addr);
152 struct device_node *child, u32 addr)
164 of_node_get(child);
165 mdiodev->dev.of_node = child;
166 mdiodev->dev.fwnode = of_fwnode_handle(child);
172 of_node_put(child);
177 child, addr);
203 * Return true if the child node is for a phy. It must either:
213 bool of_mdiobus_child_is_phy(struct device_node *child)
217 if (of_get_phy_id(child, &phy_id) != -EINVAL)
220 if (of_device_is_compatible(child, "ethernet-phy-ieee802.3-c45"))
223 if (of_device_is_compatible(child, "ethernet-phy-ieee802.3-c22"))
226 if (of_match_node(whitelist_phys, child)) {
229 child);
233 if (!of_find_property(child, "compatible", NULL))
247 * for each child node of @np.
252 struct device_node *child;
281 /* Loop over the child nodes and register a phy_device for each phy */
282 for_each_available_child_of_node(np, child) {
283 addr = of_mdio_parse_addr(&mdio->dev, child);
289 if (of_mdiobus_child_is_phy(child))
290 rc = of_mdiobus_register_phy(mdio, child, addr);
292 rc = of_mdiobus_register_device(mdio, child, addr);
306 for_each_available_child_of_node(np, child) {
308 if (of_find_property(child, "reg", NULL))
318 child, addr);
320 if (of_mdiobus_child_is_phy(child)) {
325 rc = of_mdiobus_register_phy(mdio, child, addr);
337 of_node_put(child);