From patchwork Fri Sep 11 12:01:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 53450 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 patches.linaro.org (Postfix) with ESMTPS id 11F1B215BF for ; Fri, 11 Sep 2015 12:02:50 +0000 (UTC) Received: by lanb10 with SMTP id b10sf25159465lan.3 for ; Fri, 11 Sep 2015 05:02:49 -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=o97luuCegzrT1jyKmq5fEkysFNkZFhA/T2VZlTGfgOI=; b=bxTBrhpfFULwEdMzC5m2HU9jwaEJJ8g3cfC5RsxgoOXqxRyRw2usk2Bmcece/+Rev7 fuzyvpiySHkesxYCvEUfk/rWL4TtbULOBjN1cfgNodvqXJ9eNdqVwk3X0NKpa4komd9F Oa6M6P8ONS5xswV7EnyCrheIRuU5sNm3OzQLq/fki//UJgobfulMVce0xM1bxmJ3tptR OQ9Qlp/JhOYzbHKg8sx6d7+b/GO7V93VgXEOjEHmoD3PlQ1Q4ncXltg6RTg59MCAXYAk rY8ZOgb60W7xpATUmH+ky4rj3K/OxW7GhyXR6e1X5efER9EmGyB9zBwuG02iqxWKyW1v bnBQ== X-Gm-Message-State: ALoCoQmDRV111QEHGUUVwo0lwKATF8UarmcK3AoGCGaN0AuKicLtY9vn4W5KFEx+1n13aHIwzLaV X-Received: by 10.152.19.234 with SMTP id i10mr10099565lae.8.1441972969039; Fri, 11 Sep 2015 05:02:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.180.75 with SMTP id dm11ls295951lac.102.gmail; Fri, 11 Sep 2015 05:02:48 -0700 (PDT) X-Received: by 10.152.25.225 with SMTP id f1mr33509951lag.52.1441972968848; Fri, 11 Sep 2015 05:02:48 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id xy7si21864lbb.53.2015.09.11.05.02.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2015 05:02:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lanb10 with SMTP id b10so46155446lan.3 for ; Fri, 11 Sep 2015 05:02:48 -0700 (PDT) X-Received: by 10.112.72.97 with SMTP id c1mr27674005lbv.86.1441972968524; Fri, 11 Sep 2015 05:02:48 -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.59.35 with SMTP id w3csp1544822lbq; Fri, 11 Sep 2015 05:02:47 -0700 (PDT) X-Received: by 10.50.79.230 with SMTP id m6mr3199164igx.14.1441972967414; Fri, 11 Sep 2015 05:02:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21si131502ioi.156.2015.09.11.05.02.39; Fri, 11 Sep 2015 05:02:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 S1752850AbbIKMCe (ORCPT + 28 others); Fri, 11 Sep 2015 08:02:34 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35888 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752777AbbIKMCa (ORCPT ); Fri, 11 Sep 2015 08:02:30 -0400 Received: by padhk3 with SMTP id hk3so73536920pad.3 for ; Fri, 11 Sep 2015 05:02:29 -0700 (PDT) X-Received: by 10.68.89.100 with SMTP id bn4mr96292141pbb.93.1441972949784; Fri, 11 Sep 2015 05:02:29 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id hz5sm47159pbb.39.2015.09.11.05.02.28 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 11 Sep 2015 05:02:29 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , nm@ti.com, sboyd@codeaurora.org Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, rob.herring@linaro.org, lee.jones@linaro.org, Viresh Kumar , devicetree@vger.kernel.org, Ian Campbell , Kumar Gala , linux-kernel@vger.kernel.org (open list), Mark Rutland , Pawel Moll , "Rafael J. Wysocki" , Rob Herring Subject: [PATCH 02/16] PM / OPP: Add 'opp-microvolt-triplets' binding Date: Fri, 11 Sep 2015 17:31:58 +0530 Message-Id: <254dd353453a495bb0921fa23e430428484f36fa.1441972771.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.47 as permitted sender) smtp.mailfrom=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: , If 'opp-microvolt' is used to specify values for multiple regulators, then we need this additional information to know if the values passed should be treated as or . This is because, DT doesn't differentiate between these two styles: prop = , , ; prop = ; Cc: devicetree@vger.kernel.org Signed-off-by: Viresh Kumar --- Documentation/devicetree/bindings/opp/opp.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt index 8759bc4783ed..719603b87353 100644 --- a/Documentation/devicetree/bindings/opp/opp.txt +++ b/Documentation/devicetree/bindings/opp/opp.txt @@ -76,6 +76,16 @@ This describes the OPPs belonging to a device. This node can have following present here is important, as that should match the order in which values are present in 'opp-microvolt' and 'opp-microamp' properties. +- opp-microvolt-triplets: This is a required property, only if multiple supplies + are available for the device. Otherwise it is ignored. + + 'opp-microvolt' can be present in two forms: or , per + power-supply. 'opp-microvolt-triplets' property is used to find the form in + which 'opp-microvolt' is present. + + If present, then 'opp-microvolt' must be present in form, + else in form. + - OPP nodes: One or more OPP nodes describing voltage-current-frequency combinations. Their name isn't significant but their phandle can be used to reference an OPP. @@ -403,6 +413,8 @@ Example 4: Handling multiple regulators /* OR */ + opp-microvolt-triplets; + opp00 { opp-hz = /bits/ 64 <1000000000>; opp-microvolt = <970000 975000 985000>, /* Supply 0 */ @@ -416,6 +428,8 @@ Example 4: Handling multiple regulators /* OR */ + opp-microvolt-triplets; + opp00 { opp-hz = /bits/ 64 <1000000000>; opp-microvolt = <970000 975000 985000>, /* Supply 0 */