linux mipi摄像头驱动,VS-RK3399 在linux系统下面调试Mipi camera接口介绍

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

debian系统目前支持Usb camera是没有问题,走UVC功能接口。那么mipi 接口camera和并口接口的camera,在Debian系统怎么设置呢,其实原理一样,也走uvc接口封装函数.

下面深圳视壮给大家简单说明,更多详看 bbs.videostrong.com

首先在dts文件定义Mipi camera接口的定义:

camera0: camera-module@60 {

status = "okay";

compatible = "ovti,ov13850-v4l2-i2c-subdev";

reg = < 0x60 >;

device_type = "v4l2-i2c-subdev";

clocks = ;

clock-names = "clk_cif_out";

pinctrl-names = "rockchip,camera_default",

"rockchip,camera_sleep";

pinctrl-0 = ;

pinctrl-1 = ;

rockchip,pwr-gpio = ;

rockchip,camera-module-mclk-name = "clk_cif_out";

rockchip,camera-module-facing = "back";

rockchip,camera-module-name = "cmk-cb0695-fv1";

rockchip,camera-module-len-name = "lg9569a2";

rockchip,camera-module-fov-h = "133.0";

rockchip,camera-module-fov-v = "100.1";

rockchip,camera-module-orientation = <0>;

rockchip,camera-module-iq-flip = <0>;

rockchip,camera-module-iq-mirror = <0>;

rockchip,camera-module-flip = <0>;

rockchip,camera-module-mirror = <0>;

rockchip,camera-module-defrect0 = <640 480 0 0 640 480>;

rockchip,camera-module-defrect1 = <640 480 0 0 640 480>;

rockchip,camera-module-defrect2 = <640 480 0 0 640 480>;

rockchip,camera-module-defrect3 = <640 480 0 0 640 480>;

rockchip,camera-module-flash-support = <0>;

rockchip,camera-module-mipi-dphy-index = <0>;

};

cif_isp0: cif_isp@ff910000 {

compatible = "rockchip,rk3399-cif-isp";

rockchip,grf = ;

reg = <0x0 0xff910000 0x0 0x4000>, <0x0 0xff968000 0x0 0x8000>;

reg-names = "register", "dsihost-register";

clocks =

, ,

, ,

, ,

, ,

;

clock-names =

"aclk_isp0_noc", "aclk_isp0_wrapper",

"hclk_isp0_noc", "hclk_isp0_wrapper",

"clk_isp0", "pclk_dphyrx",

"clk_cif_out", "clk_cif_pll",

"pclk_dphy_ref";

interrupts = ;

interrupt-names = "cif_isp10_irq";

power-domains = ;

rockchip,isp,iommu-enable = <1>;

iommus = ;

status = "disabled";

};

通过上面的配置后,打开驱动,驱动加载成功了。通过应用就可以切换摄像头,图像就可以出来了

export DISPLAY=:0.0

su linaro -c " \ gst-launch-1.0 v4l2src device=/dev/video2 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=640,height=480 ! rkximagesink \"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值