From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4563C43603 for ; Thu, 12 Dec 2019 15:55:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B48592073B for ; Thu, 12 Dec 2019 15:55:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ai4pWHMv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B48592073B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bAF1MyhmONjBxJNnlFsxNfgMhn/CZoyvAwmJ+02mBKg=; b=ai4pWHMvz/Qo9l eUAGgIHEihIt8if4nOtz+T8XEwfBv4oie37oWTC+U53g4ecDkAqKz2sWt7mrVuRII4/a6tX4XFE4C gtAhKpaifHm/zgKlLE0xibp1hfgtpFnR8hjavxfyfJ9hjJ/t4qWYKuR0x0oGRiL4xIRQg2fHuJ6QS mATEGD2L+ujXK1zyBpPn5S0EapfCNDbzpeX2nC+oTfesVwn0L1WADe/Qnzt+mRWlAd+3Z+Cf4KZ2h h/8gkIV107A4UsAwAol0SMuTHduvZG6GDyrXT08Pobn7R0xyH7NK2nxetjjquu+GKsjxDH2exRKl4 1z2ejnljLPv4yKkNwPhQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifQoM-0007UC-9l; Thu, 12 Dec 2019 15:55:30 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifQoJ-0007TW-EC for linux-arm-kernel@lists.infradead.org; Thu, 12 Dec 2019 15:55:28 +0000 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 1ifQo8-0002KX-2S; Thu, 12 Dec 2019 16:55:16 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1ifQo5-000678-TI; Thu, 12 Dec 2019 16:55:13 +0100 Date: Thu, 12 Dec 2019 16:55:13 +0100 From: Marco Felsch To: Linus Walleij Subject: Re: [PATCH v3 3/6] dt-bindings: mfd: da9062: add regulator voltage selection documentation Message-ID: <20191212155513.fevajupxi6omphzf@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> MIME-Version: 1.0 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: 16:51:05 up 27 days, 7:09, 36 users, load average: 0.12, 0.17, 0.13 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-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191212_075527_476790_A9551F6D X-CRM114-Status: GOOD ( 19.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "devicetree@vger.kernel.org" , Support Opensource , "linux-aspeed@lists.ozlabs.org" , "linux-gpio@vger.kernel.org" , "andrew@aj.id.au" , "lgirdwood@gmail.com" , "robh+dt@kernel.org" , "linux-kernel@vger.kernel.org" , "bgolaszewski@baylibre.com" , Mark Brown , "joel@jms.id.au" , "kernel@pengutronix.de" , Adam Thomson , "lee.jones@linaro.org" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On 19-12-12 16:08, Linus Walleij wrote: > On Wed, Dec 11, 2019 at 6:09 PM Marco Felsch wrote: > > > I discussed it with a colleague again and he mentioned that pinctrl > > should be named pinctrl instead it should be named padctrl. > > Quoting Documentation/driver-api/pinctl.rst: > > (...) > Definition of PIN: > > - PINS are equal to pads, fingers, balls or whatever packaging input or > output line you want to control and these are denoted by unsigned integers > in the range 0..maxpin. > (...) Okay there is the definition. > > We don't > > reconfigure the pad to a other function it is still a device general > > purpose input pad. The hw-signal flow goes always trough the gpio block > > 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. > > Yeah it is just one of these cases where the silicon designer pulled > a line of polysilicone over to the regulator enable signal and put a > switch on it and say "so you can also enable the regulator > with a signal from here", it can be used in parallel with anything > else, which is especially messy. I didn't say that the design isn't messy ;) I just wanna make the right abstraction and IMHO this is the correct abstraction. Regards, Marco > Special cases require special handling, since the electronic design > of this thing is a bit Rube Goldberg. > > Yours, > Linus Walleij > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel