Skip to contentSkip to conversation

How to add i2c platform data in dts file

DISCUSSION Stefan Strobl 1 participant 1 message Jun 2, 2009

lore
Share & tools
lore
#0 lore raw

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@39 {
	compatible = "taos,tsl2550";
	reg = <0x39>;
};

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