Skip to content

Commit d316986

Browse files
vladimirolteandavem330
authored andcommitted
net: phy: mscc: add support for VSC8502
This is a dual copper PHY with support for MII/GMII/RGMII on MAC side, as well as a bunch of other features such as SyncE and Ring Resiliency. I haven't tested interrupts and WoL, but I am confident that they work since support is already present in the driver and the register map is no different for this PHY. PHY statistics work, PHY tunables appear to work, suspend/resume works. Signed-off-by: Wes Li <wes.li@nxp.com> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 7b005a1 commit d316986

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

drivers/net/phy/mscc/mscc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ enum rgmii_clock_delay {
276276
/* Microsemi PHY ID's
277277
* Code assumes lowest nibble is 0
278278
*/
279+
#define PHY_ID_VSC8502 0x00070630
279280
#define PHY_ID_VSC8504 0x000704c0
280281
#define PHY_ID_VSC8514 0x00070670
281282
#define PHY_ID_VSC8530 0x00070560

drivers/net/phy/mscc/mscc_main.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,6 +2089,30 @@ static int vsc85xx_probe(struct phy_device *phydev)
20892089

20902090
/* Microsemi VSC85xx PHYs */
20912091
static struct phy_driver vsc85xx_driver[] = {
2092+
{
2093+
.phy_id = PHY_ID_VSC8502,
2094+
.name = "Microsemi GE VSC8502 SyncE",
2095+
.phy_id_mask = 0xfffffff0,
2096+
/* PHY_BASIC_FEATURES */
2097+
.soft_reset = &genphy_soft_reset,
2098+
.config_init = &vsc85xx_config_init,
2099+
.config_aneg = &vsc85xx_config_aneg,
2100+
.read_status = &vsc85xx_read_status,
2101+
.ack_interrupt = &vsc85xx_ack_interrupt,
2102+
.config_intr = &vsc85xx_config_intr,
2103+
.suspend = &genphy_suspend,
2104+
.resume = &genphy_resume,
2105+
.probe = &vsc85xx_probe,
2106+
.set_wol = &vsc85xx_wol_set,
2107+
.get_wol = &vsc85xx_wol_get,
2108+
.get_tunable = &vsc85xx_get_tunable,
2109+
.set_tunable = &vsc85xx_set_tunable,
2110+
.read_page = &vsc85xx_phy_read_page,
2111+
.write_page = &vsc85xx_phy_write_page,
2112+
.get_sset_count = &vsc85xx_get_sset_count,
2113+
.get_strings = &vsc85xx_get_strings,
2114+
.get_stats = &vsc85xx_get_stats,
2115+
},
20922116
{
20932117
.phy_id = PHY_ID_VSC8504,
20942118
.name = "Microsemi GE VSC8504 SyncE",

0 commit comments

Comments
 (0)