[PATCH] powerpc: Add of_register_i2c_devices()
Scott Wood
scottwood at freescale.com
Tue Jul 3 08:46:44 EST 2007
On Mon, Jul 02, 2007 at 10:11:04PM +0200, Guennadi Liakhovetski wrote:
> AFAIK, i2c is not specified by OF standard. So, we are free to chose any
> "compatible" fields for our dts. Which we then would need to match against
> drivers. So, why not make this a 1-to-1 match? I.e.,
> [OF] [I2C]
> compatible <-> driver_name
> model <-> type
If we do this, then the compatible field should probably be preceded with
"linux,", which would get stripped by of_register_i2c_devices(). This
would only be an interim measure until we can figure out some sort of
name registry via power.org. Once that happens, non-"linux," compatible
fields could be looked up in an OF-to-linux table, or there could be a
way for i2c devices to specify OF matches in addition to driver name.
-Scott
More information about the Linuxppc-dev
mailing list