From patchwork Fri Jul 29 21:56:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 73061 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1601381qga; Fri, 29 Jul 2016 14:57:33 -0700 (PDT) X-Received: by 10.66.51.98 with SMTP id j2mr73746024pao.87.1469829428665; Fri, 29 Jul 2016 14:57:08 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 195si20379500pfz.17.2016.07.29.14.57.08; Fri, 29 Jul 2016 14:57:08 -0700 (PDT) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754193AbcG2V5H (ORCPT + 14 others); Fri, 29 Jul 2016 17:57:07 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35434 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754199AbcG2V5E (ORCPT ); Fri, 29 Jul 2016 17:57:04 -0400 Received: by mail-pa0-f41.google.com with SMTP id iw10so34514714pac.2 for ; Fri, 29 Jul 2016 14:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JnagQ/4ZE+RZdH+7AX9O1ObdzUp5Z47Pzu2aQkm5fns=; b=GTwP4ao+SSpuyxF4rs79EkUZKmwwPovthcf3XH2wQORUP0jT4rWHGJaXN7D+kZjsz0 MMH7ee8D/oJfw/CFMogqrhf6C9iPX/0w01I+bDx8fNu/veJKF7bk3yOCiCKIHWJiS+7u 4jopZSiovl0ZwlHsRMUFCExO2fz3Fsma7k0PM= 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=JnagQ/4ZE+RZdH+7AX9O1ObdzUp5Z47Pzu2aQkm5fns=; b=XfHJ+YHC8UP/UcIZ6Z/lx59CgH/9JuKj2ZIAP8bhxExp/jpxZgt8/OO2HggnKVWQQK I+WljsDpCGiAUSOYK03R6Exp7+HW7iIKX2LHrvi2fcsMBlJSJZEP2W47a14phT/XC80s Ba3zoeX+sfVQvAwUjDdkHhOjpZ3mtf9j0M0E02vwZifL0EAvmVktUJnYMw86KwcY74+t Fq1GclYDH+QMAi/0+27uG4vKOb/+7WeTRGQlznTCmgzdzwKkbejCjJgtllUmOv3YnLnJ sCUAMvoOo7fP6Z82fiqJvvacNYYbmQTRF/HvSwjOSp/2nLDAtFYv1krLmac6mMxOqy0O Mrfw== X-Gm-Message-State: AEkooutR/WmvzkCHGPr7E/4sCaSk7w/U5auGkeFKhxrnuUoxeUnKVQ7vzn0IggQ4fVY75lf7 X-Received: by 10.66.0.74 with SMTP id 10mr72355403pac.38.1469829423674; Fri, 29 Jul 2016 14:57:03 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 81sm27196601pfm.90.2016.07.29.14.57.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jul 2016 14:57:02 -0700 (PDT) From: Lina Iyer To: ulf.hansson@linaro.org, khilman@kernel.org, rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: andy.gross@linaro.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, Lina Iyer , devicetree@vger.kernel.org Subject: [PATCH v2 14/14] ARM64: dts: Define CPU power domain for MSM8916 Date: Fri, 29 Jul 2016 15:56:25 -0600 Message-Id: <1469829385-11511-15-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1469829385-11511-1-git-send-email-lina.iyer@linaro.org> References: <1469829385-11511-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. The 8916 firmware supports OS initiated method of powering off the CPU clusters. Cc: Signed-off-by: Lina Iyer --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) -- 2.7.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 3029773..d122fa1 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -64,6 +64,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU1: cpu@1 { @@ -73,6 +74,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU2: cpu@2 { @@ -82,6 +84,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU3: cpu@3 { @@ -91,6 +94,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; L2_0: l2-cache { @@ -110,6 +114,29 @@ }; }; + CPU_PD: cpu-pd@0 { + #power-domain-cells = <0>; + domain-idle-states = <&CLUSTER_RET>, <&CLUSTER_PWR_DWN>; + }; + + cpu-domain-states { + CLUSTER_RET: domain_ret { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x1000010>; + entry-latency-us = <500>; + exit-latency-us = <500>; + residency-us = <2000>; + }; + + CLUSTER_PWR_DWN: domain_gdhs { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x1000030>; + entry-latency-us = <2000>; + exit-latency-us = <2000>; + residency-us = <6000>; + }; + }; + psci { compatible = "arm,psci-1.0"; method = "smc";