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.

TI814xEVM tvp5147 camera problem

Other Parts Discussed in Thread: TVP5147, TVP7002, TVP5147M1, DM3730

Hi all

I add tvp5147 driver to linux_psp kernel, I refer to the TI816x TVP5147 patch, and the tvp5147 can be detected. But the camera still not work.

I found 816evm tvp5147 work in vpss and VIP  instance by adding the sub-device driver . But I see the datasheet tvp5147 derict connect to cpu.

Should I regist 5147 to ti81xxvin_sub_device?

I attach the bot log.

/***********************************************/ 

i=0
i2c addr=0x5d
tvp7002 3-005d: tvp7002 found @ 0x5d (OMAP I2C adapter)
tvp7002 3-005d: Rev. 02 detected.
ti81xxvin ti81xxvin: registered sub device tvp7002
i=1
i2c addr=0x5c
tvp514x 3-005c: tvp514x 3-005c decoder driver registered !!
tvp514x 3-005c: tvp5147m1 (Version - 0x07) found at 0xb8 (OMAP I2C adapter)
ti81xxvin ti81xxvin: registered sub device tvp5147m1
ti81xxvin ti81xxvin: TI81xx HDVPSS Capture driver initialized

/********************************************************************/

 

  • Hello,

    Just to clarify first: I think that on the DM814x EVM, you have to first configure your USBs to Host mode. Is that done on your board? I am sorry, if that is not the case.

    BR

    Vladimir

  • Hi Vladmir

    Thanks for your reply, below is the boot log about USB  video part, are there some problems?

    /*****************************************boot log***********************/

    Linux video capture interface: v2.00
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v1.0.0)
    OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    notify_init : notify drivercreated  for  remote proc id 2 at physical Address 0xbf900000
    usbcore: registered new interface driver snd-usb-audio
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok

    /********************************************************************************/

  • Hi sunny li,

    I also added tvp5147 driver to Linux kernel following TI816X TVP5147 patch (http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/191420.aspx).

    And I got an error below:

    =====================================================

    In tvp514x_probe
    tvp514x 3-005c: tvp514x 3-005c decoder driver registered !!
    In tvp514x_s_config
    In tvp514x_s_stream
    In tvp514x_write_regs
    tvp514x 3-005c: Write: retry ... 0
    tvp514x 3-005c: Write: retry ... 1
    tvp514x 3-005c: Write: retry ... 2
    tvp514x 3-005c: Write: retry ... 3
    tvp514x 3-005c: Write: retry ... 4
    tvp514x 3-005c: Write: retry ... 5
    tvp514x 3-005c: Write failed. Err[-121]
    tvp514x 3-005c: Unable to turn on decoder
    In tvp514x_query_current_std
    tvp514x 3-005c: Read: retry ... 0
    tvp514x 3-005c: Read: retry ... 1
    tvp514x 3-005c: Read: retry ... 2
    tvp514x 3-005c: Read: retry ... 3
    tvp514x 3-005c: Read: retry ... 4
    tvp514x 3-005c: Read: retry ... 5
    tvp514x 3-005c: Unable to query std
    vps_ti814x_select_video_decoder_vin1(2)
    ti81xxvin ti81xxvin: registered sub device tvp5147m1
    ti81xxvin ti81xxvin: TI81xx HDVPSS Capture driver initialized

    =====================================================

    I thought there was something wrong with I2C. Have you ever seen this problem before?
    Please help me. Thank you.

    My evm board is: TMDXEVM8148 (Mistral) and I'm using ti-ezsdk_dm814x-evm_5_04_00_11.

  • Hello,

    I will try to address this issue soon. Let me know if you have some progress or any additional details in the meantime. Sorry for the inconvenience. Thank you.

    BR

    Vladimir

  • Hi Vlаdimir,

    Thanks for your response. I appreciate it. I'm still trying to solve this problem.

  • Hello,

    Please, refer to the following application note about how to add external decoders:

    http://processors.wiki.ti.com/index.php/DM81xx_AM38xx_Adding_External_Decoders_to_V4L2_Capture_Driver

    For capturing using TVP5147, you need to add the kernel driver for TVP5147.

    Best Regards

    Margarita

  • TVP5147 driver is already avaiable as a part of Linux kernel under $Kernel/driver/media/tvp514x.c. You just need to hook this up to V4L2 capture driver.

  • Hi, sunny and vvt

    do your tvp5147 work on dm8148?

    can you give me a patch, thank you.

    with vvt's patch, I get the same wrong.

  • Hi Margarita,

    I am using DM3730 EVM board and 2.6.37 kernel, i want to enable tvp chip but getting error in getting chip id.

    dmesg | grep tvp
    [    3.690673]  drivers/media/video/tvp514x.c
    [    3.690673]  tvp514x_probe
    [    3.699768] tvp514x 3-005c: tvp514x 3-005c decoder driver registered !!
    [    3.747100] tvp514x 3-005c: Write: retry ... 0
    [    3.767700] tvp514x 3-005c: Write: retry ... 1
    [    3.791137] tvp514x 3-005c: Write: retry ... 2
    [    3.814544] tvp514x 3-005c: Write: retry ... 3
    [    3.837951] tvp514x 3-005c: Write: retry ... 4
    [    3.861389] tvp514x 3-005c: Write: retry ... 5
    [    3.884826] tvp514x 3-005c: Write failed111. Err[-121]
    [    3.893829] tvp514x 3-005c: Unable to turn on decoder
    [    3.904876] tvp514x 3-005c: Read: retry ... 0
    [    3.931732] tvp514x 3-005c: Read: retry ... 1
    [    3.955139] tvp514x 3-005c: Read: retry ... 2
    [    3.978576] tvp514x 3-005c: Read: retry ... 3
    [    4.002014] tvp514x 3-005c: Read: retry ... 4
    [    4.025451] tvp514x 3-005c: Read: retry ... 5
    [    4.048889] tvp514x 3-005c: Unable to query std
    [    8.747558] tvp514x 3-005c: Write: retry ... 0
    [    8.931945] tvp514x 3-005c: Write: retry ... 1
    [    9.126159] tvp514x 3-005c: Write: retry ... 2
    [    9.376983] tvp514x 3-005c: Write: retry ... 3
    [    9.541259] tvp514x 3-005c: Write: retry ... 4
    [    9.689727] tvp514x 3-005c: Write: retry ... 5
    [    9.887329] tvp514x 3-005c: Write failed111. Err[-121]
    [    9.896362] tvp514x 3-005c: Unable to turn on decoder
    [   10.496520] tvp514x 3-005c: Read: retry ... 0
    [   10.617431] tvp514x 3-005c: Read: retry ... 1
    [   10.811859] tvp514x 3-005c: Read: retry ... 2
    [   11.009826] tvp514x 3-005c: Read: retry ... 3
    [   11.142669] tvp514x 3-005c: Read: retry ... 4
    [   11.259857] tvp514x 3-005c: Read: retry ... 5
    [   11.439147] tvp514x 3-005c: Unable to query std

    What is the issue in driver i am using default driver as given in linux-2.6.37-psp04.02.00.07.sdk .

    can you help me to solve this isuue.

    Thanks,

    vidya

  • Hello,

    vidyasagar prasad said:
    I am using DM3730 EVM board and 2.6.37 kernel, i want to enable tvp chip but getting error in getting chip id.

    It would  be better to post the query in DM3730 forum, please:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/537.aspx

    Thank you!

    Best Regards,

    Margarita

  • Hi,

       In the DM8168-EVM we got the TVP5147 working with V4L2, it could be useful in the DM814x too, you can find more info here:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/326172/1170437.aspx#1170437

    -David