From patchwork Fri Aug 8 04:05:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 4693631 Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C744A9F377 for ; Fri, 8 Aug 2014 04:05:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F30DD20145 for ; Fri, 8 Aug 2014 04:05:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2A2A92018A for ; Fri, 8 Aug 2014 04:05:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752018AbaHHEFy (ORCPT ); Fri, 8 Aug 2014 00:05:54 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:39007 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752012AbaHHEFy (ORCPT ); Fri, 8 Aug 2014 00:05:54 -0400 Received: by mail-pd0-f169.google.com with SMTP id y10so6332557pdj.14 for ; Thu, 07 Aug 2014 21:05:54 -0700 (PDT) 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=QiTmEH7sB7H2VT2A7A0s43I+/DfYQY3y5NOG/hQLz+A=; b=MYM0BbHO9yUt4kmiPEVVDxHHMJbPsaoJ3UehbFE1iKSjIei3WAt54Qrpu4yon7aWzJ 1aze6uW63Cn++pMEad7WB8oVCyWxp4KVvjHS1S156BFNNHLe8upEqyaODggSavkhejqe 6kpyhrSyVciSxlQx20Ls2ut7E4J6c9Sm7zFn1l3qk7g5bWeWBsOlIrrtqst5tg+oXoRE A4pQSBT6G2XDHQWc0pWpABPr/j/MOdMlcm618fkAD6Fh8pFNH6krecfysavdDvpzFK22 fnp4EVjEIGiJMx8ULSI0RRXtquFvOMbe/tyRANlKNIw8cHJ7SQOzHsBXjjWIUGeDzxK+ dWMw== X-Gm-Message-State: ALoCoQkbA7wffIjcE1ygY+stVIYtGH76Bvgl0y4K7hgkI1sgtigy3AJVCUo6Dp3IJTnGhmeh8V6y X-Received: by 10.68.189.137 with SMTP id gi9mr21373739pbc.87.1407470753937; Thu, 07 Aug 2014 21:05:53 -0700 (PDT) Received: from localhost.localdomain (c-24-8-37-141.hsd1.co.comcast.net. [24.8.37.141]) by mx.google.com with ESMTPSA id n8sm2163342pdm.22.2014.08.07.21.05.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Aug 2014 21:05:53 -0700 (PDT) From: Lina Iyer To: daniel.lezcano@linaro.org, khilman@linaro.org, amit.kucheria@linaro.org, sboyd@codeaurora.org, davidb@codeaurora.org, galak@codeaurora.org, linux-arm-msm@vger.kernel.org Cc: msivasub@codeaurora.org, bryanh@codeaurora.org, Lina Iyer Subject: [RFC] [PATCH 12/13] qcom: cpuidle: Add cpuidle device nodes for 8974 chipset Date: Thu, 7 Aug 2014 22:05:21 -0600 Message-Id: <1407470722-23015-13-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1407470722-23015-1-git-send-email-lina.iyer@linaro.org> References: <1407470722-23015-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 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 C-States and the respective residencies supported by the QCOM 8974 chipset. Current support is for WFI (clock gating) and Standlone-PC (power down of the core). Signed-off-by: Lina Iyer --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-pm.dtsi b/arch/arm/boot/dts/qcom-msm8974-pm.dtsi index 8fe00f1..4e3c206 100644 --- a/arch/arm/boot/dts/qcom-msm8974-pm.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974-pm.dtsi @@ -122,4 +122,25 @@ qcom,cpu-alias-addr = <0x10000>; qcom,sleep-status-mask= <0x80000>; }; + + qcom,cpuidle { + compatible = "qcom,cpuidle"; + #address-cells = <1>; + #size-cells = <0>; + qcom,cpu-level@0 { + reg = <0x0>; + qcom,state-name = "C1"; + qcom,spm-cpu-mode = "wfi"; + qcom,latency-us = <1>; + qcom,residency-us = <1>; + }; + + qcom,cpu-level@2 { + reg = <0x1>; + qcom,state-name = "C2"; + qcom,spm-cpu-mode = "standalone_pc"; + qcom,latency-us = <300>; + qcom,residency-us = <2000>; + }; + }; };