net: phy: intel-xway: Add RGMII internal delay configuration
authorMartin Schiller <ms@dev.tdt.de>
Tue, 20 Jul 2021 11:56:47 +0000 (13:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2021 14:23:16 +0000 (07:23 -0700)
commitbe393dd685d215d44a43f5c5dcb8f7e57668d00e
tree0abf4feec799cc2f27de4af4c5967bb665e1a97a
parentd34869b44a174bf5cde5a45ab5a1eacc72741b49
net: phy: intel-xway: Add RGMII internal delay configuration

This adds the possibility to configure the RGMII RX/TX clock skew via
devicetree.

Simply set phy mode to "rgmii-id", "rgmii-rxid" or "rgmii-txid" and add
the "rx-internal-delay-ps" or "tx-internal-delay-ps" property to the
devicetree.

Furthermore, a warning is now issued if the phy mode is configured to
"rgmii" and an internal delay is set in the phy (e.g. by pin-strapping),
as in the dp83867 driver.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/intel-xway.c