Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1695835ybt; Thu, 25 Jun 2020 11:52:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYQPP1iATM4d6UWUMH1ZvJBeuZy13Wm5QNEl+IFDDIekTfPyKaGA1SvN+YR/g2DboYxBa1 X-Received: by 2002:aa7:c341:: with SMTP id j1mr4021073edr.197.1593111131400; Thu, 25 Jun 2020 11:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593111131; cv=none; d=google.com; s=arc-20160816; b=jPKzIkNeI+GtzTvLsIs9IS7sdNbcXSOxSW3LMqqqOxgJY9q84rZVk8okU6qIN2f6er URb2LQ3E70RQV5oiXL5SBmK5SfFU6i4Njfh+CU44FtRxkJyWeemvoM1PUJPcS3ctej3g E0w/l0rveQ8dbSxVFcArfKgMpn/DnjWk0Qvg8IgvyRhw99+RZNmQyO/3NO6g3mYfLxyg bijJ6d58KI+zqu/Jy3PKyPoriw5a9DN3opzlQWYUpiDBMuV8zq71yhhsIgWBjm9xoYfu l0F8nGwNdQnvRv6kTqBfpOzNYaLMmljLNiZrlhebxKETGtbqMqSQ09SYgEtCU03Rh8QT IQ5Q== 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=r75IO9LAutdJWPCVVUsbmQY8HNUm7DiCTDVosu2SrWLBqnM34NiHggGZRZmLn8H/yN 554t4jX0YOQx4qWJNhDc0pjLgj+BsCOhnyAGvaPmtxwKRAFJQEhIimy8DpOdaVhAABu9 D7Xsmnnsz14LtqSWveyq9B7YJwHkDgvp1IDDosiqCcQev/a/upbD3bOTLqGmo2LGP2C2 WRKBtxW3TYeL2aOMt53McUSSjUTsec0Pf+yQuZ7qVdnDUV2udal+b9kk7bCWuirk9Mxv A3V6GJ1sSLrxJo/52RzIuRXPTyDmo+q6O+mc4jlsfnj/8VKxJ8HD1+DK/BP5FBDsZV5m Xlxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XVFEKEfI; 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 q23si3688430edg.348.2020.06.25.11.51.48; Thu, 25 Jun 2020 11:52:11 -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=XVFEKEfI; 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 S2404273AbgFYSVu (ORCPT + 99 others); Thu, 25 Jun 2020 14:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403793AbgFYSVh (ORCPT ); Thu, 25 Jun 2020 14:21:37 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D82DFC08C5C1; Thu, 25 Jun 2020 11:21:36 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id e15so4963384edr.2; Thu, 25 Jun 2020 11:21:36 -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=XVFEKEfI5/JyhSN1pIGLJWDKWIsLQ+rzRLJNIVJ8wZjiKZTH/X4YVtDOoYJhOjmoMx FQbE/rXFpH+8mLWIu8+SYPHxnqakNDqNIL27HSPHCGGuFsEQzp0vYLVpImcSWpbsqoVK iaG2ZAWlN+QVgftukPKo+89w1Ifj2vAkuvgqCQ5YlQzJxXwioXWkYXTk2jKOVCMoPRfw WA1dTFFy8CWXBIwq3UuWpfXW9wUUWvsFQRQ28bDTrR+B9RD8mZCOfF+oyvS4x60Muc5b u4Jc/Td1SxjFg90cDxi/ReYn1NqW0vBI6r0Jn7LO4J1rSyOFR3wsM81S7uBOQGriuEYU AkOg== 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=tuQSlP09bEZdBi54solH+FKLApPm1knDDlbyd1W7ENMZGekPeit9DeZMuPxMnr+uuS Y6jYG6EaFr4AE8QZGHyxtA+O/5o5Rk8ifOVhRtq+fPYxvpZIn1wg+L5sOYMWhSgKpdfA r5+6wb00Tzp/McNf5iO2jmtuQTaHmrYp1yfbHkxjs0PDhOToAPzk/tQqLZbDoqAGIyJt KUZCHUiqRE/kr5Y8TNySilJnToUbNO3dPfBgKksULf9qdCKYxH2J+fBg17SSBR0qOu+M u7qdLzrigOIfr3qmEyIdRxFm43b7fU38bHul2RiOyPSaSVGE1XV8Wtmk84DO1igzA+Xt FvGQ== X-Gm-Message-State: AOAM5323aOShE0szhonoEaWRO87Kffpdaie3ck4g+OB30Ycfk97sNrHt jtfUP7TUcZIXwpX1Jufwc/s= X-Received: by 2002:a05:6402:741:: with SMTP id p1mr8160283edy.222.1593109295659; Thu, 25 Jun 2020 11:21:35 -0700 (PDT) Received: from localhost.localdomain (abag196.neoplus.adsl.tpnet.pl. [83.6.170.196]) by smtp.googlemail.com with ESMTPSA id lm22sm1523448ejb.109.2020.06.25.11.21.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 11:21:35 -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 v3 05/13] arm64: dts: qcom: msm8992: Add a proper CPU map Date: Thu, 25 Jun 2020 20:21:09 +0200 Message-Id: <20200625182118.131476-6-konradybcio@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200625182118.131476-1-konradybcio@gmail.com> References: <20200625182118.131476-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