1 From 9e42a2ea7f6703e2092c39171c2bf1fd7eec0bd3 Mon Sep 17 00:00:00 2001
2 From: Chris Packham <chris.packham@alliedtelesis.co.nz>
3 Date: Tue, 11 Jun 2024 17:34:14 +1200
4 Subject: [PATCH] net: phy: realtek: add support for rtl8224 2.5Gbps PHY
6 The Realtek RTL8224 PHY is a 2.5Gbps capable PHY. It only uses the
7 clause 45 MDIO interface and can leverage the support that has already
8 been added for the other 822x PHYs.
10 Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
11 Link: https://lore.kernel.org/r/20240611053415.2111723-1-chris.packham@alliedtelesis.co.nz
12 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
14 drivers/net/phy/realtek.c | 8 ++++++++
15 1 file changed, 8 insertions(+)
17 --- a/drivers/net/phy/realtek.c
18 +++ b/drivers/net/phy/realtek.c
19 @@ -1318,6 +1318,14 @@ static struct phy_driver realtek_drvs[]
20 .read_page = rtl821x_read_page,
21 .write_page = rtl821x_write_page,
23 + PHY_ID_MATCH_EXACT(0x001ccad0),
24 + .name = "RTL8224 2.5Gbps PHY",
25 + .get_features = rtl822x_c45_get_features,
26 + .config_aneg = rtl822x_c45_config_aneg,
27 + .read_status = rtl822x_c45_read_status,
28 + .suspend = genphy_c45_pma_suspend,
29 + .resume = rtlgen_c45_resume,
31 PHY_ID_MATCH_EXACT(0x001cc961),
32 .name = "RTL8366RB Gigabit Ethernet",
33 .config_init = &rtl8366rb_config_init,