Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp982168ybl; Thu, 12 Dec 2019 07:56:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwoXc0KSNtU9RWPTwe0/S7kKk8tyO2C0dsGUink3ZhPsA0cm03b+p7mo7j6JPhq+/dgXZ4u X-Received: by 2002:a9d:3b09:: with SMTP id z9mr9005797otb.195.1576166186596; Thu, 12 Dec 2019 07:56:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576166186; cv=none; d=google.com; s=arc-20160816; b=CbZK4kDZH693EPei2+8miKxejCkcsRqraBg0hajL2L4jR+5Fe7I83mC3uBlGF2E4z5 d7IWUC/ZIVtocwUHvwnoK/qmeeqlVMJQqD1JBhkxc5VKi3EOI/5pkvJk1t+3+h3iuvvd AllYiz1+b7J/26kSsTeln0gWBwUXrTFw/+XBPZ56ZTo0cf5QME4spDuCfmvXBwQULf4y AAkEwQA6F1j/fr9MNweThrKqG8RMaa3mX0E+CWn93+aKqLV9HTcGiv+jxxaVftGgoTfP Cvo5e0ojxj09Yhv3JLrMogwgjfMW8/J6uj/f+MvPuto/4FrYH9GXxiHRR6WFS3/9f88l SZtQ== 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=tWzABJVL2jiHz0H7aTJLApYsaOgRaW2p9C2CF9c9iyw=; b=aPjnAgh2UtVcrb7DvHWAKO/nNIXo1fhqnLEJGoEV2Uo9slPG1Rc/JcrsmOV2Ckoqe1 mEzfuMSPPpRXd5Rm6hVW9rxFYkyemnTnLJc1XLhJOpZ7aokwxTuCBJqJY4YGSpl6Ke28 1TV1mvG57joRmUAZVfnPqh1ZvkF9fk0wfpcFdg6OLbCz/mn/WH32zEGwbXwFhYu5awSv wZjn/ezJE23ZcXV2a8AlAQTVEVx29wdM0eiffQaWyXTxp0WWJaBk6wgVeFqDawifKgvN n5W8oy7f+HXGYzKqk7ja26o424N6x8pz0YghJqba6fmyvJKmDREnaMUkSVt8bjjgcgmg N7Tw== 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 v145si3178722oia.68.2019.12.12.07.56.14; Thu, 12 Dec 2019 07:56:26 -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 S1729693AbfLLPzX (ORCPT + 99 others); Thu, 12 Dec 2019 10:55:23 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:59989 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729540AbfLLPzX (ORCPT ); Thu, 12 Dec 2019 10:55:23 -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 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 Cc: Adam Thomson , Mark Brown , Support Opensource , "lee.jones@linaro.org" , "robh+dt@kernel.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: <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-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: 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-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 |