From patchwork Thu Jun 4 16:20:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 49535 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5F1B62154F for ; Thu, 4 Jun 2015 16:21:06 +0000 (UTC) Received: by wifx6 with SMTP id x6sf14999392wif.1 for ; Thu, 04 Jun 2015 09:21:05 -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: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=GRvyB1Y/GKd1FokmPzGp+7Zh5MtSx4r29thW6ebsIyY=; b=AfjWDM2dEzh5gHUmM97yi9X/EqS8F0McyNV0zIXTFY3cUSNFH++yodeYiNYtYXzK5x Bo4YNxddtqHqmMiE/AH+3yuXEmTLbcROlbdVDJCaYeRlZOOsed2GtCMbk3XjGFxaLGMO ZvTBDbNZrhe4JQCiQrpOc4lXDBpXL2cgPsCAA5EAH7oVtAe8zZNc8ju3h9PqNI+/VDWb sOr/NI4F6rg/p/HCEAodLS9S4lUESsquvCkdziyFtSIx1v/drMEjv/yV41ujqopeC7c4 LVjLwgEzKEGiqxiJP09xUdkE28KSDnsBZlP8GSLD9ZQVwpuvo/5QYYtJNDsKmvNn7+JS hTtA== X-Gm-Message-State: ALoCoQk/1sglo8kWyxZeeYGOjxmmiK+0tcTnWRxpsCF7tFDs3Czej9yerin1SPC2ojkO/KY5GxVa X-Received: by 10.180.83.72 with SMTP id o8mr26884294wiy.3.1433434865628; Thu, 04 Jun 2015 09:21:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.36 with SMTP id t4ls244516lal.99.gmail; Thu, 04 Jun 2015 09:21:05 -0700 (PDT) X-Received: by 10.112.118.206 with SMTP id ko14mr38536318lbb.28.1433434865469; Thu, 04 Jun 2015 09:21:05 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id ls9si2267698lac.31.2015.06.04.09.21.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2015 09:21:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by laei3 with SMTP id i3so35624171lae.3 for ; Thu, 04 Jun 2015 09:21:05 -0700 (PDT) X-Received: by 10.112.234.200 with SMTP id ug8mr37847659lbc.117.1433434865374; Thu, 04 Jun 2015 09:21:05 -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.108.230 with SMTP id hn6csp729140lbb; Thu, 4 Jun 2015 09:21:04 -0700 (PDT) X-Received: by 10.66.65.200 with SMTP id z8mr65207337pas.16.1433434860445; Thu, 04 Jun 2015 09:21:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vk3si6539248pbc.139.2015.06.04.09.20.59; Thu, 04 Jun 2015 09:21:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932093AbbFDQU6 (ORCPT + 11 others); Thu, 4 Jun 2015 12:20:58 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34100 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932166AbbFDQU6 (ORCPT ); Thu, 4 Jun 2015 12:20:58 -0400 Received: by payr10 with SMTP id r10so32714095pay.1 for ; Thu, 04 Jun 2015 09:20:57 -0700 (PDT) X-Received: by 10.70.42.134 with SMTP id o6mr39823338pdl.11.1433434857767; Thu, 04 Jun 2015 09:20:57 -0700 (PDT) Received: from localhost ([122.167.219.251]) by mx.google.com with ESMTPSA id eo3sm4213026pbd.66.2015.06.04.09.20.55 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 04 Jun 2015 09:20:56 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , rob.herring@linaro.org Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, arnd.bergmann@linaro.org, nm@ti.com, broonie@kernel.org, mike.turquette@linaro.org, sboyd@codeaurora.org, grant.likely@linaro.org, olof@lixom.net, Sudeep.Holla@arm.com, devicetree@vger.kernel.org, viswanath.puttagunta@linaro.org, l.stach@pengutronix.de, thomas.petazzoni@free-electrons.com, linux-arm-kernel@lists.infradead.org, ta.omasab@gmail.com, kesavan.abhilash@gmail.com, khilman@linaro.org, santosh.shilimkar@oracle.com, Viresh Kumar Subject: [PATCH V7 3/3] OPP: Add binding for 'opp-suspend' Date: Thu, 4 Jun 2015 21:50:33 +0530 Message-Id: X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: 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: viresh.kumar@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.215.50 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: , On few platforms, for power efficiency, we want the device to be configured for a specific OPP while we put the device in suspend state. Add an optional property in operating-points-v2 bindings for that. Acked-by: Nishanth Menon Suggested-by: Nishanth Menon Signed-off-by: Viresh Kumar --- Documentation/devicetree/bindings/power/opp.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/power/opp.txt b/Documentation/devicetree/bindings/power/opp.txt index 2938c52dbf84..6c245d87dd50 100644 --- a/Documentation/devicetree/bindings/power/opp.txt +++ b/Documentation/devicetree/bindings/power/opp.txt @@ -74,6 +74,8 @@ This describes the OPPs belonging to a device. This node can have following Missing property means devices have independent clock/voltage/current lines, but they share OPP tables. +- opp-suspend: Phandle of the OPP to set while device is suspended. + * OPP Node @@ -145,9 +147,10 @@ Example 1: Single cluster Dual-core ARM cortex A9, switch DVFS states together. cpu0_opp_table: opp_table0 { compatible = "operating-points-v2"; + opp-suspend = <&suspend_opp>; opp-shared; - opp00 { + suspend-opp: opp00 { opp-hz = <1000000000>; opp-microvolt = <970000 975000 985000>; opp-microamp = <70000>; @@ -219,13 +222,14 @@ independently. cpu_opp_table: opp_table { compatible = "operating-points-v2"; + opp-suspend = <&suspend_opp>; /* * Missing opp-shared property means CPUs switch DVFS states * independently. */ - opp00 { + suspend-opp: opp00 { opp-hz = <1000000000>; opp-microvolt = <970000 975000 985000>; opp-microamp = <70000>; @@ -298,9 +302,10 @@ DVFS state together. cluster0_opp: opp_table0 { compatible = "operating-points-v2"; + opp-suspend = <&suspend_opp0>; opp-shared; - opp00 { + suspend-opp: opp00 { opp-hz = <1000000000>; opp-microvolt = <970000 975000 985000>; opp-microamp = <70000>; @@ -323,9 +328,10 @@ DVFS state together. cluster1_opp: opp_table1 { compatible = "operating-points-v2"; + opp-suspend = <&suspend_opp1>; opp-shared; - opp10 { + suspend-opp: opp10 { opp-hz = <1300000000>; opp-microvolt = <1045000 1050000 1055000>; opp-microamp = <95000>;