]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: pxa: fix no. of gpio cells in the pxa gpio binding documentation
authorVijay Kumar <vijaykumar@zilogic.com>
Mon, 5 Sep 2016 06:20:40 +0000 (11:50 +0530)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Fri, 18 Nov 2016 16:09:43 +0000 (17:09 +0100)
Fix the no. of gpio cells in pxa gpio binding documentation.

The no. of gpio cells for the pxa gpio is actually 2. But is
incorrectly specified as 1, in the binding documentation. From the
driver code, the second cell specifies the standard flags as described
in gpio.txt.

Signed-off-by: Vijay Kumar B. <vijaykumar@zilogic.com>
[fixed subject line]
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Documentation/devicetree/bindings/gpio/mrvl-gpio.txt

index c3d016532d8e69b81fbb834057c5cd4976f430ba..30fd2201b3d4cfc8fbc3fe7b1f7a39854c1d3d7e 100644 (file)
@@ -17,7 +17,9 @@ Required properties:
 - #interrupt-cells: Specifies the number of cells needed to encode an
   interrupt source.
 - gpio-controller : Marks the device node as a gpio controller.
-- #gpio-cells : Should be one.  It is the pin number.
+- #gpio-cells : Should be two.  The first cell is the pin number and
+  the second cell is used to specify flags. See gpio.txt for possible
+  values.
 
 Example for a MMP platform:
 
@@ -27,7 +29,7 @@ Example for a MMP platform:
                interrupts = <49>;
                interrupt-names = "gpio_mux";
                gpio-controller;
-               #gpio-cells = <1>;
+               #gpio-cells = <2>;
                interrupt-controller;
                #interrupt-cells = <1>;
       };