Skip to content

Commit ff2a8d9

Browse files
kettenismarcan
authored andcommitted
arm64: apple: Add PCIe node
Add node corresponding to the apcie,t8103 node in the Apple device tree for the Mac mini (M1, 2020). Power domain references and DART (IOMMU) references are left out at the moment and will be added once the appropriate bindings have been settled upon. Acked-by: Marc Zyngier <[email protected]> Signed-off-by: Mark Kettenis <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hector Martin <[email protected]>
1 parent 0a8282b commit ff2a8d9

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

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

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,5 +218,68 @@
218218
<AIC_IRQ 396 IRQ_TYPE_LEVEL_HIGH>,
219219
<AIC_IRQ 397 IRQ_TYPE_LEVEL_HIGH>;
220220
};
221+
222+
pcie0: pcie@690000000 {
223+
compatible = "apple,t8103-pcie", "apple,pcie";
224+
device_type = "pci";
225+
226+
reg = <0x6 0x90000000 0x0 0x1000000>,
227+
<0x6 0x80000000 0x0 0x100000>,
228+
<0x6 0x81000000 0x0 0x4000>,
229+
<0x6 0x82000000 0x0 0x4000>,
230+
<0x6 0x83000000 0x0 0x4000>;
231+
reg-names = "config", "rc", "port0", "port1", "port2";
232+
233+
interrupt-parent = <&aic>;
234+
interrupts = <AIC_IRQ 695 IRQ_TYPE_LEVEL_HIGH>,
235+
<AIC_IRQ 698 IRQ_TYPE_LEVEL_HIGH>,
236+
<AIC_IRQ 701 IRQ_TYPE_LEVEL_HIGH>;
237+
238+
msi-controller;
239+
msi-parent = <&pcie0>;
240+
msi-ranges = <&aic AIC_IRQ 704 IRQ_TYPE_EDGE_RISING 32>;
241+
242+
bus-range = <0 3>;
243+
#address-cells = <3>;
244+
#size-cells = <2>;
245+
ranges = <0x43000000 0x6 0xa0000000 0x6 0xa0000000 0x0 0x20000000>,
246+
<0x02000000 0x0 0xc0000000 0x6 0xc0000000 0x0 0x40000000>;
247+
248+
pinctrl-0 = <&pcie_pins>;
249+
pinctrl-names = "default";
250+
251+
pci@0,0 {
252+
device_type = "pci";
253+
reg = <0x0 0x0 0x0 0x0 0x0>;
254+
reset-gpios = <&pinctrl_ap 152 0>;
255+
max-link-speed = <2>;
256+
257+
#address-cells = <3>;
258+
#size-cells = <2>;
259+
ranges;
260+
};
261+
262+
pci@1,0 {
263+
device_type = "pci";
264+
reg = <0x800 0x0 0x0 0x0 0x0>;
265+
reset-gpios = <&pinctrl_ap 153 0>;
266+
max-link-speed = <2>;
267+
268+
#address-cells = <3>;
269+
#size-cells = <2>;
270+
ranges;
271+
};
272+
273+
pci@2,0 {
274+
device_type = "pci";
275+
reg = <0x1000 0x0 0x0 0x0 0x0>;
276+
reset-gpios = <&pinctrl_ap 33 0>;
277+
max-link-speed = <1>;
278+
279+
#address-cells = <3>;
280+
#size-cells = <2>;
281+
ranges;
282+
};
283+
};
221284
};
222285
};

0 commit comments

Comments
 (0)