Skip to contentSkip to conversation

net: phy: mscc: add support for the VSC8572

PATCH In review Charles Perry 3 participants 3 messages May 5 – May 6

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

PATCH 1/1 net: phy: mscc: add support for the VSC8572

This is similar to the VSC8574 according to the Linux commit that adds support for it [1].

This was tested on an HX1000 board with SGMII (PIC64-HX SoC which has a GEM MAC).

[1]: https://lore.kernel.org/all/dfabe39a52efcd2cfff9358f271b8673143503b8.1480497966.git.neill.whillans@codethink.co.uk/

---
 drivers/net/phy/mscc.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/net/phy/mscc.c +11 -0
index 16387eea41b8..dd7a10047bbc 100644
@@ -23,6 +23,7 @@
 #define PHY_ID_VSC8502			0x00070630
 #define PHY_ID_VSC8540                  0x00070760
 #define PHY_ID_VSC8541                  0x00070770
+#define PHY_ID_VSC8572			0x000704d0
 #define PHY_ID_VSC8574			0x000704a0
 #define PHY_ID_VSC8584                  0x000707c0
 
@@ -1623,6 +1624,16 @@ U_BOOT_PHY_DRIVER(vsc8541) = {
 	.shutdown = &genphy_shutdown,
 };
 
+U_BOOT_PHY_DRIVER(vsc8572) = {
+	.name = "Microsemi VSC8572",
+	.uid = PHY_ID_VSC8572,
+	.mask = 0x000ffff0,
+	.features = PHY_GBIT_FEATURES,
+	.config = &vsc8574_config,
+	.startup = &mscc_startup,
+	.shutdown = &genphy_shutdown,
+};
+
 U_BOOT_PHY_DRIVER(vsc8574) = {
 	.name = "Microsemi VSC8574",
 	.uid = PHY_ID_VSC8574,
Signature · 1 line
2.47.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Charles Perry

This is similar to the VSC8574 according to the Linux commit that adds support for it [1].

This was tested on an HX1000 board with SGMII (PIC64-HX SoC which has a GEM MAC).

[1]: https://lore.kernel.org/all/dfabe39a52efcd2cfff9358f271b8673143503b8.1480497966.git.neill.whillans@codethink.co.uk/

Quoted 33 lines
---
  drivers/net/phy/mscc.c | 11 +++++++++++
  1 file changed, 11 insertions(+)
drivers/net/phy/mscc.c +11 -0
index 16387eea41b8..dd7a10047bbc 100644
@@ -23,6 +23,7 @@
  #define PHY_ID_VSC8502			0x00070630
  #define PHY_ID_VSC8540                  0x00070760
  #define PHY_ID_VSC8541                  0x00070770
+#define PHY_ID_VSC8572			0x000704d0
  #define PHY_ID_VSC8574			0x000704a0
  #define PHY_ID_VSC8584                  0x000707c0
 
@@ -1623,6 +1624,16 @@ U_BOOT_PHY_DRIVER(vsc8541) = {
  	.shutdown = &genphy_shutdown,
  };
 
+U_BOOT_PHY_DRIVER(vsc8572) = {
+	.name = "Microsemi VSC8572",
+	.uid = PHY_ID_VSC8572,
+	.mask = 0x000ffff0,
+	.features = PHY_GBIT_FEATURES,
+	.config = &vsc8574_config,
+	.startup = &mscc_startup,
+	.shutdown = &genphy_shutdown,
+};
+
  U_BOOT_PHY_DRIVER(vsc8574) = {
  	.name = "Microsemi VSC8574",
  	.uid = PHY_ID_VSC8574,
Signature · 2 lines
Thanks and Regards,
Manikandan M.
#2 lore raw
In reply to Charles Perry
Quoted 32 lines · Charles Perry

This is similar to the VSC8574 according to the Linux commit that adds support for it [1].

This was tested on an HX1000 board with SGMII (PIC64-HX SoC which has a GEM MAC).

[1]: https://lore.kernel.org/all/dfabe39a52efcd2cfff9358f271b8673143503b8.1480497966.git.neill.whillans@codethink.co.uk/

---
 drivers/net/phy/mscc.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/net/phy/mscc.c +4 -0
index 16387eea41b8..dd7a10047bbc 100644
@@ -23,6 +23,7 @@
 #define PHY_ID_VSC8502			0x00070630
 #define PHY_ID_VSC8540                  0x00070760
 #define PHY_ID_VSC8541                  0x00070770
+#define PHY_ID_VSC8572			0x000704d0
 #define PHY_ID_VSC8574			0x000704a0
 #define PHY_ID_VSC8584                  0x000707c0
 
@@ -1623,6 +1624,16 @@ U_BOOT_PHY_DRIVER(vsc8541) = {
 	.shutdown = &genphy_shutdown,
 };
 
+U_BOOT_PHY_DRIVER(vsc8572) = {
+	.name = "Microsemi VSC8572",
+	.uid = PHY_ID_VSC8572,

drivers/net/phy/mscc.c U_BOOT_PHY_DRIVER(vsc8541) = { · line 1639

Quoted 10 lines
drivers/net/phy/mscc.c +7 -0
+	.mask = 0x000ffff0,
+	.features = PHY_GBIT_FEATURES,
+	.config = &vsc8574_config,
+	.startup = &mscc_startup,
+	.shutdown = &genphy_shutdown,
+};
+
 U_BOOT_PHY_DRIVER(vsc8574) = {
 	.name = "Microsemi VSC8574",
 	.uid = PHY_ID_VSC8574,

Added to the net queue, thanks!

Signature · 1 line
Jerome