gpio-twl4030.txt 953 B

1234567891011121314151617181920212223242526272829
  1. twl4030 GPIO controller bindings
  2. Required properties:
  3. - compatible:
  4. - "ti,twl4030-gpio" for twl4030 GPIO controller
  5. - #gpio-cells : Should be two.
  6. - first cell is the pin number
  7. - second cell is used to specify optional parameters (unused)
  8. - gpio-controller : Marks the device node as a GPIO controller.
  9. - #interrupt-cells : Should be 2.
  10. - interrupt-controller: Mark the device node as an interrupt controller
  11. The first cell is the GPIO number.
  12. The second cell is not used.
  13. - ti,use-leds : Enables LEDA and LEDB outputs if set
  14. - ti,debounce : if n-th bit is set, debounces GPIO-n
  15. - ti,mmc-cd : if n-th bit is set, GPIO-n controls VMMC(n+1)
  16. - ti,pullups : if n-th bit is set, set a pullup on GPIO-n
  17. - ti,pulldowns : if n-th bit is set, set a pulldown on GPIO-n
  18. Example:
  19. twl_gpio: gpio {
  20. compatible = "ti,twl4030-gpio";
  21. #gpio-cells = <2>;
  22. gpio-controller;
  23. #interrupt-cells = <2>;
  24. interrupt-controller;
  25. ti,use-leds;
  26. };