]> Pileus Git - ~andy/linux/commitdiff
gpio/tegra: dt: add binding for gpio polarity
authorOlof Johansson <olof@lixom.net>
Fri, 15 Jul 2011 05:17:13 +0000 (22:17 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 15 Jul 2011 17:51:27 +0000 (11:51 -0600)
Allocate one bit in the available extra cell to indicate if the gpio
should be considered logically inverted.

Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Documentation/devicetree/bindings/gpio/gpio_nvidia.txt

index 64aac39e6edcd8d422a1ae9480037e49455bf9b7..eb4b530d64e16d35481b013e5e6fb1c59aca15b9 100644 (file)
@@ -3,5 +3,6 @@ NVIDIA Tegra 2 GPIO controller
 Required properties:
 - compatible : "nvidia,tegra20-gpio"
 - #gpio-cells : Should be two. The first cell is the pin number and the
-  second cell is used to specify optional parameters (currently unused).
+  second cell is used to specify optional parameters:
+  - bit 0 specifies polarity (0 for normal, 1 for inverted)
 - gpio-controller : Marks the device node as a GPIO controller.