From patchwork Tue Mar 1 21:15:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 8470441 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D9EB99F8A8 for ; Tue, 1 Mar 2016 21:16:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 159C42034B for ; Tue, 1 Mar 2016 21:16:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 23475202EC for ; Tue, 1 Mar 2016 21:16:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753293AbcCAVQa (ORCPT ); Tue, 1 Mar 2016 16:16:30 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:36022 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753735AbcCAVQ3 (ORCPT ); Tue, 1 Mar 2016 16:16:29 -0500 Received: by mail-pa0-f41.google.com with SMTP id yy13so118699988pab.3 for ; Tue, 01 Mar 2016 13:16:29 -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=340o9o6K42v7ekOgHdahut2UZH4w9Z53/78yLyG1HIY=; b=F3wg+l6N5MlouNa5Helcpr7xstmkLBuKW2xwsRaqnoK8qqmKV4ihhEUWwWjJ++I5ce RbqsGtGUAxb/8yRWtBFaQyZjGPZsp1365vvxaf/dMY05c8p5kO294yXXFSp1Sgu/ilWT WIQeAQgU0ee/0GMd/ncHTJzOyOgY8KWKr/qLI= 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=340o9o6K42v7ekOgHdahut2UZH4w9Z53/78yLyG1HIY=; b=mOS7/SadPuMU+vwmDoGO69fMi8H6ndE+MrCcoWYjVUV5Mt7gKbvif+v4ZnXMkCboPC lKDbbS4yeHmsYB8E7lM17WGgpB6Om/w2UURVk4OXBWHaC5KG0YLSBqJ/CqcpUHANlbB1 uO7l5IASiFs/V/J0aMGP3ISIMaXTC6xLcp/CUr5L/YHG2O9WY/6YaGzytF8wlS22mHGP Uim++vnDgL/eO2uCrP1uOLDGSuJsx8ba6NogiUTzRjvC5DYO+S4N8a4D/ZJ6/RkRB4H4 Ff30WjaoTSuXDcyOUfDXTQttW2eOTGlCWCDn0w3xxHuqfxLWtRzZnRDyI0/DV3qo9cKQ LWuw== X-Gm-Message-State: AD7BkJK+iE3C3y9xP+vHcSYrIUiEgIsoNwdII8asznuaItJKc4lfL2U49HDFbkwBm30MedvI X-Received: by 10.66.120.202 with SMTP id le10mr32824439pab.155.1456866988952; Tue, 01 Mar 2016 13:16:28 -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.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Mar 2016 13:16:28 -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 11/12] ARM64: dts: Add PSCI cpuidle support for MSM8916 Date: Tue, 1 Mar 2016 14:15:30 -0700 Message-Id: <1456866931-37851-13-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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.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 Tested-by: Andy Gross --- 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 9153214..b7839a8 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -61,27 +61,51 @@ device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU1: cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x1>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU2: cpu@2 { device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x2>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; }; CPU3: cpu@3 { device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x3>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SPC>; + }; + + 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 { compatible = "arm,armv8-timer"; interrupts = ,