On 08/13/2015 02:12 PM, Ricard Wanderlof wrote:
We needed DT support in the SSM2518 codec driver, and I noticed that there is already a set of bindings specified in Documentation/devicetree, however, there doesn't seem to be any DT support in the driver itself. I don't know if this is the result of a missing commit ?
There is DT support in the driver. E.g. see the of_get_gpio() call.
What's not in the driver is a explicit of match table. It will work without since the I2C subsystem supports matching based on the I2C ID table. But, yes, it is better to add a explicit OF table to indicate that this works.
Documentation/devicetree/bindings/sound/ssm2518.c seems to have been added in May 2013.
I've added rudimentary support for at least the compatible property so that the driver can be used in a system with DT configuration (sent as a separate email).