Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759500Ab2BNHyw (ORCPT ); Tue, 14 Feb 2012 02:54:52 -0500 Received: from mail-tul01m020-f174.google.com ([209.85.214.174]:47733 "EHLO mail-tul01m020-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753697Ab2BNHys (ORCPT ); Tue, 14 Feb 2012 02:54:48 -0500 Date: Mon, 13 Feb 2012 23:54:40 -0800 From: Dong Aisheng To: Tony Lindgren Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stephen Warren , Linus Walleij , Barry Song <21cnbao@gmail.com>, Haojian Zhuang , Grant Likely , Thomas Abraham , Rajendra Nayak , Dong Aisheng , Shawn Guo Subject: Re: [PATCH 2/2] pinctrl: Add simple pinmux driver using device tree data Message-ID: <20120214075440.GA3058@b29396-Latitude-E6410> References: <20120203205049.4089.74610.stgit@kaulin.local> <20120203205508.4089.35304.stgit@kaulin.local> <20120204175903.GF1426@atomide.com> <20120210200503.GX1426@atomide.com> <20120213191113.GF1426@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120213191113.GF1426@atomide.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2737 Lines: 72 On Mon, Feb 13, 2012 at 11:11:13AM -0800, Tony Lindgren wrote: ... > > Put it in pinctrl device node? > > Then how do we name each pin? > > And for IMX, currently we name all pins in driver. > > I still can not find a good reason that i should name all pins in dt file. > > But do you actually need the pin names in kernel? :) > Yes, i meant name pins in driver. > > Yes, we indeed have such a case. > > For IMX, some special pins mux still need a setting called 'select input' which > > is controlled in other registers. > > But a rough idea in my mind that may choose different way to fix this issue. > > It's a little like: > > pinctrl_usdhc4: pinconfig-usdhc4 { > > mux = > > > > > > > > > > > > > > > > > > > > ; > > } > > This format would not make the dts writer to take too much care of > > register address > > and value. For this case, the #pinmux-cells would be <3>; > > It is a little different from OMAP. > > If you don't want to keep the extra register entry around, then you > could have a custom .data entry in the pinctrl driver that contains > the mapping of these special registers. > Yes, that's what i think. But we still need pass the value for thoes sepcial registers from dt. > > For your proposal, I'm afraid it is a little too much depend on the SoC register > > layout. We need to find a flexible enough way to cover all possible > > register layout > > difference for all SoCs. > > (Considering one register controls multi muxs?) > > Most likely those special cases are best handled in hardware specific > drivers. > Yes, common driver needs provide a way to cover that. > > Did i misunderstand? > > I still can not understand why need this. > > The pinctrl properly in device node can support multi pinmuxs . > > serial@48020000 { > > pinctrl = <&pmx_uart3_x &pmx_uart3_y>; > > It's good to me that the consensus we reached at Linaro Connect is much like > > my proposal in above URL. :) > > I meant like what you have in the second option here, the count is > used to parse each entry. You're right, i misunderstood before. Sorry for the noise. Regards Dong Aisheng -- 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/