From: Olof Johansson Date: Fri, 15 Jul 2011 05:17:13 +0000 (-0700) Subject: gpio/tegra: dt: add binding for gpio polarity X-Git-Tag: v3.1-rc1~313^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb5064db408eaffa332f93ddcc19c0b653849093;p=platform%2Fkernel%2Flinux-stable.git gpio/tegra: dt: add binding for gpio polarity Allocate one bit in the available extra cell to indicate if the gpio should be considered logically inverted. Signed-off-by: Olof Johansson Acked-by: Stephen Warren Signed-off-by: Grant Likely --- diff --git a/Documentation/devicetree/bindings/gpio/gpio_nvidia.txt b/Documentation/devicetree/bindings/gpio/gpio_nvidia.txt index 64aac39..eb4b530 100644 --- a/Documentation/devicetree/bindings/gpio/gpio_nvidia.txt +++ b/Documentation/devicetree/bindings/gpio/gpio_nvidia.txt @@ -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.