Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752537AbbKQKzk (ORCPT ); Tue, 17 Nov 2015 05:55:40 -0500 Received: from mail-oi0-f41.google.com ([209.85.218.41]:35270 "EHLO mail-oi0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751103AbbKQKzi (ORCPT ); Tue, 17 Nov 2015 05:55:38 -0500 MIME-Version: 1.0 In-Reply-To: <1446766883-25703-1-git-send-email-moritz.fischer@ettus.com> References: <1446766883-25703-1-git-send-email-moritz.fischer@ettus.com> Date: Tue, 17 Nov 2015 11:55:37 +0100 Message-ID: Subject: Re: [RFC 0/3] Adding support for NI Ettus Research USRP E3XX pinconf From: Linus Walleij 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" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1106 Lines: 27 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/