gpio-thunderx.txt 977 B

123456789101112131415161718192021222324252627
  1. Cavium ThunderX/OCTEON-TX GPIO controller bindings
  2. Required Properties:
  3. - reg: The controller bus address.
  4. - gpio-controller: Marks the device node as a GPIO controller.
  5. - #gpio-cells: Must be 2.
  6. - First cell is the GPIO pin number relative to the controller.
  7. - Second cell is a standard generic flag bitfield as described in gpio.txt.
  8. Optional Properties:
  9. - compatible: "cavium,thunder-8890-gpio", unused as PCI driver binding is used.
  10. - interrupt-controller: Marks the device node as an interrupt controller.
  11. - #interrupt-cells: Must be present and have value of 2 if
  12. "interrupt-controller" is present.
  13. - First cell is the GPIO pin number relative to the controller.
  14. - Second cell is triggering flags as defined in interrupts.txt.
  15. Example:
  16. gpio_6_0: gpio@6,0 {
  17. compatible = "cavium,thunder-8890-gpio";
  18. reg = <0x3000 0 0 0 0>; /* DEVFN = 0x30 (6:0) */
  19. gpio-controller;
  20. #gpio-cells = <2>;
  21. interrupt-controller;
  22. #interrupt-cells = <2>;
  23. };