diff mbox

Fix no. of gpio cells in the pxa gpio binding doucmentation

Message ID 57CD0EB8.1030500@zilogic.com
State New
Headers show

Commit Message

Vijay Kumar Sept. 5, 2016, 6:20 a.m. UTC
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>

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Robert Jarzmik Sept. 18, 2016, 5:23 p.m. UTC | #1
Vijay Kumar <vijaykumar@zilogic.com> writes:

> 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>

Yes, that's correct. I'll add this to pxa/dt tree, thanks.

Cheers.

--
Robert
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

Index: linux-4.7.1/Documentation/devicetree/bindings/gpio/mrvl-gpio.txt
===================================================================
--- linux-4.7.1.orig/Documentation/devicetree/bindings/gpio/mrvl-gpio.txt
+++ linux-4.7.1/Documentation/devicetree/bindings/gpio/mrvl-gpio.txt
@@ -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>;
        };