diff options
author | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2015-12-11 10:34:53 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-15 03:04:12 (GMT) |
commit | 5833e0526820c3216de8ae60661fb307c89c8710 (patch) | |
tree | 7e81f56638235fbc4b22c769b57c59353e70b694 /Documentation | |
parent | bda13fed677bdb423b97dcf054f68b9eb4c6dbfb (diff) | |
download | linux-5833e0526820c3216de8ae60661fb307c89c8710.tar.xz |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/net/macb.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt index b5d7976..4a7fb6c 100644 --- a/Documentation/devicetree/bindings/net/macb.txt +++ b/Documentation/devicetree/bindings/net/macb.txt @@ -19,6 +19,9 @@ Required properties: Optional elements: 'tx_clk' - clocks: Phandles to input clocks. +Optional properties: +- phy-reset-gpios : Should specify the gpio for phy reset + Examples: macb0: ethernet@fffc4000 { |