Skip to content

Commit 02045d1

Browse files
committed
dt-bindings: interrupt-controller: apple,aic2: Add AICv3
AIC version 3 as found on the Apple M3 (t8122) is very similar to AICv2 in its base functionality. It can use the same device tree bindings as AICv2 so add it to the AICv2 bindings. This interrupt controller is used on all Apple SoCs starting with M3 up to at least M5. The only apparent difference is the increased IRQ config offset. Apple's device tree codes this new offset as property of the "aic" node but the value stayed constant for all SoCs with "aic,3". Since the SoC specific compatible "apple,t8122-aic3" will be used in the driver this offset can remain a driver implementation detail. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 1d12705 commit 02045d1

1 file changed

Lines changed: 30 additions & 9 deletions

File tree

Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
$id: http://devicetree.org/schemas/interrupt-controller/apple,aic2.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Apple Interrupt Controller 2
7+
title: Apple Interrupt Controller 2 and 3
88

99
maintainers:
10-
- Hector Martin <marcan@marcan.st>
10+
- Janne Grunau <j@jannau.net>
1111

1212
description: |
1313
The Apple Interrupt Controller 2 is a simple interrupt controller present on
@@ -28,14 +28,24 @@ description: |
2828
which do not go through a discrete interrupt controller. It also handles
2929
FIQ-based Fast IPIs.
3030
31+
The Apple Interrupt Controller 3 is in its base functionality very similar to
32+
the Apple Interrupt Controller 2 and uses the same device tree bindings. It is
33+
found on Apple ARM SoCs platforms starting with t8122 (M3).
34+
3135
properties:
3236
compatible:
33-
items:
34-
- enum:
35-
- apple,t8112-aic
36-
- apple,t6000-aic
37-
- apple,t6020-aic
38-
- const: apple,aic2
37+
oneOf:
38+
- items:
39+
- enum:
40+
- apple,t8112-aic
41+
- apple,t6000-aic
42+
- apple,t6020-aic
43+
- const: apple,aic2
44+
- items:
45+
- enum:
46+
- apple,t6030-aic3
47+
- const: apple,t8122-aic3
48+
- const: apple,t8122-aic3
3949

4050
interrupt-controller: true
4151

@@ -117,7 +127,9 @@ allOf:
117127
properties:
118128
compatible:
119129
contains:
120-
const: apple,t8112-aic
130+
enum:
131+
- apple,t8112-aic
132+
- apple,t8122-aic3
121133
then:
122134
properties:
123135
'#interrupt-cells':
@@ -141,4 +153,13 @@ examples:
141153
<0x2 0x8e10c000 0x0 0x4>;
142154
reg-names = "core", "event";
143155
};
156+
157+
aic-t8122: interrupt-controller@2d1000000 {
158+
compatible = "apple,t8122-aic3";
159+
#interrupt-cells = <3>;
160+
interrupt-controller;
161+
reg = <0x2 0xd1000000 0x0 0xc000>,
162+
<0x2 0xd1040000 0x0 0x4>;
163+
reg-names = "core", "event";
164+
};
144165
};

0 commit comments

Comments
 (0)