2
0

725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. From 3b92ee7b7899b6beffb2b484c58326e36612a873 Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <[email protected]>
  3. Date: Thu, 23 Dec 2021 14:52:56 +0000
  4. Subject: [PATCH] net: phy: aquantia: add PHY_ID for AQR112R
  5. As advised by Ian Chang this PHY is used in Puzzle devices.
  6. Signed-off-by: Daniel Golle <[email protected]>
  7. ---
  8. drivers/net/phy/aquantia_main.c | 10 ++++++++++
  9. 1 file changed, 10 insertions(+)
  10. --- a/drivers/net/phy/aquantia_main.c
  11. +++ b/drivers/net/phy/aquantia_main.c
  12. @@ -21,6 +21,8 @@
  13. #define PHY_ID_AQR106 0x03a1b4d0
  14. #define PHY_ID_AQR107 0x03a1b4e0
  15. #define PHY_ID_AQR112 0x03a1b662
  16. +#define PHY_ID_AQR112C 0x03a1b790
  17. +#define PHY_ID_AQR112R 0x31c31d12
  18. #define PHY_ID_AQR113 0x31c31c40
  19. #define PHY_ID_AQR113C 0x31c31c12
  20. #define PHY_ID_AQCS109 0x03a1b5c2
  21. @@ -841,6 +843,30 @@ static struct phy_driver aqr_driver[] =
  22. .get_stats = aqr107_get_stats,
  23. },
  24. {
  25. + PHY_ID_MATCH_MODEL(PHY_ID_AQR112C),
  26. + .name = "Aquantia AQR112C",
  27. + .probe = aqr107_probe,
  28. + .config_aneg = aqr_config_aneg_set_prot,
  29. + .config_intr = aqr_config_intr,
  30. + .ack_interrupt = aqr_ack_interrupt,
  31. + .read_status = aqr107_read_status,
  32. + .get_sset_count = aqr107_get_sset_count,
  33. + .get_strings = aqr107_get_strings,
  34. + .get_stats = aqr107_get_stats,
  35. +},
  36. +{
  37. + PHY_ID_MATCH_MODEL(PHY_ID_AQR112R),
  38. + .name = "Aquantia AQR112R",
  39. + .probe = aqr107_probe,
  40. + .config_aneg = aqr_config_aneg_set_prot,
  41. + .config_intr = aqr_config_intr,
  42. + .ack_interrupt = aqr_ack_interrupt,
  43. + .read_status = aqr107_read_status,
  44. + .get_sset_count = aqr107_get_sset_count,
  45. + .get_strings = aqr107_get_strings,
  46. + .get_stats = aqr107_get_stats,
  47. +},
  48. +{
  49. PHY_ID_MATCH_MODEL(PHY_ID_AQR113),
  50. .name = "Aquantia AQR113",
  51. .config_aneg = aqr_config_aneg,
  52. @@ -871,6 +897,8 @@ static struct mdio_device_id __maybe_unu
  53. { PHY_ID_MATCH_MODEL(PHY_ID_AQR106) },
  54. { PHY_ID_MATCH_MODEL(PHY_ID_AQR107) },
  55. { PHY_ID_MATCH_MODEL(PHY_ID_AQR112) },
  56. + { PHY_ID_MATCH_MODEL(PHY_ID_AQR112C) },
  57. + { PHY_ID_MATCH_MODEL(PHY_ID_AQR112R) },
  58. { PHY_ID_MATCH_MODEL(PHY_ID_AQR113) },
  59. { PHY_ID_MATCH_MODEL(PHY_ID_AQR113C) },
  60. { PHY_ID_MATCH_MODEL(PHY_ID_AQCS109) },