Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp2160640ybm; Sun, 31 May 2020 10:32:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZqtqSl9kH42bgl4n27IEVvGfvHhmEa84At44sWc4gx2Tcwj8bIJutMqmU28KeKW3nM03K X-Received: by 2002:a05:6402:1447:: with SMTP id d7mr18557347edx.367.1590946350460; Sun, 31 May 2020 10:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590946350; cv=none; d=google.com; s=arc-20160816; b=RA4Sn/HdOxh7wKozp9fXF+hJob56AYXjJYXp7pjoKV6nsC67Sm+QwdUD0y1q3uDUab RoMeUFJ6s4JlaxybdVMGnq3Pb9OgPrt1oWViF2UCT27/eRDVBkIUjQJRhtXEUVcVyXXP WZ1yeVfMHP9lOLUZ1xKRgQAYOtopbFQVQMGUOP+ykDUchzRw0aj+UEYn//VA6GiuHwUt 6G72tHi1626JKiG7ilpPfcZ63WbDFDykyV71B6qo8U8LBN6WyHcgLj/YrlNR53UOSMQa drbhYfru+0gmtNltMns+4lqxU/XdKP1kXX+mVIBRgoFEPW4kt/9A0yfJTCYFHAb3n9WZ 8GjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=EakNxGoPn3WCF3pfvxOsaJvDNOYIIIi4TF/T6d07zHM=; b=uZpyFU6t7ym7VgvhtHnqS0dlcJODWo2CVdhr42jyLlRo0GJXVPfF4a+jl6Aof8c5B2 jgMOqJppaE2hhjtACmOXIkLSoMq2bT+3LZJUCwQqyFdU5Q4doGgp+3W8TQMc1vME5ZDs SI8NLo2Z+yW3Hngx7/2K5slwT1CnJqDso1vUz7tx7lXZEXkGMXI8QY61BGZmGckX8QLT m2Gc4P4CbVIKQH392nU+0fFe1kNFCjH3YCTxZXqUsZufqoZsmwfx7H0qU5s8b5DXRL+y FGoKU1VGaJpjAVvqlxBUuHT+jeaMDA7Cb/7KlCYQUMxlqlRU6CuBLinpJQdCe8GzwgMj 4aEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=e79bzN9r; 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=fail (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 si25si6564477ejb.43.2020.05.31.10.32.07; Sun, 31 May 2020 10:32:30 -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=fail header.i=@gmail.com header.s=20161025 header.b=e79bzN9r; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728251AbgEaR2Q (ORCPT + 99 others); Sun, 31 May 2020 13:28:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbgEaR2N (ORCPT ); Sun, 31 May 2020 13:28:13 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92CABC061A0E; Sun, 31 May 2020 10:28:12 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id h5so3227651wrc.7; Sun, 31 May 2020 10:28:12 -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=EakNxGoPn3WCF3pfvxOsaJvDNOYIIIi4TF/T6d07zHM=; b=e79bzN9rMWi07UEZ7ZjEjStiqzcQmraODT8etX/3JU2/y4pvhgoJjoXwd9MfdVcYP9 874Fei8ZUzMquQxOtsEK6BwY4QQG1daBIWR2G9DqRVSbaU5E5Dz+tcqDH39UcpdNByEN a2Qu73nzoWHrMtFk6Eu3ZmzhZclA9Z+1HcuhckcnY5HgyqAvlWOQtK1dO2B/VZXQ8V0j MUUkZ9pav57DqJm3UoMuP5CbAmqiykt2mXSw272k6eBEkgfVk9NQZHKhsAH37rxupqIg 6IVkx29e5qeGAxi5wKrtA2/rbS3Di6RjJRckt4KaqX4nHyx1kW+mESICBIS/YmoaR8F3 j63g== 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=EakNxGoPn3WCF3pfvxOsaJvDNOYIIIi4TF/T6d07zHM=; b=eTHg97So+MpfMgtNBVDTu2l5/FwHxIqUExX+SPMpSRGMWQ1jm0Uqz7SyEh1wSrYUma TYi7Y+9WcVmSsyTkn47SIydsZCc9Mec1Skh/zJtxEuFIgnKXasNj00Dgpru0RfxPKzzJ sf1ChSQjwnkA3zujlO+M29LoLGXjbdEcxK/ASI46Tdn+OS2xc/3AU8KMvXHOWzgtfS/L y9U7EADpxXdwJlQFEug4zfiPWty45W/hz+5bo9Q3a8xRtc2hu0H5+vOoOr3dXusbOWWn /R/pK26r6qPket7V7Nm9bpvS4bKQzlqq1YxO97AAxkk4hIZ+XrBssp3Pfh+1CscKWH7h 5dXQ== X-Gm-Message-State: AOAM532CwxTEQpthRwFqiYDsbkCE5vzlzWY/JYRSx9P3pJ0te0Ma/NPA mcj5Zz/f+zlAh93J5DS+aeAsUlIk X-Received: by 2002:adf:de84:: with SMTP id w4mr18533311wrl.54.1590946091391; Sun, 31 May 2020 10:28:11 -0700 (PDT) Received: from localhost.localdomain (abad130.neoplus.adsl.tpnet.pl. [83.6.167.130]) by smtp.googlemail.com with ESMTPSA id b81sm8922326wmc.5.2020.05.31.10.28.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 May 2020 10:28:11 -0700 (PDT) From: Konrad Dybcio Cc: Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/14] arm64: dts: Add a proper CPU map for MSM8992 Date: Sun, 31 May 2020 19:27:51 +0200 Message-Id: <20200531172804.256335-2-konradybcio@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200531172804.256335-1-konradybcio@gmail.com> References: <20200531172804.256335-1-konradybcio@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) 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 | 68 +++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8992.dtsi b/arch/arm64/boot/dts/qcom/msm8992.dtsi index 2021795c99ad..900c9445e0ba 100644 --- a/arch/arm64/boot/dts/qcom/msm8992.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8992.dtsi @@ -20,11 +20,34 @@ / { cpus { #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>; + }; }; }; @@ -33,11 +56,56 @@ CPU0: cpu@0 { 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"; + }; }; timer { -- 2.26.2