aboutsummaryrefslogtreecommitdiff
path: root/include/phy_interface.h
diff options
context:
space:
mode:
authorAndre Przywara2023-06-13 23:35:06 +0100
committerAndre Przywara2023-10-22 23:40:56 +0100
commit091442993c0f3ac8f34d15099a207a078dc56d0c (patch)
treef046d237e4de9748eabd292eba0b41912addc913 /include/phy_interface.h
parentae79c1d01f735b37a6aba58369d9ffdbd33e4e5b (diff)
net: sunxi_emac: chase DT nodes to find PHY regulator
At the moment the sun4i EMAC driver relies on hardcoded CONFIG_MACPWR Kconfig symbols to enable potential PHY regulators. As we want to get rid of those, we need to find the regulator by chasing up the DT. The sun4i-emac binding puts the PHY regulator into the MDIO node, which is the parent of the PHY device. U-Boot does not have (and does not need) an MDIO driver, so we need to chase down the regulator through the EMAC node: we follow the "phy-handle" property to find the PHY node, then go up to its parent, where we find the "phy-supply" link to the regulator. Let U-Boot find the associated regulator device, and put that into the private device struct, so we can find and enable the regulator at probe time, later. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Sam Edwards <CFSworks@gmail.com> Reviewed-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'include/phy_interface.h')
0 files changed, 0 insertions, 0 deletions