From patchwork Fri Aug 8 04:00:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 35083 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5FBC721137 for ; Fri, 8 Aug 2014 04:01:23 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id b6sf16023494yha.9 for ; Thu, 07 Aug 2014 21:01:23 -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=DzQu9MxayZuHk346mYE2Tp04vVFfaFcNhwzVKz1V7rmLHMc3o4e2mwRM8RuuZ19ZsH bIV6j9QGYaDnNuA9mh47TTYboZGpGrr9W+WhZ3gzOxAdF4DZknXmz3xg6h6xcluNgLCL iWIHmTL4DXF1uZyZmJXAM2upEpNdpxxsSW3WUWxDp6GATvrn16IQZ9bk0VdgnB/96tPJ heQBrQ4vZnZUTHif3WclrqGhNlO7qA/ojDe6A8M/idpShtgg93PKvZ0DESQ6a2Ix6TMC MBfWCH++TAWogHN5UJvNi+cfg2WNIaSFSZ1wYbc/yVDEPgPFrVOcunoAnAfoBDtColn0 QiwQ== X-Gm-Message-State: ALoCoQmeRwAGFX9EKGBaaknSaqdsv62IBo832KB9qpbFQHKtjlVmqPEmIbJhspHcVQBrlAd3IOVr X-Received: by 10.224.46.3 with SMTP id h3mr11315967qaf.1.1407470483207; Thu, 07 Aug 2014 21:01:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.242 with SMTP id m105ls364047qga.84.gmail; Thu, 07 Aug 2014 21:01:23 -0700 (PDT) X-Received: by 10.221.68.66 with SMTP id xx2mr19853494vcb.1.1407470483136; Thu, 07 Aug 2014 21:01:23 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id uh4si2497796vcb.27.2014.08.07.21.01.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Aug 2014 21:01:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id lf12so7702288vcb.1 for ; Thu, 07 Aug 2014 21:01:23 -0700 (PDT) X-Received: by 10.52.156.100 with SMTP id wd4mr5052435vdb.39.1407470483048; Thu, 07 Aug 2014 21:01:23 -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 tc5csp86918vcb; Thu, 7 Aug 2014 21:01:22 -0700 (PDT) X-Received: by 10.68.251.201 with SMTP id zm9mr22170396pbc.22.1407470481134; Thu, 07 Aug 2014 21:01:21 -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.01.20 for ; Thu, 07 Aug 2014 21:01:21 -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 S1752554AbaHHEBU (ORCPT + 4 others); Fri, 8 Aug 2014 00:01:20 -0400 Received: from mail-ie0-f173.google.com ([209.85.223.173]:39305 "EHLO mail-ie0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752423AbaHHEBT (ORCPT ); Fri, 8 Aug 2014 00:01:19 -0400 Received: by mail-ie0-f173.google.com with SMTP id tr6so5765848ieb.4 for ; Thu, 07 Aug 2014 21:01:18 -0700 (PDT) X-Received: by 10.50.3.66 with SMTP id a2mr1333881iga.23.1407470478873; Thu, 07 Aug 2014 21:01:18 -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 yt6sm4062230igb.10.2014.08.07.21.01.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Aug 2014 21:01:18 -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, linux-arm-kernel@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:00:57 -0600 Message-Id: <1407470458-22900-13-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1407470458-22900-1-git-send-email-lina.iyer@linaro.org> References: <1407470458-22900-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.170 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>; + }; + }; };