net-next: dsa: add dsa support for Mediatek MT7530 switch
MT7530 is a 7-ports Gigabit Ethernet Switch that could be found on Mediatek router platforms such as MT7623A or MT7623N platform which includes 7-port Gigabit Ethernet MAC and 5-port Gigabit Ethernet PHY. Among these ports, The port from 0 to 4 are the user ports connecting with the remote devices while the port 5 and 6 are the CPU ports connecting into Mediatek Ethernet GMAC. For port 6, it can communicate with the CPU via Mediatek Ethernet GMAC through either the TRGMII or RGMII which could be controlled by phy-mode in the dt-bindings to specify which mode is preferred to use. And for port 5, only RGMII can be specified. However, currently, only port 6 is being supported in this DSA driver. The driver is made with the reference to qca8k and other existing DSA driver. The most of the essential callbacks of the DSA are already support in the driver, including tag insert for user port distinguishing, port control, bridge offloading, STP setup and ethtool operation to allow DSA to model each user port into a standalone netdevice as the other DSA driver had done. Signed-off-by:Sean Wang <sean.wang@mediatek.com> Signed-off-by:
Landen Chao <Landen.Chao@mediatek.com> Reviewed-by:
Andrew Lunn <andrew@lunn.ch> Reviewed-by:
Florian Fainelli <f.fainelli@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
mentioned in commit 784320ed
-
mentioned in commit f67f34a8
-
mentioned in commit af7f1539
-
mentioned in commit f1f7d1a2
-
mentioned in commit e4a7e141
-
mentioned in commit a0316de9
-
mentioned in commit cebb5cee
-
mentioned in commit aa528e7d
-
mentioned in commit 768f94c5
-
mentioned in commit 789d5286
-
mentioned in commit 50f68991
-
mentioned in commit a50f84af
-
mentioned in commit 8332cf6f
-
mentioned in commit d7c66073
-
mentioned in commit 4ae90f90
-
mentioned in commit ac259251
-
mentioned in commit 5c1e6df3
-
mentioned in commit 25a2f73e
-
mentioned in commit 16f55acf
-
mentioned in commit 4d61084c
-
mentioned in commit cb302aa9
-
mentioned in commit 839308cf
-
mentioned in commit c210fb3c
-
mentioned in commit 70424a8f
-
mentioned in commit be4512b9
-
mentioned in commit f1fa919e
-
mentioned in commit 86c0c154
-
mentioned in commit eb6535c6
-
mentioned in commit 41a004ff
-
mentioned in commit 21b9d89d