xref: /freebsd-src/sys/contrib/device-tree/Bindings/interrupt-controller/ti,sci-inta.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/interrupt-controller/ti,sci-inta.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Texas Instruments K3 Interrupt Aggregator
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Lokesh Vutla <lokeshvutla@ti.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel VadotallOf:
13c66ec88fSEmmanuel Vadot  - $ref: /schemas/arm/keystone/ti,k3-sci-common.yaml#
14c66ec88fSEmmanuel Vadot
15c66ec88fSEmmanuel Vadotdescription: |
16c66ec88fSEmmanuel Vadot  The Interrupt Aggregator (INTA) provides a centralized machine
17c66ec88fSEmmanuel Vadot  which handles the termination of system events to that they can
18c66ec88fSEmmanuel Vadot  be coherently processed by the host(s) in the system. A maximum
19c66ec88fSEmmanuel Vadot  of 64 events can be mapped to a single interrupt.
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot                                Interrupt Aggregator
22c66ec88fSEmmanuel Vadot                       +-----------------------------------------+
23c66ec88fSEmmanuel Vadot                       |      Intmap            VINT             |
24c66ec88fSEmmanuel Vadot                       | +--------------+  +------------+        |
25c66ec88fSEmmanuel Vadot              m ------>| | vint  | bit  |  | 0 |.....|63| vint0  |
26c66ec88fSEmmanuel Vadot                 .     | +--------------+  +------------+        |      +------+
27c66ec88fSEmmanuel Vadot                 .     |         .               .               |      | HOST |
28c66ec88fSEmmanuel Vadot  Globalevents  ------>|         .               .               |----->| IRQ  |
29c66ec88fSEmmanuel Vadot                 .     |         .               .               |      | CTRL |
30c66ec88fSEmmanuel Vadot                 .     |         .               .               |      +------+
31c66ec88fSEmmanuel Vadot              n ------>| +--------------+  +------------+        |
32c66ec88fSEmmanuel Vadot                       | | vint  | bit  |  | 0 |.....|63| vintx  |
33c66ec88fSEmmanuel Vadot                       | +--------------+  +------------+        |
34c66ec88fSEmmanuel Vadot                       |                                         |
356be33864SEmmanuel Vadot                       |      Unmap                              |
366be33864SEmmanuel Vadot                       | +--------------+                        |
376be33864SEmmanuel Vadot  Unmapped events ---->| |   umapidx    |-------------------------> Globalevents
386be33864SEmmanuel Vadot                       | +--------------+                        |
396be33864SEmmanuel Vadot                       |                                         |
40c66ec88fSEmmanuel Vadot                       +-----------------------------------------+
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel Vadot  Configuration of these Intmap registers that maps global events to vint is
43c66ec88fSEmmanuel Vadot  done by a system controller (like the Device Memory and Security Controller
44c66ec88fSEmmanuel Vadot  on AM654 SoC). Driver should request the system controller to get the range
45c66ec88fSEmmanuel Vadot  of global events and vints assigned to the requesting host. Management
46c66ec88fSEmmanuel Vadot  of these requested resources should be handled by driver and requests
47c66ec88fSEmmanuel Vadot  system controller to map specific global event to vint, bit pair.
48c66ec88fSEmmanuel Vadot
49c66ec88fSEmmanuel Vadot  Communication between the host processor running an OS and the system
50c66ec88fSEmmanuel Vadot  controller happens through a protocol called TI System Control Interface
51c66ec88fSEmmanuel Vadot  (TISCI protocol).
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadotproperties:
54c66ec88fSEmmanuel Vadot  compatible:
55c66ec88fSEmmanuel Vadot    const: ti,sci-inta
56c66ec88fSEmmanuel Vadot
57c66ec88fSEmmanuel Vadot  reg:
58c66ec88fSEmmanuel Vadot    maxItems: 1
59c66ec88fSEmmanuel Vadot
60c66ec88fSEmmanuel Vadot  interrupt-controller: true
61c66ec88fSEmmanuel Vadot
627ef62cebSEmmanuel Vadot  '#interrupt-cells':
637ef62cebSEmmanuel Vadot    const: 0
647ef62cebSEmmanuel Vadot
65c66ec88fSEmmanuel Vadot  msi-controller: true
66c66ec88fSEmmanuel Vadot
67c66ec88fSEmmanuel Vadot  ti,interrupt-ranges:
68c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-matrix
69c66ec88fSEmmanuel Vadot    description: |
70c66ec88fSEmmanuel Vadot      Interrupt ranges that converts the INTA output hw irq numbers
71c66ec88fSEmmanuel Vadot      to parents's input interrupt numbers.
72c66ec88fSEmmanuel Vadot    items:
73c66ec88fSEmmanuel Vadot      items:
74c66ec88fSEmmanuel Vadot        - description: |
75c66ec88fSEmmanuel Vadot            "output_irq" specifies the base for inta output irq
76c66ec88fSEmmanuel Vadot        - description: |
77c66ec88fSEmmanuel Vadot            "parent's input irq" specifies the base for parent irq
78c66ec88fSEmmanuel Vadot        - description: |
79c66ec88fSEmmanuel Vadot            "limit" specifies the limit for translation
80c66ec88fSEmmanuel Vadot
816be33864SEmmanuel Vadot  ti,unmapped-event-sources:
825def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle-array
83c9ccf3a3SEmmanuel Vadot    items:
84c9ccf3a3SEmmanuel Vadot      maxItems: 1
856be33864SEmmanuel Vadot    description:
866be33864SEmmanuel Vadot      Array of phandles to DMA controllers where the unmapped events originate.
876be33864SEmmanuel Vadot
88*fac71e4eSEmmanuel Vadot  power-domains:
89*fac71e4eSEmmanuel Vadot    maxItems: 1
90*fac71e4eSEmmanuel Vadot
91c66ec88fSEmmanuel Vadotrequired:
92c66ec88fSEmmanuel Vadot  - compatible
93c66ec88fSEmmanuel Vadot  - reg
94c66ec88fSEmmanuel Vadot  - interrupt-controller
95c66ec88fSEmmanuel Vadot  - msi-controller
96c66ec88fSEmmanuel Vadot  - ti,sci
97c66ec88fSEmmanuel Vadot  - ti,sci-dev-id
98c66ec88fSEmmanuel Vadot  - ti,interrupt-ranges
99c66ec88fSEmmanuel Vadot
1006be33864SEmmanuel VadotunevaluatedProperties: false
1016be33864SEmmanuel Vadot
102c66ec88fSEmmanuel Vadotexamples:
103c66ec88fSEmmanuel Vadot  - |
104c66ec88fSEmmanuel Vadot    bus {
105c66ec88fSEmmanuel Vadot        #address-cells = <2>;
106c66ec88fSEmmanuel Vadot        #size-cells = <2>;
107c66ec88fSEmmanuel Vadot
108c66ec88fSEmmanuel Vadot        main_udmass_inta: msi-controller@33d00000 {
109c66ec88fSEmmanuel Vadot            compatible = "ti,sci-inta";
110c66ec88fSEmmanuel Vadot            reg = <0x0 0x33d00000 0x0 0x100000>;
111c66ec88fSEmmanuel Vadot            interrupt-controller;
112c66ec88fSEmmanuel Vadot            msi-controller;
113c66ec88fSEmmanuel Vadot            interrupt-parent = <&main_navss_intr>;
114c66ec88fSEmmanuel Vadot            ti,sci = <&dmsc>;
115c66ec88fSEmmanuel Vadot            ti,sci-dev-id = <179>;
116c66ec88fSEmmanuel Vadot            ti,interrupt-ranges = <0 0 256>;
117c66ec88fSEmmanuel Vadot        };
118c66ec88fSEmmanuel Vadot    };
119