Marek Behún f3dd213e15 net: introduce helpers to get PHY ofnode from MAC
Add helpers ofnode_get_phy_node() and dev_get_phy_node() and use it in
net/mdio-uclass.c function dm_eth_connect_phy_handle(). Also add
corresponding UT test.

This is useful because other part's of U-Boot may want to get PHY ofnode
without connecting a PHY.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-04-10 08:44:12 +03:00
..
2020-06-12 13:17:23 -04:00
2022-01-19 18:11:34 +01:00
2022-03-18 12:48:17 -04:00
2019-09-04 11:37:19 -05:00
2020-09-30 16:55:03 -04:00
2018-07-02 14:14:20 -05:00