net: mediatek: move MT7531 MMIO MDIO to dedicated driver
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 20 Sep 2025 16:09:44 +0000 (18:09 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Wed, 22 Oct 2025 09:16:10 +0000 (11:16 +0200)
commitb24268d151a0c28772785e14703491364becda5b
treeaf4256df94a25d1887041714b8d3d5f51f7964fb
parentca4264db44c1ece69d208f63c4bfe607c60751d9
net: mediatek: move MT7531 MMIO MDIO to dedicated driver

In preparation for support of MDIO on AN7581, move the MT7531 MMIO logic
to a dedicated driver and permit usage of the mdio read/write function
to the mtk_eth driver.

This only affect MT7988 that can use MMIO operation to access the Switch
register. The MT7988 code is updated to make use of the external driver.

This permits Airoha driver to make use of DM_MDIO to bind for the MT7531
driver that have the same exact register.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/mdio-mt7531-mmio.c [new file with mode: 0644]
drivers/net/mdio-mt7531-mmio.h [new file with mode: 0644]
drivers/net/mtk_eth/Kconfig
drivers/net/mtk_eth/mt7988.c