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

DEVICETREE: Add bindings for the ATH79 GPIO controllers

These bindings support the GPIO controllers found on the Qualcomm
Atheros AR7xxx/AR9XXX SoC.

Signed-off-by: Alban Bedel <albeu@free.fr>
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Alban Bedel and committed by
Ralf Baechle
d6743a49 6451af02

+38
+38
Documentation/devicetree/bindings/gpio/gpio-ath79.txt
··· 1 + Binding for Qualcomm Atheros AR7xxx/AR9xxx GPIO controller 2 + 3 + Required properties: 4 + - compatible: has to be "qca,<soctype>-gpio" and one of the following 5 + fallbacks: 6 + - "qca,ar7100-gpio" 7 + - "qca,ar9340-gpio" 8 + - reg: Base address and size of the controllers memory area 9 + - gpio-controller : Marks the device node as a GPIO controller. 10 + - #gpio-cells : Should be two. The first cell is the pin number and the 11 + second cell is used to specify optional parameters. 12 + - ngpios: Should be set to the number of GPIOs available on the SoC. 13 + 14 + Optional properties: 15 + - interrupt-parent: phandle of the parent interrupt controller. 16 + - interrupts: Interrupt specifier for the controllers interrupt. 17 + - interrupt-controller : Identifies the node as an interrupt controller 18 + - #interrupt-cells : Specifies the number of cells needed to encode interrupt 19 + source, should be 2 20 + 21 + Please refer to interrupts.txt in this directory for details of the common 22 + Interrupt Controllers bindings used by client devices. 23 + 24 + Example: 25 + 26 + gpio@18040000 { 27 + compatible = "qca,ar9132-gpio", "qca,ar7100-gpio"; 28 + reg = <0x18040000 0x30>; 29 + interrupts = <2>; 30 + 31 + ngpios = <22>; 32 + 33 + gpio-controller; 34 + #gpio-cells = <2>; 35 + 36 + interrupt-controller; 37 + #interrupt-cells = <2>; 38 + };