Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752676Ab3EXJUe (ORCPT ); Fri, 24 May 2013 05:20:34 -0400 Received: from mail-ie0-f177.google.com ([209.85.223.177]:52113 "EHLO mail-ie0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750950Ab3EXJUb (ORCPT ); Fri, 24 May 2013 05:20:31 -0400 MIME-Version: 1.0 In-Reply-To: <20130522142824.GC4789@ab42.lan> References: <20130418090310.GA17636@ab42.lan> <20130429161725.GB30136@ab42.lan> <5182B557.4040804@wwwdotorg.org> <20130508164123.GA10248@ab42.lan> <518AAF31.8080502@wwwdotorg.org> <20130510082521.GA2125@ab42.lan> <51942472.9010402@wwwdotorg.org> <20130522142824.GC4789@ab42.lan> Date: Fri, 24 May 2013 11:20:31 +0200 Message-ID: Subject: Re: [PATCH 1/2] pinmux: Add TB10x pinmux driver From: Linus Walleij To: Christian Ruppert Cc: Stephen Warren , Haojian Zhuang , Shiraz HASHIM , Patrice CHOTARD , "linux-kernel@vger.kernel.org" , Grant Likely , Rob Herring , Rob Landley , Sascha Leuenberger , Pierrick Hascoet , "devicetree-discuss@lists.ozlabs.org" , "linux-doc@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1550 Lines: 36 On Wed, May 22, 2013 at 4:28 PM, Christian Ruppert wrote: > On Mon, May 20, 2013 at 10:10:33AM +0200, Linus Walleij wrote: >> It's not even pinctrl-simple-centric it is completely generic. >> The code is in drivers/gpio/gpiolib-of.c. >> >> It was written by Shiraz Hashin and Haojian Zhuang. >> At the time I augmented the core code quite a bit to make >> a good fit. > > I agree. Unluckily, it uses pinctrl-internal pin numbering which we > would have to make coherent with the physical pin numbers of the > individual packaging variants of the chip in order to expose them to > customers (see my previous mail at https://lkml.org/lkml/2013/5/22/207). Again, the Linux pin numberspace is sparse, you can use whatever pin number you like as long as it fits in a u32 and does not overlap with other pins. If you have a problem that the physical pin numbers and the bank offsets or bits you need to poke or something doesn't match, that is an issue for the *driver* not for the pin control subsystem. However the pin control core may provide cross-mapping helpers as discussed elsewhere, but the pin control internal numbering is *not* an issue. Those are just "some number" on a certain pin controller, use the number from the datasheet if you like. 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/