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