From patchwork Thu Aug 25 20:03:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 9299807 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BB0F4608A7 for ; Thu, 25 Aug 2016 20:04:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACDEC293AA for ; Thu, 25 Aug 2016 20:04:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1B9B292B1; Thu, 25 Aug 2016 20:04:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44A102935D for ; Thu, 25 Aug 2016 20:04:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757696AbcHYUEa (ORCPT ); Thu, 25 Aug 2016 16:04:30 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34726 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757655AbcHYUEY (ORCPT ); Thu, 25 Aug 2016 16:04:24 -0400 Received: by mail-pa0-f53.google.com with SMTP id fi15so19726862pac.1 for ; Thu, 25 Aug 2016 13:04:19 -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=iDVQ+c7Bvf9IUDL81yc9BCn+XC6eEEe78U9rbwIk08u+GVblh3rd8f0XvUgbi4rccc zL8v+MmxV1ZidMlx7OtdR3iRixfRbnKafoWoQuGBu4E0wr4g40lPwkdaxQZxL1vbS75N 5LPC5+QHrRR2cwojQBKfcp4MhWRt3JQDHvPPc= 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=FCXIlcBTdTfG1T4PXkEp5vwKtpKT4r+aWAX9B/X7BhtPlr2aje7yDrKY7LlXb/3u0z U2C7+NdjyYMmVdKUge9RBBvJQWJfzMewR6lQuKZgwAlrxhej/5gpX4SM2MCb79wKQp49 3UEsu5ce3VPDHKrmZMff+p2PWeNAIPPTXX6aiRH/F1kg0oIXD5wCKTZEWLq9LjsaeVYA G/DBJTFaa5GP/+mlvNl38OTfNgCPM3HLORLrIACPql0U9fKnYZsSidIQ78IVw8a/n/G4 dGkt2F3YfZ36CSDZh1FbaZNEXNB74Fb0nzqEQDZpuHkzKAfYZp7/ejo8djgq68gITDj2 MQtA== X-Gm-Message-State: AE9vXwPRWvCkVPQzTIvs5EYOCdNdqNdcKopNsVXEOTIt5yARTeie8BqGaoZbwUN6GQ0QX5yp X-Received: by 10.66.79.138 with SMTP id j10mr19634907pax.60.1472155458684; Thu, 25 Aug 2016 13:04:18 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id u1sm22841644pfu.12.2016.08.25.13.04.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Aug 2016 13:04:17 -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, brendan.jackman@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, Juri.Lelli@arm.com, Lina Iyer , devicetree@vger.kernel.org Subject: [PATCH v4 15/16] ARM64: dts: Add PSCI cpuidle support for MSM8916 Date: Thu, 25 Aug 2016 14:03:24 -0600 Message-Id: <1472155405-41841-16-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472155405-41841-1-git-send-email-lina.iyer@linaro.org> References: <1472155405-41841-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 X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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 {