gpio-clps711x.txt 752 B

12345678910111213141516171819202122232425262728
  1. Cirrus Logic CLPS711X GPIO controller
  2. Required properties:
  3. - compatible: Should be "cirrus,clps711x-gpio"
  4. - reg: Physical base GPIO controller registers location and length.
  5. There should be two registers, first is DATA register, the second
  6. is DIRECTION.
  7. - gpio-controller: Marks the device node as a gpio controller.
  8. - #gpio-cells: Should be two. The first cell is the pin number and
  9. the second cell is used to specify the gpio polarity:
  10. 0 = active high
  11. 1 = active low
  12. Note: Each GPIO port should have an alias correctly numbered in "aliases"
  13. node.
  14. Example:
  15. aliases {
  16. gpio0 = &porta;
  17. };
  18. porta: gpio@80000000 {
  19. compatible = "cirrus,clps711x-gpio";
  20. reg = <0x80000000 0x1>, <0x80000040 0x1>;
  21. gpio-controller;
  22. #gpio-cells = <2>;
  23. };