005-5.12-dt-bindings-interrupt-controller-add-realtek-rtl838x-rtl839x-support.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. From 4a2b92a5d3519fc2c1edda4d4aa0e05bff41e8de Mon Sep 17 00:00:00 2001
  2. From: Bert Vermeulen <[email protected]>
  3. Date: Fri, 22 Jan 2021 21:42:23 +0100
  4. Subject: dt-bindings: interrupt-controller: Add Realtek RTL838x/RTL839x
  5. support
  6. Document the binding for the Realtek RTL838x/RTL839x interrupt controller.
  7. Reviewed-by: Rob Herring <[email protected]>
  8. Signed-off-by: Bert Vermeulen <[email protected]>
  9. [maz: Add a commit message, as the author couldn't be bothered...]
  10. Signed-off-by: Marc Zyngier <[email protected]>
  11. Link: https://lore.kernel.org/r/[email protected]
  12. ---
  13. .../interrupt-controller/realtek,rtl-intc.yaml | 57 ++++++++++++++++++++++
  14. 1 file changed, 57 insertions(+)
  15. create mode 100644 Documentation/devicetree/bindings/interrupt-controller/realtek,rtl-intc.yaml
  16. --- /dev/null
  17. +++ b/Documentation/devicetree/bindings/interrupt-controller/realtek,rtl-intc.yaml
  18. @@ -0,0 +1,57 @@
  19. +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  20. +%YAML 1.2
  21. +---
  22. +$id: http://devicetree.org/schemas/interrupt-controller/realtek,rtl-intc.yaml#
  23. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  24. +
  25. +title: Realtek RTL SoC interrupt controller devicetree bindings
  26. +
  27. +maintainers:
  28. + - Birger Koblitz <[email protected]>
  29. + - Bert Vermeulen <[email protected]>
  30. + - John Crispin <[email protected]>
  31. +
  32. +properties:
  33. + compatible:
  34. + const: realtek,rtl-intc
  35. +
  36. + "#interrupt-cells":
  37. + const: 1
  38. +
  39. + reg:
  40. + maxItems: 1
  41. +
  42. + interrupts:
  43. + maxItems: 1
  44. +
  45. + interrupt-controller: true
  46. +
  47. + "#address-cells":
  48. + const: 0
  49. +
  50. + interrupt-map:
  51. + description: Describes mapping from SoC interrupts to CPU interrupts
  52. +
  53. +required:
  54. + - compatible
  55. + - reg
  56. + - "#interrupt-cells"
  57. + - interrupt-controller
  58. + - "#address-cells"
  59. + - interrupt-map
  60. +
  61. +additionalProperties: false
  62. +
  63. +examples:
  64. + - |
  65. + intc: interrupt-controller@3000 {
  66. + compatible = "realtek,rtl-intc";
  67. + #interrupt-cells = <1>;
  68. + interrupt-controller;
  69. + reg = <0x3000 0x20>;
  70. + #address-cells = <0>;
  71. + interrupt-map =
  72. + <31 &cpuintc 2>,
  73. + <30 &cpuintc 1>,
  74. + <29 &cpuintc 5>;
  75. + };