Thread (34 messages) 34 messages, 7 authors, 2007-08-16

Re: [PATCH] powerpc: Add of_register_i2c_devices()

From: Segher Boessenkool <hidden>
Date: 2007-07-02 23:10:59

quoted
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.
Why even think of doing this?  Just put the bloody name of
the device in the "compatible" property and match on that.
What is so hard about this?

If the answer is "the Linux I2C stuff is badly structured",
well, you know what to do :-)


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help