Subject: Re: [PATCH] powerpc: Specify GPIO number base for controller in DT

From: Anton Vorontsov <[email-masked]>
Date: Fri, 24 Oct 2008 20:45:40 +0400

On Thu, Oct 23, 2008 at 02:27:30PM +0200, Wolfgang Ocker wrote:
> The GPIOLIB allows the specification of a base gpio number for a
> controller. That is not possible using OF. Instead, free gpio numbers
> are assigned.
> 
> In order to allow static, predefined gpio numbers, a base property in
> the gpio controller node specifies the first gpio number.
> 
> Signed-off-by: Wolfgang Ocker <[email-masked]>

[...]
> --- linux-2.6.27-rc7/Documentation/powerpc/booting-without-of.txt.spi_gpio_doc	2008-09-29 14:14:08.000000000 +0200
> +++ linux-2.6.27-rc7/Documentation/powerpc/booting-without-of.txt	2008-09-29 14:24:26.000000000 +0200
> @@ -2586,6 +2588,7 @@
>  		#gpio-cells = <2>;
>  		compatible = "fsl,qe-pario-bank-a", "fsl,qe-pario-bank";
>  		reg = <0x1400 0x18>;
> +		base = < 0x20 >;

The base has nothing to do with the hardware description, thus
device tree should not include it. Why exactly you need this?
I'm sure there is another way to solve the problem (whatever it
is).

-- 
Anton Vorontsov
email: [email-masked]
irc://irc.freenode.net/bd2