net: dsa: mt7530: Add MT7621 TRGMII mode support
authorRené van Dorst <opensource@vdorst.com>
Thu, 20 Jun 2019 12:21:55 +0000 (14:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Jun 2019 23:58:24 +0000 (16:58 -0700)
commit7ef6f6f8d237fa6724108b57d9706cb5069688e4
treeafc69d89c4c42d77dc56f347cb5f591cc4ce6380
parent8efaa653a8a540c2cc4b3a7bb4459ec5ea27f1fd
net: dsa: mt7530: Add MT7621 TRGMII mode support

This patch add support TRGMII mode for MT7621 internal MT7530 switch.
MT7621 TRGMII has only one fix speed mode of 1200MBit.

Also adding support for mt7530 25MHz and 40MHz crystal clocksource.
Values are based on Banana Pi R2 bsp [1].

Don't change MT7623 registers on a MT7621 device.

[1] https://github.com/BPI-SINOVOIP/BPI-R2-bsp/blob/master/linux-mt/drivers/net/ethernet/mediatek/gsw_mt7623.c#L769

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