gpio-vf610.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. * Freescale VF610 PORT/GPIO module
  2. The Freescale PORT/GPIO modules are two adjacent modules providing GPIO
  3. functionality. Each pair serves 32 GPIOs. The VF610 has 5 instances of
  4. each, and each PORT module has its own interrupt.
  5. Required properties for GPIO node:
  6. - compatible : Should be "fsl,<soc>-gpio", currently "fsl,vf610-gpio"
  7. - reg : The first reg tuple represents the PORT module, the second tuple
  8. the GPIO module.
  9. - interrupts : Should be the port interrupt shared by all 32 pins.
  10. - gpio-controller : Marks the device node as a gpio controller.
  11. - #gpio-cells : Should be two. The first cell is the pin number and
  12. the second cell is used to specify the gpio polarity:
  13. 0 = active high
  14. 1 = active low
  15. - interrupt-controller: Marks the device node as an interrupt controller.
  16. - #interrupt-cells : Should be 2. The first cell is the GPIO number.
  17. The second cell bits[3:0] is used to specify trigger type and level flags:
  18. 1 = low-to-high edge triggered.
  19. 2 = high-to-low edge triggered.
  20. 4 = active high level-sensitive.
  21. 8 = active low level-sensitive.
  22. Note: Each GPIO port should have an alias correctly numbered in "aliases"
  23. node.
  24. Examples:
  25. aliases {
  26. gpio0 = &gpio1;
  27. gpio1 = &gpio2;
  28. };
  29. gpio1: gpio@40049000 {
  30. compatible = "fsl,vf610-gpio";
  31. reg = <0x40049000 0x1000 0x400ff000 0x40>;
  32. interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
  33. gpio-controller;
  34. #gpio-cells = <2>;
  35. interrupt-controller;
  36. #interrupt-cells = <2>;
  37. gpio-ranges = <&iomuxc 0 0 32>;
  38. };
  39. gpio2: gpio@4004a000 {
  40. compatible = "fsl,vf610-gpio";
  41. reg = <0x4004a000 0x1000 0x400ff040 0x40>;
  42. interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
  43. gpio-controller;
  44. #gpio-cells = <2>;
  45. interrupt-controller;
  46. #interrupt-cells = <2>;
  47. gpio-ranges = <&iomuxc 0 32 32>;
  48. };