diff options
author | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2015-12-17 10:51:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-17 15:53:22 -0500 |
commit | 270c499f0993a6b3a591eda6a5b96e873b1d84fa (patch) | |
tree | f39bdbfe623ebe46cd2d45ff7a7c468b418cc151 /Documentation/devicetree/bindings/net | |
parent | 08f411d6a42dfa32842ef36e0e9743c34a7c942f (diff) | |
download | op-kernel-dev-270c499f0993a6b3a591eda6a5b96e873b1d84fa.zip op-kernel-dev-270c499f0993a6b3a591eda6a5b96e873b1d84fa.tar.gz |
net/macb: Update device tree binding for resetting PHY using GPIO
Instead of being at the MAC level the reset gpio preperty is moved at the
PHY child node level. It is still managed by the MAC, but from the point
of view of the binding it make more sense to be part of the PHY node.
This commit also fixes a build errors if GPIOLIB is not selected.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/devicetree/bindings/net')
-rw-r--r-- | Documentation/devicetree/bindings/net/macb.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt index 4a7fb6c..38c8e84 100644 --- a/Documentation/devicetree/bindings/net/macb.txt +++ b/Documentation/devicetree/bindings/net/macb.txt @@ -19,8 +19,8 @@ Required properties: Optional elements: 'tx_clk' - clocks: Phandles to input clocks. -Optional properties: -- phy-reset-gpios : Should specify the gpio for phy reset +Optional properties for PHY child node: +- reset-gpios : Should specify the gpio for phy reset Examples: @@ -32,4 +32,8 @@ Examples: local-mac-address = [3a 0e 03 04 05 06]; clock-names = "pclk", "hclk", "tx_clk"; clocks = <&clkc 30>, <&clkc 30>, <&clkc 13>; + ethernet-phy@1 { + reg = <0x1>; + reset-gpios = <&pioE 6 1>; + }; }; |