]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: add post PHY reset delay DT property
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Tue, 23 May 2017 09:48:08 +0000 (11:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 May 2017 19:25:22 +0000 (15:25 -0400)
commit2ad2a4beb9ae9b731e5c6672517f3c6cfe639ebf
tree7cf7377276f4e82b10ef2dc1b53c290e829af7e2
parentbf2d297db3b48b05a30bceff3cf2e8bfe18c5c91
net: fec: add post PHY reset delay DT property

Some PHY require to wait for a bit after the reset GPIO has been
toggled. This adds support for the DT property `phy-reset-post-delay`
which gives the delay in milliseconds to wait after reset.

If the DT property is not given, no delay is observed. Post reset delay
greater than 1000ms are invalid.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/fsl-fec.txt
drivers/net/ethernet/freescale/fec_main.c