arm64: dts: hisilicon: Add missing clocks property for CPUs
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 23 Jul 2018 03:06:42 +0000 (08:36 +0530)
committerWei Xu <xuwei5@hisilicon.com>
Wed, 19 Sep 2018 14:54:05 +0000 (15:54 +0100)
The clocks property should either be present for all the CPUs of a
cluster or none. If these are present only for a subset of CPUs of a
cluster then things will start falling apart as soon as the CPUs are
brought online in a different order. For example, this will happen
because the operating system looks for such properties in the CPU node
it is trying to bring up, so that it can register a cooling device.

Add missing clocks property.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hi6220.dtsi

index 247024df714fce9ab1d85ee4dc73a5bec948f99c..97d5bf2c6ec587273dc11a3bb4ef0683378096d3 100644 (file)
@@ -99,6 +99,7 @@
                        reg = <0x0 0x1>;
                        enable-method = "psci";
                        next-level-cache = <&CLUSTER0_L2>;
+                       clocks = <&stub_clock 0>;
                        operating-points-v2 = <&cpu_opp_table>;
                        cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                        #cooling-cells = <2>; /* min followed by max */
                        reg = <0x0 0x2>;
                        enable-method = "psci";
                        next-level-cache = <&CLUSTER0_L2>;
+                       clocks = <&stub_clock 0>;
                        operating-points-v2 = <&cpu_opp_table>;
                        cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                        #cooling-cells = <2>; /* min followed by max */
                        reg = <0x0 0x3>;
                        enable-method = "psci";
                        next-level-cache = <&CLUSTER0_L2>;
+                       clocks = <&stub_clock 0>;
                        operating-points-v2 = <&cpu_opp_table>;
                        cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                        #cooling-cells = <2>; /* min followed by max */
                        reg = <0x0 0x100>;
                        enable-method = "psci";
                        next-level-cache = <&CLUSTER1_L2>;
+                       clocks = <&stub_clock 0>;
                        operating-points-v2 = <&cpu_opp_table>;
                        cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                        #cooling-cells = <2>; /* min followed by max */
                        reg = <0x0 0x101>;
                        enable-method = "psci";
                        next-level-cache = <&CLUSTER1_L2>;
+                       clocks = <&stub_clock 0>;
                        operating-points-v2 = <&cpu_opp_table>;
                        cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                        #cooling-cells = <2>; /* min followed by max */
                        reg = <0x0 0x102>;
                        enable-method = "psci";
                        next-level-cache = <&CLUSTER1_L2>;
+                       clocks = <&stub_clock 0>;
                        operating-points-v2 = <&cpu_opp_table>;
                        cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                        #cooling-cells = <2>; /* min followed by max */
                        reg = <0x0 0x103>;
                        enable-method = "psci";
                        next-level-cache = <&CLUSTER1_L2>;
+                       clocks = <&stub_clock 0>;
                        operating-points-v2 = <&cpu_opp_table>;
                        cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
                        #cooling-cells = <2>; /* min followed by max */