aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/interrupt-controller/marvell,cp110-icu.yaml
blob: 9d4f06f45372ec04f63681c675ebe976ea4d71d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/interrupt-controller/marvell,cp110-icu.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

maintainers:
  - Miquel Raynal <miquel.raynal@bootlin.com>
  - Thomas Petazzoni <thomas.petazzoni@bootlin.com>

title: Marvell ICU Interrupt Controller

description:
  The Marvell ICU (Interrupt Consolidation Unit) controller is responsible for
  collecting all wired-interrupt sources in the CP and communicating them to the
  GIC in the AP. The unit translates interrupt requests on input wires to MSG
  memory mapped transactions to the GIC. These messages access different GIC
  memory areas depending on their type (NSR, SR, SEI, REI, etc).

properties:
  compatible:
    const: marvell,cp110-icu

  reg:
    maxItems: 1

  '#address-cells':
    const: 1

  '#size-cells':
    const: 1

  ranges: true

patternProperties:
  "^interrupt-controller@":
    type: object
    description: Interrupt group child nodes
    additionalProperties: false

    properties:
      compatible:
        enum:
          - marvell,cp110-icu-nsr
          - marvell,cp110-icu-sr
          - marvell,cp110-icu-sei
          - marvell,cp110-icu-rei

      reg:
        maxItems: 1

      '#interrupt-cells':
        const: 2

      interrupt-controller: true

      msi-parent:
        maxItems: 1
        description: Phandle to the GICP controller

    required:
      - compatible
      - reg
      - '#interrupt-cells'
      - interrupt-controller
      - msi-parent

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    interrupt-controller@1e0000 {
        compatible = "marvell,cp110-icu";
        reg = <0x1e0000 0x440>;
        #address-cells = <1>;
        #size-cells = <1>;
        ranges;

        interrupt-controller@10 {
                compatible = "marvell,cp110-icu-nsr";
                reg = <0x10 0x20>;
                #interrupt-cells = <2>;
                interrupt-controller;
                msi-parent = <&gicp>;
        };

        interrupt-controller@50 {
                compatible = "marvell,cp110-icu-sei";
                reg = <0x50 0x10>;
                #interrupt-cells = <2>;
                interrupt-controller;
                msi-parent = <&sei>;
        };
    };