From f636a6d00f102244ffd26b0f91f92e1442266765 Mon Sep 17 00:00:00 2001
From: Sven Peter <sven@svenpeter.dev>
Date: Wed, 2 Jun 2021 23:13:53 +0200
Subject: [PATCH] hack the dtsi to make linux happy

---
 arch/arm/dts/t8103.dtsi | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/arch/arm/dts/t8103.dtsi b/arch/arm/dts/t8103.dtsi
index 314d88fe37..0dc8a949cd 100644
--- a/arch/arm/dts/t8103.dtsi
+++ b/arch/arm/dts/t8103.dtsi
@@ -269,27 +269,33 @@
 			compatible = "apple,dart-m1";
 			reg = <0x6 0x81008000 0x0 0x4000>;
 			#iommu-cells = <1>;
-			clocks = <&pcie_core_clk>;
+			//clocks = <&pcie_core_clk>;
 			pcie-dart;
 			sid-mask = <0xffff>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 696 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
 		dart1: dart@682008000 {
 			compatible = "apple,dart-m1";
 			reg = <0x6 0x82008000 0x0 0x4000>;
 			#iommu-cells = <1>;
-			clocks = <&pcie_core_clk>;
+			//clocks = <&pcie_core_clk>;
 			pcie-dart;
 			sid-mask = <0xffff>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 699 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
 		dart2: dart@683008000 {
 			compatible = "apple,dart-m1";
 			reg = <0x6 0x83008000 0x0 0x4000>;
 			#iommu-cells = <1>;
-			clocks = <&pcie_core_clk>;
+			//clocks = <&pcie_core_clk>;
 			pcie-dart;
 			sid-mask = <0xffff>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 702 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
 		smc_mbox: mbox@23e400000 {
@@ -362,9 +368,9 @@
 			msi-parent = <&pcie0>;
 			msi-ranges = <704 32>;
 
-			iommu-map = <0x100 &dart0 1 1>,
-				    <0x200 &dart1 1 1>,
-				    <0x300 &dart2 1 1>;
+			iommu-map = <0x100 &dart0 0 1>,
+				    <0x200 &dart1 0 1>,
+				    <0x300 &dart2 0 1>;
 			iommu-map-mask = <0xff00>;
 
 			bus-range = <0 3>;
-- 
2.30.1 (Apple Git-130)

