net: phy: air_en8811: add support for Airoha AN8811HB PHY
Subsystems (2)
PATCH 1/1 net: phy: air_en8811: add support for Airoha AN8811HB PHY
Add support for the Airoha AN8811HB 2.5 Gigabit PHY to the existing en8811h driver. This PHY supports 10/100/1000/2500 Mbps speeds.
Update the driver to recognize the AN8811HB PHY ID and handle its specific firmware loading requirements. The firmware loading mechanism remains consistent with the existing implementation.
This driver is based on:
- Linux upstream PHY subsystem (v7.0-rc1)
- air_an8811hb v0.0.4 out-of-tree uboot driver written by "Lucien.Jheng <[email protected]>"
Tested on MT7987 RFB board.
---
drivers/net/phy/airoha/Kconfig | 2 +- drivers/net/phy/airoha/air_en8811.c | 695 ++++++++++++++++++++++++++-- 2 files changed, 652 insertions(+), 45 deletions(-)
drivers/net/phy/airoha/Kconfig +1 -1
@@ -8,4 +8,4 @@ config PHY_AIROHA_EN8811 select FW_LOADER help AIROHA EN8811H supported. - + AIROHA AN8811HB supported.
drivers/net/phy/airoha/air_en8811.c +651 -44
888 lines not on this page · raw message
Signature · 4 lines
2.43.0 base-commit: 8fd76675efbe7af785ccc1ba1ac8b9f7e10f6715 branch: next
Quoted 52 lines · Tommy Shih
Add support for the Airoha AN8811HB 2.5 Gigabit PHY to the existing en8811h driver. This PHY supports 10/100/1000/2500 Mbps speeds.
Update the driver to recognize the AN8811HB PHY ID and handle its specific firmware loading requirements. The firmware loading mechanism remains consistent with the existing implementation.
This driver is based on:
- Linux upstream PHY subsystem (v7.0-rc1)
-air_an8811hbv0.0.4 out-of-tree uboot driver written by "Lucien.Jheng <[email protected]>"Tested on MT7987 RFB board.
Signed-off-by Tommy Shih <[email protected]>Reviewed-by Lucien.Jheng <[email protected]>---
drivers/net/phy/airoha/Kconfig | 2 +- drivers/net/phy/airoha/air_en8811.c | 695 ++++++++++++++++++++++++++-- 2 files changed, 652 insertions(+), 45 deletions(-)drivers/net/phy/airoha/Kconfig +1
-1@@ -8,4 +8,4 @@ config PHY_AIROHA_EN8811 select FW_LOADER help AIROHA EN8811H supported. - + AIROHA AN8811HB supported.drivers/net/phy/airoha/air_en8811.c +2
-2@@ -1,46 +1,37 @@// SPDX-License-Identifier: GPL-2.0+ /* -* Driver for the Airoha EN8811H 2.5 Gigabit PHY. +* Driver for the Airoha EN8811H and AN8811HB 2.5 Gigabit PHY. * -* Limitations of the EN8811H: +* Limitations: * - Only full duplex supported * - Forced speed (AN off) is not supported by hardware (100Mbps) * * Source originated from linux air_en8811h.c *
drivers/net/phy/airoha/air_en8811.c line 18
Quoted 10 lines
drivers/net/phy/airoha/air_en8811.c +2
-2-* Copyright (C) 2025 Airoha Technology Corp. +* Copyright (C) 2025, 2026 Airoha Technology Corp. */ -#include <phy.h> #include <errno.h> #include <log.h> #include <env.h> #include <malloc.h> +#include <fs.h>
I don't see where you are using anything provided by the fs.h header.
drivers/net/phy/airoha/air_en8811.c line 27
Quoted 9 lines
drivers/net/phy/airoha/air_en8811.c +4
-0#include <fw_loader.h> #include <asm/unaligned.h> +#include <version.h> +#include <linux/delay.h> #include <linux/iopoll.h> #include <linux/bitops.h> +#include <linux/bitfield.h> #include <linux/compat.h> +#include <linux/kernel.h>
... and for sure you don't need that one.
drivers/net/phy/airoha/air_en8811.c line 29
Quoted 2 lines
drivers/net/phy/airoha/air_en8811.c +0
-0#include <dm/device_compat.h> #include <u-boot/crc.h>
Please carefully check which additional headers are actually needed.
Hi Daniel
Thank you for pointing this out. I will check and remove the additional headers in the next version.
-----Original Message-----
From: Daniel Golle <[email protected]>
Sent: Tuesday, February 24, 2026 8:01 PM
To: Tommy Shih (施易廷) <[email protected]>
Cc: Christian Marangi <[email protected]>; Jerome Forissier <[email protected]>; Joe Hershberger <[email protected]>; Lucien . Jheng <[email protected]>; Marek Vasut <[email protected]>; Ramon Fried <[email protected]>; Tom Rini <[email protected]>; [email protected]; [email protected]; Lucien Jheng (鄭祥鈞) <[email protected]>
Subject: Re: [PATCH v1] net: phy: air_en8811: add support for Airoha AN8811HB PHY
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 62 lines · Tommy Shih
Add support for the Airoha AN8811HB 2.5 Gigabit PHY to the existing en8811h driver. This PHY supports 10/100/1000/2500 Mbps speeds.
Update the driver to recognize the AN8811HB PHY ID and handle its specific firmware loading requirements. The firmware loading mechanism remains consistent with the existing implementation.
This driver is based on:
- Linux upstream PHY subsystem (v7.0-rc1)
-air_an8811hbv0.0.4 out-of-tree uboot driver written by "Lucien.Jheng <[email protected]>"Tested on MT7987 RFB board.
Link:
https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kerne
l/git/next/linux-next.git/commit/?id=6f1769ec5892ac41d82e820d94dcdc68e 904aa99__;!!CTRNKA9wMg0ARbw!mEnAw9tiFMEFMmZknVNPPxkzu37z3Pr9_L6Azy_fo0 1EJAXaVdNbeov2Lp3WKHRb04O4OmfTitaIooepMIg$
Link:
https://urldefense.com/v3/__https://patchwork.kernel.org/project/netde
vbpf/patch/[email protected]/__;!!CTRNKA9wMg0ARbw !mEnAw9tiFMEFMmZknVNPPxkzu37z3Pr9_L6Azy_fo01EJAXaVdNbeov2Lp3WKHRb04O4O mfTitaIh73KJlI$Signed-off-by Tommy Shih <[email protected]>Reviewed-by Lucien.Jheng <[email protected]>---
drivers/net/phy/airoha/Kconfig | 2 +- drivers/net/phy/airoha/air_en8811.c | 695 ++++++++++++++++++++++++++-- 2 files changed, 652 insertions(+), 45 deletions(-)(quoted diff) +0
-0b/drivers/net/phy/airoha/Kconfig index
999564e4848..fcace9a24ac100644drivers/net/phy/airoha/Kconfig +1
-1@@ -8,4 +8,4 @@ config PHY_AIROHA_EN8811 select FW_LOADER help AIROHA EN8811H supported. - + AIROHA AN8811HB supported.drivers/net/phy/airoha/air_en8811.c +2
-2@@ -1,46 +1,37 @@// SPDX-License-Identifier: GPL-2.0+ /* -* Driver for the Airoha EN8811H 2.5 Gigabit PHY. +* Driver for the Airoha EN8811H and AN8811HB 2.5 Gigabit PHY. * -* Limitations of the EN8811H: +* Limitations: * - Only full duplex supported * - Forced speed (AN off) is not supported by hardware (100Mbps) * * Source originated from linux air_en8811h.c *
drivers/net/phy/airoha/air_en8811.c line 18
Quoted 10 lines
drivers/net/phy/airoha/air_en8811.c +2
-2-* Copyright (C) 2025 Airoha Technology Corp. +* Copyright (C) 2025, 2026 Airoha Technology Corp. */ -#include <phy.h> #include <errno.h> #include <log.h> #include <env.h> #include <malloc.h> +#include <fs.h>
I don't see where you are using anything provided by the fs.h header.
drivers/net/phy/airoha/air_en8811.c line 27
Quoted 9 lines
drivers/net/phy/airoha/air_en8811.c +4
-0#include <fw_loader.h> #include <asm/unaligned.h> +#include <version.h> +#include <linux/delay.h> #include <linux/iopoll.h> #include <linux/bitops.h> +#include <linux/bitfield.h> #include <linux/compat.h> +#include <linux/kernel.h>
... and for sure you don't need that one.
drivers/net/phy/airoha/air_en8811.c line 29
Quoted 2 lines
drivers/net/phy/airoha/air_en8811.c +0
-0#include <dm/device_compat.h> #include <u-boot/crc.h>
Please carefully check which additional headers are actually needed.