diff mbox

gpio: gpio-dwapb size-cells should be two

Message ID 1394813334-22549-1-git-send-email-delicious.quinoa@gmail.com
State Accepted, archived
Commit 1d4a2166f9501fd5b564b33414a2aa9c493fdfb8
Headers show

Commit Message

Alan Tull March 14, 2014, 4:08 p.m. UTC
From: Alan Tull <atull@altera.com>

Fix size-cells to show use of OF_GPIO_ACTIVE_LOW flag.

Signed-off-by: Alan Tull <atull@altera.com>
---
 .../devicetree/bindings/gpio/snps-dwapb-gpio.txt   |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Linus Walleij March 14, 2014, 4:27 p.m. UTC | #1
On Fri, Mar 14, 2014 at 5:08 PM, Alan Tull <delicious.quinoa@gmail.com> wrote:

> From: Alan Tull <atull@altera.com>
>
> Fix size-cells to show use of OF_GPIO_ACTIVE_LOW flag.
>
> Signed-off-by: Alan Tull <atull@altera.com>

OK patch applied.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe devicetree" 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

diff --git a/Documentation/devicetree/bindings/gpio/snps-dwapb-gpio.txt b/Documentation/devicetree/bindings/gpio/snps-dwapb-gpio.txt
index 0934950..91cc90c 100644
--- a/Documentation/devicetree/bindings/gpio/snps-dwapb-gpio.txt
+++ b/Documentation/devicetree/bindings/gpio/snps-dwapb-gpio.txt
@@ -12,7 +12,10 @@  represented as child nodes with the following properties:
 Required properties:
 - compatible : "snps,dw-apb-gpio-port"
 - gpio-controller : Marks the device node as a gpio controller.
-- #gpio-cells : Should be 1.  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 the gpio polarity:
+      0 = active high
+      1 = active low
 - reg : The integer port index of the port, a single cell.
 
 Optional properties: