On Thu, Nov 3, 2011 at 5:12 PM, Robert Sciuk <robert.sc...@exfo.com> wrote:

>                        lim_r: gpio@e8 {
>                                compatible = "nxp,pca9539";
>                                reg = <0xe8>;
>                                #gpio-cells = <2>;
>                                gpio-controller;
>                                polarity = <0x00>;
>                        };
>
>                        lim_w: gpio@e9 {
>                                compatible = "nxp,pca9539";
>                                reg = <0xe9>;
>                                #gpio-cells = <2>;
>                                gpio-controller;
>                                polarity = <0x00>;
>                        };
>
>                };
>
> It appears that I'm not correctly creating the pca9539 nodes as of yet (I'll 
> be adding the phandles shortly).  Any pointers for pca9539 driver nodes would 
> be appreciated, as I took these from a similar tree, but not the 95xx driver. 
>  I'll match them up with the code in the morning ...

I *believe* you are not supposed to create separate nodes for reading
and writing.  I know that's how I2C works, but I think the I2C layer
takes care of that for you.

If you look at other device trees, you'll see they only have one node
for any particular I2C device.

-- 
Timur Tabi
Linux kernel developer at Freescale
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to