blob: 46b2eb3c43ee435d1bf4b96e9cf9411d3a2a95fb [file] [log] [blame]
Florian Fainelli07f7f682021-12-17 08:05:45 -08001# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/interrupt-controller/brcm,bcm7120-l2-intc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
Florian Fainelli94360912021-12-17 08:05:46 -08007title: Broadcom BCM7120-style Level 2 and Broadcom BCM3380 Level 1 / Level 2
Florian Fainelli07f7f682021-12-17 08:05:45 -08008
9maintainers:
10 - Florian Fainelli <f.fainelli@gmail.com>
11
12description: >
13 This interrupt controller hardware is a second level interrupt controller that
14 is hooked to a parent interrupt controller: e.g: ARM GIC for ARM-based
15 platforms. It can be found on BCM7xxx products starting with BCM7120.
16
17 Such an interrupt controller has the following hardware design:
18
19 - outputs multiple interrupts signals towards its interrupt controller parent
20
21 - controls how some of the interrupts will be flowing, whether they will
22 directly output an interrupt signal towards the interrupt controller parent,
23 or if they will output an interrupt signal at this 2nd level interrupt
24 controller, in particular for UARTs
25
26 - has one 32-bit enable word and one 32-bit status word
27
28 - no atomic set/clear operations
29
30 - not all bits within the interrupt controller actually map to an interrupt
31
32 The typical hardware layout for this controller is represented below:
33
34 2nd level interrupt line Outputs for the parent controller (e.g: ARM GIC)
35
36 0 -----[ MUX ] ------------|==========> GIC interrupt 75
37 \-----------\
38 |
39 1 -----[ MUX ] --------)---|==========> GIC interrupt 76
40 \------------|
41 |
42 2 -----[ MUX ] --------)---|==========> GIC interrupt 77
43 \------------|
44 |
45 3 ---------------------|
46 4 ---------------------|
47 5 ---------------------|
48 7 ---------------------|---|===========> GIC interrupt 66
49 9 ---------------------|
50 10 --------------------|
51 11 --------------------/
52
53 6 ------------------------\
54 |===========> GIC interrupt 64
55 8 ------------------------/
56
57 12 ........................ X
58 13 ........................ X (not connected)
59 ..
60 31 ........................ X
61
Florian Fainelli94360912021-12-17 08:05:46 -080062 The BCM3380 Level 1 / Level 2 interrrupt controller shows up in various forms
63 on many BCM338x/BCM63xx chipsets. It has the following properties:
64
65 - outputs a single interrupt signal to its interrupt controller parent
66
67 - contains one or more enable/status word pairs, which often appear at
68 different offsets in different blocks
69
70 - no atomic set/clear operations
71
Florian Fainelli07f7f682021-12-17 08:05:45 -080072allOf:
73 - $ref: /schemas/interrupt-controller.yaml#
74
75properties:
76 compatible:
Florian Fainelli94360912021-12-17 08:05:46 -080077 items:
78 - enum:
79 - brcm,bcm7120-l2-intc
80 - brcm,bcm3380-l2-intc
Florian Fainelli07f7f682021-12-17 08:05:45 -080081
82 reg:
Florian Fainelli94360912021-12-17 08:05:46 -080083 minItems: 1
84 maxItems: 4
Florian Fainelli07f7f682021-12-17 08:05:45 -080085 description: >
86 Specifies the base physical address and size of the registers
87
88 interrupt-controller: true
89
90 "#interrupt-cells":
91 const: 1
92
93 interrupts:
94 minItems: 1
95 maxItems: 32
96
97 brcm,int-map-mask:
98 $ref: /schemas/types.yaml#/definitions/uint32-array
99 description: >
100 32-bits bit mask describing how many and which interrupts are wired to
101 this 2nd level interrupt controller, and how they match their respective
102 interrupt parents. Should match exactly the number of interrupts
103 specified in the 'interrupts' property.
104
105 brcm,irq-can-wake:
106 type: boolean
107 description: >
108 If present, this means the L2 controller can be used as a wakeup source
109 for system suspend/resume.
110
111 brcm,int-fwd-mask:
112 $ref: /schemas/types.yaml#/definitions/uint32
113 description: >
114 if present, a bit mask to configure the interrupts which have a mux gate,
115 typically UARTs. Setting these bits will make their respective interrupt
116 outputs bypass this 2nd level interrupt controller completely; it is
117 completely transparent for the interrupt controller parent. This should
118 have one 32-bit word per enable/status pair.
119
120additionalProperties: false
121
122required:
123 - compatible
124 - reg
125 - interrupt-controller
126 - "#interrupt-cells"
127 - interrupts
128
129examples:
130 - |
131 irq0_intc: interrupt-controller@f0406800 {
132 compatible = "brcm,bcm7120-l2-intc";
133 interrupt-parent = <&intc>;
134 #interrupt-cells = <1>;
135 reg = <0xf0406800 0x8>;
136 interrupt-controller;
137 interrupts = <0x0 0x42 0x0>, <0x0 0x40 0x0>;
138 brcm,int-map-mask = <0xeb8>, <0x140>;
139 brcm,int-fwd-mask = <0x7>;
140 };
Florian Fainelli94360912021-12-17 08:05:46 -0800141
142 - |
143 irq1_intc: interrupt-controller@10000020 {
144 compatible = "brcm,bcm3380-l2-intc";
145 reg = <0x10000024 0x4>, <0x1000002c 0x4>,
146 <0x10000020 0x4>, <0x10000028 0x4>;
147 interrupt-controller;
148 #interrupt-cells = <1>;
149 interrupt-parent = <&cpu_intc>;
150 interrupts = <2>;
151 };