gpio-omap.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. OMAP GPIO controller bindings
  2. Required properties:
  3. - compatible:
  4. - "ti,omap2-gpio" for OMAP2 controllers
  5. - "ti,omap3-gpio" for OMAP3 controllers
  6. - "ti,omap4-gpio" for OMAP4 controllers
  7. - #gpio-cells : Should be two.
  8. - first cell is the pin number
  9. - second cell is used to specify optional parameters (unused)
  10. - gpio-controller : Marks the device node as a GPIO controller.
  11. - #interrupt-cells : Should be 2.
  12. - interrupt-controller: Mark the device node as an interrupt controller
  13. The first cell is the GPIO number.
  14. The second cell is used to specify flags:
  15. bits[3:0] 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. OMAP specific properties:
  21. - ti,hwmods: Name of the hwmod associated to the GPIO:
  22. "gpio<X>", <X> being the 1-based instance number from the HW spec
  23. Example:
  24. gpio4: gpio4 {
  25. compatible = "ti,omap4-gpio";
  26. ti,hwmods = "gpio4";
  27. #gpio-cells = <2>;
  28. gpio-controller;
  29. #interrupt-cells = <2>;
  30. interrupt-controller;
  31. };