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- interrupts: Interrupt specifier for the controllers interrupt.
16d6743a49SAlban Bedel- interrupt-controller : Identifies the node as an interrupt controller
17d6743a49SAlban Bedel- #interrupt-cells : Specifies the number of cells needed to encode interrupt
18d6743a49SAlban Bedel		     source, should be 2
19d6743a49SAlban Bedel
20d6743a49SAlban BedelPlease refer to interrupts.txt in this directory for details of the common
21d6743a49SAlban BedelInterrupt Controllers bindings used by client devices.
22d6743a49SAlban Bedel
23d6743a49SAlban BedelExample:
24d6743a49SAlban Bedel
25d6743a49SAlban Bedel	gpio@18040000 {
26d6743a49SAlban Bedel		compatible = "qca,ar9132-gpio", "qca,ar7100-gpio";
27d6743a49SAlban Bedel		reg = <0x18040000 0x30>;
28d6743a49SAlban Bedel		interrupts = <2>;
29d6743a49SAlban Bedel
30d6743a49SAlban Bedel		ngpios = <22>;
31d6743a49SAlban Bedel
32d6743a49SAlban Bedel		gpio-controller;
33d6743a49SAlban Bedel		#gpio-cells = <2>;
34d6743a49SAlban Bedel
35d6743a49SAlban Bedel		interrupt-controller;
36d6743a49SAlban Bedel		#interrupt-cells = <2>;
37d6743a49SAlban Bedel	};
38