net/macb: add support for resetting PHY using GPIO
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Fri, 11 Dec 2015 10:34:53 +0000 (11:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Dec 2015 03:04:12 +0000 (22:04 -0500)
commit5833e0526820c3216de8ae60661fb307c89c8710
tree7e81f56638235fbc4b22c769b57c59353e70b694
parentbda13fed677bdb423b97dcf054f68b9eb4c6dbfb
net/macb: add support for resetting PHY using GPIO

With device tree it is no more possible to reset the PHY at board
level. Furthermore, doing in the driver allow to power down the PHY when
the network interface is no more used.

This reset can't be done at the PHY driver level. The PHY must be able to
answer the to the mii bus scan to let the kernel creating a PHY device.

The patch introduces a new optional property "phy-reset-gpios" inspired
from the one use for the FEC.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/macb.txt
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h