net: phy: mscc: add support for the VSC8572
Subsystems (2)
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).
Signed-off-by Charles Perry <[email protected]>
--- drivers/net/phy/mscc.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/net/phy/mscc.c +11 -0
@@ -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
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).
Signed-off-by Charles Perry <[email protected]>
Reviewed-by Manikandan Muralidharan <[email protected]>
Quoted 33 lines
--- drivers/net/phy/mscc.c | 11 +++++++++++ 1 file changed, 11 insertions(+)drivers/net/phy/mscc.c +11
-0@@ -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.
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).
Signed-off-by Charles Perry <[email protected]>--- drivers/net/phy/mscc.c | 11 +++++++++++ 1 file changed, 11 insertions(+)drivers/net/phy/mscc.c +4
-0@@ -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