Skip to contentSkip to conversation

imx: ventana: relax phy reset times

PATCH New Tim Harvey 2 participants 3 messages Mar 21, 2017

lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH 1/1 imx: ventana: relax phy reset times

---
 board/gateworks/gw_ventana/gw_ventana.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/gateworks/gw_ventana/gw_ventana.c +2 -2
index dc8cd88..7052663 100644
@@ -132,9 +132,9 @@ static void setup_iomux_enet(int gpio)
 	/* toggle PHY_RST# */
 	gpio_request(gpio, "phy_rst#");
 	gpio_direction_output(gpio, 0);
-	mdelay(10);
+	mdelay(2);
 	gpio_set_value(gpio, 1);
-	mdelay(100);
+	mdelay(15);
 }
 
 #ifdef CONFIG_USB_EHCI_MX6
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 imx: ventana: relax phy reset times

Quoted 10 lines · Tim Harvey
---
 board/gateworks/gw_ventana/gw_ventana.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/gateworks/gw_ventana/gw_ventana.c +0 -0
index dc8cd88..7052663 100644

board/gateworks/gw_ventana/gw_ventana.c static void setup_iomux_enet(int gpio) · line 138

Quoted 9 lines
board/gateworks/gw_ventana/gw_ventana.c +2 -2
@@ -132,9 +132,9 @@ static void setup_iomux_enet(int gpio)
 	/* toggle PHY_RST# */
 	gpio_request(gpio, "phy_rst#");
 	gpio_direction_output(gpio, 0);
-	mdelay(10);
+	mdelay(2);
 	gpio_set_value(gpio, 1);
-	mdelay(100);
+	mdelay(15);
 }

Tim, I have seen some warnings by compiling your new boards. Reason is that the new configs (emmc, nand) are missing from the MAINTAINERS file. Can you send a patch to fix this ? You can see the warnings if you run "buildman gw_ventana" - thanks !

Best regards,
Stefano

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
author
#2 lore raw

PATCH 1/1 imx: ventana: relax phy reset times

Quoted 23 lines · Stefano Babic
Quoted 10 lines · Tim Harvey
---
 board/gateworks/gw_ventana/gw_ventana.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/gateworks/gw_ventana/gw_ventana.c +0 -0
index dc8cd88..7052663 100644

board/gateworks/gw_ventana/gw_ventana.c static void setup_iomux_enet(int gpio) · line 138

Quoted 9 lines
board/gateworks/gw_ventana/gw_ventana.c +2 -2
@@ -132,9 +132,9 @@ static void setup_iomux_enet(int gpio)
      /* toggle PHY_RST# */
      gpio_request(gpio, "phy_rst#");
      gpio_direction_output(gpio, 0);
-     mdelay(10);
+     mdelay(2);
      gpio_set_value(gpio, 1);
-     mdelay(100);
+     mdelay(15);
 }
Quoted 5 lines

Tim, I have seen some warnings by compiling your new boards. Reason is that the new configs (emmc, nand) are missing from the MAINTAINERS file. Can you send a patch to fix this ? You can see the warnings if you run "buildman gw_ventana" - thanks !

Will do - thanks for the heads-up!

Please drop this patch... I'm still having reliability issues with the MV88E6176 phy reset. The datasheet doesn't give much details about the reset requirements so I'll leave them overly conservative.

Thanks,

Tim