gpio-zynq.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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-controller : Marks the device node as an interrupt controller.
  14. - #interrupt-cells : Should be 2. The first cell is the GPIO number.
  15. The second cell bits[3:0] is used to specify trigger type and level flags:
  16. 1 = low-to-high edge triggered.
  17. 2 = high-to-low edge triggered.
  18. 4 = active high level-sensitive.
  19. 8 = active low level-sensitive.
  20. - reg : Address and length of the register set for the device
  21. Example:
  22. gpio@e000a000 {
  23. #gpio-cells = <2>;
  24. compatible = "xlnx,zynq-gpio-1.0";
  25. clocks = <&clkc 42>;
  26. gpio-controller;
  27. interrupt-parent = <&intc>;
  28. interrupts = <0 20 4>;
  29. interrupt-controller;
  30. #interrupt-cells = <2>;
  31. reg = <0xe000a000 0x1000>;
  32. };