From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board Date: Thu, 12 Dec 2013 18:52:19 +0100 Message-ID: References: <1377687640-10529-1-git-send-email-b.brezillon@overkiz.com> <1377687995-10758-1-git-send-email-b.brezillon@overkiz.com> <20131120145926.GE14627@ns203013.ovh.net> <528CDFFB.1020601@overkiz.com> <528DE1C4.6060900@overkiz.com> <5294D64D.7000100@overkiz.com> <52986CA8.3010601@overkiz.com> <52A59C9A.6000306@overkiz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <52A59C9A.6000306@overkiz.com> Sender: linux-kernel-owner@vger.kernel.org To: boris brezillon Cc: Jean-Christophe PLAGNIOL-VILLARD , Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Russell King , Nicolas Ferre , Joachim Eastwood , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" List-Id: devicetree@vger.kernel.org On Mon, Dec 9, 2013 at 11:34 AM, boris brezillon wrote: > [Me] >> This has been suggested under the name "GPIO hogs" in the past. >> >> It would work similar to how pinctrl hogs work by associating the >> GPIO line the controller itself, using some specific string >> like gpio-input-hogs = <...> / gpio-output-hogs = <...>; >> >> The gpiolib core will then grab and set up these before >> returning from the registration call so noone ever gets a chance >> to use them. > > One more question, and I'm done :). > > In which case should we use output-high or output-low config > instead of gpio-output-hogs ? This is specified in Documentation/pinctrl.txt under the heading "GPIO mode pitfalls". Basically: the generic pinconfig output-high/output-low are for the case where this is a valid state for a Linux device driver driving a piece of hardware, like an IP-block, which is making use of these pins and during that usecase passes through states the data sheet may call "GPIO mode", but which are actually a way which the *device* uses the pins, not independent GPIO lines, like, just some 1-bit line. Yours, Linus Walleij