Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions arch/arm64/boot/dts/apple/t6030-misc-interfaces.dtsi
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/* Disabled tunnel translation and miscellaneous interfaces. */
/* Disabled miscellaneous interfaces. */

&soc {
pciec1_dart: iommu@b21008000 {
compatible = "apple,t6030-dart", "apple,t8110-dart";
reg = <0xb 0x21008000 0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1135 IRQ_TYPE_LEVEL_HIGH>;
#iommu-cells = <1>;
power-domains = <&ps_atc1_cio_pcie>;
status = "disabled";
};

pciec2_dart: iommu@f21008000 {
compatible = "apple,t6030-dart", "apple,t8110-dart";
reg = <0xf 0x21008000 0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1193 IRQ_TYPE_LEVEL_HIGH>;
#iommu-cells = <1>;
power-domains = <&ps_atc2_cio_pcie>;
status = "disabled";
};

serial2: serial@289208000 {
compatible = "apple,s5l-uart";
reg = <0x2 0x89208000 0 0x4000>;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/apple/t6030-peripherals.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<0xb 0x20008000 0x0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1136 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&pciec1_dart 15>;
iommus = <&usb4_1_pcie_dart 15>;
status = "disabled";
};

Expand All @@ -211,7 +211,7 @@
<0xf 0x20008000 0x0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1194 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&pciec2_dart 15>;
iommus = <&usb4_2_pcie_dart 15>;
status = "disabled";
};

Expand Down
190 changes: 190 additions & 0 deletions arch/arm64/boot/dts/apple/t6030-usb4.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,198 @@
};
};
};

usb4_1_pcie_tunnel: usb4-pcie-tunnel-1 {
#address-cells = <2>;
#size-cells = <2>;
ranges;
nonposted-mmio;
/* Preserve the SoC DMA window after moving the virtual container. */
dma-ranges = <0 0 0 0 0xffffffff 0xffffc000>;

usb4_1_pcie_dart: iommu@b21008000 {
compatible = "apple,t6030-dart", "apple,t8110-dart";
reg = <0xb 0x21008000 0x0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1135 IRQ_TYPE_LEVEL_HIGH>;
#iommu-cells = <1>;
power-domains = <&ps_atc1_cio_pcie>;
/* No bootloader fills this one; the tunnel's cold init needs it. */
apple,tunable =
<0x20c 0x800001b7 0x800001b7>,
<0x220 0xf0f0f 0xf0f0f>,
<0x224 0xffffff 0x80808>,
<0x300 0x1f31 0x1>,
<0x308 0x3ffffffc 0x10000000>,
<0x310 0x3ffffffc 0x3ffffffc>,
<0x318 0x1f31 0x1>,
<0x320 0x3ffffffc 0x1f00000>,
<0x328 0x3ffffffc 0x1f0bffc>;
};

usb4_1_pcie: pcie@b30000000 {
compatible = "apple,t8122-pciec", "apple,t8103-pciec";
device_type = "pci";
reg = <0xb 0x30000000 0x0 0x10000000>,
<0xb 0x20000000 0x0 0x4000>,
<0xb 0x21000000 0x0 0x8000>,
<0xb 0x20004000 0x0 0x4000>,
<0xb 0x20200000 0x0 0x4000>,
<0xb 0x21010000 0x0 0x4000>,
<0xb 0x20008000 0x0 0x4000>,
<0xb 0x2100c000 0x0 0x4000>;
reg-names = "config", "rc", "port0", "fabric",
"debug", "ltssm", "oe-fabric", "intr2axi";
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1134 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_atc1_cio_pcie>;
apple,pciec-kernel-init;
/*
* m1n1 fills the rc, fabric and debug tunables through the
* usb4_1_pcie alias, but not this one.
*/
apple,tunable-oe-fabric =
<0x4 0x70007 0x40004>,
<0x8 0x1 0x1>,
<0xc 0x1 0x1>,
<0x10 0x801f 0x4>,
<0x18 0x801f 0x4>,
<0x20 0x801f 0x4>;
msi-controller;
msi-parent = <&usb4_1_pcie>;
msi-ranges = <&aic AIC_IRQ 1406 IRQ_TYPE_EDGE_RISING 32>;
apple,msi-vector-base = <0x40>;
iommu-map = <0x0 &usb4_1_pcie_dart 0x0 0x40>;
iommu-map-mask = <0x3f>;
bus-range = <0x0 0x7f>;
#address-cells = <3>;
#size-cells = <2>;
ranges = <0x43000000 0xc 0x0
0xc 0x0 0x2 0x0>,
<0x02000000 0x0 0x100000
0xe 0x100000 0x0 0x3ff00000>,
<0x42000000 0x0 0x40000000
0xe 0x40000000 0x0 0x40000000>;

usb4_1_pcie_port: pci@0,0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
external-facing;
/* apple,tunable is filled by the bootloader */
#address-cells = <3>;
#size-cells = <2>;
ranges;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &usb4_1_pcie_port 0 0 0 0>,
<0 0 0 2 &usb4_1_pcie_port 0 0 0 1>,
<0 0 0 3 &usb4_1_pcie_port 0 0 0 2>,
<0 0 0 4 &usb4_1_pcie_port 0 0 0 3>;
};
};
};

usb4_2_pcie_tunnel: usb4-pcie-tunnel-2 {
#address-cells = <2>;
#size-cells = <2>;
ranges;
nonposted-mmio;
/* Preserve the SoC DMA window after moving the virtual container. */
dma-ranges = <0 0 0 0 0xffffffff 0xffffc000>;

usb4_2_pcie_dart: iommu@f21008000 {
compatible = "apple,t6030-dart", "apple,t8110-dart";
reg = <0xf 0x21008000 0x0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1193 IRQ_TYPE_LEVEL_HIGH>;
#iommu-cells = <1>;
power-domains = <&ps_atc2_cio_pcie>;
/* No bootloader fills this one; the tunnel's cold init needs it. */
apple,tunable =
<0x20c 0x800001b7 0x800001b7>,
<0x220 0xf0f0f 0xf0f0f>,
<0x224 0xffffff 0x80808>,
<0x300 0x1f31 0x1>,
<0x308 0x3ffffffc 0x10000000>,
<0x310 0x3ffffffc 0x3ffffffc>,
<0x318 0x1f31 0x1>,
<0x320 0x3ffffffc 0x1f00000>,
<0x328 0x3ffffffc 0x1f0bffc>;
};

usb4_2_pcie: pcie@f30000000 {
compatible = "apple,t8122-pciec", "apple,t8103-pciec";
device_type = "pci";
reg = <0xf 0x30000000 0x0 0x10000000>,
<0xf 0x20000000 0x0 0x4000>,
<0xf 0x21000000 0x0 0x8000>,
<0xf 0x20004000 0x0 0x4000>,
<0xf 0x20200000 0x0 0x4000>,
<0xf 0x21010000 0x0 0x4000>,
<0xf 0x20008000 0x0 0x4000>,
<0xf 0x2100c000 0x0 0x4000>;
reg-names = "config", "rc", "port0", "fabric",
"debug", "ltssm", "oe-fabric", "intr2axi";
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1192 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_atc2_cio_pcie>;
apple,pciec-kernel-init;
/*
* m1n1 fills the rc, fabric and debug tunables through the
* usb4_2_pcie alias, but not this one.
*/
apple,tunable-oe-fabric =
<0x4 0x70007 0x40004>,
<0x8 0x1 0x1>,
<0xc 0x1 0x1>,
<0x10 0x801f 0x4>,
<0x18 0x801f 0x4>,
<0x20 0x801f 0x4>;
msi-controller;
msi-parent = <&usb4_2_pcie>;
msi-ranges = <&aic AIC_IRQ 1438 IRQ_TYPE_EDGE_RISING 32>;
apple,msi-vector-base = <0x60>;
iommu-map = <0x0 &usb4_2_pcie_dart 0x0 0x40>;
iommu-map-mask = <0x3f>;
bus-range = <0x0 0x7f>;
#address-cells = <3>;
#size-cells = <2>;
ranges = <0x43000000 0x10 0x0
0x10 0x0 0x2 0x0>,
<0x02000000 0x0 0x100000
0x12 0x100000 0x0 0x3ff00000>,
<0x42000000 0x0 0x40000000
0x12 0x40000000 0x0 0x40000000>;

usb4_2_pcie_port: pci@0,0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
external-facing;
/* apple,tunable is filled by the bootloader */
#address-cells = <3>;
#size-cells = <2>;
ranges;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &usb4_2_pcie_port 0 0 0 0>,
<0 0 0 2 &usb4_2_pcie_port 0 0 0 1>,
<0 0 0 3 &usb4_2_pcie_port 0 0 0 2>,
<0 0 0 4 &usb4_2_pcie_port 0 0 0 3>;
};
};
};
};

&usb4_0_acio {
apple,pcie-tunnel = <&usb4_0_pcie_tunnel>;
};

&usb4_1_acio {
apple,pcie-tunnel = <&usb4_1_pcie_tunnel>;
};

&usb4_2_acio {
apple,pcie-tunnel = <&usb4_2_pcie_tunnel>;
};
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/apple/t603x-j514s-j516s-usb4.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/ {
aliases {
usb4_0_pcie = &usb4_0_pcie;
usb4-1-pcie = &usb4_1_pcie;
usb4-2-pcie = &usb4_2_pcie;
usb4_0_pcie_adapter = &usb4_0_acio;
usb4_1_pcie_adapter = &usb4_1_acio;
usb4_2_pcie_adapter = &usb4_2_acio;
Expand Down
Loading