AnsweredAssumed Answered

dts compatible linux driver for adv7391

Question asked by kravlala on Feb 6, 2017
Latest reply on Feb 7, 2017 by JeyasudhaMuthuPerumal

I use my own customboard, with adv7391 video dac, based on sitara am5728 processor and booted by linux kernel.

I need in the device tree binding for adv7391. As I understand the adv7393.c driver is compatible for 7390-7393 adv codecs. But this driver doesn't contain any string like "of_match_ptr" and of_device_id, therefore I'm thinking that this driver is not dts compatible.
If it's true, can I add something like below in order to make it dts compatible or it will work uncorrectly?


static const struct of_device_id adv7393_of_id[] = {
{ .compatible = "adi,adv7393", },
{ },



static struct i2c_driver adv7393_driver = {
.driver = {
      .owner = THIS_MODULE,
      .name = "adv7393",
      .of_match_table = of_match_ptr(adv7393_of_id),
.probe = adv7393_probe,
.remove = adv7393_remove,
.id_table = adv7393_id,