net: phy: DP83822: Add ability to advertise Fiber connection
authorDan Murphy <dmurphy@ti.com>
Thu, 27 Aug 2020 13:45:09 +0000 (08:45 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2020 13:57:58 +0000 (06:57 -0700)
commit5dc39fd5ef35bc6919759fa99246581b1adc6b82
treeb0bee94644ba35dda3d9a6f7b735c4fe04f78407
parent7a63d769a8849bbb98dd041c607c1c299f52be71
net: phy: DP83822: Add ability to advertise Fiber connection

The DP83822 can be configured to use a Fiber connection.  The strap
register is read to determine if the device has been configured to use
a fiber connection.  With the fiber connection the PHY can be configured
to detect whether the fiber connection is active by either a high signal
or a low signal.

Fiber mode is only applicable to the DP83822 so rework the PHY match
table so that non-fiber PHYs can still use the same driver but not call
or use any of the fiber features.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83822.c