Skip to content

Commit c278ec6

Browse files
testuser7kuba-moo
authored andcommitted
net: phy: aquantia: add support for AQR114C PHY ID
Add support for AQR114C PHY ID. This PHY advertise 10G speed: SPEED(0x04): 0x6031 capabilities: -400g +5g +2.5g -200g -25g -10g-xr -100g -40g -10g/1g -10 +100 +1000 -10-ts -2-tl +10g EXTABLE(0x0B): 0x40fc capabilities: -10g-cx4 -10g-lrm +10g-t +10g-kx4 +10g-kr +1000-t +1000-kx +100-tx -10-t -p2mp -40g/100g -1000/100-t1 -25g -200g/400g +2.5g/5g -1000-h but supports only up to 5G speed (as with AQR111/111B0). AQR111 init config is used to set max speed 5G. Signed-off-by: Paweł Owoc <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 5fc6832 commit c278ec6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

drivers/net/phy/aquantia/aquantia_main.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#define PHY_ID_AQR412 0x03a1b712
2929
#define PHY_ID_AQR113 0x31c31c40
3030
#define PHY_ID_AQR113C 0x31c31c12
31+
#define PHY_ID_AQR114C 0x31c31c22
3132
#define PHY_ID_AQR813 0x31c31cb2
3233

3334
#define MDIO_PHYXS_VEND_IF_STATUS 0xe812
@@ -962,6 +963,25 @@ static struct phy_driver aqr_driver[] = {
962963
.get_stats = aqr107_get_stats,
963964
.link_change_notify = aqr107_link_change_notify,
964965
},
966+
{
967+
PHY_ID_MATCH_MODEL(PHY_ID_AQR114C),
968+
.name = "Aquantia AQR114C",
969+
.probe = aqr107_probe,
970+
.get_rate_matching = aqr107_get_rate_matching,
971+
.config_init = aqr111_config_init,
972+
.config_aneg = aqr_config_aneg,
973+
.config_intr = aqr_config_intr,
974+
.handle_interrupt = aqr_handle_interrupt,
975+
.read_status = aqr107_read_status,
976+
.get_tunable = aqr107_get_tunable,
977+
.set_tunable = aqr107_set_tunable,
978+
.suspend = aqr107_suspend,
979+
.resume = aqr107_resume,
980+
.get_sset_count = aqr107_get_sset_count,
981+
.get_strings = aqr107_get_strings,
982+
.get_stats = aqr107_get_stats,
983+
.link_change_notify = aqr107_link_change_notify,
984+
},
965985
{
966986
PHY_ID_MATCH_MODEL(PHY_ID_AQR813),
967987
.name = "Aquantia AQR813",
@@ -999,6 +1019,7 @@ static struct mdio_device_id __maybe_unused aqr_tbl[] = {
9991019
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR412) },
10001020
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR113) },
10011021
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR113C) },
1022+
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR114C) },
10021023
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR813) },
10031024
{ }
10041025
};

0 commit comments

Comments
 (0)