ARC: [dts] add cpu nodes to ARCHS SMP device tree
authorVlad Zakharov <Vladislav.Zakharov@synopsys.com>
Fri, 3 Mar 2017 11:30:01 +0000 (14:30 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 6 Mar 2017 04:04:59 +0000 (20:04 -0800)
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>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/boot/dts/skeleton_hs_idu.dtsi

index 662c5e020693e75db45071727a5edc0c7411f9c4..54b277d7dea0e4594245aa50df0a3276a85a9916 100644 (file)
 
                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 */