diff options
author | Andrew Lunn <andrew@lunn.ch> | 2015-11-20 03:56:23 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-23 11:53:10 -0500 |
commit | cc30c16344fc3a25153175c7eb9037b2136cd466 (patch) | |
tree | 47beff192fa89bd934323581f5cc9fed18052a0a /Documentation | |
parent | 3f8c0f7efb4fcac11f31afa97584d06118c614bb (diff) | |
download | linux-stable-cc30c16344fc3a25153175c7eb9037b2136cd466.tar.gz linux-stable-cc30c16344fc3a25153175c7eb9037b2136cd466.tar.bz2 linux-stable-cc30c16344fc3a25153175c7eb9037b2136cd466.zip |
net: dsa: Add support for a switch reset gpio
Some boards have a gpio line tied to the switch reset pin. Allow this
gpio to be retrieved from the device tree, and take the switch out of
reset before performing the probe.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/net/dsa/dsa.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.txt b/Documentation/devicetree/bindings/net/dsa/dsa.txt index 04e6bef3ac3f..5fdbbcdf8c4b 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.txt +++ b/Documentation/devicetree/bindings/net/dsa/dsa.txt @@ -31,6 +31,8 @@ A switch child node has the following optional property: switch. Must be set if the switch can not detect the presence and/or size of a connected EEPROM, otherwise optional. +- reset-gpios : phandle and specifier to a gpio line connected to + reset pin of the switch chip. A switch may have multiple "port" children nodes @@ -114,6 +116,7 @@ Example: #size-cells = <0>; reg = <17 1>; /* MDIO address 17, switch 1 in tree */ mii-bus = <&mii_bus1>; + reset-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; switch1port0: port@0 { reg = <0>; |