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