From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [RFC PATCH v2 00/13] arm/tegra: Initialize GPIO & pinmux from DT Date: Thu, 18 Aug 2011 11:15:52 +0200 Message-ID: <201108181115.53101.arnd@arndb.de> References: <1313440100-17131-1-git-send-email-swarren@nvidia.com> <201108171323.38441.arnd@arndb.de> <74CDBE0F657A3D45AFBB94109FB122FF04AF6F3062@HQMAIL01.nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <74CDBE0F657A3D45AFBB94109FB122FF04AF6F3062-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Stephen Warren Cc: Russell King , Sergei Shtylyov , Erik Gilling , Belisko Marek , Linus Walleij , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Colin Cross , "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" List-Id: devicetree@vger.kernel.org On Thursday 18 August 2011, Stephen Warren wrote: > It looks like DT already supports the generic case for GPIO; each GPIO > reference is of the form: > > <&gpio 69 0> > > and so each GPIO has a "parent" specified, and hence can come from a > different controller. > > For drivers, this is all completely hidden by of_get_gpio(). > > I imagine we'd just use the same pattern for pinmux. This would both > support the general case, and end up being consistent with how GPIOs > already work, so this seems like a win both ways. > Ah right. I had not seen the gpio binding yet, so that definitely works. Arnd