fpga driver on custom PPC target platform (P4080) ...

Tabi Timur-B04825 B04825 at freescale.com
Sat Nov 5 03:36:42 EST 2011


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

>                        lim_r: gpio at e8 {
>                                compatible = "nxp,pca9539";
>                                reg = <0xe8>;
>                                #gpio-cells = <2>;
>                                gpio-controller;
>                                polarity = <0x00>;
>                        };
>
>                        lim_w: gpio at 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


More information about the devicetree-discuss mailing list