aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/gpio
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-01-04 03:39:34 -0500
committerOlof Johansson <olof@lixom.net>2012-02-06 21:21:19 -0500
commita38b84fce9d1f3b1f054409b6363d98bf019e263 (patch)
treede18976725aec6c1d0559f047a9b306ae095c224 /Documentation/devicetree/bindings/gpio
parentd8017a975cfc7f9e24a0424faf96369eb4d6c7bc (diff)
dt: tegra gpio: Flesh out binding documentation
Document the required reg and interrupts properties. Add a complete example. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio')
-rw-r--r--Documentation/devicetree/bindings/gpio/gpio_nvidia.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio_nvidia.txt b/Documentation/devicetree/bindings/gpio/gpio_nvidia.txt
index eb4b530d64e1..50b363c5b884 100644
--- a/Documentation/devicetree/bindings/gpio/gpio_nvidia.txt
+++ b/Documentation/devicetree/bindings/gpio/gpio_nvidia.txt
@@ -2,7 +2,25 @@ NVIDIA Tegra 2 GPIO controller
2 2
3Required properties: 3Required properties:
4- compatible : "nvidia,tegra20-gpio" 4- compatible : "nvidia,tegra20-gpio"
5- reg : Physical base address and length of the controller's registers.
6- interrupts : The interrupt outputs from the controller.
5- #gpio-cells : Should be two. The first cell is the pin number and the 7- #gpio-cells : Should be two. The first cell is the pin number and the
6 second cell is used to specify optional parameters: 8 second cell is used to specify optional parameters:
7 - bit 0 specifies polarity (0 for normal, 1 for inverted) 9 - bit 0 specifies polarity (0 for normal, 1 for inverted)
8- gpio-controller : Marks the device node as a GPIO controller. 10- gpio-controller : Marks the device node as a GPIO controller.
11
12Example:
13
14gpio: gpio@6000d000 {
15 compatible = "nvidia,tegra20-gpio";
16 reg = < 0x6000d000 0x1000 >;
17 interrupts = < 0 32 0x04
18 0 33 0x04
19 0 34 0x04
20 0 35 0x04
21 0 55 0x04
22 0 87 0x04
23 0 89 0x04 >;
24 #gpio-cells = <2>;
25 gpio-controller;
26};