Skip to contentSkip to conversation

board: ge: bx50v3: fix AR8033 reset timing issue

PATCH In review Ken Lin 5 participants 11 messages Feb 21, 2017 – Mar 27, 2017 2 messages not in the archive

lore
Share & tools
lore

Ken Lin

author
#0 lore raw

PATCH v2 1/2 board: ge: bx50v3: fix AR8033 reset timing issue

Add the delay (10ms) to ensure the clock is stable and to meet the clock-to-reset(1ms) requirement recommended in the AR8033 datasheet

---
Changes from v1
- Fix the missing Signed-off-by issue

 board/ge/bx50v3/bx50v3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/ge/bx50v3/bx50v3.c +2 -1
index 2fc1144cda..80b4ba1b8b 100644
@@ -103,8 +103,9 @@ static void setup_iomux_enet(void)
 
 	/* Reset AR8033 PHY */
 	gpio_direction_output(IMX_GPIO_NR(1, 28), 0);
-	udelay(500);
+	mdelay(10);
 	gpio_set_value(IMX_GPIO_NR(1, 28), 1);
+	mdelay(1);
 }
 
 static iomux_v3_cfg_t const usdhc2_pads[] = {
Signature · 1 line
2.11.0
author
#1 lore raw

PATCH v2 2/2 board: ge: bx50v3: apply the proper register setting to fix the voltage peak issue

Apply the proper setting for the reserved bits in SetDes Test and System Mode Control register to avoid the voltage peak issue while we do the IEEE PHY comformance test

---
Changes from v1
- New commit message

 board/ge/bx50v3/bx50v3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/ge/bx50v3/bx50v3.c +2 -1
index 80b4ba1b8b..0acf655c0e 100644
@@ -307,7 +307,8 @@ static int mx6_rgmii_rework(struct phy_device *phydev)
 	/* set debug port address: SerDes Test and System Mode Control */
 	phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x05);
 	/* enable rgmii tx clock delay */
-	phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x100);
+	/* set the reserved bits to avoid board specific voltage peak issue*/
+	phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x3D47);
 
 	return 0;
 }
Signature · 1 line
2.11.0
#2 lore raw

PATCH v2 2/2 board: ge: bx50v3: apply the proper register setting to fix the voltage peak issue

Quoted 17 lines · Ken Lin

Apply the proper setting for the reserved bits in SetDes Test and System Mode Control register to avoid the voltage peak issue while we do the IEEE PHY comformance test

---
Changes from v1
- New commit message

 board/ge/bx50v3/bx50v3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/ge/bx50v3/bx50v3.c +0 -0
index 80b4ba1b8b..0acf655c0e 100644

board/ge/bx50v3/bx50v3.c static int mx6_rgmii_rework(struct phy_device *phydev) · line 314

Quoted 9 lines
board/ge/bx50v3/bx50v3.c +2 -1
@@ -307,7 +307,8 @@ static int mx6_rgmii_rework(struct phy_device *phydev)
 	/* set debug port address: SerDes Test and System Mode Control */
 	phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x05);
 	/* enable rgmii tx clock delay */
-	phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x100);
+	/* set the reserved bits to avoid board specific voltage peak issue*/
+	phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x3D47);
 
 	return 0;
 }

Best regards,
Stefano Babic

Signature · 8 lines
Meet DENX at the Embedded World Trade Show
14 Mar - 16 Mar 2017, Nuremberg Trade Fair Centre, Hall 4, Booth 581
--
=====================================================================
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
=====================================================================

A message that is not in the archive (sent off-list or not yet received): WM!d4437fdbd18b2dd0a2df87709b3a105a45c5459682f0b042170f9226efa82e75cf97bd21a255f60bc92f051ddbb225c9!@dg.advantech.com

#4 lore raw

PATCH v2 2/2 board: ge: bx50v3: apply the proper register setting to fix the voltage peak issue

Quoted 25 lines · Stefano Babic
Quoted 1 line · Ken Lin

Apply the proper setting for the reserved bits in SetDes Test and System Mode

Control register

Quoted 22 lines

to avoid the voltage peak issue while we do the IEEE PHY comformance test

---
Changes from v1
- New commit message

 board/ge/bx50v3/bx50v3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/ge/bx50v3/bx50v3.c +2 -1
index 80b4ba1b8b..0acf655c0e 100644
@@ -307,7 +307,8 @@ static int mx6_rgmii_rework(struct phy_device *phydev)
      /* set debug port address: SerDes Test and System Mode Control */
      phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x05);
      /* enable rgmii tx clock delay */
-     phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x100);
+     /* set the reserved bits to avoid board specific voltage peak issue*/
+     phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x3D47);
 
Quoted 5 lines

board/ge/bx50v3/bx50v3.c static int mx6_rgmii_rework(struct phy_device *phydev) · line 314

Quoted 3 lines
board/ge/bx50v3/bx50v3.c +0 -0
      return 0;
 }

...

#5 lore raw

PATCH v2 2/2 board: ge: bx50v3: apply the proper register setting to fix the voltage peak issue

Hi Stefano,

Quoted 7 lines · Ian (GE Healthcare)
Quoted 6 lines · Stefano Babic
Quoted 1 line · Ken Lin

Apply the proper setting for the reserved bits in SetDes Test and System Mode

Control register

Quoted 3 lines

to avoid the voltage peak issue while we do the IEEE PHY comformance test

Are you wanting to pull this series in or should I?

Thanks,
-Joe

#6 lore raw

PATCH v2 2/2 board: ge: bx50v3: apply the proper register setting to fix the voltage peak issue

Quoted 5 lines · Joe Hershberger

Hi Stefano,

Quoted 1 line · Ian (GE Healthcare)

On 21/02/2017 17:31, Stefano Babic wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines · Ken Lin
Quoted 1 line

Apply the proper setting for the reserved bits in SetDes Test and System Mode

Control register

Quoted 3 lines

to avoid the voltage peak issue while we do the IEEE PHY comformance test

Are you wanting to pull this series in or should I?

Just searching the patches, I am just seeing that they are assigned to you (for that reason I have not pulled). On my side they are fine, you could pull them.

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
=====================================================================
#7 lore raw

PATCH v2 2/2 board: ge: bx50v3: apply the proper register setting to fix the voltage peak issue

Quoted 11 lines · Stefano Babic
Quoted 10 lines · Joe Hershberger

Hi Stefano,

Quoted 6 lines · Ian (GE Healthcare)
Quoted 5 lines · Stefano Babic
Quoted 1 line · Ken Lin

Apply the proper setting for the reserved bits in SetDes Test and System Mode

Control register

Quoted 2 lines

to avoid the voltage peak issue while we do the IEEE PHY comformance test

Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Are you wanting to pull this series in or should I?

Just searching the patches, I am just seeing that they are assigned to you (for that reason I have not pulled). On my side they are fine, you could pull them.

Will do.

-Joe

#9 lore raw

PATCH v2 1/2 board: ge: bx50v3: fix AR8033 reset timing issue

In reply to Ken Lin
Quoted 16 lines · Ken Lin

Add the delay (10ms) to ensure the clock is stable and to meet the clock-to-reset(1ms) requirement recommended in the AR8033 datasheet

---
Changes from v1
- Fix the missing Signed-off-by issue

 board/ge/bx50v3/bx50v3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/ge/bx50v3/bx50v3.c +0 -0
index 2fc1144cda..80b4ba1b8b 100644

board/ge/bx50v3/bx50v3.c static void setup_iomux_enet(void) · line 111

Quoted 10 lines
board/ge/bx50v3/bx50v3.c +2 -1
@@ -103,8 +103,9 @@ static void setup_iomux_enet(void)
 
 	/* Reset AR8033 PHY */
 	gpio_direction_output(IMX_GPIO_NR(1, 28), 0);
-	udelay(500);
+	mdelay(10);
 	gpio_set_value(IMX_GPIO_NR(1, 28), 1);
+	mdelay(1);
 }
 
 static iomux_v3_cfg_t const usdhc2_pads[] = {

Best regards,
Stefano Babic

Signature · 8 lines
Meet DENX at the Embedded World Trade Show
14 Mar - 16 Mar 2017, Nuremberg Trade Fair Centre, Hall 4, Booth 581
--
=====================================================================
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
=====================================================================

A message that is not in the archive (sent off-list or not yet received): WM!730f595a27f7608876c1195882ab23c1180b3361c6b26d67c0071fae5e6b2b2df39654e4568fd2472a7b702e69d6a703!@dg.advantech.com

#11 lore raw

PATCH v2 1/2 board: ge: bx50v3: fix AR8033 reset timing issue

Quoted 26 lines · Stefano Babic
Quoted 1 line · Ken Lin

Add the delay (10ms) to ensure the clock is stable and to meet the clock-to-

reset(1ms) requirement recommended in the AR8033 datasheet

Quoted 23 lines

---
Changes from v1
- Fix the missing Signed-off-by issue

 board/ge/bx50v3/bx50v3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/ge/bx50v3/bx50v3.c +2 -1
index 2fc1144cda..80b4ba1b8b 100644
@@ -103,8 +103,9 @@ static void setup_iomux_enet(void)
 
      /* Reset AR8033 PHY */
      gpio_direction_output(IMX_GPIO_NR(1, 28), 0);
-     udelay(500);
+     mdelay(10);
      gpio_set_value(IMX_GPIO_NR(1, 28), 1);
+     mdelay(1);
 }
 
Quoted 4 lines

board/ge/bx50v3/bx50v3.c static void setup_iomux_enet(void) · line 111

Quoted 2 lines
board/ge/bx50v3/bx50v3.c +0 -0
 static iomux_v3_cfg_t const usdhc2_pads[] = {

...