Re: Passing I2C platform_data from device tree to i2c driver

2008-11-06 Thread Scott Wood
On Mon, Nov 03, 2008 at 05:54:46PM -0600, Nate Case wrote: > Of course, I could put some code in my board specific file to parse the > device tree properties and set pdata accordingly, but this hardly seems > ideal. After all, the device tree bindings -> pdata translation itself > does not have to

Passing I2C platform_data from device tree to i2c driver

2008-11-03 Thread Nate Case
Is there a plan for providing a way to set pdata for an I2C chip in a way that could be shared across all OF platforms? For example, the pca953x I2C GPIO driver requires that pdata != NULL so it can get the gpio_base field. It can also take in a default 'invert' value to initialize a chip registe