ingenic,gpio.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Ingenic jz47xx GPIO controller
  2. That the Ingenic GPIO driver node must be a sub-node of the Ingenic pinctrl
  3. driver node.
  4. Required properties:
  5. --------------------
  6. - compatible: Must contain one of:
  7. - "ingenic,jz4740-gpio"
  8. - "ingenic,jz4770-gpio"
  9. - "ingenic,jz4780-gpio"
  10. - reg: The GPIO bank number.
  11. - interrupt-controller: Marks the device node as an interrupt controller.
  12. - interrupts: Interrupt specifier for the controllers interrupt.
  13. - #interrupt-cells: Should be 2. Refer to
  14. ../interrupt-controller/interrupts.txt for more details.
  15. - gpio-controller: Marks the device node as a GPIO controller.
  16. - #gpio-cells: Should be 2. The first cell is the GPIO number and the second
  17. cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the
  18. GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported.
  19. - gpio-ranges: Range of pins managed by the GPIO controller. Refer to
  20. 'gpio.txt' in this directory for more details.
  21. Example:
  22. --------
  23. &pinctrl {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. gpa: gpio@0 {
  27. compatible = "ingenic,jz4740-gpio";
  28. reg = <0>;
  29. gpio-controller;
  30. gpio-ranges = <&pinctrl 0 0 32>;
  31. #gpio-cells = <2>;
  32. interrupt-controller;
  33. #interrupt-cells = <2>;
  34. interrupt-parent = <&intc>;
  35. interrupts = <28>;
  36. };
  37. };