ARM: dts: qcom: Add missing OPP properties for CPUs
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 25 May 2018 10:32:00 +0000 (16:02 +0530)
committerAndy Gross <andy.gross@linaro.org>
Sat, 21 Jul 2018 21:18:14 +0000 (16:18 -0500)
The OPP properties, like "operating-points", 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 create an OPP
table.

Add such missing properties.

Fix other missing property (clock latency) as well to make it all
work.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-ipq4019.dtsi

index 7bcd763..78db673 100644 (file)
                        reg = <0x1>;
                        clocks = <&gcc GCC_APPS_CLK_SRC>;
                        clock-frequency = <0>;
+                       operating-points = <
+                               /* kHz  uV (fixed) */
+                               48000   1100000
+                               200000  1100000
+                               500000  1100000
+                               666000  1100000
+                       >;
+                       clock-latency = <256000>;
                };
 
                cpu@2 {
                        reg = <0x2>;
                        clocks = <&gcc GCC_APPS_CLK_SRC>;
                        clock-frequency = <0>;
+                       operating-points = <
+                               /* kHz  uV (fixed) */
+                               48000   1100000
+                               200000  1100000
+                               500000  1100000
+                               666000  1100000
+                       >;
+                       clock-latency = <256000>;
                };
 
                cpu@3 {
                        reg = <0x3>;
                        clocks = <&gcc GCC_APPS_CLK_SRC>;
                        clock-frequency = <0>;
+                       operating-points = <
+                               /* kHz  uV (fixed) */
+                               48000   1100000
+                               200000  1100000
+                               500000  1100000
+                               666000  1100000
+                       >;
+                       clock-latency = <256000>;
                };
        };