OSDN Git Service

arm64: dts: qcom: sc7280: Define CPU topology
authorRajendra Nayak <rnayak@codeaurora.org>
Wed, 25 Aug 2021 10:36:58 +0000 (16:06 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 21 Sep 2021 23:24:22 +0000 (18:24 -0500)
sc7280 has 8 big.LITTLE CPUs setup with DynamIQ, so all cores are
within the same CPU cluster. Add cpu-map to define the CPU topology.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1629887818-28489-1-git-send-email-rnayak@codeaurora.org
arch/arm64/boot/dts/qcom/sc7280.dtsi

index 1c5e456..a4b4277 100644 (file)
                        };
                };
 
+               cpu-map {
+                       cluster0 {
+                               core0 {
+                                       cpu = <&CPU0>;
+                               };
+
+                               core1 {
+                                       cpu = <&CPU1>;
+                               };
+
+                               core2 {
+                                       cpu = <&CPU2>;
+                               };
+
+                               core3 {
+                                       cpu = <&CPU3>;
+                               };
+
+                               core4 {
+                                       cpu = <&CPU4>;
+                               };
+
+                               core5 {
+                                       cpu = <&CPU5>;
+                               };
+
+                               core6 {
+                                       cpu = <&CPU6>;
+                               };
+
+                               core7 {
+                                       cpu = <&CPU7>;
+                               };
+                       };
+               };
+
                idle-states {
                        entry-method = "psci";