AN8855 switch support for Xiaomi AX3000T

Hello,

I was wondering if we could get the help of a developer to incorporate support for the AN8855 switch for the Xiaomi AX3000T into the main snapshot. There was a hardware revision for the Xiaomi AX3000T. This new version of the router doesn't fully support openwrt. The ethernet ports don't work because the AN8855 switch support isn't added yet.

this commit: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/ac95e9fe1b014ad01c18256465f6519696858fbf

I apologize if this is the incorrect procedure to request this, please let me know if I should do something different to bring this issue up.

thanks!

4 Likes

Is the switch supported by the Linux kernel ?

1 Like

Sorry if this is a stupid question, how do I double check that? I believe it is though because looking at the commit it states:

[][kernel][common][net][Add AN8855 dsa and gsw driver]

[Description]
Add AN8855 dsa and gsw driver.
AN8855 is a 5-port giga switch with 1 HSGMII port5 as the CPU port.

This patch adds the dsa driver for modern OpenWRT support, and gsw
driver to support legacy swconfig.

Mediatek obviously added it to their local copy of a 5.4 kernel, but were the changes also submitted upstream ?

How would i check that?

I did find this: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/db6a594df92e5ea0ed5b45ff28e61d6c3e8460de

[][openwrt][common][config][Fix default Linux kernel config of AN8855 dsa tag]

[Description]
Fix default Linux kernel config of AN8855 dsa tag.

Without this patch, OpenWRT build flow might stop to wait user to choose
the "N/m/y" option of the correct AN8855 dsa tag config in Kconfig.

Thanks for your help! Sorry if my questions are dumb.

You need to search for it, Google returns zero hits when searching for AN8855 site:kernel.org.

1 Like

Other than the mediatek commit to their own fork of the kernel, there are no other relevant references in search engines.

Like I mentioned in the AX3000T thread, people will have to be patient about this. It's mediatek hardware, so it has a high chance of being added to the Linux kernel at some point.

2 Likes

I agree, feels like OP is barking up the wrong three here, even if it's probably possible to apply the AN8855 patches to a 5.4 kernel, and try to roll forward.

2 Likes

Thank you for the input. I thought it would be easier.

1 Like

Looks like there is hope! With a patch from @Linaro

3 Likes

Here is a working stable version that supports the an8855 switch and winbond chip. Please use only if you are experienced with debricking these units with UART. Otherwise, please wait until official OpenWrt adaptation. Thank you @remittor and @Linaro!

4 Likes

Works great! No issues flashing or usage.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.