OSDN Git Service

net: dsa: mt7530: Add support for port 5
authorRené van Dorst <opensource@vdorst.com>
Mon, 2 Sep 2019 13:02:26 +0000 (15:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2019 22:28:23 +0000 (00:28 +0200)
commit38f790a805609b255f0cacc097e2df4324a3d041
tree6abb4c300a7aca2281f03ad4c6a2e77808815de8
parent4f358cbd054d905329718443a4dd781d26ea1079
net: dsa: mt7530: Add support for port 5

Adding support for port 5.

Port 5 can muxed/interface to:
- internal 5th GMAC of the switch; can be used as 2nd CPU port or as
  extra port with an external phy for a 6th ethernet port.
- internal PHY of port 0 or 4; Used in most applications so that port 0
  or 4 is the WAN port and interfaces with the 2nd GMAC of the SOC.

Signed-off-by: René van Dorst <opensource@vdorst.com>
Tested-by: Frank Wunderlich <frank-w@public-files.de>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h