Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1688122ybt; Thu, 25 Jun 2020 11:40:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4RopUhyN/xqdgJ3E1mKotJBLX1gLMXjVXz/+oAdzsB/6hHFoEc75JOZngDaA7KrAmdMOD X-Received: by 2002:a17:907:9c4:: with SMTP id bx4mr3859261ejc.495.1593110401625; Thu, 25 Jun 2020 11:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593110401; cv=none; d=google.com; s=arc-20160816; b=QRNeDJ61TzQoYpZxf5DZYnQU6WYjz1f4RdZ/fZFjJsvvlDJXSGN8h94w96TchVigza dA7E5ucNKn+udc0LQIFNj6NWZkdEumi5BWsf9AqEx6QT5wpMnlGiREKhNalMo97zj4CK 9yyXjqSDhF1fUQbN3Nab1N1pzm25797PK/s2XaF1BRX2WqiEmVn9jW8of5JDjLAtZ3Y0 D0DKXMl+mNeofQ/WIpAg0EFs8GSCxinQ7WEeFGd3TrJ1XOJKxT4q1WUrVF/7U+7q3vwQ jBcrrXW5tdBFsYXjY9J0Cyyx7/hljnWbSaq0khHhGW5ABVSu2kCnUzJKxopWEhMLjCNs +LAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=E1zhLYEqArTvX5TyY6+f2Fc5O6tcITlmkaFCap3K1yg=; b=m97POrvsPs/76m0OYL36XyhiwH7ds849MpiEkZz1usZUYlBt9t5gLM/vu8OqdFxsS3 Y9XhnTnVokSfi5KcJGA5P1Y8L6la46+M5u/gF0PAaJ7RzFB3/gzbKFgv7yezOm2c/lhV DvEUO1Yg0SOIqiLN7fjTvTAfJRF29az1adYiue7IcgF5ESvQW+lSD2pVuwhUQVlWRf2y Xg5VM15hBcgEHyegAxgbqhEGrKf6D5FfCr1oqAinFQRPQ4LC0VWMWQW8yk2e3KTrOoi2 pR6T6ZUizWB/CkT59KE2Uqe+jMWFcjo0izbz2mYPf0zW4tdevTps+lj4EQbBO0nsENQD IlKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mv3THLIp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si5296340ejs.214.2020.06.25.11.39.38; Thu, 25 Jun 2020 11:40:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mv3THLIp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407045AbgFYSN0 (ORCPT + 99 others); Thu, 25 Jun 2020 14:13:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407035AbgFYSNV (ORCPT ); Thu, 25 Jun 2020 14:13:21 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F170CC08C5C1; Thu, 25 Jun 2020 11:13:20 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id a1so6830094ejg.12; Thu, 25 Jun 2020 11:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=E1zhLYEqArTvX5TyY6+f2Fc5O6tcITlmkaFCap3K1yg=; b=mv3THLIpoLjF534rSmDf3PLVaLQ+6vAoGKPBvZA10jyckTqZBeKIJxau/fLRkQLwdW APdyFjre0dkJTQvR0a0vXd5k8j9DshkZvsIGQZYyZUt8d7apQe6EHRzFqtbP519UyrNc pfuMoKYLR39KSRpyzdf8BZoMbjM6Vw3DqsuVMWkQ0jwpOLB82zSb8d7qWp0RiIREBwqX rQ4gEKsJi2VEXxNcbszMqfXC7PVsIwTtSHRiADXNZjWSe6Fxpx+xTTB3SULnzAKv87pU 7SRt6B1CnrgYqnN/CPokF6/wdyfE44EWBuSyw0wdWz0z0gcWlcarEdTuFtcLGANqroiu McoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=E1zhLYEqArTvX5TyY6+f2Fc5O6tcITlmkaFCap3K1yg=; b=Cz5Btegv5y7j29yGkU1fix4Hv/Z0SGXmoQ1G1bbrok38BpP1BDj/CNPFLA+/Vawt7a /cggrisTULW7A6yqmy/ioJQCHq2kEvk+iquR2jcohrRNG+65HNEhHmuDXfnmW5e2uyKi vJz1FqjORaYLKuy7EAI/xpTtcfF54zxEZEjGero4Ig0ygOVwg1L3k4w+u5JpNteas8c7 5J7z9qlhreT4LuHPAWRQtWoLADFOcaMxi39DdOg6BnLXzkTRmF4dm6cQAEEPC7uEYCfG 3w/OPoz6ojksQSUui/yMXx4PRp6uSw/uuwriMdwEf/hCzaDoUo+IDO0U62OWA71e1TzQ z2gA== X-Gm-Message-State: AOAM531nXfmQWCEFxzzbKhrE6k2SsGvDXuAqjMEOt6pCw+7yk+mmEaf0 gbi1cLXyzRGTPMcrUmEtuX0= X-Received: by 2002:a17:906:7693:: with SMTP id o19mr29262515ejm.295.1593108799745; Thu, 25 Jun 2020 11:13:19 -0700 (PDT) Received: from localhost.localdomain (abag196.neoplus.adsl.tpnet.pl. [83.6.170.196]) by smtp.googlemail.com with ESMTPSA id p4sm19511112edj.64.2020.06.25.11.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 11:13:19 -0700 (PDT) From: Konrad Dybcio To: skrzynka@konradybcio.pl Cc: Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 05/13] arm64: dts: Add a proper CPU map for MSM8992 Date: Thu, 25 Jun 2020 20:12:53 +0200 Message-Id: <20200625181303.129874-6-konradybcio@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200625181303.129874-1-konradybcio@gmail.com> References: <20200625181303.129874-1-konradybcio@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds cpu nodes for all 6 cores present on this SoC and the cpu-map. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8992.dtsi | 82 ++++++++++++++++++++++++--- 1 file changed, 75 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8992.dtsi b/arch/arm64/boot/dts/qcom/msm8992.dtsi index 8ef1cb8ba8ef..f780cd39ded6 100644 --- a/arch/arm64/boot/dts/qcom/msm8992.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8992.dtsi @@ -16,24 +16,92 @@ / { cpus { #address-cells = <2>; #size-cells = <0>; - cpu-map { - cluster0 { - core0 { - cpu = <&CPU0>; - }; - }; - }; CPU0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0x0 0x0>; next-level-cache = <&L2_0>; + enable-method = "psci"; L2_0: l2-cache { 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"; + }; + + cpu-map { + cluster0 { + core0 { + cpu = <&CPU0>; + }; + + core1 { + cpu = <&CPU1>; + }; + + core2 { + cpu = <&CPU2>; + }; + + core3 { + cpu = <&CPU3>; + }; + }; + + cluster1 { + core0 { + cpu = <&CPU4>; + }; + + core1 { + cpu = <&CPU5>; + }; + }; + }; }; clocks { -- 2.27.0