From patchwork Tue Mar 1 21:15:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 63360 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2052284lbc; Tue, 1 Mar 2016 13:21:38 -0800 (PST) X-Received: by 10.98.19.215 with SMTP id 84mr33354361pft.22.1456866994616; Tue, 01 Mar 2016 13:16:34 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vb13si13967922pab.68.2016.03.01.13.16.34; Tue, 01 Mar 2016 13:16:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753822AbcCAVQd (ORCPT + 7 others); Tue, 1 Mar 2016 16:16:33 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34140 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753810AbcCAVQc (ORCPT ); Tue, 1 Mar 2016 16:16:32 -0500 Received: by mail-pa0-f53.google.com with SMTP id fy10so118635764pac.1 for ; Tue, 01 Mar 2016 13:16:31 -0800 (PST) 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=+2ZLIyksGg8hKUvpatEQ6K+hKzOlvWfM1UYnnZ32LNw=; b=U9sWNZbUvPNzpBpGHR05QiOjN0RdOc3Lg08Iv66XOGN0VzX1QIXwyuG/TPBI/IuR9N CW7BByVPwWbPZAYLsdmO7FhhqFc6oWIiEhpuUD5/fJW1lkozJOq7/tvCDLugMPe9JgPT KsJUfvIJNzqiv5Um3aq7xR6snSywYIkcVam4c= 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=+2ZLIyksGg8hKUvpatEQ6K+hKzOlvWfM1UYnnZ32LNw=; b=bsrd5cW1zzURIZVAAWKCAE4xn+JyIktOQLj68FSkoDnofPQ5Q6n2SyPSdCnQbYmG8c +cqKZdseB8+YgtIUDIhal1GKrIg5RzShO/XKWNKtWhl8APSDKWyT1Ih+kirn0H1+AnwI UY1JSH3rAYISx/v0dTvaH+4HmzWlleYkjChc6tFQgBW8ePRqoQu5OYsihiZnNfrfjWio v+9suY0Le34USkFxB67bNmgWQ0RRgfKrsPqSWiUb+qPcyucUCZUD8I4Un+A073jQx/ya et0qOsb+i6TcyFYBvJsOtDePOvbmyq8gaFYKHE8Z1bxCSFHjhaF8CLiv+FYAskFIARp5 Qpkw== X-Gm-Message-State: AD7BkJJ0CW2rBDEeuTbIKhn543UVcttgMjqKdDyX8/9aFI/WSiYfNCv5c6X+MjmpsZZlitck X-Received: by 10.66.146.39 with SMTP id sz7mr33660036pab.76.1456866991415; Tue, 01 Mar 2016 13:16:31 -0800 (PST) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id kw10sm47749328pab.0.2016.03.01.13.16.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Mar 2016 13:16:30 -0800 (PST) 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: 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: [RFC v3 12/12] ARM64: dts: Define CPU power domain for MSM8916 Date: Tue, 1 Mar 2016 14:15:31 -0700 Message-Id: <1456866931-37851-14-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1456866931-37851-1-git-send-email-lina.iyer@linaro.org> References: <1456866931-37851-1-git-send-email-lina.iyer@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" 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 b7839a8..62dade8 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -63,6 +63,7 @@ reg = <0x0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU1: cpu@1 { @@ -71,6 +72,7 @@ reg = <0x1>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU2: cpu@2 { @@ -79,6 +81,7 @@ reg = <0x2>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU3: cpu@3 { @@ -87,6 +90,7 @@ reg = <0x3>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; idle-states { @@ -101,6 +105,27 @@ }; }; + CPU_PD: cpu-pd@0 { + #power-domain-cells = <0>; + power-states = <&CLUSTER_RET>, <&CLUSTER_PWR_DWN>; + }; + + pd-power-states { + CLUSTER_RET: power-state@1 { + state-param = <0x1000010>; + entry-latency-us = <500>; + exit-latency-us = <500>; + residency-us = <2000>; + }; + + CLUSTER_PWR_DWN: power-state@2 { + state-param = <0x1000030>; + entry-latency-us = <2000>; + exit-latency-us = <2000>; + residency-us = <6000>; + }; + }; + psci { compatible = "arm,psci-1.0"; method = "smc";