[PATCH] I2C: BCM2835: Linking platform nodes to adapter nodes
swarren at wwwdotorg.org
Mon Nov 25 15:17:41 EST 2013
On 11/25/2013 12:52 PM, Philip Ashmore wrote:
> On 25/11/13 17:03, Stephen Warren wrote:
>> On 11/25/2013 01:01 AM, Florian Meier wrote:
>>> In order to find I2C devices in the device tree, the platform nodes
>>> have to be known by the I2C core. This requires setting the
>>> dev.of_node parameter of the adapter.
>> Acked-by: Stephen Warren <swarren at wwwdotorg.org>
>> Tested-by: Stephen Warren <swarren at wwwdotorg.org>
>> (Interestingly, I just attached an I2C light sensor to my Pi a couple
>> days back, so ended up needing this commit, and the patches someone else
>> had very recently sent to add DT support to the sensor driver. My timing
>> was impeccable:-)
> I hope this isn't (too) off-topic but is/will there be an example code
> repository to show off this and other kernel goodness?
My local work-in-progress branch can be found at:
Be warned that it has some other hacks that you might not want to pick
up, and the commits there aren't cleaned up for upstreaming yet.
More information about the linux-rpi-kernel