]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit159a07604a99bd01e7db112de08d53dc4fcad109
tree7cf7377276f4e82b10ef2dc1b53c290e829af7e2
parent11d3c949b4ca37124fcace1ee3a5c2db0737a268
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