ITE IT6510 DP to MIPI

IT6510 is a 4 Lanes DisplayPort 1.2 to 4 Lane MIPI-CSI/DSI Converter developed by ITE Tech. The output of IT6510 contains Audio/Video signals. This section will demonstrate the usage of IT6510 on Genio 510/700-EVK and Genio 1200-EVK.

Hardware Setup

  1. Prepare a DP signal generator (e.g. PC)

  2. Connect the DP source and IT6510 with a DP cable

  3. Plug IT6510 DTB into the CSI0 socket on the EVK.

    ../../../_images/sw_yocto_app-dev_camera_it6510-scenario.svg

    IT6510 Scenario

Software Setup

  1. Select the dtbo camera-it6510-csi0-std.dtbo through genio-flash

    genio-flash --load-dtbo camera-it6510-csi0-std.dtbo --load-dtbo gpu-mali.dtbo --load-dtbo video.dtbo
    
  2. Set the format of the DP generator to 1920x1080@60FPS.

  3. Set the media topology and the format on the EVK

    For Genio 510/700-EVK

    media-ctl -d /dev/media0 -l "'seninf-0':1 -> 'mtk-cam camsv-0':0 [5]"
    media-ctl -d /dev/media0 -l "'it6510 5-0058':0 -> 'seninf-0':0 [1]"
    media-ctl -d /dev/media0 -V "'it6510 5-0058':0 [fmt:UYVY8_2X8/1920x1080 field:none]"
    media-ctl -d /dev/media0 -V "'seninf-0':1 [fmt:UYVY8_2X8/1920x1080 field:none]"
    media-ctl -d /dev/media0 -V "'mtk-cam camsv-0':1 [fmt:UYVY8_2X8/1920x1080 field:none]"
    

    For Genio 1200-EVK

    media-ctl -d /dev/media0 -l "'seninf-0':1 -> 'mtk-cam camsv-0':0 [5]"
    media-ctl -d /dev/media0 -l "'it6510 1-0058':0 -> 'seninf-0':0 [1]"
    media-ctl -d /dev/media0 -V "'it6510 1-0058':0 [fmt:UYVY8_2X8/1920x1080 field:none]"
    media-ctl -d /dev/media0 -V "'seninf-0':1 [fmt:UYVY8_2X8/1920x1080 field:none]"
    media-ctl -d /dev/media0 -V "'mtk-cam camsv-0':1 [fmt:UYVY8_2X8/1920x1080 field:none]"
    
  4. Get the video devices of CAMSV on the EVK

    For Genio 510/700-EVK

    declare -a VIDEO_DEV=(`for i in {0..7}; do media-ctl -d /dev/media0 --entity "mtk-cam camsv-$i main-stream"; done | tr "\n" " "`)
    

    For Genio 1200-EVK

    declare -a VIDEO_DEV=(`for i in {0..5}; do media-ctl -d /dev/media0 --entity "mtk-cam camsv-$i main-stream"; done | tr "\n" " "`)
    

Launch IT6510 pipeline

  • Show the IT6510 video on the Weston desktop

    gst-launch-1.0 -v v4l2src device=${VIDEO_DEV[0]} ! video/x-raw,width=1920,height=1080,format=UYVY ! v4l2convert ! waylandsink sync=false
    
  • Show the IT6510 video on the Weston desktop and play the IT6510 Audio to the earphone

    gst-launch-1.0 -v v4l2src device=${VIDEO_DEV[0]} ! video/x-raw,width=1920,height=1080,format=UYVY ! v4l2convert ! waylandsink sync=false \
    alsasrc device=i2s_in ! audio/x-raw,channel=2,format=S32LE,rate=48000 ! alsasink device=jack_speaker
    

Note

Only Genio 510/700-EVK supports I2S input over CSI socket, Genio 1200-EVK doesn’t have the I2S input.

After the above steps, the video data from the DP generator will be shown on the Weston desktop and the audio data can be heard through the earphone jack.

../../../_images/sw_yocto_app-dev_camera_g1200_single-it6510-shown-on-weston.png

Single ITE IT6510 shown on the Weston desktop