diff options
author | Andrew Lunn <andrew@lunn.ch> | 2015-11-20 02:56:23 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-23 16:53:10 (GMT) |
commit | cc30c16344fc3a25153175c7eb9037b2136cd466 (patch) | |
tree | 47beff192fa89bd934323581f5cc9fed18052a0a /Documentation | |
parent | 3f8c0f7efb4fcac11f31afa97584d06118c614bb (diff) | |
download | linux-cc30c16344fc3a25153175c7eb9037b2136cd466.tar.xz |
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 04e6bef..5fdbbcd 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>; |