All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] net: phy: dp83869: Add PHY ID for chip revision 3
@ 2024-05-14 12:27 Thomas Gessler
  2024-05-14 12:27 ` [PATCH 2/2] net: phy: dp83869: Fix RGMII-SGMII and 1000BASE-X Thomas Gessler
  2024-05-14 12:47 ` [PATCH 1/2] net: phy: dp83869: Add PHY ID for chip revision 3 Andrew Lunn
  0 siblings, 2 replies; 11+ messages in thread
From: Thomas Gessler @ 2024-05-14 12:27 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Russell King, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: netdev, linux-kernel, Thomas Gessler, MD Danish Anwar,
	Ravi Gunasekaran

The recent silicon revision 3 of the DP83869 has a different PHY ID
which has to be added to the driver in order for the PHY to be detected.
There appear to be no documented differences between the revisions,
although there are some discussions in the TI forum about different
behavior for some registers.

Signed-off-by: Thomas Gessler <thomas.gessler@brueckmann-gmbh.de>
---
 drivers/net/phy/dp83869.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/net/phy/dp83869.c b/drivers/net/phy/dp83869.c
index d7aaefb5226b..d248a13c1749 100644
--- a/drivers/net/phy/dp83869.c
+++ b/drivers/net/phy/dp83869.c
@@ -15,7 +15,8 @@
 
 #include <dt-bindings/net/ti-dp83869.h>
 
-#define DP83869_PHY_ID		0x2000a0f1
+#define DP83869REV1_PHY_ID	0x2000a0f1
+#define DP83869REV3_PHY_ID	0x2000a0f3
 #define DP83561_PHY_ID		0x2000a1a4
 #define DP83869_DEVADDR		0x1f
 
@@ -909,14 +910,16 @@ static int dp83869_phy_reset(struct phy_device *phydev)
 }
 
 static struct phy_driver dp83869_driver[] = {
-	DP83869_PHY_DRIVER(DP83869_PHY_ID, "TI DP83869"),
+	DP83869_PHY_DRIVER(DP83869REV1_PHY_ID, "TI DP83869 Rev. 1"),
+	DP83869_PHY_DRIVER(DP83869REV3_PHY_ID, "TI DP83869 Rev. 3"),
 	DP83869_PHY_DRIVER(DP83561_PHY_ID, "TI DP83561-SP"),
 
 };
 module_phy_driver(dp83869_driver);
 
 static struct mdio_device_id __maybe_unused dp83869_tbl[] = {
-	{ PHY_ID_MATCH_MODEL(DP83869_PHY_ID) },
+	{ PHY_ID_MATCH_MODEL(DP83869REV1_PHY_ID) },
+	{ PHY_ID_MATCH_MODEL(DP83869REV3_PHY_ID) },
 	{ PHY_ID_MATCH_MODEL(DP83561_PHY_ID) },
 	{ }
 };
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-05-15 15:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14 12:27 [PATCH 1/2] net: phy: dp83869: Add PHY ID for chip revision 3 Thomas Gessler
2024-05-14 12:27 ` [PATCH 2/2] net: phy: dp83869: Fix RGMII-SGMII and 1000BASE-X Thomas Gessler
2024-05-14 12:56   ` Andrew Lunn
2024-05-15  8:15     ` Thomas Geßler
2024-05-15 15:10       ` Andrew Lunn
2024-05-14 13:05   ` Russell King (Oracle)
2024-05-15  8:45     ` Thomas Geßler
2024-05-14 13:08   ` Andrew Lunn
2024-05-15  7:47     ` Thomas Geßler
2024-05-14 12:47 ` [PATCH 1/2] net: phy: dp83869: Add PHY ID for chip revision 3 Andrew Lunn
2024-05-15  7:04   ` Thomas Geßler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.