gpio: 74x164: dts: Add documentation for the dt binding
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 10 Sep 2012 20:35:40 +0000 (22:35 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 11 Sep 2012 17:21:34 +0000 (19:21 +0200)
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/gpio-74x164.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/gpio/gpio-74x164.txt b/Documentation/devicetree/bindings/gpio/gpio-74x164.txt
new file mode 100644 (file)
index 0000000..cc26080
--- /dev/null
@@ -0,0 +1,22 @@
+* Generic 8-bits shift register GPIO driver
+
+Required properties:
+- compatible : Should be "fairchild,74hc595"
+- reg : chip select number
+- gpio-controller : Marks the device node as a gpio controller.
+- #gpio-cells : Should be two.  The first cell is the pin number and
+  the second cell is used to specify the gpio polarity:
+      0 = active high
+      1 = active low
+- registers-number: Number of daisy-chained shift registers
+
+Example:
+
+gpio5: gpio5@0 {
+       compatible = "fairchild,74hc595";
+       reg = <0>;
+       gpio-controller;
+       #gpio-cells = <2>;
+       registers-number = <4>;
+       spi-max-frequency = <100000>;
+};
This page took 0.025832 seconds and 5 git commands to generate.