[openwrt/openwrt] realtek: mdio: add more Aquantia PHY IDs
LEDE Commits
lede-commits at lists.infradead.org
Sun Jan 25 03:12:21 PST 2026
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/19e1e508ea4067e8307a64c2ffa7ce3221579d62
commit 19e1e508ea4067e8307a64c2ffa7ce3221579d62
Author: Jonas Jelonek <jelonek.jonas at gmail.com>
AuthorDate: Sun Jan 11 11:12:57 2026 +0000
realtek: mdio: add more Aquantia PHY IDs
Add a PHY ID for Aquantia AQR813 which is an Octa-PHY found in some
Realtek switches.
Add another PHY ID for another revision of AQR113C, also found in some
Realtek switches.
Signed-off-by: Jonas Jelonek <jelonek.jonas at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21515
Signed-off-by: Robert Marko <robert.marko at sartura.hr>
---
.../linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c b/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c
index bcc8f2b775..0e52675782 100644
--- a/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c
+++ b/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c
@@ -13,7 +13,9 @@
#define RTMDIO_MAX_SMI_BUS 4
#define RTMDIO_PAGE_SELECT 0x1f
-#define RTMDIO_PHY_AQR113C 0x31c31c12
+#define RTMDIO_PHY_AQR113C_A 0x31c31c12
+#define RTMDIO_PHY_AQR113C_B 0x31c31c13
+#define RTMDIO_PHY_AQR813 0x31c31cb2
#define RTMDIO_PHY_RTL8221B_VB_CG 0x001cc849
#define RTMDIO_PHY_RTL8221B_VM_CG 0x001cc84a
#define RTMDIO_PHY_RTL8224 0x001ccad0
@@ -605,7 +607,9 @@ static void rtmdio_get_phy_info(struct mii_bus *bus, int addr, struct rtmdio_phy
}
switch(phyinfo->phy_id) {
- case RTMDIO_PHY_AQR113C:
+ case RTMDIO_PHY_AQR113C_A:
+ case RTMDIO_PHY_AQR113C_B:
+ case RTMDIO_PHY_AQR813:
phyinfo->mac_type = RTMDIO_PHY_MAC_2G_PLUS;
phyinfo->poll_duplex = RTMDIO_PHY_POLL_MMD(1, 0x0000, 8);
phyinfo->poll_adv_1000 = RTMDIO_PHY_POLL_MMD(7, 0xc400, 15);
More information about the lede-commits
mailing list