forked from mirrors/linux
		
	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>
This commit is contained in:
		
							parent
							
								
									7b005a1742
								
							
						
					
					
						commit
						d316986331
					
				
					 2 changed files with 25 additions and 0 deletions
				
			
		| 
						 | 
					@ -276,6 +276,7 @@ enum rgmii_clock_delay {
 | 
				
			||||||
/* Microsemi PHY ID's
 | 
					/* Microsemi PHY ID's
 | 
				
			||||||
 *   Code assumes lowest nibble is 0
 | 
					 *   Code assumes lowest nibble is 0
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					#define PHY_ID_VSC8502			  0x00070630
 | 
				
			||||||
#define PHY_ID_VSC8504			  0x000704c0
 | 
					#define PHY_ID_VSC8504			  0x000704c0
 | 
				
			||||||
#define PHY_ID_VSC8514			  0x00070670
 | 
					#define PHY_ID_VSC8514			  0x00070670
 | 
				
			||||||
#define PHY_ID_VSC8530			  0x00070560
 | 
					#define PHY_ID_VSC8530			  0x00070560
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2089,6 +2089,30 @@ static int vsc85xx_probe(struct phy_device *phydev)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Microsemi VSC85xx PHYs */
 | 
					/* Microsemi VSC85xx PHYs */
 | 
				
			||||||
static struct phy_driver vsc85xx_driver[] = {
 | 
					static struct phy_driver vsc85xx_driver[] = {
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						.phy_id		= PHY_ID_VSC8502,
 | 
				
			||||||
 | 
						.name		= "Microsemi GE VSC8502 SyncE",
 | 
				
			||||||
 | 
						.phy_id_mask	= 0xfffffff0,
 | 
				
			||||||
 | 
						/* PHY_BASIC_FEATURES */
 | 
				
			||||||
 | 
						.soft_reset	= &genphy_soft_reset,
 | 
				
			||||||
 | 
						.config_init	= &vsc85xx_config_init,
 | 
				
			||||||
 | 
						.config_aneg    = &vsc85xx_config_aneg,
 | 
				
			||||||
 | 
						.read_status	= &vsc85xx_read_status,
 | 
				
			||||||
 | 
						.ack_interrupt	= &vsc85xx_ack_interrupt,
 | 
				
			||||||
 | 
						.config_intr	= &vsc85xx_config_intr,
 | 
				
			||||||
 | 
						.suspend	= &genphy_suspend,
 | 
				
			||||||
 | 
						.resume		= &genphy_resume,
 | 
				
			||||||
 | 
						.probe		= &vsc85xx_probe,
 | 
				
			||||||
 | 
						.set_wol	= &vsc85xx_wol_set,
 | 
				
			||||||
 | 
						.get_wol	= &vsc85xx_wol_get,
 | 
				
			||||||
 | 
						.get_tunable	= &vsc85xx_get_tunable,
 | 
				
			||||||
 | 
						.set_tunable	= &vsc85xx_set_tunable,
 | 
				
			||||||
 | 
						.read_page	= &vsc85xx_phy_read_page,
 | 
				
			||||||
 | 
						.write_page	= &vsc85xx_phy_write_page,
 | 
				
			||||||
 | 
						.get_sset_count = &vsc85xx_get_sset_count,
 | 
				
			||||||
 | 
						.get_strings    = &vsc85xx_get_strings,
 | 
				
			||||||
 | 
						.get_stats      = &vsc85xx_get_stats,
 | 
				
			||||||
 | 
					},
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	.phy_id		= PHY_ID_VSC8504,
 | 
						.phy_id		= PHY_ID_VSC8504,
 | 
				
			||||||
	.name		= "Microsemi GE VSC8504 SyncE",
 | 
						.name		= "Microsemi GE VSC8504 SyncE",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue