From patchwork Thu Aug 4 23:05:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 73338 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1639205qga; Thu, 4 Aug 2016 16:12:26 -0700 (PDT) X-Received: by 10.66.236.9 with SMTP id uq9mr132293644pac.145.1470351973905; Thu, 04 Aug 2016 16:06:13 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y80si16817659pfi.205.2016.08.04.16.06.13; Thu, 04 Aug 2016 16:06:13 -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 S1759392AbcHDXGJ (ORCPT + 14 others); Thu, 4 Aug 2016 19:06:09 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:34158 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759385AbcHDXGH (ORCPT ); Thu, 4 Aug 2016 19:06:07 -0400 Received: by mail-pf0-f175.google.com with SMTP id p64so90905524pfb.1 for ; Thu, 04 Aug 2016 16:06:07 -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=+BP94JRv+M04uJlhM0bWMQcrB1H5uLG7ygHtq1iaHnA=; b=A7DnF9TzhPogOuj3eBu7VpYCF/OIsnbKbx5TPSUWIqjKsIERR/WswFD8x33bNz+VTD tCWgM6xYLvk+YwL69kb8wxwQMXn2WkSP5RJr/iEm2+yhgar671r0hk615YTfLhaQNNJx 88+LSzbVMpDl3Qp3uq2iJOJq1WvNSb8lqRIf4= 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=+BP94JRv+M04uJlhM0bWMQcrB1H5uLG7ygHtq1iaHnA=; b=NMsnxEDxIgRfPH/gkRLMRouIvvL/CSPPPNa7/ZzdKFSpm5VN1zkLtIn52QCBszdMa0 n0p6hqqs9Yp7V3p9IqoPPSdBJtTqcGzlI7wEcn6c4roB7Vg+XQNg6TkmJEzfjGCMk6qT qtfKmFoRPQW3hfHJozD71BYgAwrNDcb1rJlnO9FDbo71R8cyCfZe7fS2fz7/bPm4iMVM egAKTot46OOghPuWmXPEJVoMtd9r8ZhOyLuPMMh3JDRQ3oPRN6BI82ULQ/2L1fx/QSpn QgbnDXLQD/f3K7Zvv+URbPpUqJrOOwn738EPFbGIyB8/XlFoNXHErvhHfX2sCEVK9J1Q LQmg== X-Gm-Message-State: AEkoouuB7iPv9H1RwCFoA2i2+GPS8BWSAiRdqebgN3lDS4AxXvjMqTG7Xb99Jwc0EKW7fxIS X-Received: by 10.98.1.137 with SMTP id 131mr129703415pfb.165.1470351966764; Thu, 04 Aug 2016 16:06:06 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id x66sm22736214pfb.86.2016.08.04.16.06.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Aug 2016 16:06:05 -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 v3 14/15] ARM64: dts: Add PSCI cpuidle support for MSM8916 Date: Thu, 4 Aug 2016 17:05:01 -0600 Message-Id: <1470351902-43103-15-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470351902-43103-1-git-send-email-lina.iyer@linaro.org> References: <1470351902-43103-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 Add device bindings for CPUs to suspend using PSCI as the enable-method. Cc: Signed-off-by: Lina Iyer --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 9681200..3029773 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -62,6 +62,8 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0>; next-level-cache = <&L2_0>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU1: cpu@1 { @@ -69,6 +71,8 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x1>; next-level-cache = <&L2_0>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU2: cpu@2 { @@ -76,6 +80,8 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x2>; next-level-cache = <&L2_0>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU3: cpu@3 { @@ -83,12 +89,30 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x3>; next-level-cache = <&L2_0>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; L2_0: l2-cache { compatible = "cache"; cache-level = <2>; }; + + idle-states { + CPU_SPC: spc { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x40000002>; + entry-latency-us = <130>; + exit-latency-us = <150>; + min-residency-us = <2000>; + local-timer-stop; + }; + }; + }; + + psci { + compatible = "arm,psci-1.0"; + method = "smc"; }; timer {