From patchwork Wed May 20 03:41:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 48781 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1B0E92121F for ; Wed, 20 May 2015 03:43:13 +0000 (UTC) Received: by labcd2 with SMTP id cd2sf12524936lab.0 for ; Tue, 19 May 2015 20:43:11 -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=yaRskW+ec122+o6EjlGKWIkrrA0cHOpV74A0jdo/zLY=; b=iYo3Y0QrTZcKbRNz8VAtlmy9QbxUU5oalXObOTMCPRNles9UgB1jWa/gUr21XNrBXW SMKRSXyNue3VMiUcg/y49vhU4IFSXI9sNCQzF0n7EHmCjeLLVmmRTMMx0pfBwLiobz1W Bg/Bo3+8bivY0yFS1TQKbYvtHXFeOCg58TfeiFpDF8FlMstCBe6RD7KWY/2f5PqPRjLw sFLcszZT95rd38p99fHgiZ81tdw0GASBdPJdnfvZT0Eymzf6wpqH3wE0k3wJvJgPPEvV Ry8MWuHHyvhrZ0p9v7g44w3Q3dOy5FeHw3PUWgKeSR4zNJ/4IBs0aMyX8A1wtDoNpX3/ S1XQ== X-Gm-Message-State: ALoCoQnuiRUs4Na1BCsejIWOnQ/N/Oqim9j+zC6Nqj1chjWcRnNnMY2rn5i8ehiP69qLGtby0lGQ X-Received: by 10.194.202.229 with SMTP id kl5mr11058395wjc.3.1432093391891; Tue, 19 May 2015 20:43:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.181.34 with SMTP id dt2ls137939lac.14.gmail; Tue, 19 May 2015 20:43:11 -0700 (PDT) X-Received: by 10.112.72.132 with SMTP id d4mr24187039lbv.1.1432093391722; Tue, 19 May 2015 20:43:11 -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 tq9si10331486lbb.126.2015.05.19.20.43.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2015 20:43:11 -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 lagv1 with SMTP id v1so54741937lag.3 for ; Tue, 19 May 2015 20:43:11 -0700 (PDT) X-Received: by 10.112.204.104 with SMTP id kx8mr23819255lbc.72.1432093390906; Tue, 19 May 2015 20:43:10 -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 hn6csp1237374lbb; Tue, 19 May 2015 20:43:09 -0700 (PDT) X-Received: by 10.68.242.41 with SMTP id wn9mr59028551pbc.117.1432093389023; Tue, 19 May 2015 20:43:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay3si24334283pbc.54.2015.05.19.20.43.08; Tue, 19 May 2015 20:43:09 -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 S1752470AbbETDmV (ORCPT + 7 others); Tue, 19 May 2015 23:42:21 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:36116 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752453AbbETDmU (ORCPT ); Tue, 19 May 2015 23:42:20 -0400 Received: by pdfh10 with SMTP id h10so51920182pdf.3 for ; Tue, 19 May 2015 20:42:19 -0700 (PDT) X-Received: by 10.70.88.170 with SMTP id bh10mr60204385pdb.62.1432093339762; Tue, 19 May 2015 20:42:19 -0700 (PDT) Received: from localhost ([122.167.226.34]) by mx.google.com with ESMTPSA id nq2sm14464475pdb.70.2015.05.19.20.42.18 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 19 May 2015 20:42:19 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , rob.herring@linaro.org, arnd.bergmann@linaro.org, nm@ti.com, broonie@kernel.org, mike.turquette@linaro.org, sboyd@codeaurora.org Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.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 V5 3/3] OPP: Add binding for 'opp-suspend' Date: Wed, 20 May 2015 09:11:40 +0530 Message-Id: <618b02107af650bcb3246e165095bbca207d511a.1432091956.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. 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 7f30d9b07db7..880f5e14b6e2 100644 --- a/Documentation/devicetree/bindings/power/opp.txt +++ b/Documentation/devicetree/bindings/power/opp.txt @@ -72,6 +72,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 @@ -143,9 +145,10 @@ Example 1: Single cluster Dual-core ARM cortex A9, switch DVFS states together. cpu0_opp: opp0 { compatible = "operating-points-v2"; + opp-suspend = <&suspend_opp>; opp-shared; - entry00 { + suspend-opp: entry00 { opp-hz = <1000000000>; opp-microvolt = <970000 975000 985000>; opp-microamp = <70000>; @@ -217,13 +220,14 @@ independently. cpu0_opp: opp0 { compatible = "operating-points-v2"; + opp-suspend = <&suspend_opp>; /* * Missing opp-shared property means CPUs switch DVFS states * independently. */ - entry00 { + suspend-opp: entry00 { opp-hz = <1000000000>; opp-microvolt = <970000 975000 985000>; opp-microamp = <70000>; @@ -296,9 +300,10 @@ DVFS state together. cluster0_opp: opp0 { compatible = "operating-points-v2"; + opp-suspend = <&suspend_opp0>; opp-shared; - entry00 { + suspend-opp0: entry00 { opp-hz = <1000000000>; opp-microvolt = <970000 975000 985000>; opp-microamp = <70000>; @@ -321,9 +326,10 @@ DVFS state together. cluster1_opp: opp1 { compatible = "operating-points-v2"; + opp-suspend = <&suspend_opp1>; opp-shared; - entry10 { + suspend-opp1: entry10 { opp-hz = <1300000000>; opp-microvolt = <1045000 1050000 1055000>; opp-microamp = <95000>;