summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2012-04-04 17:06:41 +0100
committerLinus Walleij <linus.walleij@linaro.org>2012-04-23 14:52:30 +0200
commitb55ac4ea96adc907bec7b0a804c1edd3dbf2e64d (patch)
treee2f72cf9c7735e651ecab3e008ba2ec07c419e6a
parentc0b133bda1eb89f7ce737fc7c646fa68ec7b9f1a (diff)
downloadlinux-3.10-b55ac4ea96adc907bec7b0a804c1edd3dbf2e64d.tar.gz
linux-3.10-b55ac4ea96adc907bec7b0a804c1edd3dbf2e64d.tar.bz2
linux-3.10-b55ac4ea96adc907bec7b0a804c1edd3dbf2e64d.zip
drivers/gpio: gpio-nomadik: Provide documentation for Device Tree bindings
Add required documentation for specific gpio-nomadik DT bindings. Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/gpio/gpio-nmk.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-nmk.txt b/Documentation/devicetree/bindings/gpio/gpio-nmk.txt
new file mode 100644
index 00000000000..3856789b52e
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-nmk.txt
@@ -0,0 +1,29 @@
+Nomadik GPIO controller
+
+Required properties:
+- compatible : Should be "st,nomadik-gpio".
+- reg : Physical base address and length of the controller's registers.
+- interrupts : The interrupt outputs from the controller.
+- #gpio-cells : Should be two:
+ The first cell is the pin number.
+ The second cell is used to specify optional parameters:
+ - bits[3:0] trigger type and level flags:
+ 1 = low-to-high edge triggered.
+ 2 = high-to-low edge triggered.
+ 4 = active high level-sensitive.
+ 8 = active low level-sensitive.
+- gpio-controller : Marks the device node as a GPIO controller.
+- gpio-bank : Specifies which bank a controller owns.
+- st,supports-sleepmode : Specifies whether controller can sleep or not
+
+Example:
+
+ gpio1: gpio@8012e080 {
+ compatible = "st,nomadik-gpio";
+ reg = <0x8012e080 0x80>;
+ interrupts = <0 120 0x4>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ supports-sleepmode;
+ gpio-bank = <1>;
+ };