Andre Przywara 091442993c 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>
2023-10-22 23:40:56 +01:00
..
2022-12-07 12:20:17 -05:00
2023-01-20 12:27:24 -05:00
2023-06-15 17:58:53 +08:00
2021-02-24 16:51:49 -05:00
2022-12-07 16:04:16 -05:00
2021-09-28 18:50:56 +03:00
2022-12-07 16:04:17 -05:00
2022-12-07 16:04:17 -05:00
2022-12-07 16:04:17 -05:00
2022-09-25 08:30:05 -06:00
2022-11-28 10:25:17 -05:00
2022-12-07 16:04:17 -05:00
2023-02-02 14:44:53 -05:00
2022-12-22 10:31:48 -05:00
2022-12-22 10:31:48 -05:00
2023-03-02 17:45:58 -05:00
2022-12-07 16:04:17 -05:00
2022-12-07 16:04:17 -05:00
2023-06-10 13:34:05 +02:00
2022-09-29 16:11:31 -04:00
2022-12-07 16:04:17 -05:00
2023-01-09 11:30:08 -05:00