net: phy: broadcom: Set proper 1000BaseX/SGMII interface mode for BCM54616S
authorRobert Hancock <robert.hancock@calian.com>
Tue, 16 Feb 2021 22:54:52 +0000 (16:54 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2021 23:23:23 +0000 (15:23 -0800)
commit3afd0218992a8d1398e9791d6c2edd4c948ae7ee
tree5583eee50cabe4500cab4c34ae5df6b0bc4271a5
parent966df6ded24d537834402a421d46ef31b3647a78
net: phy: broadcom: Set proper 1000BaseX/SGMII interface mode for BCM54616S

The default configuration for the BCM54616S PHY may not match the desired
mode when using 1000BaseX or SGMII interface modes, such as when it is on
an SFP module. Add code to explicitly set the correct mode using
programming sequences provided by Bel-Fuse:

https://www.belfuse.com/resources/datasheets/powersolutions/ds-bps-sfp-1gbt-05-series.pdf
https://www.belfuse.com/resources/datasheets/powersolutions/ds-bps-sfp-1gbt-06-series.pdf

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c
include/linux/brcmphy.h