ath25: switch default kernel to 5.15
[openwrt/staging/ldir.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 --- /dev/null
20 +++ b/Documentation/devicetree/bindings/interrupt-controller/realtek,rtl-intc.yaml
21 @@ -0,0 +1,57 @@
22 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
23 +%YAML 1.2
24 +---
25 +$id: http://devicetree.org/schemas/interrupt-controller/realtek,rtl-intc.yaml#
26 +$schema: http://devicetree.org/meta-schemas/core.yaml#
27 +
28 +title: Realtek RTL SoC interrupt controller devicetree bindings
29 +
30 +maintainers:
31 + - Birger Koblitz <mail@birger-koblitz.de>
32 + - Bert Vermeulen <bert@biot.com>
33 + - John Crispin <john@phrozen.org>
34 +
35 +properties:
36 + compatible:
37 + const: realtek,rtl-intc
38 +
39 + "#interrupt-cells":
40 + const: 1
41 +
42 + reg:
43 + maxItems: 1
44 +
45 + interrupts:
46 + maxItems: 1
47 +
48 + interrupt-controller: true
49 +
50 + "#address-cells":
51 + const: 0
52 +
53 + interrupt-map:
54 + description: Describes mapping from SoC interrupts to CPU interrupts
55 +
56 +required:
57 + - compatible
58 + - reg
59 + - "#interrupt-cells"
60 + - interrupt-controller
61 + - "#address-cells"
62 + - interrupt-map
63 +
64 +additionalProperties: false
65 +
66 +examples:
67 + - |
68 + intc: interrupt-controller@3000 {
69 + compatible = "realtek,rtl-intc";
70 + #interrupt-cells = <1>;
71 + interrupt-controller;
72 + reg = <0x3000 0x20>;
73 + #address-cells = <0>;
74 + interrupt-map =
75 + <31 &cpuintc 2>,
76 + <30 &cpuintc 1>,
77 + <29 &cpuintc 5>;
78 + };