From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 24 Oct 2008 14:27:39 +1100 From: David Gibson To: Mitch Bradley Subject: Re: GPIO - marking individual pins (not) available in device tree Message-ID: <20081024032739.GD4267@yookeroo.seuss> References: <4900ED81.3040202@genesi-usa.com> <4900F90B.80703@firmworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <4900F90B.80703@firmworks.com> Cc: devicetree-discuss list , linuxppc-dev list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Oct 23, 2008 at 12:22:03PM -1000, Mitch Bradley wrote: > You could have the gpio node define an "address space" where each > "address" is a GPIO pin number. > > The node would have one address cell and one size cell, and the Not necessarily. If you were to have such an address space, the only sane way of encoding it would be using the same "gpio descriptor" format as is used in 'gpios' properties. Which would mean the gpio controller would in this situation have #address-cells == #gpio-cells. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: GPIO - marking individual pins (not) available in device tree Date: Fri, 24 Oct 2008 14:27:39 +1100 Message-ID: <20081024032739.GD4267@yookeroo.seuss> References: <4900ED81.3040202@genesi-usa.com> <4900F90B.80703@firmworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <4900F90B.80703-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: Mitch Bradley Cc: devicetree-discuss list , linuxppc-dev list List-Id: devicetree@vger.kernel.org On Thu, Oct 23, 2008 at 12:22:03PM -1000, Mitch Bradley wrote: > You could have the gpio node define an "address space" where each > "address" is a GPIO pin number. > > The node would have one address cell and one size cell, and the Not necessarily. If you were to have such an address space, the only sane way of encoding it would be using the same "gpio descriptor" format as is used in 'gpios' properties. Which would mean the gpio controller would in this situation have #address-cells == #gpio-cells. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson