abilis,tb10x-gpio.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. * Abilis TB10x GPIO controller
  2. Required Properties:
  3. - compatible: Should be "abilis,tb10x-gpio"
  4. - reg: Address and length of the register set for the device
  5. - gpio-controller: Marks the device node as a gpio controller.
  6. - #gpio-cells: Should be <2>. The first cell is the pin number and the
  7. second cell is used to specify optional parameters:
  8. - bit 0 specifies polarity (0 for normal, 1 for inverted).
  9. - abilis,ngpio: the number of GPIO pins this driver controls.
  10. Optional Properties:
  11. - interrupt-controller: Marks the device node as an interrupt controller.
  12. - #interrupt-cells: Should be <1>. Interrupts are triggered on both edges.
  13. - interrupts: Defines the interrupt line connecting this GPIO controller to
  14. its parent interrupt controller.
  15. - interrupt-parent: Defines the parent interrupt controller.
  16. GPIO ranges are specified as described in
  17. Documentation/devicetree/bindings/gpio/gpio.txt
  18. Example:
  19. gpioa: gpio@FF140000 {
  20. compatible = "abilis,tb10x-gpio";
  21. interrupt-controller;
  22. #interrupt-cells = <1>;
  23. interrupt-parent = <&tb10x_ictl>;
  24. interrupts = <27 2>;
  25. reg = <0xFF140000 0x1000>;
  26. gpio-controller;
  27. #gpio-cells = <2>;
  28. abilis,ngpio = <3>;
  29. gpio-ranges = <&iomux 0 0 0>;
  30. gpio-ranges-group-names = "gpioa_pins";
  31. };