725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch 2.0 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/aquantia_main.c | 10 ++++++++++
  9. 1 file changed, 10 insertions(+)
  10. --- a/drivers/net/phy/aquantia/aquantia_main.c
  11. +++ b/drivers/net/phy/aquantia/aquantia_main.c
  12. @@ -27,6 +27,8 @@
  13. #define PHY_ID_AQR112 0x03a1b662
  14. #define PHY_ID_AQR412 0x03a1b712
  15. #define PHY_ID_AQR113 0x31c31c40
  16. +#define PHY_ID_AQR112C 0x03a1b790
  17. +#define PHY_ID_AQR112R 0x31c31d12
  18. #define MDIO_PHYXS_VEND_IF_STATUS 0xe812
  19. #define MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK GENMASK(7, 3)
  20. @@ -924,6 +926,30 @@ static struct phy_driver aqr_driver[] =
  21. .get_stats = aqr107_get_stats,
  22. },
  23. {
  24. + PHY_ID_MATCH_MODEL(PHY_ID_AQR112C),
  25. + .name = "Aquantia AQR112C",
  26. + .probe = aqr107_probe,
  27. + .config_aneg = aqr_config_aneg_set_prot,
  28. + .config_intr = aqr_config_intr,
  29. + .handle_interrupt = aqr_handle_interrupt,
  30. + .read_status = aqr107_read_status,
  31. + .get_sset_count = aqr107_get_sset_count,
  32. + .get_strings = aqr107_get_strings,
  33. + .get_stats = aqr107_get_stats,
  34. +},
  35. +{
  36. + PHY_ID_MATCH_MODEL(PHY_ID_AQR112R),
  37. + .name = "Aquantia AQR112R",
  38. + .probe = aqr107_probe,
  39. + .config_aneg = aqr_config_aneg_set_prot,
  40. + .config_intr = aqr_config_intr,
  41. + .handle_interrupt = aqr_handle_interrupt,
  42. + .read_status = aqr107_read_status,
  43. + .get_sset_count = aqr107_get_sset_count,
  44. + .get_strings = aqr107_get_strings,
  45. + .get_stats = aqr107_get_stats,
  46. +},
  47. +{
  48. PHY_ID_MATCH_MODEL(PHY_ID_AQR113),
  49. .name = "Aquantia AQR113",
  50. .config_aneg = aqr_config_aneg,
  51. @@ -960,6 +986,8 @@ static struct mdio_device_id __maybe_unu
  52. { PHY_ID_MATCH_MODEL(PHY_ID_AQR112) },
  53. { PHY_ID_MATCH_MODEL(PHY_ID_AQR412) },
  54. { PHY_ID_MATCH_MODEL(PHY_ID_AQR113) },
  55. + { PHY_ID_MATCH_MODEL(PHY_ID_AQR112C) },
  56. + { PHY_ID_MATCH_MODEL(PHY_ID_AQR112R) },
  57. { }
  58. };