How to Use MIPI Camera
Overview
ROM-5780 supports 2-wire and 4-wire OV8858.
If rom5901 is used as the rom5780 carrery board.The interface is as shown in the following table.
INTERFACE | |
cn39 | 4-wire |
cn40 | 2-wire |
NOTE: At present, Only one camera can be connected at a time. Do not connect two cameras at the same time
2-wire ov8858
To turn on 2-wire ov8858, ROM5780 requires controlling the Camera reset and power pins.
If rom5901 is used as the rom5780 base plate, the power pin is multiplexed with GPIO0, the reset pin is multiplexed with GPIO2.
So we need to dial GPIO0 and GPIO2 on CN22 to cameras power and reset pin. And then we can open the Camera in terminal console.
root@linaro-alip:~# export DISPLAY=:0.0 root@linaro-alip:~# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64- linux-gnu/gstreamer-1.0 root@linaro-alip:~# su linaro -c "gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink"
4-wire ov8858
To turn on 4-wire ov8858, ROM5780 requires controlling the Camera reset and power pins.
If rom5901 is used as the rom5780 base plate, the power pin is multiplexed with GPIO1, the reset pin is multiplexed with GPIO3.
So we need to dial GPIO1 and GPIO3 on CN22 to camera's power and reset pin. And then we can open the Camera in terminal console.
root@linaro-alip:~# export DISPLAY=:0.0 root@linaro-alip:~# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64- linux-gnu/gstreamer-1.0 root@linaro-alip:~# su linaro -c "gst-launch-1.0 v4l2src device=/dev/video5 ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink"