Thread (1 message) 1 message, 1 author, 2013-12-17

Re: [PATCH] dt: Update I2C trivial devices list

From: Ben Gamari <hidden>
Date: 2013-12-17 16:47:19
Also in: linux-i2c

Stephen Warren [off-list ref] writes:
On 12/16/2013 05:12 PM, Ben Gamari wrote:
quoted
diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
quoted
 This is a list of trivial i2c devices that have simple device tree
 bindings, consisting only of a compatible field, an address and
-possibly an interrupt line.
+possibly an interrupt line. The compatible field is used to lookup the
+modalias of the driver which will handle the device. The compatible
+string may begin with a manufacturer prefix (separated from the
+modalias by a comma) which will be stripped off during lookup.
This part of the patch described Linux-specific behaviour, whereas DT
bindings should be OS-agnostic.
I see your point but it would be nice to have language like this
somewhere. One of the biggest challenges in diving in to writing a
devicetree is figuring out details like this.
BTW, you didn't CC the DT binding maintainers.
Very true. Fixed.

Cheers,

- Ben

Attachments

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