Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1821905ybn; Thu, 26 Sep 2019 02:45:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3MwkZo9ILnH48RJE+8pIsrv6BI7UW9btJtSJ7My5GNZCxx8bOMfxu3eSmoQMP+VnCslvr X-Received: by 2002:a50:f703:: with SMTP id g3mr2485966edn.43.1569491113231; Thu, 26 Sep 2019 02:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569491113; cv=none; d=google.com; s=arc-20160816; b=tLLDyzdWm0mLrXODr/XYvTLKfkmTpou+E7HxVtKkZ4J3TzA5PXnOsSpBFIX9s0SUiT 7L3Rhb9sAamXZ4b4c5ceYpwvM9St4jTbr0hW8Ulc36lSMDDjIEeMxT9Y50EqyCmyx2Ax Ayyc+xhisEMDGZ5gn7M7sm6GKzHKR680kDOcJHeDF0gmsCVjzRRL0y7GOvZKSgG/ZUO5 7UlSf7d+7OeXqjbnhAGJ2vGlpIMXEEIkjr3UvjZAftr1l8oaxtzYNB5Q4lGzkrZGs8Y+ jr1UWEuY/5ZISaSUtnGPf+XPkWkOkk7WfMoyahNXV8Wh6vlfk3C2VknONCCDzeCAz/NM GYdQ== 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; bh=JNww9U+yOkB/ZAiybnGBxwHZRzFmj4V4b6N4poUFuRA=; b=FBEo3xNdxTwKXV0oSLPXDoZFil8fgS+qnV7+uy3miUNNiopobQojwF9E1eyZZCPgEe 4i8wzJnUF4ASPy5rJV0zA1ihpRIlul5lh1fWmkK2rNL9fe1hp9jZGlwkw7M9o8s5t0WY r4qY1EmJxcpV5xt8A2wVOyiKbEh8ya+5Z5Rp6vdYyb0HCEyYB/bti57s4g/pbtItCJiD YMzmQ2NVm5d90g9PMuwKdexF+R1cMrfq8osRtIyYdOBOc7t/JOxommwbKslXM+JsuJ0U iK6MCfh7LxjdmsEHFCDff/wMw2gSnpeZ3lwlQSK2RL65mtHGKwyNtmSPN26bVLA7aisO JPig== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o25si687263ejc.361.2019.09.26.02.44.49; Thu, 26 Sep 2019 02:45:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391758AbfIYPv7 (ORCPT + 99 others); Wed, 25 Sep 2019 11:51:59 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:41995 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387835AbfIYPv7 (ORCPT ); Wed, 25 Sep 2019 11:51:59 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iD9a4-0003aB-SQ; Wed, 25 Sep 2019 17:51:52 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iD9a3-00075g-RB; Wed, 25 Sep 2019 17:51:51 +0200 Date: Wed, 25 Sep 2019 17:51:51 +0200 From: Marco Felsch To: Adam Thomson Cc: Support Opensource , "lee.jones@linaro.org" , "robh+dt@kernel.org" , "lgirdwood@gmail.com" , "broonie@kernel.org" , Steve Twiss , "kernel@pengutronix.de" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/5] dt-bindings: mfd: da9062: add regulator voltage selection documentation Message-ID: <20190925155151.75uaxfiiei3i23tz@pengutronix.de> References: <20190917124246.11732-1-m.felsch@pengutronix.de> <20190917124246.11732-3-m.felsch@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 17:42:18 up 130 days, 22:00, 84 users, load average: 0.12, 0.07, 0.02 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adam, On 19-09-24 09:23, Adam Thomson wrote: > On 17 September 2019 13:43, Marco Felsch wrote: > > > Add the documentation which describe the voltage selection gpio support. > > This property can be applied to each subnode within the 'regulators' > > node so each regulator can be configured differently. > > > > Signed-off-by: Marco Felsch > > --- > > Documentation/devicetree/bindings/mfd/da9062.txt | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/mfd/da9062.txt > > b/Documentation/devicetree/bindings/mfd/da9062.txt > > index edca653a5777..9d9820d8177d 100644 > > --- a/Documentation/devicetree/bindings/mfd/da9062.txt > > +++ b/Documentation/devicetree/bindings/mfd/da9062.txt > > @@ -66,6 +66,15 @@ Sub-nodes: > > details of individual regulator device can be found in: > > Documentation/devicetree/bindings/regulator/regulator.txt > > > > + Optional regulator device-specific properties: > > + - dlg,vsel-sense-gpios : The GPIO reference which should be used by the > > + regulator to switch the voltage between active/suspend voltage settings. If > > + the signal is active the active-settings are applied else the suspend > > + settings are applied. Attention: Sharing the same gpio for other purposes > > + or across multiple regulators is possible but the gpio settings must be the > > + same. Also the gpio phandle must refer to to the dlg,da9062-gpio device > > + other gpios are not allowed and make no sense. > > + > > Should we not use the binding names that are defined in 'gpio-regulator.yaml' as > these seem to be generic and would probably serve the purpose here? Hm.. as the description says: 8<-------------------------------------------------- gpios: description: Array of one or more GPIO pins used to select the regulator voltage/current listed in "states". 8<-------------------------------------------------- But we don't have a "states" property and we can't select between voltage or current. Regards, Marco > > - rtc : This node defines settings required for the Real-Time Clock associated > > with the DA9062. There are currently no entries in this binding, however > > compatible = "dlg,da9062-rtc" should be added if a node is created. > > -- > > 2.20.1 > > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |