gpio-xlp.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Netlogic XLP Family GPIO
  2. ========================
  3. This GPIO driver is used for following Netlogic XLP SoCs:
  4. XLP832, XLP316, XLP208, XLP980, XLP532
  5. This GPIO driver is also compatible with GPIO controller found on
  6. Broadcom Vulcan ARM64.
  7. Required properties:
  8. -------------------
  9. - compatible: Should be one of the following:
  10. - "netlogic,xlp832-gpio": For Netlogic XLP832
  11. - "netlogic,xlp316-gpio": For Netlogic XLP316
  12. - "netlogic,xlp208-gpio": For Netlogic XLP208
  13. - "netlogic,xlp980-gpio": For Netlogic XLP980
  14. - "netlogic,xlp532-gpio": For Netlogic XLP532
  15. - "brcm,vulcan-gpio": For Broadcom Vulcan ARM64
  16. - reg: Physical base address and length of the controller's registers.
  17. - #gpio-cells: Should be two. The first cell is the pin number and the second
  18. cell is used to specify optional parameters (currently unused).
  19. - gpio-controller: Marks the device node as a GPIO controller.
  20. - nr-gpios: Number of GPIO pins supported by the controller.
  21. - interrupt-cells: Should be two. The first cell is the GPIO Number. The
  22. second cell is used to specify flags. The following subset of flags is
  23. supported:
  24. - trigger type:
  25. 1 = low to high edge triggered.
  26. 2 = high to low edge triggered.
  27. 4 = active high level-sensitive.
  28. 8 = active low level-sensitive.
  29. - interrupts: Interrupt number for this device.
  30. - interrupt-parent: phandle of the parent interrupt controller.
  31. - interrupt-controller: Identifies the node as an interrupt controller.
  32. Example:
  33. gpio: xlp_gpio@34000 {
  34. compatible = "netlogic,xlp316-gpio";
  35. reg = <0 0x34100 0x1000
  36. 0 0x35100 0x1000>;
  37. #gpio-cells = <2>;
  38. gpio-controller;
  39. nr-gpios = <57>;
  40. #interrupt-cells = <2>;
  41. interrupt-parent = <&pic>;
  42. interrupts = <39>;
  43. interrupt-controller;
  44. };