]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita0d4b7c7569542f22f11145605106e8175536960
tree0abf4feec799cc2f27de4af4c5967bb665e1a97a
parente5ea2ddb25ab3965bf70c244f0c43946da902097
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