amlogic,meson-gpio-intc.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/interrupt-controller/amlogic,meson-gpio-intc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Amlogic Meson GPIO interrupt controller
  7. maintainers:
  8. - Heiner Kallweit <hkallweit1@gmail.com>
  9. description: |
  10. Meson SoCs contains an interrupt controller which is able to watch the SoC
  11. pads and generate an interrupt on edge or level. The controller is essentially
  12. a 256 pads to 8 or 12 GIC interrupt multiplexer, with a filter block to select
  13. edge or level and polarity. It does not expose all 256 mux inputs because the
  14. documentation shows that the upper part is not mapped to any pad. The actual
  15. number of interrupts exposed depends on the SoC.
  16. allOf:
  17. - $ref: /schemas/interrupt-controller.yaml#
  18. properties:
  19. compatible:
  20. oneOf:
  21. - const: amlogic,meson-gpio-intc
  22. - items:
  23. - enum:
  24. - amlogic,meson8-gpio-intc
  25. - amlogic,meson8b-gpio-intc
  26. - amlogic,meson-gxbb-gpio-intc
  27. - amlogic,meson-gxl-gpio-intc
  28. - amlogic,meson-axg-gpio-intc
  29. - amlogic,meson-g12a-gpio-intc
  30. - amlogic,meson-sm1-gpio-intc
  31. - amlogic,meson-a1-gpio-intc
  32. - amlogic,meson-s4-gpio-intc
  33. - amlogic,c3-gpio-intc
  34. - amlogic,t7-gpio-intc
  35. - const: amlogic,meson-gpio-intc
  36. reg:
  37. maxItems: 1
  38. interrupt-controller: true
  39. "#interrupt-cells":
  40. const: 2
  41. amlogic,channel-interrupts:
  42. description: Array with the upstream hwirq numbers
  43. minItems: 8
  44. maxItems: 12
  45. $ref: /schemas/types.yaml#/definitions/uint32-array
  46. required:
  47. - compatible
  48. - reg
  49. - interrupt-controller
  50. - "#interrupt-cells"
  51. - amlogic,channel-interrupts
  52. additionalProperties: false
  53. examples:
  54. - |
  55. interrupt-controller@9880 {
  56. compatible = "amlogic,meson-gxbb-gpio-intc",
  57. "amlogic,meson-gpio-intc";
  58. reg = <0x9880 0x10>;
  59. interrupt-controller;
  60. #interrupt-cells = <2>;
  61. amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
  62. };