1 Sep
2015
1 Sep
'15
12:39 p.m.
On Tue, 1 Sep 2015, Lars-Peter Clausen wrote:
So how does the i2c framework ultimately get the ssm2518 probe function to be called? The only real ID here are the strings "ssm2518" but they don't show up in the DT entry, except as part of the ssm2518 compatible string.
It splits the compatible string at the comma and then looks for a driver that matches the later part. Have a look at of_modalias_node().
Thanks Lars-Peter, that put be on the right track! (In my case it turns out the I2C driver was not properly enabled, so it's probe function never got called and consequently not the corresponding devices on the corresponding I2C bus).
/Ricard
--
Ricard Wolf Wanderlöf ricardw(at)axis.com
Axis Communications AB, Lund, Sweden www.axis.com
Phone +46 46 272 2016 Fax +46 46 13 61 30