Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1015264ybl; Thu, 12 Dec 2019 08:23:10 -0800 (PST) X-Google-Smtp-Source: APXvYqyqmOWQ9MflJCOFvV5i0XVhrYA9bjvOXd4vvoNDKWItQThnI1jbO3/uGFqy0QUamGxy4CPH X-Received: by 2002:aca:5303:: with SMTP id h3mr5207298oib.109.1576167790726; Thu, 12 Dec 2019 08:23:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576167790; cv=none; d=google.com; s=arc-20160816; b=X88L9Avgp1qYewAuKNmwMlqk95YagrTH1QHUVKGIyKRS/+JaO+VvqGIVs1f8RO3QWl QTnM4EbCMjnT8tB9keFbm6yi5pBoUuysXVJhvynfBMqscwBcQjzNc0qVfOGARRKh27A5 a+brx+/2w8wtCiE4c0pgxydtGRqAnRd5OE4GUflvrzZpyRxug+NC7ioQxRe0x5uS4Rtp JdW+1ktNmCOkAo55uJ6V9GuTMTNbpz7skwALtZreIv8IC7hWXZm8taQbxkGM21aQ9L3N axkld1z7EmIQ+QQMdo2vt2rtj48lQ8ETZrNqZpSYO9Oa7I7uoPbdClATR7BVyNO+1JER KHVg== 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=feKvd8pSGudZ9hBol4INbOXdqRSDaJYPSxw08dPsKSw=; b=OEilQpWfy9ajExx896ntm5x15lxSok8WA7srjxWUPT3a8egeaelWE4fbFyKUpmSErL SzF7XTimySxWJEWlgV1iS2kEKNGeoEnPAX8L0LOwDUbA/4kP5/jKnXKoafcso5UOTvin ViF5sRldbj3eyGMnG87gdHiSTtlFxjo1GXfzgDSHC+S6lYg80jUiKVesuZFP2HMOU55G h0HOv260P1zl+8zRVvEMWxUKpG+bHGy6UOAsE/IMKGPlR1ThxkMQG55swy8Dn89bZ+Sr ivbF8jSl4/o8nb85tMon+ateDjtc2ym0ZwutvXiHevFkRSAmjJbsLGdK+RUYdwNiWnJw acyQ== 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 d62si3554228oib.144.2019.12.12.08.22.57; Thu, 12 Dec 2019 08:23:10 -0800 (PST) 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 S1729862AbfLLQWF (ORCPT + 99 others); Thu, 12 Dec 2019 11:22:05 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:47519 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729655AbfLLQWE (ORCPT ); Thu, 12 Dec 2019 11:22:04 -0500 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 1ifRDw-0005fc-Ik; Thu, 12 Dec 2019 17:21:56 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1ifRDt-0007Ok-4v; Thu, 12 Dec 2019 17:21:53 +0100 Date: Thu, 12 Dec 2019 17:21:53 +0100 From: Marco Felsch To: Mark Brown Cc: Adam Thomson , Support Opensource , "lee.jones@linaro.org" , "robh+dt@kernel.org" , "linus.walleij@linaro.org" , "bgolaszewski@baylibre.com" , "joel@jms.id.au" , "andrew@aj.id.au" , "lgirdwood@gmail.com" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" , "linux-aspeed@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "kernel@pengutronix.de" Subject: Re: [PATCH v3 3/6] dt-bindings: mfd: da9062: add regulator voltage selection documentation Message-ID: <20191212162152.5uu3feacduetysq7@pengutronix.de> References: <20191129172537.31410-1-m.felsch@pengutronix.de> <20191129172537.31410-4-m.felsch@pengutronix.de> <20191204134631.GT1998@sirena.org.uk> <20191210094144.mxximpuouchy3fqu@pengutronix.de> <20191211170918.q7kqkd4lrwwp7jl3@pengutronix.de> <20191212161019.GF4310@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191212161019.GF4310@sirena.org.uk> 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:17:35 up 27 days, 7:36, 37 users, load average: 0.01, 0.04, 0.08 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 On 19-12-12 16:10, Mark Brown wrote: > On Wed, Dec 11, 2019 at 06:09:18PM +0100, Marco Felsch wrote: > > > so one argument more for my solution. Also we don't configure the "pad" > > to be a vsel/ena-pin. The hw-pad can only be a gpio or has an alternate > > function (WDKICK for GPIO0, Seq. SYS_EN for GPIO2, Seq. PWR_EN for GPIO4). > > Instead we tell the regulator to use _this_ GPIO e.g. for voltage > > selection so we go the other way around. My last argument why pinctrl > > isn't the correct place is that the GPIO1 can be used for > > regulator-0:vsel-in and for regulator-1:enable-in. So this pad would > > have different states which is invalid IMHO. > > Note that there's two bits to my concern - one is if we should be using > gpiolib or pinctrl, the other is what's driving the input (whichever API > it's configured through) which didn't seem to be mentioned. gpiolib or pinctrl: I pointed out all my arguments above so I think it is time for Linus. "... what's driving the input ..": Sorry I didn't get you here. What did you mean? The input is driven by the host. This can be any gpio line and in my case it is a gpio line driven by the soc-hw during a suspend operation. Regards, Marco