gpio-ath79.txt 1.2 KB

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