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

dt/bindings: Document gpio-ingenic

This commit adds documentation for the devicetree bindings of the
gpio-ingenic driver, which handles GPIOs of the Ingenic SoCs
currently supported by the Linux kernel.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Paul Cercueil and committed by
Linus Walleij
592870e6 8bd137d4

+46
+46
Documentation/devicetree/bindings/gpio/ingenic,gpio.txt
··· 1 + Ingenic jz47xx GPIO controller 2 + 3 + That the Ingenic GPIO driver node must be a sub-node of the Ingenic pinctrl 4 + driver node. 5 + 6 + Required properties: 7 + -------------------- 8 + 9 + - compatible: Must contain one of: 10 + - "ingenic,jz4740-gpio" 11 + - "ingenic,jz4770-gpio" 12 + - "ingenic,jz4780-gpio" 13 + - reg: The GPIO bank number. 14 + - interrupt-controller: Marks the device node as an interrupt controller. 15 + - interrupts: Interrupt specifier for the controllers interrupt. 16 + - #interrupt-cells: Should be 2. Refer to 17 + ../interrupt-controller/interrupts.txt for more details. 18 + - gpio-controller: Marks the device node as a GPIO controller. 19 + - #gpio-cells: Should be 2. The first cell is the GPIO number and the second 20 + cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the 21 + GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported. 22 + - gpio-ranges: Range of pins managed by the GPIO controller. Refer to 23 + 'gpio.txt' in this directory for more details. 24 + 25 + Example: 26 + -------- 27 + 28 + &pinctrl { 29 + #address-cells = <1>; 30 + #size-cells = <0>; 31 + 32 + gpa: gpio@0 { 33 + compatible = "ingenic,jz4740-gpio"; 34 + reg = <0>; 35 + 36 + gpio-controller; 37 + gpio-ranges = <&pinctrl 0 0 32>; 38 + #gpio-cells = <2>; 39 + 40 + interrupt-controller; 41 + #interrupt-cells = <2>; 42 + 43 + interrupt-parent = <&intc>; 44 + interrupts = <28>; 45 + }; 46 + };