intel,ixp4xx-gpio.yaml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/gpio/intel,ixp4xx-gpio.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Intel IXP4xx XScale Networking Processors GPIO Controller
  7. description: |
  8. This GPIO controller is found in the Intel IXP4xx
  9. processors. It supports 16 GPIO lines.
  10. The interrupt portions of the GPIO controller is hierarchical.
  11. The synchronous edge detector is part of the GPIO block, but the
  12. actual enabling/disabling of the interrupt line is done in the
  13. main IXP4xx interrupt controller which has a 1-to-1 mapping for
  14. the first 12 GPIO lines to 12 system interrupts.
  15. The remaining 4 GPIO lines can not be used for receiving
  16. interrupts.
  17. The interrupt parent of this GPIO controller must be the
  18. IXP4xx interrupt controller.
  19. GPIO 14 and 15 can be used as clock outputs rather than GPIO,
  20. and this can be enabled by a special flag.
  21. maintainers:
  22. - Linus Walleij <linus.walleij@linaro.org>
  23. properties:
  24. compatible:
  25. const: intel,ixp4xx-gpio
  26. reg:
  27. maxItems: 1
  28. gpio-controller: true
  29. "#gpio-cells":
  30. const: 2
  31. interrupt-controller: true
  32. "#interrupt-cells":
  33. const: 2
  34. intel,ixp4xx-gpio14-clkout:
  35. description: If defined, enables clock output on GPIO 14
  36. instead of GPIO.
  37. type: boolean
  38. intel,ixp4xx-gpio15-clkout:
  39. description: If defined, enables clock output on GPIO 15
  40. instead of GPIO.
  41. type: boolean
  42. required:
  43. - compatible
  44. - reg
  45. - "#gpio-cells"
  46. - interrupt-controller
  47. - "#interrupt-cells"
  48. additionalProperties: false
  49. examples:
  50. - |
  51. #include <dt-bindings/interrupt-controller/irq.h>
  52. gpio@c8004000 {
  53. compatible = "intel,ixp4xx-gpio";
  54. reg = <0xc8004000 0x1000>;
  55. gpio-controller;
  56. #gpio-cells = <2>;
  57. interrupt-controller;
  58. #interrupt-cells = <2>;
  59. };