From patchwork Sat Sep 27 00:58:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 38032 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 20500202DB for ; Sat, 27 Sep 2014 00:59:04 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf2295690lam.8 for ; Fri, 26 Sep 2014 17:59:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=LP6wjtNALfUvbFVRpL7C2qtipmIN6GIr5MXF0r2qLC4=; b=MlWs4RUR1v8z+Ybdl+1lfO2aFojbwAITk8CEGmAG6HehKJIDEb/wYVmYv9wbI+KEk+ pMJ2LhL6tMWsaLXZkut6TZx4o45OUjEJcuVJXVbgyb2pZvAzvvZhqDy+bbbzvbv43M9K lg4X6qG/pa/kjGZlCGp8mue8okuNeAKRSl2WKPUitgHMRXFgTKcS3S2j2beyz7U3F9pf PF2wHvrbFeSL/1UjURHy07O8D8Lo+vdXvf2PZxQBsbaxzcTPogoS50T16IljnVTTGKT5 PV0+xkw9S5R+XttT+DdXt/b6CSyvfS+tg/ptUp+bbPItKOnQpt1cewsHpzJgWx/cznj0 /QwQ== X-Gm-Message-State: ALoCoQkuYalH8YWVrcPUvmrPfJ4HoyuzCyDjcIOJEQ1ZiiHANxR+o5zyt4dC8c5RPNYN2NXpgW2A X-Received: by 10.180.83.7 with SMTP id m7mr4041900wiy.5.1411779542881; Fri, 26 Sep 2014 17:59:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.169 with SMTP id t9ls450021lat.74.gmail; Fri, 26 Sep 2014 17:59:02 -0700 (PDT) X-Received: by 10.152.1.74 with SMTP id 10mr12892333lak.43.1411779542456; Fri, 26 Sep 2014 17:59:02 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by mx.google.com with ESMTPS id rd1si9161404lbb.101.2014.09.26.17.59.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Sep 2014 17:59:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by mail-lb0-f179.google.com with SMTP id 10so14535980lbg.24 for ; Fri, 26 Sep 2014 17:59:02 -0700 (PDT) X-Received: by 10.152.43.201 with SMTP id y9mr24234079lal.54.1411779542384; Fri, 26 Sep 2014 17:59:02 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp150169lbb; Fri, 26 Sep 2014 17:59:01 -0700 (PDT) X-Received: by 10.68.251.69 with SMTP id zi5mr37255050pbc.56.1411779540862; Fri, 26 Sep 2014 17:59:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si11652826pat.215.2014.09.26.17.59.00 for ; Fri, 26 Sep 2014 17:59:00 -0700 (PDT) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752923AbaI0A67 (ORCPT + 15 others); Fri, 26 Sep 2014 20:58:59 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:40957 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752737AbaI0A6n (ORCPT ); Fri, 26 Sep 2014 20:58:43 -0400 Received: by mail-pd0-f170.google.com with SMTP id y13so13727689pdi.1 for ; Fri, 26 Sep 2014 17:58:42 -0700 (PDT) X-Received: by 10.68.215.67 with SMTP id og3mr36944795pbc.30.1411779522623; Fri, 26 Sep 2014 17:58:42 -0700 (PDT) Received: from ubuntu.localdomain (proxy6-global253.qualcomm.com. [199.106.103.253]) by mx.google.com with ESMTPSA id rg1sm6030307pdb.14.2014.09.26.17.58.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Sep 2014 17:58:41 -0700 (PDT) From: Lina Iyer To: daniel.lezcano@linaro.org, khilman@linaro.org, sboyd@codeaurora.org, galak@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: lorenzo.pieralisi@arm.com, msivasub@codeaurora.org, Lina Iyer Subject: [PATCH v7 6/7] arm: dts: qcom: Add idle states device nodes for 8974 Date: Fri, 26 Sep 2014 18:58:14 -0600 Message-Id: <1411779495-39724-7-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411779495-39724-1-git-send-email-lina.iyer@linaro.org> References: <1411779495-39724-1-git-send-email-lina.iyer@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lina.iyer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add allowable C-States for each cpu using the cpu-idle-states node. ARM spec dictates WFI as the default idle state at 0. Support standalone power collapse (power down that does not affect any SoC idle states) for each cpu. Signed-off-by: Lina Iyer --- arch/arm/boot/dts/qcom-msm8974.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 828f5bb..cb710ce 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -22,6 +22,7 @@ next-level-cache = <&L2>; qcom,acc = <&acc0>; qcom,saw = <&saw0>; + cpu-idle-states = <&CPU_WFI &CPU_SPC>; }; cpu@1 { @@ -32,6 +33,7 @@ next-level-cache = <&L2>; qcom,acc = <&acc1>; qcom,saw = <&saw1>; + cpu-idle-states = <&CPU_WFI &CPU_SPC>; }; cpu@2 { @@ -42,6 +44,7 @@ next-level-cache = <&L2>; qcom,acc = <&acc2>; qcom,saw = <&saw2>; + cpu-idle-states = <&CPU_WFI &CPU_SPC>; }; cpu@3 { @@ -52,6 +55,7 @@ next-level-cache = <&L2>; qcom,acc = <&acc3>; qcom,saw = <&saw3>; + cpu-idle-states = <&CPU_WFI &CPU_SPC>; }; L2: l2-cache { @@ -59,6 +63,22 @@ cache-level = <2>; qcom,saw = <&saw_l2>; }; + + idle-states { + CPU_WFI: wfi { + compatible = "qcom,idle-state-wfi", "arm,idle-state"; + entry-latency-us = <1>; + exit-latency-us = <1>; + min-residency-us = <2>; + }; + + CPU_SPC: spc { + compatible = "qcom,idle-state-spc", "arm,idle-state"; + entry-latency-us = <150>; + exit-latency-us = <200>; + min-residency-us = <2000>; + }; + }; }; cpu-pmu {