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