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: 35096 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 879A521457 for ; Fri, 8 Aug 2014 04:05:57 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id y10sf29734966pdj.8 for ; Thu, 07 Aug 2014 21:05:56 -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=LPwHZC++bhpOGv0raOQp0Ai8hF1CPWgHUWYRiEY0HBQ=; b=aEGx/09cpGHHwSArIqzQI1+U+F5E5N6WcullWLamjx3L4i9TnjU0S/elQkIDkqUD9A guIJ5/jpcnJ5vStYEWmIMmp+5Jl4jvWBynuPrhKCLT0LcC/tnFYObLdg4sq7Y/rNI1Zj mtPfcp7SOW3g0cZb1aC4rFdUZycP/OHV+lw4f5N3F2mMgsvqCkDvdm6LYl/Ihl295XBq LFJLeOPLQ2PQh+LHOXu/F/lEpTztyEworkwsrB05xfJWg5HCsuIQH5/kCd+f26fq59hB qkPvP7mvLcsqYWmrEvhVRwAfy/jXHSI8geKGWUO1o8X07SVLcsWuEC9vh5aKOy89fpFR 9B7w== X-Gm-Message-State: ALoCoQlaB1Mp8AU8qdbb/m6r90l9wyFFVL/zspGpNvMLrUkv8+ztgKTVL8ONkM6hsGqPNTJjL29L X-Received: by 10.68.135.99 with SMTP id pr3mr2416843pbb.9.1407470756822; Thu, 07 Aug 2014 21:05:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.212 with SMTP id o78ls412794qge.55.gmail; Thu, 07 Aug 2014 21:05:56 -0700 (PDT) X-Received: by 10.52.69.172 with SMTP id f12mr401536vdu.9.1407470756721; Thu, 07 Aug 2014 21:05:56 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id fl20si1115751vec.89.2014.08.07.21.05.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Aug 2014 21:05:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id le20so7678992vcb.14 for ; Thu, 07 Aug 2014 21:05:56 -0700 (PDT) X-Received: by 10.220.49.10 with SMTP id t10mr19856186vcf.34.1407470756646; Thu, 07 Aug 2014 21:05:56 -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.221.37.5 with SMTP id tc5csp87300vcb; Thu, 7 Aug 2014 21:05:56 -0700 (PDT) X-Received: by 10.69.18.203 with SMTP id go11mr6224978pbd.50.1407470755775; Thu, 07 Aug 2014 21:05:55 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si1450465pdj.25.2014.08.07.21.05.55 for ; Thu, 07 Aug 2014 21:05:55 -0700 (PDT) Received-SPF: none (google.com: linux-arm-msm-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 S1752018AbaHHEFy (ORCPT + 4 others); 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-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: list List-ID: X-Mailing-List: linux-arm-msm@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.220.169 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 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>; + }; + }; };