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.

how to output 720p/1080p video via digital port with dm365

Other Parts Discussed in Thread: THS8200

we're doing a project with the dm365 + fpga.

we've output the 720p video on the dm365 evm, but the output video signal is analog siganal, can not handle with fpga.

we need output the 720p/1080p video with our own board via digital ports.  how can i do this.

some codes and link is very great.

think you in advance

  • Do you just want some sample code that sets up DM365 to display 720P video in YUV422 format? Please confirm.

    Are you using DVSDK2.1, DVSDK3.1, or CCS?

  • thank for your response

    yuv422 is fine,  i use dvsdk_2_10_01_18 and ccs

    my need the digital video output on dm365 of 720p/1080p

     

    i read the file drivers/media/video/davinci/davinci_platform.c
     in mv_pro_5.0

    the function davinci_enc_priv_setmode of it metions this driver will use THS8200 chip when  dm365 output the 720p video , it's analog signal

    But we just want to dm356 works as the fucntion davinci_enc_set_prgb , only output the digital video signal. i tried this function , it works well, but it only support  640x480.

    could i modify this function to support 720p?

    thank you again

     

     

     

     

     

     

  • Hi Simon,

    I faced the same problem ... and I had to change davinci_platform.c to get 720p digital output running.

    In the finction "void davinci_enc_priv_setmode(struct vid_enc_device_mgr *mgr)" several possible video modes are connected to the functions that actally configure the VPBE. The functions to activate the video mode "VID_ENC_STD_720P_60" are:

                davinci_enc_set_prgb(&mgr->current_mode);
                davinci_enc_set_internal_hd(&mgr->current_mode);
                davinci_enc_set_basep(0, 0xf0, 10);

    So you have to add the function "davinci_enc_set_internal_hd(&mgr->current_mode);" to gate the internal 74MHz clock (PLL1) to the VPBE. I left the "davinci_enc_set_basep(..)" function there, although its already included in "davinci_enc_set_prgb(...)"

    When you are already that far I guess you also have configured your own davinci video encoder, which is registered in the davinci encoder manager as an LCD output, which then can be activated over the sysfs?

    Cheers,

    Sebastian

  • Thanks Sebastian

    Simon, please let us know whether Sebastian's reply help. If you still need help, I can pull in our Linux support.

    FYI, when THS8200 is used to display 720P in YPbPr, DM365 is actually sending YCbCr digital data from YPBE to THS8200. Maybe you can use this?

  • I've finally made it ,  thank Sebastian and Paul.Yin.

    have a great day

  • Hi, Sebastian

             I'm using dm365-evm, I can output to digital lcd with resolution 800x480. but I want to  use ths8134 to convert digital lcd to vga signal with resoulution 1280x720.

             I've modified the struct logicpd_encoder_configuration in drivers/media/video/davinci/logicpd_encoder.c     

                    .standards[1] = {
               .name = VID_ENC_STD_720P_60,//VID_ENC_STD_640x400,
               .std = 1,
               .if_type = VID_ENC_IF_PRGB,
               .interlaced = 0,
               .xres = 1280,
               .yres = 720,
            .fps = {60, 1},
            .left_margin = 300,
            .right_margin = 70,
            .upper_margin = 26,
            .lower_margin = 3,
            .hsync_len = 80,
            .vsync_len = 5,

        and modified fuction davinci_enc_priv_setmode in davinci_platform.c

     .........................

      else if (strcmp(mgr->current_mode.name, VID_ENC_STD_720P_60) == 0) {
        if (cpu_is_davinci_dm365()) {
       davinci_enc_set_prgb(&mgr->current_mode);
       
       davinci_enc_set_internal_hd(&mgr->current_mode);
       /* changed for 720P demo */
       davinci_enc_set_basep(0, 0xf0, 10);
      }

    ......................

    and bootargs like this:

    console=ttyS0,115200n8 video=davincifb:vid0=OFF:vid1=OFF:osd0=1280x720x16,4050K dm365_imp.oper_mode=0 davinci_enc_mngr.ch0_output=LCD davinci_enc_mngr.ch0_mode=720P-60 noip root=/dev/mtdblock3 rw rootfstype=yaffs2 mem=64M

    I've connected ths8134 daughter card, but no signal to LCD.

    should I have to add ths8134 driver to kernel?

    Could you give me some suggestion?

    Thanks & Regards

    Robert

  • Hi Sebastian,

    I am using DM365 & dvsdk_2_10_01_18.

    I wanted to out video on DVI port.

    ICurrently I am outputing data on USB port.

    Can you provide me some sample codes to divert video to DVI port using Digital Video Out port (VPBE).

    Regards,

    Prashant Nirmal