]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dt-bindings: net: dsa: qca8k: document reset-gpios property
authorChristian Lamparter <chunkeey@gmail.com>
Tue, 25 Jun 2019 08:41:50 +0000 (10:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 18:17:30 +0000 (11:17 -0700)
This patch documents the qca8k's reset-gpios property that
can be used if the QCA8337N ends up in a bad state during
reset.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/dsa/qca8k.txt

index 93a7469e70d4131fbc2d7f2daffd1917020709ee..ccbc6d89325dcb0552e553577d16a046d4715bc1 100644 (file)
@@ -9,6 +9,10 @@ Required properties:
 - #size-cells: must be 0
 - #address-cells: must be 1
 
+Optional properties:
+
+- reset-gpios: GPIO to be used to reset the whole device
+
 Subnodes:
 
 The integrated switch subnode should be specified according to the binding
@@ -66,6 +70,7 @@ for the external mdio-bus configuration:
                        #address-cells = <1>;
                        #size-cells = <0>;
 
+                       reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
                        reg = <0x10>;
 
                        ports {
@@ -123,6 +128,7 @@ for the internal master mdio-bus configuration:
                        #address-cells = <1>;
                        #size-cells = <0>;
 
+                       reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
                        reg = <0x10>;
 
                        ports {