Skip to content

Commit 128888a

Browse files
Marc Zyngiermarcan
authored andcommitted
arm64: dts: apple: t8103: Add root port interrupt routing
Add the interrupt-map properties that are required for INTx signalling. Tested-by: Alyssa Rosenzweig <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Signed-off-by: Hector Martin <[email protected]>
1 parent 3c866bb commit 128888a

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

arch/arm64/boot/dts/apple/t8103.dtsi

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
pinctrl-0 = <&pcie_pins>;
279279
pinctrl-names = "default";
280280

281-
pci@0,0 {
281+
port00: pci@0,0 {
282282
device_type = "pci";
283283
reg = <0x0 0x0 0x0 0x0 0x0>;
284284
reset-gpios = <&pinctrl_ap 152 0>;
@@ -287,9 +287,18 @@
287287
#address-cells = <3>;
288288
#size-cells = <2>;
289289
ranges;
290+
291+
interrupt-controller;
292+
#interrupt-cells = <1>;
293+
294+
interrupt-map-mask = <0 0 0 7>;
295+
interrupt-map = <0 0 0 1 &port00 0 0 0 0>,
296+
<0 0 0 2 &port00 0 0 0 1>,
297+
<0 0 0 3 &port00 0 0 0 2>,
298+
<0 0 0 4 &port00 0 0 0 3>;
290299
};
291300

292-
pci@1,0 {
301+
port01: pci@1,0 {
293302
device_type = "pci";
294303
reg = <0x800 0x0 0x0 0x0 0x0>;
295304
reset-gpios = <&pinctrl_ap 153 0>;
@@ -298,9 +307,18 @@
298307
#address-cells = <3>;
299308
#size-cells = <2>;
300309
ranges;
310+
311+
interrupt-controller;
312+
#interrupt-cells = <1>;
313+
314+
interrupt-map-mask = <0 0 0 7>;
315+
interrupt-map = <0 0 0 1 &port01 0 0 0 0>,
316+
<0 0 0 2 &port01 0 0 0 1>,
317+
<0 0 0 3 &port01 0 0 0 2>,
318+
<0 0 0 4 &port01 0 0 0 3>;
301319
};
302320

303-
pci@2,0 {
321+
port02: pci@2,0 {
304322
device_type = "pci";
305323
reg = <0x1000 0x0 0x0 0x0 0x0>;
306324
reset-gpios = <&pinctrl_ap 33 0>;
@@ -309,6 +327,15 @@
309327
#address-cells = <3>;
310328
#size-cells = <2>;
311329
ranges;
330+
331+
interrupt-controller;
332+
#interrupt-cells = <1>;
333+
334+
interrupt-map-mask = <0 0 0 7>;
335+
interrupt-map = <0 0 0 1 &port02 0 0 0 0>,
336+
<0 0 0 2 &port02 0 0 0 1>,
337+
<0 0 0 3 &port02 0 0 0 2>,
338+
<0 0 0 4 &port02 0 0 0 3>;
312339
};
313340
};
314341
};

0 commit comments

Comments
 (0)