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