mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konradybcio@gmail.com>
To: skrzynka@konradybcio.pl
Cc: Konrad Dybcio <konradybcio@gmail.com>,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	Kees Cook <keescook@chromium.org>,
	Anton Vorontsov <anton@enomsg.org>,
	Colin Cross <ccross@android.com>, Tony Luck <tony.luck@intel.com>,
	linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 03/21] arm64: dts: qcom: msm8994: Add a proper CPU map
Date: Sat, 20 Jun 2020 16:46:19 +0200	[thread overview]
Message-ID: <20200620144639.335093-4-konradybcio@gmail.com> (raw)
In-Reply-To: <20200620144639.335093-1-konradybcio@gmail.com>

Add a proper CPU map to enable the use of all 8 cores.

Signed-off-by: Konrad Dybcio <konradybcio@gmail.com>
---
 arch/arm64/boot/dts/qcom/msm8994.dtsi | 100 ++++++++++++++++++++++++--
 1 file changed, 96 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi
index f10c8b34bd08..ebb6a0630604 100644
--- a/arch/arm64/boot/dts/qcom/msm8994.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi
@@ -20,26 +20,118 @@ / {
 	chosen { };
 
 	cpus {
-		#address-cells = <1>;
+		#address-cells = <2>;
 		#size-cells = <0>;
+
 		cpu-map {
 			cluster0 {
 				core0 {
 					cpu = <&CPU0>;
 				};
+
+				core1 {
+					cpu = <&CPU1>;
+				};
+
+				core2 {
+					cpu = <&CPU2>;
+				};
+
+				core3 {
+					cpu = <&CPU3>;
+				};
+			};
+
+			cluster1 {
+				core0 {
+					cpu = <&CPU4>;
+				};
+
+				core1 {
+					cpu = <&CPU5>;
+				};
+
+				core2 {
+					cpu = <&CPU6>;
+				};
+
+				core3 { 
+					cpu = <&CPU7>;
+				};
 			};
 		};
 
 		CPU0: cpu@0 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a53";
-			reg = <0x0>;
+			reg = <0x0 0x0>;
 			next-level-cache = <&L2_0>;
+			enable-method = "psci";
 			L2_0: l2-cache {
-			      compatible = "cache";
-			      cache-level = <2>;
+				compatible = "cache";
+				cache-level = <2>;
 			};
 		};
+
+		CPU1: cpu@1 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a53";
+			reg = <0x0 0x1>;
+			next-level-cache = <&L2_0>;
+			enable-method = "psci";
+		};
+
+		CPU2: cpu@2 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a53";
+			reg = <0x0 0x2>;
+			next-level-cache = <&L2_0>;
+			enable-method = "psci";
+		};
+
+		CPU3: cpu@3 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a53";
+			reg = <0x0 0x3>;
+			next-level-cache = <&L2_0>;
+			enable-method = "psci";
+		};
+
+		CPU4: cpu@100 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a57";
+			reg = <0x0 0x100>;
+			next-level-cache = <&L2_1>;
+			enable-method = "psci";
+			L2_1: l2-cache {
+				compatible = "cache";
+				cache-level = <2>;
+			};
+		};
+
+		CPU5: cpu@101 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a57";
+			reg = <0x0 0x101>;
+			next-level-cache = <&L2_1>;
+			enable-method = "psci";
+		};
+
+		CPU6: cpu@102 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a57";
+			reg = <0x0 0x101>;
+			next-level-cache = <&L2_1>;
+			enable-method = "psci";
+		};
+
+		CPU7: cpu@103 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a57";
+			reg = <0x0 0x101>;
+			next-level-cache = <&L2_1>;
+			enable-method = "psci";
+		};
 	};
 
 	timer {
-- 
2.27.0


  parent reply	other threads:[~2020-06-20 14:49 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-20 14:46 [PATCH 00/21] MSM8994 peripheral enablement, DTS updates Konrad Dybcio
2020-06-20 14:46 ` [PATCH 01/21] clk: qcom: smd: Add support for MSM8992/4 rpm clocks Konrad Dybcio
2020-06-23 19:11   ` Stephen Boyd
2020-06-20 14:46 ` [PATCH 02/21] arm64: dts: qcom: msm8994: Add SPMI PMIC arbiter device Konrad Dybcio
2020-06-20 14:46 ` Konrad Dybcio [this message]
2020-06-20 14:46 ` [PATCH 04/21] arm64: dts: qcom: msm8994: Wrap clock nodes into clocks {} Konrad Dybcio
2020-06-20 14:46 ` [PATCH 05/21] arm64: dts: qcom: msm8994: Rename the smem node and remove its unit address Konrad Dybcio
2020-06-20 14:46 ` [PATCH 06/21] arm64: dts: qcom: msm8994: Rename clock_gcc label to gcc Konrad Dybcio
2020-06-20 14:46 ` [PATCH 07/21] arm64: dts: qcom: msm8994: Add apcs node Konrad Dybcio
2020-06-20 14:46 ` [PATCH 08/21] arm64: dts: qcom: msm8994: Add pmu node Konrad Dybcio
2020-06-20 14:46 ` [PATCH 09/21] arm64: dts: qcom: msm8994: Add PSCI node Konrad Dybcio
2020-06-20 14:46 ` [PATCH 10/21] arm64: dts: qcom: msm8994: Add support for SMD RPM Konrad Dybcio
2020-06-20 14:46 ` [PATCH 11/21] arm64: dts: qcom: msm8994: Add SDHCI1 node Konrad Dybcio
2020-06-20 14:46 ` [PATCH 12/21] arm64: dts: qcom: msm8994: Remove qcom,msm-id and qcom-pmic-id properties Konrad Dybcio
2020-06-20 14:46 ` [PATCH 13/21] arm64: dts: qcom: msm8994: Make comments C style Konrad Dybcio
2020-06-20 14:46 ` [PATCH 14/21] arm64: dts: qcom: msm8994: Add SCM node Konrad Dybcio
2020-06-20 14:46 ` [PATCH 15/21] arm64: dts: qcom: msm8994: Add BLSP2 UART2 node Konrad Dybcio
2020-06-20 14:46 ` [PATCH 16/21] arm64: dts: qcom: msm8994: Add I2C, SPI and BLSP DMA nodes Konrad Dybcio
2020-06-20 14:46 ` [PATCH 17/21] arm64: dts: qcom: Update msm8994 pin configuration Konrad Dybcio
2020-06-20 14:46 ` [PATCH 18/21] regulator: qcom_smd: Fix pmi8994 label Konrad Dybcio
2020-06-21  6:05   ` Bjorn Andersson
2020-06-20 14:46 ` [PATCH 19/21] arm64: dts: qcom: angler: Add qcom,msm-id and pmic-id Konrad Dybcio
2020-06-20 14:46 ` [PATCH 20/21] arm64: dts: qcom: Add support for Sony Xperia Z5 (SoMC Sumire-RoW) Konrad Dybcio
2020-06-20 14:46 ` [PATCH 21/21] arm64: dts: qcom: Move msm8994-smd-rpm contents to lg-bullhead Konrad Dybcio
2020-06-23 12:39 ` [PATCH 00/21] MSM8994 peripheral enablement, DTS updates Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200620144639.335093-4-konradybcio@gmail.com \
    --to=konradybcio@gmail.com \
    --cc=agross@kernel.org \
    --cc=anton@enomsg.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=broonie@kernel.org \
    --cc=ccross@android.com \
    --cc=devicetree@vger.kernel.org \
    --cc=keescook@chromium.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=skrzynka@konradybcio.pl \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®