Skip to content

Commit 0691e61

Browse files
committed
arm64: dts: apple: t6022: Add APCIE-GE nodes
Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 16cbd42 commit 0691e61

5 files changed

Lines changed: 94 additions & 4 deletions

File tree

arch/arm64/boot/dts/apple/t6022-j180d.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,22 @@
546546
status = "disabled";
547547
};
548548

549+
&pcie_ge {
550+
status = "ok";
551+
};
552+
553+
&pcie_ge_dart {
554+
status = "ok";
555+
};
556+
557+
&pcie_ge_die1 {
558+
status = "ok";
559+
};
560+
561+
&pcie_ge_dart_die1 {
562+
status = "ok";
563+
};
564+
549565
/* delete unused always-on power-domains on die 1 */
550566
/delete-node/ &ps_disp0_cpu0_die1;
551567
/delete-node/ &ps_disp0_fe_die1;

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@
275275
#size-cells = <2>;
276276
ranges = <0x2 0x0 0x2 0x0 0x4 0x0>,
277277
<0x5 0x80000000 0x5 0x80000000 0x1 0x80000000>,
278-
<0x7 0x0 0x7 0x0 0xf 0x80000000>;
278+
<0x7 0x0 0x7 0x0 0xf 0x80000000>,
279+
<0x16 0x80000000 0x16 0x80000000 0x5 0x80000000>;
279280
nonposted-mmio;
280281
/* Required to get >32-bit DMA via DARTs */
281282
dma-ranges = <0 0 0 0 0xffffffff 0xffffc000>;
@@ -288,7 +289,8 @@
288289
#address-cells = <2>;
289290
#size-cells = <2>;
290291
ranges = <0x2 0x0 0x22 0x0 0x4 0x0>,
291-
<0x7 0x0 0x27 0x0 0xf 0x80000000>;
292+
<0x7 0x0 0x27 0x0 0xf 0x80000000>,
293+
<0x16 0x80000000 0x36 0x80000000 0x5 0x80000000>;
292294
nonposted-mmio;
293295
/* Required to get >32-bit DMA via DARTs */
294296
dma-ranges = <0 0 0 0 0xffffffff 0xffffc000>;
@@ -358,3 +360,9 @@
358360
apple,ppm-ki = <11.0>;
359361
apple,ppm-kp = <0.15>;
360362
};
363+
364+
&pinctrl_ap_die1 {
365+
pcie_ge_pins_die1: pcie-ge1-pins {
366+
pinmux = <APPLE_PINMUX(8, 1)>;
367+
};
368+
};

arch/arm64/boot/dts/apple/t602x-die0.dtsi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,5 +814,3 @@
814814
power-domains = <&ps_apcie_gp_sys>;
815815
status = "disabled";
816816
};
817-
818-

arch/arm64/boot/dts/apple/t602x-dieX.dtsi

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,67 @@
350350
svid = <0xff01>, <0x8087>;
351351
power-domains = <&DIE_NODE(ps_atc3_usb)>;
352352
};
353+
354+
DIE_NODE(pcie_ge): pcie@1680000000 {
355+
compatible = "apple,t6020-pcie-ge", "apple,t6020-pcie";
356+
device_type = "pci";
357+
358+
reg = <0x16 0x80000000 0x0 0x1000000>, /* config */
359+
<0x16 0x91000000 0x0 0x4000>, /* rc */
360+
<0x16 0x94008000 0x0 0x4000>, /* port0 */
361+
<0x16 0x9e01c000 0x0 0x4000>, /* phy0 */
362+
<0x16 0x9401c000 0x0 0x1000>; /* ltssm0 */
363+
reg-names = "config", "rc", "port0", "phy0", "ltssm0";
364+
365+
interrupt-parent = <&aic>;
366+
interrupts = <AIC_IRQ DIE_NO 1356 IRQ_TYPE_LEVEL_HIGH>;
367+
368+
msi-controller;
369+
msi-parent = <&pcie0>;
370+
msi-ranges = <&aic AIC_IRQ DIE_NO 1672 IRQ_TYPE_EDGE_RISING 32>;
371+
372+
373+
iommu-map = <0x100 &pcie_ge_dart 1 1>;
374+
iommu-map-mask = <0xff00>;
375+
376+
bus-range = <0 1>;
377+
#address-cells = <3>;
378+
#size-cells = <2>;
379+
ranges = <0x43000000 0x18 0x00000000 0x18 0x00000000 0x4 0x00000000>,
380+
<0x02000000 0x0 0x80000000 0x17 0x80000000 0x0 0x80000000>;
381+
382+
power-domains = <&ps_apcie_ge_sys>;
383+
pinctrl-0 = <&DIE_NODE(pcie_ge_pins)>;
384+
pinctrl-names = "default";
385+
386+
dma-coherent;
387+
388+
status = "disabled";
389+
390+
DIE_NODE(port_ge00): pci@0,0 {
391+
device_type = "pci";
392+
reg = <0x0 0x0 0x0 0x0 0x0>;
393+
reset-gpios = <&DIE_NODE(pinctrl_ap) 9 GPIO_ACTIVE_LOW>;
394+
395+
#address-cells = <3>;
396+
#size-cells = <2>;
397+
ranges;
398+
399+
interrupt-controller;
400+
#interrupt-cells = <1>;
401+
402+
interrupt-map-mask = <0 0 0 7>;
403+
interrupt-map = <0 0 0 1 &port00 0 0 0 0>;
404+
};
405+
};
406+
407+
DIE_NODE(pcie_ge_dart): iommu@1694000000 {
408+
compatible = "apple,t6020-dart", "apple,t8110-dart";
409+
reg = <0x16 0x94000000 0x0 0x4000>;
410+
#iommu-cells = <1>;
411+
interrupt-parent = <&aic>;
412+
interrupts = <AIC_IRQ DIE_NO 1357 IRQ_TYPE_LEVEL_HIGH>;
413+
power-domains = <&ps_apcie_ge_sys>;
414+
status = "disabled";
415+
};
416+

arch/arm64/boot/dts/apple/t602x-gpio-pins.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,8 @@
7878
<APPLE_PINMUX(2, 1)>,
7979
<APPLE_PINMUX(3, 1)>;
8080
};
81+
82+
pcie_ge_pins: pcie-ge-pins {
83+
pinmux = <APPLE_PINMUX(8, 1)>;
84+
};
8185
};

0 commit comments

Comments
 (0)