Hi I am using adv7180 decoder with Linux kernel 4.1. This kernel is device tree compatible but the driver we are having is not device tree compatible. How can i make it device tree compatible?
Thanks & Regards
Starting with kernel version v4.3 the driver has devicetree support. If you need it in an earlier version you'll have to backport the missing patches. For a full list of patches please see http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/drivers/media/i2c/adv7180.c
Thanks for your kind response,
How can i register my driver with v4l2 sub device spec is there any document or can you please suggest me in which file i will have to make the entries?
Have a look at https://www.kernel.org/doc/Documentation/video4linux/v4l2-framework.txt, https://linuxtv.org/downloads/v4l-dvb-apis/subdev.html and https://www.kernel.org/doc/Documentation/devicetree/bindings/graph.txt. Hope that helps.
I am using am5728 sitara processor and i am able to register my adv7180 driver as v4l2 sudev and able to invoke the driver from capture driver of am5728 processor. I can see there is a capture node available in my /dev directory. but when i am trying to open the capture node it gives error no such device.
Can you please suggest me what could be the issue my dts entries are as follows.
status = "okay";
clock-frequency = <400000>;
compatible = "adi,adv7180";
reg = <0x20>;
status = "okay";
remote-endpoint = <&adv7180_1>;
bus_width = <8>;
When I am trying to load the drivers it seems everything fine but I am unable to open the capture device node /dev/video0. it ends with the error "No such device"
root@am57xx-evm:~/video# insmod ti-vpdma.ko
root@am57xx-evm:~/video# insmod ti-vip.ko //loading Input port capture driver
[ 5.795317] vip 48990000.vip: loading firmware vpdma-1b8.bin
[ 5.818308] vip 48990000.vip: VPDMA firmware loaded
root@am57xx-evm:~/video# insmod adv7180.ko
[ 44.138455] probing adv7180 driver
[ 44.141880] adv7180 0-0020: chip found @ 0x20 (OMAP I2C adapter)
[ 44.181374] vip1-s0: Port A: Using subdev adv7180 0-0020 for capture
[ 44.205114] vip1-s0: device registered as video0 // here is the node creation
cat: /dev/video0: No such device
Email sent using E-interact Webmail
-- Show Quoted Text --
I'm sorry, but we do not have experience with the am5728. You'll have to debug this and try to find the root cause of the error condition.
Retrieving data ...