gpio-nmk.txt 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. Nomadik GPIO controller
  2. Required properties:
  3. - compatible : Should be "st,nomadik-gpio".
  4. - reg : Physical base address and length of the controller's registers.
  5. - interrupts : The interrupt outputs from the controller.
  6. - #gpio-cells : Should be two:
  7. The first cell is the pin number.
  8. The second cell is used to specify optional parameters:
  9. - bits[3:0] trigger type and level flags:
  10. 1 = low-to-high edge triggered.
  11. 2 = high-to-low edge triggered.
  12. 4 = active high level-sensitive.
  13. 8 = active low level-sensitive.
  14. - gpio-controller : Marks the device node as a GPIO controller.
  15. - interrupt-controller : Marks the device node as an interrupt controller.
  16. - gpio-bank : Specifies which bank a controller owns.
  17. - st,supports-sleepmode : Specifies whether controller can sleep or not
  18. Example:
  19. gpio1: gpio@8012e080 {
  20. compatible = "st,nomadik-gpio";
  21. reg = <0x8012e080 0x80>;
  22. interrupts = <0 120 0x4>;
  23. #gpio-cells = <2>;
  24. gpio-controller;
  25. interrupt-controller;
  26. st,supports-sleepmode;
  27. gpio-bank = <1>;
  28. };