linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Ashish Kumar <ashish.kumar@nxp.com>
To: Scott Wood <scott.wood@nxp.com>,
	"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Cc: Shaveta Leekha <shaveta.leekha@nxp.com>
Subject: RE: [PATCH] B4860qds/B4420qds: Updates to device trees for B4860 for DSP clusters and their L2 caches
Date: Thu, 28 Jan 2016 09:51:22 +0000	[thread overview]
Message-ID: <AMXPR04MB101DE5A2DCA0D225C49D9A695DA0@AMXPR04MB101.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <1453967554-16989-1-git-send-email-Ashish.Kumar@nxp.com>

Please ignore this mail. Will send another revision.

Regards
Ashish

-----Original Message-----
From: Ashish Kumar [mailto:Ashish.Kumar@nxp.com]=20
Sent: Thursday, January 28, 2016 1:23 PM
To: Scott Wood <scott.wood@nxp.com>; linuxppc-dev@lists.ozlabs.org
Cc: Ashish Kumar <ashish.kumar@nxp.com>; 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 .

Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Signed-off-by: Shaveta Leekha  <Shaveta.Leekha@nxp.com>
---
 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(-)

diff --git a/arch/powerpc/boot/dts/fsl/b4420si-post.dtsi b/arch/powerpc/boo=
t/dts/fsl/b4420si-post.dtsi
index 86161ae..c0fe250 100644
--- a/arch/powerpc/boot/dts/fsl/b4420si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/b4420si-post.dtsi
@@ -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>;
 	};
 };
diff --git a/arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi b/arch/powerpc/boot=
/dts/fsl/b4420si-pre.dtsi
index 338af7e..5fec4ea 100644
--- a/arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi
+++ b/arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi
@@ -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>;
+			};
+		};
+	};
 };
diff --git a/arch/powerpc/boot/dts/fsl/b4860si-post.dtsi b/arch/powerpc/boo=
t/dts/fsl/b4860si-post.dtsi
index f35e9e0..19679d3 100644
--- a/arch/powerpc/boot/dts/fsl/b4860si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/b4860si-post.dtsi
@@ -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>;
 	};
 };
diff --git a/arch/powerpc/boot/dts/fsl/b4860si-pre.dtsi b/arch/powerpc/boot=
/dts/fsl/b4860si-pre.dtsi
index 1948f73..2e5dcb6 100644
--- a/arch/powerpc/boot/dts/fsl/b4860si-pre.dtsi
+++ b/arch/powerpc/boot/dts/fsl/b4860si-pre.dtsi
@@ -90,4 +90,56 @@
 			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>;
+			};
+		};
+		dsp-cluster1 {
+			#address-cells =3D <1>;
+			#size-cells =3D <0>;
+			compatible =3D "fsl,sc3900-cluster";
+			reg =3D <1>;
+			dsp2: dsp@2 {
+				compatible =3D "fsl,sc3900";
+				reg =3D <2>;
+				next-level-cache =3D <&L2_3>;
+			};
+			dsp3: dsp@3 {
+				compatible =3D "fsl,sc3900";
+				reg =3D <3>;
+				next-level-cache =3D <&L2_3>;
+			};
+		};
+		dsp-cluster2 {
+			#address-cells =3D <1>;
+			#size-cells =3D <0>;
+			compatible =3D "fsl,sc3900-cluster";
+			reg =3D <2>;
+			dsp4: dsp@4 {
+				compatible =3D "fsl,sc3900";
+				reg =3D <4>;
+				next-level-cache =3D <&L2_4>;
+			};
+			dsp5: dsp@5 {
+				compatible =3D "fsl,sc3900";
+				reg =3D <5>;
+				next-level-cache =3D <&L2_4>;
+			};
+		};
+	};
 };
diff --git a/arch/powerpc/boot/dts/fsl/b4si-post.dtsi b/arch/powerpc/boot/d=
ts/fsl/b4si-post.dtsi
index 73136c0..350ea50 100644
--- a/arch/powerpc/boot/dts/fsl/b4si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/b4si-post.dtsi
@@ -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

      reply	other threads:[~2016-01-28 10:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-28  7:52 [PATCH] B4860qds/B4420qds: Updates to device trees for B4860 for DSP clusters and their L2 caches Ashish Kumar
2016-01-28  9:51 ` Ashish Kumar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AMXPR04MB101DE5A2DCA0D225C49D9A695DA0@AMXPR04MB101.eurprd04.prod.outlook.com \
    --to=ashish.kumar@nxp.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=scott.wood@nxp.com \
    --cc=shaveta.leekha@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).