mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-04-24 04:31:38 +02:00
Backport upstream driver and apply pending downstream patches to support using the MaxLinear MxL86252 and MxL86282 switches. The driver supports a native proprietary 8-byte DSA special tag format (mxl862xx) as well as using an 802.1Q-based DSA tag (mxl862xx-8021q). All basic bridge, VLAN and LAG operations are supported. A single port can be used as mirror port. Hardware counters are made available as ethtool stats or directly serve as interface counters (bytes, packets). The switch runs a complex ZephyrOS-based firmware on an integrated ARC microcontroller, the driver uses the firmware management API over MDIO to interact with the switch hardware. Note that the firmware needs to be rather recent (WSP 1.0.78 or later) to work well with this driver. It can be updated at runtime using devlink. Signed-off-by: Daniel Golle <daniel@makrotopia.org>