.. include:: /keyword.rst ===================== ITE IT6510 DP to MIPI ===================== .. contents:: Sections :local: :depth: 2 .. _camera_it6510: 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 |G510-G700-EVK| and |G1200-EVK|. Hardware Setup -------------- #. Prepare a DP signal generator (e.g. PC) #. Connect the DP source and IT6510 with a DP cable #. Plug IT6510 DTB into the CSI0 socket on the EVK. .. figure:: /_asset/sw_yocto_app-dev_camera_it6510-scenario.svg :align: center :scale: 50% IT6510 Scenario Software Setup -------------- #. Select the `dtbo` file ``camera-it6510-csi0-std.dtbo`` through ``genio-flash`` .. prompt:: bash > auto > genio-flash --load-dtbo camera-it6510-csi0-std.dtbo --load-dtbo gpu-mali.dtbo --load-dtbo video.dtbo #. Set the format of the DP generator to 1920x1080@60FPS. #. Set the media topology and the format on the EVK For |G510-G700-EVK| .. prompt:: bash # auto # 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 |G1200-EVK| .. prompt:: bash # auto # 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]" #. Get the video devices of CAMSV on the EVK For |G510-G700-EVK| .. prompt:: bash # auto # 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 |G1200-EVK| .. prompt:: bash # auto # 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 .. prompt:: bash # auto # 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 .. prompt:: bash # auto # 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 |G510-G700-EVK| supports I2S input over CSI socket, |G1200-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. .. figure:: /_asset/sw_yocto_app-dev_camera_g1200_single-it6510-shown-on-weston.png :align: center :scale: 30% Single ITE IT6510 shown on the Weston desktop