This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADV7182 Video decoder for DM8168

Other Parts Discussed in Thread: TVP7002

Iam using EZSDK_5_05_02_00 version of the source for DM8168 processor. By default the code supports TVP7002 video decoder for capturing the video data. We are using ADV7182 decoder instead of 7002 chip. Is there any driver available for ADV7182.

Currently the linux driver is available for adv7180. Can i use the same driver for adv7182, or any changes i need to do for porting from 7180 to 7182 driver?

If there is no driver what all changes I should do for porting the video encoder?

  • Hi All,


    I am using EZSDK_5_05_02_00 version of the source for DM8168 processor. By default the code supports TVP7002 video decoder for capturing the video data. We are using ADV7182 decoder instead of 7002 chip.

    I did changes in "arch/arm/mach-omap2/ti81xx_vpss.c" by referring tvp7002 driver configuration in this file.

    After building the kernel and booting image in my platform I'm getting below error in console once insmod adv7182.ko

    ti81xxvin I2C: Transfer failed at vps_ti816x_select_video_decoder 358 with error code: -121

    Can any one help me to resolve this issue.


    With regards,

    Nithin

  • Hi,

    I'm not a expert on this video related stuffs, but I can provide you some hints,

    You need to pass platform data (Composite, S-Video, in DM8168 board file at "arch/arm/mach-davinci/" to ADV7182 driver (linux  : drivers/media/video/adv7180.c ) .

    You may see platform data initialization for TVP7002 in board file.

    Compare the both TVP7002 & ADV7182 data sheets that which feature is supporting & which feature is not supporting,  then do platform init and instead ADV7182, utilize the ADV7180 driver for linux driver.

    By default the code supports TVP7002 video decoder for capturing the video data.

  • Hi Titus,


    Thanks for your quick reply,

    I referred ADV7180 existing driver for writing this ADV7182 driver.

    Platform data initialization for ADV7182 did by referring TVP7002 platform data.

    I will compare data sheets and check for more information.

    Thanks and Regards,

    Nithin

  • Hi Nithin,

     

    I would suggest first modify TVP7002 driver to configure ADV7182 and make it working with the correct settings, then you could add your ADV7182 subdev driver.

     

    Regards,

    Brijesh

  • Hi All,


    I need some information regarding how to map IOUTD pin to SD DAC in DM8168 so that I can use this as Analog out,

    Please refer  attached schematic for more information.

    2768.iw-emdui-cs-01-r1_0-rel1_0.pdf

    Thanks and Regards,

    Nithin

  • HI All,

    I'm able to solve this issue.

    IOUTD Analog output will get using video3 node. Use display2 mode as below.

    echo 720p-60 > /sys/devices/platform/vpss/display2/mode

    echo 1 > /sys/devices/platform/vpss/display2/enabled

    refer below link for more information.

    http://processors.wiki.ti.com/index.php/DM816X_AM389X_VPSS_Video_Driver_User_Guide_PSP_04.00.01.14

    Thanks and Regards,

    Nithin

  • Hi Nithin,

    Thanks for your update.

    Please close & verify your answer to this thread.