From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [RFC 0/3] Adding support for NI Ettus Research USRP E3XX pinconf Date: Tue, 17 Nov 2015 11:55:37 +0100 Message-ID: References: <1446766883-25703-1-git-send-email-moritz.fischer@ettus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-oi0-f45.google.com ([209.85.218.45]:33825 "EHLO mail-oi0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752201AbbKQKzi (ORCPT ); Tue, 17 Nov 2015 05:55:38 -0500 Received: by oies6 with SMTP id s6so2591377oie.1 for ; Tue, 17 Nov 2015 02:55:37 -0800 (PST) In-Reply-To: <1446766883-25703-1-git-send-email-moritz.fischer@ettus.com> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Moritz Fischer Cc: "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" , Rob Herring , =?UTF-8?Q?Pawe=C5=82_Moll?= , Mark Rutland , "ijc+devicetree@hellion.org.uk" , Kumar Gala , "devicetree@vger.kernel.org" On Fri, Nov 6, 2015 at 12:41 AM, Moritz Fischer wrote: > I'm planning to use this pinctrl driver to set pins to either > input (do nothing, default), or output with a value of (1 or 0). > > Can I use the 'output-low', 'output-high' bindings to achieve this, > or am I supposed to implement a gpio controller to do this kind of stuff? I'm pretty sure you should implement a GPIO chip for this. output-low and output-high are for things like lines going to a RAM memory that need to be set up as part of a pin control state. > I'm not sure if I'm using the pinctrl framework correctly to achieve this, > any suggestions on how to change a pin from output to input, as the bindings > documentation explicitly states 'input-enable' does *not* affect output. Look at pin controllers also implementing GPIO chips. Yours, Linus Walleij