Skip to content

Commit 0ebc581

Browse files
Bartosz Golaszewskidavem330
authored andcommitted
net: phy: aquantia: add support for aqr115c
Add support for a new model to the Aquantia driver. This PHY supports 2.5 gigabit speeds. The PHY mode is referred to by the manufacturer as Overclocked SGMII (OCSGMII) but this actually is just 2500BASEX without in-band signalling so reuse the existing mode to avoid changing the uAPI. Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 708405f commit 0ebc581

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

drivers/net/phy/aquantia/aquantia_main.c

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#define PHY_ID_AQR113 0x31c31c40
3030
#define PHY_ID_AQR113C 0x31c31c12
3131
#define PHY_ID_AQR114C 0x31c31c22
32+
#define PHY_ID_AQR115C 0x31c31c33
3233
#define PHY_ID_AQR813 0x31c31cb2
3334

3435
#define MDIO_PHYXS_VEND_IF_STATUS 0xe812
@@ -1005,6 +1006,30 @@ static struct phy_driver aqr_driver[] = {
10051006
.led_hw_control_get = aqr_phy_led_hw_control_get,
10061007
.led_polarity_set = aqr_phy_led_polarity_set,
10071008
},
1009+
{
1010+
PHY_ID_MATCH_MODEL(PHY_ID_AQR115C),
1011+
.name = "Aquantia AQR115C",
1012+
.probe = aqr107_probe,
1013+
.get_rate_matching = aqr107_get_rate_matching,
1014+
.config_init = aqr113c_config_init,
1015+
.config_aneg = aqr_config_aneg,
1016+
.config_intr = aqr_config_intr,
1017+
.handle_interrupt = aqr_handle_interrupt,
1018+
.read_status = aqr107_read_status,
1019+
.get_tunable = aqr107_get_tunable,
1020+
.set_tunable = aqr107_set_tunable,
1021+
.suspend = aqr107_suspend,
1022+
.resume = aqr107_resume,
1023+
.get_sset_count = aqr107_get_sset_count,
1024+
.get_strings = aqr107_get_strings,
1025+
.get_stats = aqr107_get_stats,
1026+
.link_change_notify = aqr107_link_change_notify,
1027+
.led_brightness_set = aqr_phy_led_brightness_set,
1028+
.led_hw_is_supported = aqr_phy_led_hw_is_supported,
1029+
.led_hw_control_set = aqr_phy_led_hw_control_set,
1030+
.led_hw_control_get = aqr_phy_led_hw_control_get,
1031+
.led_polarity_set = aqr_phy_led_polarity_set,
1032+
},
10081033
{
10091034
PHY_ID_MATCH_MODEL(PHY_ID_AQR813),
10101035
.name = "Aquantia AQR813",
@@ -1048,6 +1073,7 @@ static struct mdio_device_id __maybe_unused aqr_tbl[] = {
10481073
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR113) },
10491074
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR113C) },
10501075
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR114C) },
1076+
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR115C) },
10511077
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR813) },
10521078
{ }
10531079
};

0 commit comments

Comments
 (0)