Using archaic I2C with OF

Wolfram Sang w.sang at pengutronix.de
Sat May 2 02:04:03 EST 2009


> Post this on the i2c list. Jean has made an effort to convert all
> drivers. He must have missed that one.

What Jean did was converting all drivers who used the legacy i2c-binding to use
the new binding which is a lot better suited to the driver model. The above
mentioned driver already uses the new binding.

The problem coming up here is another issue and also long standing and not yet
solved. There are drivers which require platform_data with function pointers.
You cannot encode function pointers to the device tree.

One solution is to create a custom driver for your board with the needed
specific function and create a platform device from there. Sometimes it
works to add a bit more info to the device tree (e.g. some gpios) and
parse it via an of_wrapper around the platform driver.

Regards,

   Wolfram

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090501/79aa1483/attachment.pgp>


More information about the Linuxppc-dev mailing list