gpio-omap.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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-controller : Marks the device node as a GPIO controller.
  8. - #gpio-cells : Should be two.
  9. - first cell is the pin number
  10. - second cell is used to specify optional parameters (unused)
  11. - interrupt-controller: Mark the device node as an interrupt controller.
  12. - #interrupt-cells : Should be 2.
  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
  23. from the HW spec.
  24. - ti,gpio-always-on: Indicates if a GPIO bank is always powered and
  25. so will never lose its logic state.
  26. Example:
  27. gpio4: gpio4 {
  28. compatible = "ti,omap4-gpio";
  29. ti,hwmods = "gpio4";
  30. gpio-controller;
  31. #gpio-cells = <2>;
  32. interrupt-controller;
  33. #interrupt-cells = <2>;
  34. };