Skip to contentSkip to conversation

B4860qds/B4420qds: Updates to device trees for B4860 for DSP clusters and their L2 caches

PATCH In review Ashish Kumar 1 participant 2 messages Jan 28, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 B4860qds/B4420qds: Updates to device trees for B4860 for DSP clusters and their L2 caches

B4860 has 1 PPC core cluster and 3 DSP core clusters. Similarly B4420 has 1 PPC core cluster and 1 DSP core cluster.

Each DSP core cluster consists of 2 SC3900 cores and a shared L2 cache.

1. Add DSP clusters for B4420
2. Reorganized the L2 cache nodes such that they now appear in only the soc specific dtsi files(b4860si-post.dtsi and b4420si-post.dtsi). Earlier they were shown partly in common b4si-post.dtsi and si specific b4860si-post.dtsi files .

---
 arch/powerpc/boot/dts/fsl/b4420si-post.dtsi |    8 ++++
 arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi  |   23 ++++++++++++
 arch/powerpc/boot/dts/fsl/b4860si-post.dtsi |   18 +++++++++
 arch/powerpc/boot/dts/fsl/b4860si-pre.dtsi  |   52 +++++++++++++++++++++++++++
 arch/powerpc/boot/dts/fsl/b4si-post.dtsi    |    5 ---
 5 files changed, 101 insertions(+), 5 deletions(-)
arch/powerpc/boot/dts/fsl/b4420si-post.dtsi +8 -0
index 86161ae..c0fe250 100644
@@ -102,5 +102,13 @@
 
 	L2: l2-cache-controller@c20000 {
 		compatible = "fsl,b4420-l2-cache-controller";
+		reg = <0xc20000 0x1000>;
+		next-level-cache = <&cpc>;
+	};
+/* Following is DSP L2 cache*/
+	L2_2: l2-cache-controller@c60000 {
+		compatible = "fsl,b4420-l2-cache-controller";
+		reg = <0xc60000 0x1000>;
+		next-level-cache = <&cpc>;
 	};
 };
arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi +23 -0
index 338af7e..5fec4ea 100644
@@ -76,4 +76,27 @@
 			fsl,portid-mapping = <0x80000000>;
 		};
 	};
+
+	dsp-clusters {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		dsp-cluster0 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "fsl,sc3900-cluster";
+			reg = <0>;
+
+			dsp0: dsp@0 {
+				compatible = "fsl,sc3900";
+				reg = <0>;
+				next-level-cache = <&L2_2>;
+			};
+			dsp1: dsp@1 {
+				compatible = "fsl,sc3900";
+				reg = <1>;
+				next-level-cache = <&L2_2>;
+			};
+		};
+	};
 };
arch/powerpc/boot/dts/fsl/b4860si-post.dtsi +18 -0
index f35e9e0..19679d3 100644
@@ -204,5 +204,23 @@
 
 	L2: l2-cache-controller@c20000 {
 		compatible = "fsl,b4860-l2-cache-controller";
+		reg = <0xc20000 0x1000>;
+		next-level-cache = <&cpc>;
+	};
+/* Following are DSP L2 cache */
+	L2_2: l2-cache-controller@c60000 {
+		compatible = "fsl,b4860-l2-cache-controller";
+		reg = <0xc60000 0x1000>;
+		next-level-cache = <&cpc>;
+	};
+	L2_3: l2-cache-controller@ca0000 {
+		compatible = "fsl,b4860-l2-cache-controller";
+		reg = <0xca0000 0x1000>;
+		next-level-cache = <&cpc>;
+	};
+	L2_4: l2-cache-controller@ce0000 {
+		compatible = "fsl,b4860-l2-cache-controller";
+		reg = <0xce0000 0x1000>;
+		next-level-cache = <&cpc>;
 	};
 };
arch/powerpc/boot/dts/fsl/b4860si-pre.dtsi +52 -0

56 lines not on this page · raw message

arch/powerpc/boot/dts/fsl/b4si-post.dtsi +0 -5
index 73136c0..350ea50 100644
@@ -348,9 +348,4 @@
 		interrupts = <16 2 1 29>;
 	};
 
-	L2: l2-cache-controller@c20000 {
-		compatible = "fsl,b4-l2-cache-controller";
-		reg = <0xc20000 0x1000>;
-		next-level-cache = <&cpc>;
-	};
 };
Signature · 1 line
1.7.6.GIT
#1 lore raw

Please ignore this mail. Will send another revision.

Regards
Ashish

-----Original Message-----
From: Ashish Kumar [mailto:[email protected]]=20
Sent: Thursday, January 28, 2016 1:23 PM
To: Scott Wood <[email protected]>; [email protected]
Cc: Ashish Kumar <[email protected]>; Shaveta Leekha <shaveta.leekha@nxp= .com>
Subject: [PATCH] B4860qds/B4420qds: Updates to device trees for B4860 for D= SP clusters and their L2 caches

B4860 has 1 PPC core cluster and 3 DSP core clusters. Similarly B4420 has 1 PPC core cluster and 1 DSP core cluster.

Each DSP core cluster consists of 2 SC3900 cores and a shared L2 cache.

1. Add DSP clusters for B4420
2. Reorganized the L2 cache nodes such that they now appear in only the soc= specific dtsi files(b4860si-post.dtsi and b4420si-post.dtsi).
Earlier they were shown partly in common b4si-post.dtsi and si specific b48= 60si-post.dtsi files .

---
 arch/powerpc/boot/dts/fsl/b4420si-post.dtsi |    8 ++++
 arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi  |   23 ++++++++++++
 arch/powerpc/boot/dts/fsl/b4860si-post.dtsi |   18 +++++++++
 arch/powerpc/boot/dts/fsl/b4860si-pre.dtsi  |   52 +++++++++++++++++++++++=
++++
 arch/powerpc/boot/dts/fsl/b4si-post.dtsi    |    5 ---
 5 files changed, 101 insertions(+), 5 deletions(-)
arch/powerpc/boo= renamed from arch/powerpc/boot/dts/fsl/b4420si-post.dtsi +0 -0

t/dts/fsl/b4420si-post.dtsi
index 86161ae..c0fe250 100644

arch/powerpc/boot/dts/fsl/b4420si-post.dtsi +0 -0
@@ -102,5 +102,13 @@

=20
L2: l2-cache-controller@c20000 {
compatible =3D "fsl,b4420-l2-cache-controller";
+ reg =3D <0xc20000 0x1000>;
+ next-level-cache =3D <&cpc>;
+ };
+/* Following is DSP L2 cache*/
+ L2_2: l2-cache-controller@c60000 {
+ compatible =3D "fsl,b4420-l2-cache-controller";
+ reg =3D <0xc60000 0x1000>;
+ next-level-cache =3D <&cpc>;
};
};

arch/powerpc/boot= renamed from arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi +0 -0

/dts/fsl/b4420si-pre.dtsi
index 338af7e..5fec4ea 100644

arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi +23 -0
@@ -76,4 +76,27 @@
 			fsl,portid-mapping =3D <0x80000000>;
 		};
 	};
+
+	dsp-clusters {
+		#address-cells =3D <1>;
+		#size-cells =3D <0>;
+
+		dsp-cluster0 {
+			#address-cells =3D <1>;
+			#size-cells =3D <0>;
+			compatible =3D "fsl,sc3900-cluster";
+			reg =3D <0>;
+
+			dsp0: dsp@0 {
+				compatible =3D "fsl,sc3900";
+				reg =3D <0>;
+				next-level-cache =3D <&L2_2>;
+			};
+			dsp1: dsp@1 {
+				compatible =3D "fsl,sc3900";
+				reg =3D <1>;
+				next-level-cache =3D <&L2_2>;
+			};
+		};
+	};
 };
arch/powerpc/boo= renamed from arch/powerpc/boot/dts/fsl/b4860si-post.dtsi +0 -0

t/dts/fsl/b4860si-post.dtsi
index f35e9e0..19679d3 100644

arch/powerpc/boot/dts/fsl/b4860si-post.dtsi +0 -0
@@ -204,5 +204,23 @@

=20
L2: l2-cache-controller@c20000 {
compatible =3D "fsl,b4860-l2-cache-controller";
+ reg =3D <0xc20000 0x1000>;
+ next-level-cache =3D <&cpc>;
+ };
+/* Following are DSP L2 cache */
+ L2_2: l2-cache-controller@c60000 {
+ compatible =3D "fsl,b4860-l2-cache-controller";
+ reg =3D <0xc60000 0x1000>;
+ next-level-cache =3D <&cpc>;
+ };
+ L2_3: l2-cache-controller@ca0000 {
+ compatible =3D "fsl,b4860-l2-cache-controller";
+ reg =3D <0xca0000 0x1000>;
+ next-level-cache =3D <&cpc>;
+ };
+ L2_4: l2-cache-controller@ce0000 {
+ compatible =3D "fsl,b4860-l2-cache-controller";
+ reg =3D <0xce0000 0x1000>;
+ next-level-cache =3D <&cpc>;
};
};

arch/powerpc/boot= renamed from arch/powerpc/boot/dts/fsl/b4860si-pre.dtsi +0 -0

/dts/fsl/b4860si-pre.dtsi
index 1948f73..2e5dcb6 100644

arch/powerpc/boot/dts/fsl/b4860si-pre.dtsi +52 -0

56 lines not on this page · raw message

arch/powerpc/boot/d= renamed from arch/powerpc/boot/dts/fsl/b4si-post.dtsi +0 -0

ts/fsl/b4si-post.dtsi
index 73136c0..350ea50 100644

arch/powerpc/boot/dts/fsl/b4si-post.dtsi +0 -0
@@ -348,9 +348,4 @@
 		interrupts =3D <16 2 1 29>;
 	};

=20
- L2: l2-cache-controller@c20000 {
- compatible =3D "fsl,b4-l2-cache-controller";
- reg =3D <0xc20000 0x1000>;
- next-level-cache =3D <&cpc>;
- };
};
--
1.7.6.GIT