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