Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: Document the Synopsys GPIO via CREG bindings

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>

authored by

Eugeniy Paltsev and committed by
Linus Walleij
29f55cc6 3ea47b44

+21
+21
Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt
··· 1 + Synopsys GPIO via CREG (Control REGisters) driver 2 + 3 + Required properties: 4 + - compatible : "snps,creg-gpio-hsdk" or "snps,creg-gpio-axs10x". 5 + - reg : Exactly one register range with length 0x4. 6 + - #gpio-cells : Since the generic GPIO binding is used, the 7 + amount of cells must be specified as 2. The first cell is the 8 + pin number, the second cell is used to specify optional parameters: 9 + See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt. 10 + - gpio-controller : Marks the device node as a GPIO controller. 11 + - ngpios: Number of GPIO pins. 12 + 13 + Example: 14 + 15 + gpio: gpio@f00014b0 { 16 + compatible = "snps,creg-gpio-hsdk"; 17 + reg = <0xf00014b0 0x4>; 18 + gpio-controller; 19 + #gpio-cells = <2>; 20 + ngpios = <2>; 21 + };