nvidia,tegra20-gpio.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. NVIDIA Tegra GPIO controller
  2. Required properties:
  3. - compatible : "nvidia,tegra<chip>-gpio"
  4. - reg : Physical base address and length of the controller's registers.
  5. - interrupts : The interrupt outputs from the controller. For Tegra20,
  6. there should be 7 interrupts specified, and for Tegra30, there should
  7. be 8 interrupts specified.
  8. - #gpio-cells : Should be two. The first cell is the pin number and the
  9. second cell is used to specify optional parameters:
  10. - bit 0 specifies polarity (0 for normal, 1 for inverted)
  11. - gpio-controller : Marks the device node as a GPIO 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. Valid combinations are 1, 2, 3, 4, 8.
  21. - interrupt-controller : Marks the device node as an interrupt controller.
  22. Example:
  23. gpio: gpio@6000d000 {
  24. compatible = "nvidia,tegra20-gpio";
  25. reg = < 0x6000d000 0x1000 >;
  26. interrupts = < 0 32 0x04
  27. 0 33 0x04
  28. 0 34 0x04
  29. 0 35 0x04
  30. 0 55 0x04
  31. 0 87 0x04
  32. 0 89 0x04 >;
  33. #gpio-cells = <2>;
  34. gpio-controller;
  35. #interrupt-cells = <2>;
  36. interrupt-controller;
  37. };