diff options
| author | Marek BehĂșn <[email protected]> | 2022-04-27 12:41:49 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2022-05-04 07:05:51 +0200 |
| commit | 00b1bad961fff51db71573f5fc6e4e35b47381b2 (patch) | |
| tree | 5d5a53b7a8c0058b05ccd8a2d9d70972dbbb9279 /include | |
| parent | a2b2542992a96662740a39aad66e173a857dff2a (diff) | |
net: mdio-uclass: add dm_phy_find_by_ofnode() helper
Add helper to resolve PHY node from it's ofnode via DM MDIO subsystem.
Signed-off-by: Marek BehĂșn <[email protected]>
Reviewed-by: Ramon Fried <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/miiphy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/miiphy.h b/include/miiphy.h index 110921f20d2..c66a1845b58 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -189,6 +189,15 @@ int dm_mdio_write(struct udevice *mdio_dev, int addr, int devad, int reg, u16 va int dm_mdio_reset(struct udevice *mdio_dev); /** + * dm_phy_find_by_ofnode - Find PHY device by ofnode + * + * @phynode: PHY's ofnode + * + * Return: pointer to phy_device, or NULL on error + */ +struct phy_device *dm_phy_find_by_ofnode(ofnode phynode); + +/** * dm_mdio_phy_connect - Wrapper over phy_connect for DM MDIO * * @mdiodev: mdio device the PHY is accesible on |
