How to add EN8801SC PHY driver to openwrt

Dears:
Is there someone knows how to add EN8801SC PHY driver to openwrt?
thanks.

is it supported by the Linux kernel ?

  • get it supported in mainline linux
  • backport it to kernel v6.1, submit a pull request containing the backport and any config/ packaging changes to enable it for your device/ target, then it may make it into 24.xy.0

Hello slh:

What is the meaning of "get it supported in mainline linux". Get get driver source code?

Is there some commits that can be referenced?

Thanks.

Hello frollic:

This phy is used by ASUS RT-AX57_GO. The kernel version is 5.4.x . And the driver is open source.
So I think it is supported by the Linux kernel.
I'm not sure if my understanding is correct.
Thanks.

that doesn't really mean anything, since it's a customized kernel made by the vendor.

you found the source code for the driver, cool!

thinking doesn't really cut it here, it's yes or no.

if it's supported it needs to get packaged by openwrt.
if it isn't, it needs to be added to linux 1st, as described by @slh.

FCC photos will be available in two+ months

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/

How to do this ?

https://www.kernel.org/doc/html/v5.8/process/submitting-drivers.html

looking at the firmware binary and the gpl tarball, the device is a mediatek filogic (MT7981 to be specific)
the dts sits at

asuswrt\release\src-mtk-MT798X\linux\linux-5.4.x\arch\arm64\boot\dts\mediatek\

within the archive