phy: Add RGMII support on lan966x
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Thu, 1 Sep 2022 12:14:55 +0000 (14:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 13 Sep 2022 13:44:53 +0000 (19:14 +0530)
commitb0131107335d21d0b25019ce18d82e93b13b9559
tree885d17e882a562a26bb9a8add51273178b3611c3
parentf340ed8664a55a467850ec1689996e63d9ee971a
phy: Add RGMII support on lan966x

The serdes driver contains also a mux to decide which interface type to
use. Currently the driver supports GMII/SGMII/QSGMII and partially RGMII.
As it doesn't support all the other RGMII interfaces like
RGMII_TXID/RXID/ID and it could run only at 1G.
Therefore extend this for all the other speeds(10/100) and also allow
the other interfaces.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20220901121455.245103-1-horatiu.vultur@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/microchip/lan966x_serdes.c
drivers/phy/microchip/lan966x_serdes_regs.h