On Fri, Feb 22, 2008 at 12:16:16PM +0100, Jochen Friedrich wrote: > Fortunately, I2c no longer uses numeric device IDs but names. So what are the > alternatives? > > 1. modify the I2c subsystem to accept OF names additionally to I2c names > (proposed by Jon smirl).
Sounds like Jean isn't very excited about this idea.. > 2. record the I2c name in the dts tree, either as seperate tag (like > linux,i2c-name="<i2c-name>") > or as additional compatible entry (like compatible="...", > "linux,<i2c-name>"). I have to say no on this one. The device tree is not supposed to know about how linux uses devices, there are firmwares out there that don't use DTS for thier device trees, etc. > 3. use a glue layer with a translation map. In my opinion this is an OK solution since the same information has to be added somewhere already anyway -- eiither to the drivers or to this translation table. It should of course be an abstacted shared table, preferrably contained under the i2c source directories since several platforms and architectures might share them. -Olof _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev