gpio-aspeed.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Aspeed GPIO controller Device Tree Bindings
  2. -------------------------------------------
  3. Required properties:
  4. - compatible : Either "aspeed,ast2400-gpio" or "aspeed,ast2500-gpio"
  5. - #gpio-cells : Should be two
  6. - First cell is the GPIO line number
  7. - Second cell is used to specify optional
  8. parameters (unused)
  9. - reg : Address and length of the register set for the device
  10. - gpio-controller : Marks the device node as a GPIO controller.
  11. - interrupts : Interrupt specifier (see interrupt bindings for
  12. details)
  13. - interrupt-controller : Mark the GPIO controller as an interrupt-controller
  14. Optional properties:
  15. - interrupt-parent : The parent interrupt controller, optional if inherited
  16. The gpio and interrupt properties are further described in their respective
  17. bindings documentation:
  18. - Documentation/devicetree/bindings/gpio/gpio.txt
  19. - Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
  20. Example:
  21. gpio@1e780000 {
  22. #gpio-cells = <2>;
  23. compatible = "aspeed,ast2400-gpio";
  24. gpio-controller;
  25. interrupts = <20>;
  26. reg = <0x1e780000 0x1000>;
  27. interrupt-controller;
  28. };