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