Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5036231imm; Fri, 18 May 2018 15:25:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZopo+O8q21tsynkcHRqo84SlrQp3fVyviCTg6/lMvKpku2lSMllqd5S2gd0TDhA2KCOwIhL X-Received: by 2002:a17:902:3f81:: with SMTP id a1-v6mr11063630pld.29.1526682316321; Fri, 18 May 2018 15:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526682316; cv=none; d=google.com; s=arc-20160816; b=YBF3MJKMqSTAyCsvqsxYxEo32rnWfvH/+TFrkj0Gb8riHAhOPsamXyXGcj2uRlNPwv eoAPbRhgfdNqOF/Z5OpRBXbZnDxPEegdexxYlsXaaherRH9WgEdfbJQYYFQXLhser9MP E61Tvjzo6vBRfp7sgssWYd1V7PH7q8HpOlt5a4rv7IuY4U8a+e+D2ipT6RG3STYg9VWv 3/OUXeFViPs6ptuEUlsoaVrOwwJEoMM7G58XEooPFfW2qUwuT3Qj2e4/mFigEt5paMA6 Qy+Wp71Uk7RxJhCVhgoz6hoSuTNxU6ZO9PEKgubIgEfJ63hRMbh1l3BQ0iEPlqrpDl+w eHRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=d7pQ4wqOkmu/WwyQ6kilVmPMYgyfwyC/Og7J5glN8kQ=; b=V73ha48eB8CV0oG/sezFuKigEi/c47vgK4BT+lse7K1rSIh38QjWqsbainRnG2gAHy gTN8hInB2X/U96pK+IzS2pAe1nT70BGb2RahpnpfPvzGGDzcNZvB5o+IonqwHj2PJEQF HmMACi9A6uZy3sFh2KDxmlNabwkRjnplW5rpHTDsty9wpoSli0p+vDKCzyMT3/xLpRaq XDX11Tlp+LG9/TWIW02LK82dXSQqs9EES6JZ9Dt3RhxVcBjf2vDVlELqqIT5bKbxFoCS ktmAr6Lf7QXDwAoHgA9z9nY+stff47gdWpQXopqD2T58fKAaRp0DYOLtf870QDT78XwZ YwTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12-v6si6602900pgq.154.2018.05.18.15.25.01; Fri, 18 May 2018 15:25:16 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752059AbeERWYu (ORCPT + 99 others); Fri, 18 May 2018 18:24:50 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:36611 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751606AbeERWYr (ORCPT ); Fri, 18 May 2018 18:24:47 -0400 Received: by mail-oi0-f67.google.com with SMTP id v2-v6so8436808oif.3; Fri, 18 May 2018 15:24:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=d7pQ4wqOkmu/WwyQ6kilVmPMYgyfwyC/Og7J5glN8kQ=; b=WZYE8zXZTt2nFrcdBjUIi5SU2vbUe3R4a3qDHKIynUaiXlpY0nLnALoWXxpQKkjF6y ASdMJdchCi+1VsGKQwWRJ9hK+gA8SSK7LTep8m0HcEHbDgWJO+Ovrp9AWPMgdypBPbfS C3Ue8zhJKOyE6c0aeyU9KByw+BNSicWprhZttf09+wfVPrUchgn4x0ePnG7eHHjVsaWt jGXlDEfHC3lTaAQO0pv5GjFrNX0yhlGCNeKaOOKlkEqjW5Yq5oRvNFZhrOeqigpg1X7z e26nkFCBo5dE2o8iLMhhfclhipf+9jpmbDMvRcrffvJepmcKu8QCFe5nTUdeO+NIDBUs Xdrg== X-Gm-Message-State: ALKqPweR1mNVDxIbXaH4JUgrSKqyGdkfiv+ZpukXp6AZCjRmlslJpMJ+ L5TtvGfYzExQdzi2bsSk4g== X-Received: by 2002:aca:2813:: with SMTP id 19-v6mr7012157oix.281.1526682286634; Fri, 18 May 2018 15:24:46 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id i31-v6sm7111423otb.62.2018.05.18.15.24.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 15:24:45 -0700 (PDT) Date: Fri, 18 May 2018 17:24:45 -0500 From: Rob Herring To: David Collins Cc: Doug Anderson , Mark Brown , Liam Girdwood , Mark Rutland , linux-arm-msm@vger.kernel.org, Linux ARM , devicetree@vger.kernel.org, LKML , Rajendra Nayak , Stephen Boyd Subject: Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings Message-ID: <20180518222445.GA16342@rob-hp-laptop> References: <41d5df73ddac772551d2966e0752bb0c357b1ded.1526088081.git.collinsd@codeaurora.org> <869aad59-1cc5-28ef-1fb5-4ef846696c40@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <869aad59-1cc5-28ef-1fb5-4ef846696c40@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 17, 2018 at 05:16:13PM -0700, David Collins wrote: > On 05/17/2018 02:22 PM, Doug Anderson wrote: > > On Fri, May 11, 2018 at 7:28 PM, David Collins wrote: > >> +- qcom,regulator-initial-microvolt > >> + Usage: optional; VRM regulators only > >> + Value type: > >> + Definition: Specifies the initial voltage in microvolts to request for a > >> + VRM regulator. > > > > Now that Mark has landed the patch adding support for the > > -ENOTRECOVERABLE error code from get_voltage() / get_voltage_sel(), do > > we still need the qcom,regulator-initial-microvolt property? > > Yes, this is still needed. The -ENOTRECOVERABLE patch ensures that > qcom-rpmh-regulator devices can be registered even if > qcom,regulator-initial-microvolt is not specified. However, that will > result in the regulators being configured for the minimum voltage > supported in the DT specified min/max range. The > qcom,regulator-initial-microvolt property allows us to set a specific > voltage that is larger than the min constraint. > > > If this is really still needed, can it be moved to the regulator core? > > I'm not opposed to the idea, but I think that Mark is [1]: > > >> Do you have a preference for qcom,regulator-initial-microvolt vs a generic > >> framework supported regulator-initial-microvolt property for configuring a > >> specific voltage at registration time? We'll need to have support for one > >> or the other in order for the qcom_rpmh-regulator driver to be functional. > > > > This is basically specific to Qualcomm, I can't off hand think of any > > other devices with similar issues. > > > >> +- regulator-initial-mode > >> + Usage: optional; VRM regulators only > >> + Value type: > >> + Definition: Specifies the initial mode to request for a VRM regulator. > >> + Supported values are RPMH_REGULATOR_MODE_* which are defined > >> + in [1] (i.e. 0 to 3). This property may be specified even > >> + if the regulator-allow-set-load property is not specified. > > > > Every time I read the above I wonder why you're documenting a standard > > regulator regulator property in your bindings. ...then I realize it's > > because you're doing it because you want to explicitly document what > > the valid modes are. I wonder if it makes sense to just put a > > reference somewhere else in this document to go look at the header > > file where these are all nicely documented. > > Isn't that what the [1] in the above snippet is currently doing. Further > down in qcom,rpmh-regulator.txt is this line: > > +[1] include/dt-bindings/regulator/qcom,rpmh-regulator.h > > > > Speaking of documenting things like that, it might be worth finding > > somewhere in this doc to mention that the "bob" regulator on PMI8998 > > can support "regulator-allow-bypass". That tidbit got lost when we > > moved to the standard regulator bindings for bypass. > > I suppose that I could add something like this: > > +- regulator-allow-bypass > + Usage: optional; BOB type VRM regulators only > + Value type: > + Definition: See [2] for details. > ... > +[2]: Documentation/devicetree/bindings/regulator.txt > > However, I don't want the patch to get NACKed because it is defining a > property that is already defined in the common regulator.txt file. If all constraints are defined in the common doc, just "see regulator.txt" is fine. You just need to say what properties this binding uses. Rob