gpio-xlp.txt 1.6 KB

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