2022-10-18 20:26:34 +00:00
|
|
|
From 3b92ee7b7899b6beffb2b484c58326e36612a873 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
|
|
Date: Thu, 23 Dec 2021 14:52:56 +0000
|
|
|
|
Subject: [PATCH] net: phy: aquantia: add PHY_ID for AQR112R
|
|
|
|
|
|
|
|
As advised by Ian Chang this PHY is used in Puzzle devices.
|
|
|
|
|
|
|
|
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
|
|
---
|
2023-11-19 11:52:55 +00:00
|
|
|
drivers/net/phy/aquantia/aquantia_main.c | 10 ++++++++++
|
2022-10-18 20:26:34 +00:00
|
|
|
1 file changed, 10 insertions(+)
|
|
|
|
|
2023-11-19 11:52:55 +00:00
|
|
|
--- a/drivers/net/phy/aquantia/aquantia_main.c
|
|
|
|
+++ b/drivers/net/phy/aquantia/aquantia_main.c
|
2023-05-22 16:07:13 +00:00
|
|
|
@@ -27,6 +27,8 @@
|
2022-10-18 20:26:34 +00:00
|
|
|
#define PHY_ID_AQR112 0x03a1b662
|
2022-10-18 21:43:43 +00:00
|
|
|
#define PHY_ID_AQR412 0x03a1b712
|
|
|
|
#define PHY_ID_AQR113 0x31c31c40
|
2022-10-18 20:26:34 +00:00
|
|
|
+#define PHY_ID_AQR112C 0x03a1b790
|
|
|
|
+#define PHY_ID_AQR112R 0x31c31d12
|
2022-10-18 21:43:43 +00:00
|
|
|
|
|
|
|
#define MDIO_PHYXS_VEND_IF_STATUS 0xe812
|
|
|
|
#define MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK GENMASK(7, 3)
|
2023-11-19 11:52:55 +00:00
|
|
|
@@ -941,6 +943,30 @@ static struct phy_driver aqr_driver[] =
|
2022-10-18 21:43:43 +00:00
|
|
|
.handle_interrupt = aqr_handle_interrupt,
|
|
|
|
.read_status = aqr107_read_status,
|
2022-10-18 20:26:34 +00:00
|
|
|
},
|
2022-10-18 21:43:43 +00:00
|
|
|
+{
|
2022-10-18 20:26:34 +00:00
|
|
|
+ PHY_ID_MATCH_MODEL(PHY_ID_AQR112C),
|
|
|
|
+ .name = "Aquantia AQR112C",
|
|
|
|
+ .probe = aqr107_probe,
|
|
|
|
+ .config_aneg = aqr_config_aneg_set_prot,
|
|
|
|
+ .config_intr = aqr_config_intr,
|
|
|
|
+ .handle_interrupt = aqr_handle_interrupt,
|
|
|
|
+ .read_status = aqr107_read_status,
|
|
|
|
+ .get_sset_count = aqr107_get_sset_count,
|
|
|
|
+ .get_strings = aqr107_get_strings,
|
|
|
|
+ .get_stats = aqr107_get_stats,
|
|
|
|
+},
|
|
|
|
+{
|
|
|
|
+ PHY_ID_MATCH_MODEL(PHY_ID_AQR112R),
|
|
|
|
+ .name = "Aquantia AQR112R",
|
|
|
|
+ .probe = aqr107_probe,
|
|
|
|
+ .config_aneg = aqr_config_aneg_set_prot,
|
|
|
|
+ .config_intr = aqr_config_intr,
|
|
|
|
+ .handle_interrupt = aqr_handle_interrupt,
|
|
|
|
+ .read_status = aqr107_read_status,
|
|
|
|
+ .get_sset_count = aqr107_get_sset_count,
|
|
|
|
+ .get_strings = aqr107_get_strings,
|
|
|
|
+ .get_stats = aqr107_get_stats,
|
|
|
|
+},
|
2022-10-18 21:43:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
module_phy_driver(aqr_driver);
|
2023-11-19 11:52:55 +00:00
|
|
|
@@ -958,6 +984,8 @@ static struct mdio_device_id __maybe_unu
|
2022-10-18 20:26:34 +00:00
|
|
|
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR112) },
|
2022-10-18 21:43:43 +00:00
|
|
|
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR412) },
|
|
|
|
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR113) },
|
2022-10-18 20:26:34 +00:00
|
|
|
+ { PHY_ID_MATCH_MODEL(PHY_ID_AQR112C) },
|
|
|
|
+ { PHY_ID_MATCH_MODEL(PHY_ID_AQR112R) },
|
2022-10-18 21:43:43 +00:00
|
|
|
{ }
|
|
|
|
};
|
2023-05-22 16:07:13 +00:00
|
|
|
|