Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1591875 > unrolled thread

[PATCH 2/3] ARC: [dts] add cpu nodes to ARCHS SMP device tree

Started byVlad Zakharov <Vladislav.Zakharov@synopsys.com>
First post2017-03-03 12:40 +0100
Last post2017-03-03 12:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/3] ARC: [dts] add cpu nodes to ARCHS SMP device tree Vlad Zakharov <Vladislav.Zakharov@synopsys.com> - 2017-03-03 12:40 +0100

#1591875 — [PATCH 2/3] ARC: [dts] add cpu nodes to ARCHS SMP device tree

FromVlad Zakharov <Vladislav.Zakharov@synopsys.com>
Date2017-03-03 12:40 +0100
Subject[PATCH 2/3] ARC: [dts] add cpu nodes to ARCHS SMP device tree
Message-ID<tgTIZ-wr-3@gated-at.bofh.it>
Trying to get clock for CPU cores on SMP systems I found that I was only
able to get clock for core[0]. That was because only one cpu@0 node was
represented in ARC HS device tree and it was impossible to get clock for
"non-existing" cores.

So as ARC HS may have up to 4 cores we update device tree to match
maximum possible cores quantity.

Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
---
 arch/arc/boot/dts/skeleton_hs_idu.dtsi | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/arch/arc/boot/dts/skeleton_hs_idu.dtsi b/arch/arc/boot/dts/skeleton_hs_idu.dtsi
index 662c5e0..54b277d 100644
--- a/arch/arc/boot/dts/skeleton_hs_idu.dtsi
+++ b/arch/arc/boot/dts/skeleton_hs_idu.dtsi
@@ -19,10 +19,28 @@
 
 		cpu@0 {
 			device_type = "cpu";
-			compatible = "snps,archs38xN";
+			compatible = "snps,archs38";
 			reg = <0>;
 			clocks = <&core_clk>;
 		};
+		cpu@1 {
+			device_type = "cpu";
+			compatible = "snps,archs38";
+			reg = <1>;
+			clocks = <&core_clk>;
+		};
+		cpu@2 {
+			device_type = "cpu";
+			compatible = "snps,archs38";
+			reg = <2>;
+			clocks = <&core_clk>;
+		};
+		cpu@3 {
+			device_type = "cpu";
+			compatible = "snps,archs38";
+			reg = <3>;
+			clocks = <&core_clk>;
+		};
 	};
 
 	/* TIMER0 with interrupt for clockevent */
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web