[PATCH v1] net: designware: support phy io micro voltage setting.
Michael Chang
zhang971090220 at gmail.com
Wed Feb 5 03:01:06 CET 2025
Support phy io micro voltage setting for NPCM8XX rgmii
interface.
Signed-off-by: Michael Chang <zhang971090220 at gmail.com>
---
drivers/net/designware.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index 94d8f1b4c0..0a1fff3872 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -741,6 +741,18 @@ int designware_eth_probe(struct udevice *dev)
puts("Error enabling phy supply\n");
return ret;
}
+#if IS_ENABLED(CONFIG_ARCH_NPCM8XX)
+ int phy_uv;
+
+ phy_uv = dev_read_u32_default(dev, "phy-supply-microvolt", 0);
+ if (phy_uv) {
+ ret = regulator_set_value(phy_supply, phy_uv);
+ if (ret) {
+ puts("Error setting phy voltage\n");
+ return ret;
+ }
+ }
+#endif
}
#endif
--
2.34.1
More information about the U-Boot
mailing list