gpio-zynq.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Xilinx Zynq GPIO controller Device Tree Bindings
  2. -------------------------------------------
  3. Required properties:
  4. - #gpio-cells : Should be two
  5. - First cell is the GPIO line number
  6. - Second cell is used to specify optional
  7. parameters (unused)
  8. - compatible : Should be "xlnx,zynq-gpio-1.0" or "xlnx,zynqmp-gpio-1.0"
  9. - clocks : Clock specifier (see clock bindings for details)
  10. - gpio-controller : Marks the device node as a GPIO controller.
  11. - interrupts : Interrupt specifier (see interrupt bindings for
  12. details)
  13. - interrupt-parent : Must be core interrupt controller
  14. - interrupt-controller : Marks the device node as an interrupt controller.
  15. - #interrupt-cells : Should be 2. The first cell is the GPIO number.
  16. The second cell bits[3:0] is used to specify trigger type and level flags:
  17. 1 = low-to-high edge triggered.
  18. 2 = high-to-low edge triggered.
  19. 4 = active high level-sensitive.
  20. 8 = active low level-sensitive.
  21. - reg : Address and length of the register set for the device
  22. Example:
  23. gpio@e000a000 {
  24. #gpio-cells = <2>;
  25. compatible = "xlnx,zynq-gpio-1.0";
  26. clocks = <&clkc 42>;
  27. gpio-controller;
  28. interrupt-parent = <&intc>;
  29. interrupts = <0 20 4>;
  30. interrupt-controller;
  31. #interrupt-cells = <2>;
  32. reg = <0xe000a000 0x1000>;
  33. };