]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ethernet: mtk_eth_soc: add support for MT7981 SoC
authorDaniel Golle <daniel@makrotopia.org>
Sun, 19 Mar 2023 12:56:28 +0000 (12:56 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 21 Mar 2023 02:47:59 +0000 (19:47 -0700)
commitf5d43ddd334b7c32fcaed9ba46afbd85cb467f1f
tree02b8dc3224ef9277dbdf199e2b58b85533095e19
parent56aecc0a655d997342ca85a3dd1f59715f2b3349
net: ethernet: mtk_eth_soc: add support for MT7981 SoC

The MediaTek MT7981 SoC comes with two 1G/2.5G SGMII ports, just like
MT7986.

In addition MT7981 is equipped with a built-in 1000Base-T PHY which can
be used with GMAC1.

As many MT7981 boards make use of inverting SGMII signal polarity, add
new device-tree attribute 'mediatek,pn_swap' to support them.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_eth_path.c
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h
drivers/net/ethernet/mediatek/mtk_sgmii.c