]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dt-bindings: Document the Synopsys GPIO via CREG bindings
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Fri, 28 Sep 2018 13:15:31 +0000 (16:15 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 10 Oct 2018 07:19:14 +0000 (09:19 +0200)
This patch adds documentation of device tree bindings for the Synopsys
GPIO via CREG driver.

Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt b/Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt
new file mode 100644 (file)
index 0000000..1b30812
--- /dev/null
@@ -0,0 +1,21 @@
+Synopsys GPIO via CREG (Control REGisters) driver
+
+Required properties:
+- compatible : "snps,creg-gpio-hsdk" or "snps,creg-gpio-axs10x".
+- reg : Exactly one register range with length 0x4.
+- #gpio-cells : Since the generic GPIO binding is used, the
+  amount of cells must be specified as 2. The first cell is the
+  pin number, the second cell is used to specify optional parameters:
+  See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt.
+- gpio-controller : Marks the device node as a GPIO controller.
+- ngpios: Number of GPIO pins.
+
+Example:
+
+gpio: gpio@f00014b0 {
+       compatible = "snps,creg-gpio-hsdk";
+       reg = <0xf00014b0 0x4>;
+       gpio-controller;
+       #gpio-cells = <2>;
+       ngpios = <2>;
+};