gpio-tz1090-pdc.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ImgTec TZ1090 PDC GPIO Controller
  2. Required properties:
  3. - compatible: Compatible property value should be "img,tz1090-pdc-gpio".
  4. - reg: Physical base address of the controller and length of memory mapped
  5. region. This starts at and cover the SOC_GPIO_CONTROL registers.
  6. - gpio-controller: Specifies that the node is a gpio controller.
  7. - #gpio-cells: Should be 2. The syntax of the gpio specifier used by client
  8. nodes should have the following values.
  9. <[phandle of the gpio controller node]
  10. [PDC gpio number]
  11. [gpio flags]>
  12. Values for gpio specifier:
  13. - GPIO number: a value in the range 0 to 6.
  14. - GPIO flags: bit field of flags, as defined in <dt-bindings/gpio/gpio.h>.
  15. Only the following flags are supported:
  16. GPIO_ACTIVE_HIGH
  17. GPIO_ACTIVE_LOW
  18. Optional properties:
  19. - gpio-ranges: Mapping to pin controller pins (as described in
  20. Documentation/devicetree/bindings/gpio/gpio.txt)
  21. - interrupts: Individual syswake interrupts (other GPIOs cannot interrupt)
  22. Example:
  23. pdc_gpios: gpio-controller@02006500 {
  24. gpio-controller;
  25. #gpio-cells = <2>;
  26. compatible = "img,tz1090-pdc-gpio";
  27. reg = <0x02006500 0x100>;
  28. interrupt-parent = <&pdc>;
  29. interrupts = <8 IRQ_TYPE_NONE>, /* Syswake 0 */
  30. <9 IRQ_TYPE_NONE>, /* Syswake 1 */
  31. <10 IRQ_TYPE_NONE>; /* Syswake 2 */
  32. gpio-ranges = <&pdc_pinctrl 0 0 7>;
  33. };