How to add i2c platform data in dts file

Stefan Strobl nst at gersys.de
Tue Jun 2 20:54:51 EST 2009


Hi
I'm using the i2c/chips/tsl2550 driver. In the tsl2550_probe() function
the driver checks for platform data to set the operating_mode. I suppose
I can provide this data in my dts file but I don't know how to do that.
Currently my dts looks like this:

tsl2550 at 39 {
	compatible = "taos,tsl2550";
	reg = <0x39>;
};

Can anyone help me on how to set the operating_mode here?
Thanks, Stefan.



More information about the Linuxppc-dev mailing list