gpio: Add Netlogic XLP GPIO devicetree bindings documentation
authorKamlakant Patel <kamlakant.patel@broadcom.com>
Tue, 28 Apr 2015 14:40:44 +0000 (20:10 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 6 May 2015 14:30:59 +0000 (16:30 +0200)
Provide documentation for Netlogic XLP SoCs GPIO controller DTS bindings.

Signed-off-by: Kamlakant Patel <kamlakant.patel@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/gpio-xlp.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/gpio/gpio-xlp.txt b/Documentation/devicetree/bindings/gpio/gpio-xlp.txt
new file mode 100644 (file)
index 0000000..262ee4d
--- /dev/null
@@ -0,0 +1,47 @@
+Netlogic XLP Family GPIO
+========================
+
+This GPIO driver is used for following Netlogic XLP SoCs:
+       XLP832, XLP316, XLP208, XLP980, XLP532
+
+Required properties:
+-------------------
+
+- compatible: Should be one of the following:
+  - "netlogic,xlp832-gpio": For Netlogic XLP832
+  - "netlogic,xlp316-gpio": For Netlogic XLP316
+  - "netlogic,xlp208-gpio": For Netlogic XLP208
+  - "netlogic,xlp980-gpio": For Netlogic XLP980
+  - "netlogic,xlp532-gpio": For Netlogic XLP532
+- reg: Physical base address and length of the controller's registers.
+- #gpio-cells: Should be two. The first cell is the pin number and the second
+  cell is used to specify optional parameters (currently unused).
+- gpio-controller: Marks the device node as a GPIO controller.
+- nr-gpios: Number of GPIO pins supported by the controller.
+- interrupt-cells: Should be two. The first cell is the GPIO Number. The
+  second cell is used to specify flags. The following subset of flags is
+  supported:
+  - trigger type:
+       1 = low to high edge triggered.
+       2 = high to low edge triggered.
+       4 = active high level-sensitive.
+       8 = active low level-sensitive.
+- interrupts: Interrupt number for this device.
+- interrupt-parent: phandle of the parent interrupt controller.
+- interrupt-controller: Identifies the node as an interrupt controller.
+
+Example:
+
+       gpio: xlp_gpio@34000 {
+               compatible = "netlogic,xlp316-gpio";
+               reg = <0 0x34100 0x1000
+                      0 0x35100 0x1000>;
+               #gpio-cells = <2>;
+               gpio-controller;
+               nr-gpios = <57>;
+
+               #interrupt-cells = <2>;
+               interrupt-parent = <&pic>;
+               interrupts = <39>;
+               interrupt-controller;
+       };