From patchwork Tue Aug 12 19:44:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 35319 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5273B20540 for ; Tue, 12 Aug 2014 19:44:33 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id nu7sf46875847obb.7 for ; Tue, 12 Aug 2014 12:44:32 -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=feYxLha6c+0sLj56tzjJAJf9XbXT+RXNkRvl3nSsyTo=; b=NXXkDG36mckbXPF08iXJ2HuWLye67uiMS3MdiOK1yQkf2LAXvI5yW6lFJp7Hm2D89K Xq9jYoGkK0YG75tn9FiCxj+tMa3Y/nntfuozv7OcLOq2p+Y1wu3NHdE0CYZYMlBZddGs sYyQUGog7RSFXfiURDXxPNQGBiybIS+h3eZdLBikAnB9sKeAHDlV6tnLvzcVum/8pxYR nDpK4mjALlv/HDMDTm0XVKoSfWP4qZCf/qUdPgiY14oIguiiaQv9zVumuaVmKcDgE6iH Z6eJbbTsssqnkrklJJDvn8E1mDmp4LSvAG7wIsXWPtWfRbz2V5k9OjCVfs+R3SNJHGw7 1v3A== X-Gm-Message-State: ALoCoQnUMF1mCbdd9iKI1kayMziqEXpWX8DHxURkW9TtP3wqetQ7NVM2bva6a1O0H5kt1bRbw0V7 X-Received: by 10.182.241.1 with SMTP id we1mr3196733obc.37.1407872672727; Tue, 12 Aug 2014 12:44:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.202 with SMTP id w68ls344413qge.4.gmail; Tue, 12 Aug 2014 12:44:32 -0700 (PDT) X-Received: by 10.221.9.72 with SMTP id ov8mr5848501vcb.27.1407872672641; Tue, 12 Aug 2014 12:44:32 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id wz7si8791481vdc.65.2014.08.12.12.44.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Aug 2014 12:44:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ij19so13811777vcb.39 for ; Tue, 12 Aug 2014 12:44:32 -0700 (PDT) X-Received: by 10.220.15.8 with SMTP id i8mr3121060vca.45.1407872672538; Tue, 12 Aug 2014 12:44:32 -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 tc5csp274432vcb; Tue, 12 Aug 2014 12:44:32 -0700 (PDT) X-Received: by 10.68.239.201 with SMTP id vu9mr6191018pbc.35.1407872671607; Tue, 12 Aug 2014 12:44:31 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rt17si16761455pac.146.2014.08.12.12.44.31 for ; Tue, 12 Aug 2014 12:44:31 -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 S1755137AbaHLToa (ORCPT + 4 others); Tue, 12 Aug 2014 15:44:30 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:40411 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755079AbaHLToa (ORCPT ); Tue, 12 Aug 2014 15:44:30 -0400 Received: by mail-pd0-f178.google.com with SMTP id w10so13115953pde.37 for ; Tue, 12 Aug 2014 12:44:29 -0700 (PDT) X-Received: by 10.68.68.207 with SMTP id y15mr6143766pbt.25.1407872669728; Tue, 12 Aug 2014 12:44:29 -0700 (PDT) Received: from ubuntu.localdomain (proxy6-global253.qualcomm.com. [199.106.103.253]) by mx.google.com with ESMTPSA id n10sm23474696pdp.72.2014.08.12.12.44.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Aug 2014 12:44:29 -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, Lina Iyer Subject: [PATCH v2 10/10] qcom: cpuidle: Add cpuidle device nodes for 8974 chipset Date: Tue, 12 Aug 2014 13:44:00 -0600 Message-Id: <1407872640-6732-11-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1407872640-6732-1-git-send-email-lina.iyer@linaro.org> References: <1407872640-6732-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.180 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 d7d81ca..f15796e 100644 --- a/arch/arm/boot/dts/qcom-msm8974-pm.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974-pm.dtsi @@ -88,4 +88,25 @@ qcom,cpu-vctl-mask = <0xf>; qcom,saw2-spm-cmd-ret = [1f 00 03 00 0f]; }; + + 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>; + }; + }; };