Skip to contentSkip to conversation

phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID

PATCH RESEND In review Andrea Merello 5 participants 10 messages May 26, 2016 – Oct 13, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID

This adds support for internal delay on RX and TX on RGMII interface for the AR8035 phy.

This is basically the same Linux driver do. Tested on a Zynq Zturn board (for which u-boot support in is my tree; first patch waiting ML approval)

drivers/net/phy/atheros.c +16 -0
index e57c412..694a338 100644
@@ -31,6 +31,22 @@ static int ar8035_config(struct phy_device *phydev)
 	regval = phy_read(phydev, MDIO_DEVAD_NONE, 0x1e);
 	phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, (regval|0x0100));
 
+	if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
+	    (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)) {
+		/* select debug reg 5 */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1D, 0x5);
+		/* enable tx delay */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1E, 0x0100);
+	}
+
+	if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
+	    (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID)) {
+		/* select debug reg 0 */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1D, 0x0);
+		/* enable rx delay */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1E, 0x8000);
+	}
+
 	phydev->supported = phydev->drv->features;
 
 	genphy_config_aneg(phydev);

--
2.1.4

#1 lore raw

PATCH RESEND 1/1 phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID

Quoted 7 lines · Andrea Merello

This adds support for internal delay on RX and TX on RGMII interface for the AR8035 phy.

This is basically the same Linux driver do. Tested on a Zynq Zturn board (for which u-boot support in is my tree; first patch waiting ML approval)

Can we get this applied ? Thanks

Quoted 35 lines
drivers/net/phy/atheros.c +16 -1
index e57c412..694a338 100644
@@ -31,6 +31,22 @@ static int ar8035_config(struct phy_device *phydev)
 	regval = phy_read(phydev, MDIO_DEVAD_NONE, 0x1e);
 	phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, (regval|0x0100));
 
+	if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
+	    (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)) {
+		/* select debug reg 5 */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1D, 0x5);
+		/* enable tx delay */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1E, 0x0100);
+	}
+
+	if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
+	    (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID)) {
+		/* select debug reg 0 */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1D, 0x0);
+		/* enable rx delay */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1E, 0x8000);
+	}
+
 	phydev->supported = phydev->drv->features;
 
 	genphy_config_aneg(phydev);
--

2.1.4
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Signature · 2 lines
Best regards,
Marek Vasut
#2 lore raw

PATCH RESEND 1/1 phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID

Quoted 7 lines · Marek Vasut
Quoted 6 lines · Andrea Merello

This adds support for internal delay on RX and TX on RGMII interface for the AR8035 phy.

This is basically the same Linux driver do. Tested on a Zynq Zturn board (for which u-boot support in is my tree; first patch waiting ML approval)

Quoted 6 lines
Quoted 1 line

Can we get this applied ? Thanks

This is assigned to Michal in patchwork, so at least someone thinks that's the correct path. I'm good either way.

-Joe

#3 lore raw

PATCH RESEND 1/1 phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID

Quoted 10 lines · Joe Hershberger
Quoted 9 lines · Marek Vasut
Quoted 7 lines · Andrea Merello

This adds support for internal delay on RX and TX on RGMII interface for the AR8035 phy.

This is basically the same Linux driver do. Tested on a Zynq Zturn board (for which u-boot support in is my tree; first patch waiting ML approval)

Quoted 7 lines
Quoted 4 lines

Can we get this applied ? Thanks

This is assigned to Michal in patchwork, so at least someone thinks that's the correct path. I'm good either way.

Well that doesn't make any sense, so please pick it.

Signature · 2 lines
Best regards,
Marek Vasut
#4 lore raw

PATCH RESEND 1/1 phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID

Quoted 14 lines · Marek Vasut
Quoted 13 lines · Joe Hershberger
Quoted 12 lines · Marek Vasut
Quoted 7 lines · Andrea Merello

This adds support for internal delay on RX and TX on RGMII interface for the AR8035 phy.

This is basically the same Linux driver do. Tested on a Zynq Zturn board (for which u-boot support in is my tree; first patch waiting ML approval)

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Can we get this applied ? Thanks

This is assigned to Michal in patchwork, so at least someone thinks that's the correct path. I'm good either way.

Well that doesn't make any sense, so please pick it.

Probably was done because it mentions it's for a Zynq board. Sure would be nice if patchwork listed a history of who changed what fields.

-Joe

#5 lore raw

PATCH RESEND 1/1 phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID

Quoted 17 lines · Joe Hershberger
Quoted 16 lines · Marek Vasut
Quoted 15 lines · Joe Hershberger
Quoted 13 lines · Marek Vasut
Quoted 7 lines · Andrea Merello

This adds support for internal delay on RX and TX on RGMII interface for the AR8035 phy.

This is basically the same Linux driver do. Tested on a Zynq Zturn board (for which u-boot support in is my tree; first patch waiting ML approval)

Can we get this applied ? Thanks

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

This is assigned to Michal in patchwork, so at least someone thinks that's the correct path. I'm good either way.

Well that doesn't make any sense, so please pick it.

Probably was done because it mentions it's for a Zynq board. Sure would be nice if patchwork listed a history of who changed what fields.

I would rather avoid fingerpointing, but probably Tom, he's the one doing the hard work of reassigning patches and is alone at it I think. Thus, accidents can happen.

Signature · 2 lines
Best regards,
Marek Vasut
#6 lore raw

PATCH RESEND 1/1 phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID

Quoted 23 lines · Marek Vasut
Quoted 22 lines · Joe Hershberger
Quoted 20 lines · Marek Vasut
Quoted 10 lines · Joe Hershberger
Quoted 9 lines · Marek Vasut
Quoted 7 lines · Andrea Merello

This adds support for internal delay on RX and TX on RGMII interface for the AR8035 phy.

This is basically the same Linux driver do. Tested on a Zynq Zturn board (for which u-boot support in is my tree; first patch waiting ML approval)

Quoted 7 lines
Quoted 4 lines

Can we get this applied ? Thanks

This is assigned to Michal in patchwork, so at least someone thinks that's the correct path. I'm good either way.

Well that doesn't make any sense, so please pick it.

Quoted 7 lines
Quoted 3 lines

Probably was done because it mentions it's for a Zynq board. Sure would be nice if patchwork listed a history of who changed what fields.

I would rather avoid fingerpointing, but probably Tom, he's the one doing the hard work of reassigning patches and is alone at it I think. Thus, accidents can happen.

I also assign some, mostly unassigned and pertaining to me. I certainly try to not take patches assigned to others when there's any doubt in case they are in progress. I'm not interested in finger-pointing so much as knowing who to ask about the assignment.

-Joe

#7 lore raw

PATCH RESEND 1/1 phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID

Quoted 28 lines · Joe Hershberger
Quoted 27 lines · Marek Vasut
Quoted 25 lines · Joe Hershberger
Quoted 14 lines · Marek Vasut
Quoted 13 lines · Joe Hershberger
Quoted 12 lines · Marek Vasut
Quoted 7 lines · Andrea Merello

This adds support for internal delay on RX and TX on RGMII interface for the AR8035 phy.

This is basically the same Linux driver do. Tested on a Zynq Zturn board (for which u-boot support in is my tree; first patch waiting ML approval)

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Can we get this applied ? Thanks

This is assigned to Michal in patchwork, so at least someone thinks that's the correct path. I'm good either way.

Well that doesn't make any sense, so please pick it.

Probably was done because it mentions it's for a Zynq board. Sure would be nice if patchwork listed a history of who changed what fields.

Quoted 8 lines
Quoted 3 lines

I would rather avoid fingerpointing, but probably Tom, he's the one doing the hard work of reassigning patches and is alone at it I think. Thus, accidents can happen.

I also assign some, mostly unassigned and pertaining to me. I certainly try to not take patches assigned to others when there's any doubt in case they are in progress. I'm not interested in finger-pointing so much as knowing who to ask about the assignment.

Joe: :-) Definitely take it via your tree.

Thanks,
Michal

#8 lore raw

PATCH RESEND 1/1 phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID

In reply to Andrea Merello
Quoted 7 lines · Andrea Merello

This adds support for internal delay on RX and TX on RGMII interface for the AR8035 phy.

This is basically the same Linux driver do. Tested on a Zynq Zturn board (for which u-boot support in is my tree; first patch waiting ML approval)