aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2023-05-02 14:50:43 +0200
committerTom Rini <trini@konsulko.com>2023-05-05 18:03:18 -0400
commit1a3af267c097c330fb2bf12493186a345523df38 (patch)
tree89fd938073db85162aab26a9096447d7a311b957 /drivers/net/phy
parentbcbb64b1990cc1f3f8137c05fbc49b13fcb320ff (diff)
downloadu-boot-1a3af267c097c330fb2bf12493186a345523df38.zip
u-boot-1a3af267c097c330fb2bf12493186a345523df38.tar.gz
u-boot-1a3af267c097c330fb2bf12493186a345523df38.tar.bz2
net: phy: Request rgmii-id phy reset gpio as output
Request the reset gpio of the rgmii-id phy as output to be consistent with the eth-phy-uclass driver. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Reviewed-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/ethernet_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/ethernet_id.c b/drivers/net/phy/ethernet_id.c
index 8864f99..a715e83 100644
--- a/drivers/net/phy/ethernet_id.c
+++ b/drivers/net/phy/ethernet_id.c
@@ -39,7 +39,7 @@ struct phy_device *phy_connect_phy_id(struct mii_dev *bus, struct udevice *dev,
if (!IS_ENABLED(CONFIG_DM_ETH_PHY)) {
ret = gpio_request_by_name_nodev(node, "reset-gpios", 0, &gpio,
- GPIOD_ACTIVE_LOW);
+ GPIOD_IS_OUT | GPIOD_ACTIVE_LOW);
if (!ret) {
assert = ofnode_read_u32_default(node,
"reset-assert-us", 0);