From patchwork Thu May 28 07:29:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 49047 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 742E4218EC for ; Thu, 28 May 2015 07:30:24 +0000 (UTC) Received: by wizk4 with SMTP id k4sf11051211wiz.2 for ; Thu, 28 May 2015 00:30: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: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=hNzij7ztFP+8hzNTgWcgTSc9bUfm4Xk/T0JnaEsFW20=; b=f9ndgqo86dxwiWgyE6K2E1c2W+Xkd8DK0qgRTGHXp7VEZwAoK8MbQBNoO5bmYkUkQQ lMuxw20UExc9Xj+0FT1+Xyg9QLx0c6MwdHOnNUYQTS3EDGn5EM/EQzSST9tKcO6lfWCD 5YcxvwPcBTViTBilEMCh02+2BALUNWixyxGo8V29Uo5hEpyFtfw36Ur++iS/eSRkdUZt 4qw/lfiYrH+Sfoc1nRbFAjjO0QlFiioW/USse6FBDdH0/FiWk2suVbNi1/UTP9QPjGsI UnWov8eyglBCm3OHYgipg6kWM56h0Ji9ZLAM71F0Kz4QT+GmNz3oJzaz84ColGsARYpy NayA== X-Gm-Message-State: ALoCoQkV1o09kxQUpuIy6+JCdHU3WfJu/mqMMKGecYyQ1bQ7L92+faTXFV7guYnkK0Mi7MpeS/Qv X-Received: by 10.180.105.67 with SMTP id gk3mr32018989wib.4.1432798223817; Thu, 28 May 2015 00:30:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.103 with SMTP id l7ls152160laf.35.gmail; Thu, 28 May 2015 00:30:23 -0700 (PDT) X-Received: by 10.112.162.38 with SMTP id xx6mr1362510lbb.110.1432798223655; Thu, 28 May 2015 00:30:23 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id c10si1206635laa.171.2015.05.28.00.30.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 May 2015 00:30:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by laat2 with SMTP id t2so24865522laa.1 for ; Thu, 28 May 2015 00:30:23 -0700 (PDT) X-Received: by 10.152.4.72 with SMTP id i8mr1416270lai.32.1432798223417; Thu, 28 May 2015 00:30: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.112.108.230 with SMTP id hn6csp938098lbb; Thu, 28 May 2015 00:30:22 -0700 (PDT) X-Received: by 10.66.66.1 with SMTP id b1mr2902344pat.87.1432798221646; Thu, 28 May 2015 00:30:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u3si2345912pde.161.2015.05.28.00.30.20; Thu, 28 May 2015 00:30:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 S1752744AbbE1HaT (ORCPT + 7 others); Thu, 28 May 2015 03:30:19 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:32809 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753272AbbE1HaS (ORCPT ); Thu, 28 May 2015 03:30:18 -0400 Received: by pdbqa5 with SMTP id qa5so35750684pdb.0 for ; Thu, 28 May 2015 00:30:18 -0700 (PDT) X-Received: by 10.68.131.225 with SMTP id op1mr2975888pbb.86.1432798218161; Thu, 28 May 2015 00:30:18 -0700 (PDT) Received: from localhost ([122.167.219.251]) by mx.google.com with ESMTPSA id pj4sm1339304pbb.20.2015.05.28.00.30.16 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 28 May 2015 00:30:17 -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 V6 3/3] OPP: Add binding for 'opp-suspend' Date: Thu, 28 May 2015 12:59:57 +0530 Message-Id: <52320ac3032de17cbb0aaf518d542ebfbac4b1a4.1432797343.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.54 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 f6f75545149e..e56c74824a8c 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>;