From patchwork Tue Nov 17 22:37:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 56901 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2218628lbb; Tue, 17 Nov 2015 14:39:56 -0800 (PST) X-Received: by 10.66.227.197 with SMTP id sc5mr67554095pac.157.1447799969466; Tue, 17 Nov 2015 14:39:29 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kj7si4288480pab.5.2015.11.17.14.39.29; Tue, 17 Nov 2015 14:39:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754973AbbKQWjU (ORCPT + 11 others); Tue, 17 Nov 2015 17:39:20 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34610 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754899AbbKQWjS (ORCPT ); Tue, 17 Nov 2015 17:39:18 -0500 Received: by padhx2 with SMTP id hx2so22150684pad.1 for ; Tue, 17 Nov 2015 14:39:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0/8EdVFC1nhROzN6GPDSKaYy9CA8yU51RZWgtKR7Srk=; b=oLGaplL2ELG81offjg40eVMcityZUv5sKxIEWmM8v+k9tGo84PcAEOrNw5Yfd2D0JU vqViBxS49N9wC9VcwP/2tv7Ti1N2102hHc+MbjXVOR6oSImPzcHmr/a/dZX2bO76Bnfh L2I9bKdk244h1J5geClWg1Lr04d1ZHx3FIV4HFzwvmQfVS+cRRF/WfWG72TVcws41qXQ 0iMVuhbhAiX5YHoB3JXDB2ePbENcVPPendOZM1EIkj6CWLw4k2X+RhobQKoac+bwr0NF Jqe10Ni+Ab0yDT96Wh5QKBEBRVoZK1fDZ//JckyNrSaCsS136XViVXYP53RugmfdePiC sTZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0/8EdVFC1nhROzN6GPDSKaYy9CA8yU51RZWgtKR7Srk=; b=C54SVzN2jYyxRvbIUfVjeJc3k2vpxi2MbBp/7r0kAcTDrqU3lj9+blN/ZFiyHgNinF JIxZIN+cm0Jch91k5VMfkqMRTeEB8h+SpRb+IFFzgALBx0m9jvR6SnYM/tLqtZ2iNLo3 4pTqo+KrwSWHqEzk0XXRIEVLYldar6F9MmfvyKOn/xGH43IH0oR523M22oi6Al15il1x a/rkdmxHcsp5p0wFB1rKYTVWxIhX4VNV9bTrtIXlrSQwT0C9z9XS/q9AoS+NEP/p8slm mMzW6EF2WPGtCnmWuW3CebOxvbqjjlrdqK5Okq/Uoe2ngUMR56h38usGRGLahIrsm6gK wxeA== X-Gm-Message-State: ALoCoQnLnChel7JgLZ2wVtSXd/EB/6NGouXx4Y7PUwOVMDjIQsdWvs6Qrn92FpOlyLFwfTrlqXR6 X-Received: by 10.67.1.103 with SMTP id bf7mr65865085pad.147.1447799957836; Tue, 17 Nov 2015 14:39:17 -0800 (PST) Received: from ubuntu.localdomain ([8.42.77.226]) by smtp.gmail.com with ESMTPSA id hy1sm14875199pbb.63.2015.11.17.14.39.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2015 14:39:16 -0800 (PST) From: Lina Iyer To: ulf.hansson@linaro.org, khilman@linaro.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: geert@linux-m68k.org, k.kozlowski@samsung.com, msivasub@codeaurora.org, agross@codeaurora.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, mtitinger@baylibre.com, Lina Iyer Subject: [PATCH RFC 27/27] ARM64: dts: Define CPU power domain for MSM8916 Date: Tue, 17 Nov 2015 15:37:51 -0700 Message-Id: <1447799871-56374-28-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447799871-56374-1-git-send-email-lina.iyer@linaro.org> References: <1447799871-56374-1-git-send-email-lina.iyer@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Define power domain and the power states for the domain as defined by the PSCI firmware. Signed-off-by: Lina Iyer --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 48 ++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 5806438..3ea8126 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -47,12 +47,32 @@ #address-cells = <1>; #size-cells = <0>; + cpu-map { + cluster0 { + cluster = <&CLUSTER0>; + + core0 { + cpu = <&CPU0>; + }; + core1 { + cpu = <&CPU1>; + }; + core2 { + cpu = <&CPU2>; + }; + core3 { + cpu = <&CPU3>; + }; + }; + }; + CPU0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CLUSTER0>; }; CPU1: cpu@1 { @@ -61,6 +81,7 @@ reg = <0x1>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CLUSTER0>; }; CPU2: cpu@2 { @@ -69,6 +90,7 @@ reg = <0x2>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CLUSTER0>; }; CPU3: cpu@3 { @@ -77,6 +99,7 @@ reg = <0x3>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CLUSTER0>; }; idle-states { @@ -89,8 +112,31 @@ min-residency-us = <2000>; }; }; + + CLUSTER0: cluster@0 { + #power-domain-cells = <0>; + power-states = <&CLUSTER_RET>, <&CLUSTER_PWR_DWN>; + }; + + cluster-power-states { + CLUSTER_RET: power-state@1 { + compatible = "linux,domain-state"; + state-param = <0x1000010>; + entry-latency-us = <500>; + exit-latency-us = <500>; + residency-us = <2000>; + }; + + CLUSTER_PWR_DWN: power-state@2 { + compatible = "linux,domain-state"; + state-param = <0x1000030>; + entry-latency-us = <2000>; + exit-latency-us = <2000>; + residency-us = <6000>; + }; + }; }; - + psci { compatible = "arm,psci-1.0"; method = "smc";