net: phy: Allow BCM54616S PHY to setup internal TX/RX clock delay
authorTao Ren <taoren@fb.com>
Mon, 5 Nov 2018 22:35:40 +0000 (14:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Nov 2018 19:16:58 +0000 (11:16 -0800)
commit042cb56478152b31c50bea8a784fc826891eb38e
tree1a9d24aab5d73783ca5f629194a7352f43e362a9
parent8053e5b93eca9b011f7b79bb019bf1eeaaf96c4b
net: phy: Allow BCM54616S PHY to setup internal TX/RX clock delay

This patch allows users to enable/disable internal TX and/or RX clock
delay for BCM54616S PHYs so as to satisfy RGMII timing specifications.

On a particular platform, whether TX and/or RX clock delay is required
depends on how PHY connected to the MAC IP. This requirement can be
specified through "phy-mode" property in the platform device tree.

The patch is inspired by commit 733336262b28 ("net: phy: Allow BCM5481x
PHYs to setup internal TX/RX clock delay").

Signed-off-by: Tao Ren <taoren@fb.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c