CPU :imx6q 视频输入芯片TW2964(BT656)
软件版本: l5.1.1_2.1.0-ga
BT656数据通过CSI0 接口到CPU,摄像头是正常的。
测试CSI1,DTS我做了如下改动:
pinctrl_ipu2_2: ipu2grp-2{ // parallel camera
fsl,pins = <
MX6QDL_PAD_EIM_A17__IPU2_CSI1_DATA12 0x80000000
MX6QDL_PAD_EIM_A18__IPU2_CSI1_DATA13 0x80000000
MX6QDL_PAD_EIM_A19__IPU2_CSI1_DATA14 0x80000000
MX6QDL_PAD_EIM_A20__IPU2_CSI1_DATA15 0x80000000
MX6QDL_PAD_EIM_A21__IPU2_CSI1_DATA16 0x80000000
MX6QDL_PAD_EIM_A22__IPU2_CSI1_DATA17 0x80000000
MX6QDL_PAD_EIM_A23__IPU2_CSI1_DATA18 0x80000000
MX6QDL_PAD_EIM_A24__IPU2_CSI1_DATA19 0x80000000
MX6QDL_PAD_EIM_A16__IPU2_CSI1_PIXCLK 0x80000000
>;
};
&i2c3 {
tw2964: tw2964@28 { // i2c3 driver
compatible = "intersil,tw2964";
reg = <0x28>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ipu2_2>;
clocks = <&clks IMX6QDL_CLK_CKO2>;
clock-names = "csi_mclk";
interrupt-parent = <&gpio2>;
interrupts = <26 2>;//interrupt falling
rst-gpios = <&gpio5 21 0>; // active low
csi_id = <1>;
mclk = < 27000000>;
mclk_source = <0>;
};
};
v4l2_cap_1 {
compatible = "fsl,imx6q-v4l2-capture";
ipu_id = <1>;
csi_id = <1>;
mclk_source = <0>;
status = "okay";
};
大家帮我分析一下问题可能出在什么地方?
./mxc-v4l2-overlay -iw 720 -ih 576 -ow 640 -oh 480 -fr 25 -di /dev/video1
该命令的打印数据如下:
g_display_width = 640, g_display_[11149.093535]
[11149.093535] In MVC: mxc_v4l_open
height = 480
g_display_top = 0, [11149.100996] device name is Mxc Camera
g_display_left = 0
[11149.107781] End of mxc_v4l_open: v2f pix widthxheight 720 x 288
[11149.115391] End of mxc_v4l_open: crop_bounds widthxheight 720 x 625
[11149.121663] End of mxc_v4l_open: crop_defrect widthxheight 720 x 625
[11149.128060] End of mxc_v4l_open: crop_current widthxheight 720 x 625
[11149.134419] On Open: Input to ipu size is 720 x 625,csi=1
[11149.139862] In MVC:mxc_v4l_ioctl
[11149.143098] In MVC: mxc_v4l_do_ioctl c02c5651
sensor chip is adv7180_decoder[11149.147566] In MVC:mxc_v4l_ioctl
[11149.153326] In MVC: mxc_v4l_do_ioctl c004562f
[11149.157865] case VIDIOC_S_OUTPUT
sensor supported frame size:[11149.161407] In MVC:mxc_v4l_ioctl
[11149.167040] In MVC: mxc_v4l_do_ioctl c02c564a
720x288[11149.171590] In MVC:mxc_v4l_ioctl
[11149.175500] In MVC: mxc_v4l_do_ioctl c02c564a
[11149.180021] In MVC:mxc_v4l_ioctl
[11149.183255] In MVC: mxc_v4l_do_ioctl c0405602
sensor frame format: UYVY[11149.187679] In MVC:mxc_v4l_ioctl
[11149.193039] In MVC: mxc_v4l_do_ioctl c0405602
[11149.197579] In MVC:mxc_v4l_ioctl
[11149.200815] In MVC: mxc_v4l_do_ioctl c0cc5616
[11149.205188] case VIDIOC_S_PARM
[11149.208508] In mxc_v4l2_s_param
[11149.211655] Current capabilities are 0
[11149.215681] Current capturemode is 0 change to 0
[11149.220651] Current framerate is 25 change to 25
[11149.225629] clock_curr=mclk=0
[11149.228863] g_fmt_cap returns widthxheight of input as 720 x 625
[11149.235149] In MVC:mxc_v4l_ioctl
[11149.238397] In MVC: mxc_v4l_do_ioctl c0cc5615
[11149.242759] case VIDIOC_G_PARM
frame_rate is 25[11149.246135] In MVC:mxc_v4l_ioctl
[11149.250721] In MVC: mxc_v4l_do_ioctl c008561c
[11149.255259] case VIDIOC_S_CTRL
[11149.258579] In MVC:mxc_v4l2_s_ctrl
[11149.261987] In MVC:mxc_v4l_ioctl
[11149.265232] In MVC: mxc_v4l_do_ioctl 4014563c
[11149.269594] case VIDIOC_S_CROP
[11149.272912] Cropping Input to ipu size 720 x 576
[11149.277813] In MVC:mxc_v4l_ioctl
[11149.281048] In MVC: mxc_v4l_do_ioctl c0cc5605
[11149.285422] case VIDIOC_S_FMT
[11149.288655] In MVC: mxc_v4l2_s_fmt
[11149.292062] type=V4L2_BUF_TYPE_VIDEO_OVERLAY
[11149.296606] In MVC: verify_preview
[11149.300015] Found background frame buffer.
[11149.304118] End of mxc_v4l2_s_fmt: v2f pix widthxheight 720 x 288
[11149.310227] End of mxc_v4l2_s_fmt: crop_bounds widthxheight 720 x 625
[11149.316684] End of mxc_v4l2_s_fmt: crop_defrect widthxheight 720 x 625
[11149.323216] End of mxc_v4l2_s_fmt: crop_current widthxheight 720 x 576
[11149.329759] In MVC:mxc_v4l_ioctl
[11149.332993] In MVC: mxc_v4l_do_ioctl c0cc5604
[11149.337374] case VIDIOC_G_FMT
[11149.340607] In MVC: mxc_v4l2_g_fmt type=3
[11149.344620] type is V4L2_BUF_TYPE_VIDEO_OVERLAY
[11149.349428] End of mxc_v4l2_g_fmt: v2f pix widthxheight 720 x 288
[11149.355538] End of mxc_v4l2_g_fmt: crop_bounds widthxheight 720 x 625
[11149.361985] End of mxc_v4l2_g_fmt: crop_defrect widthxheight 720 x 625
[11149.368526] End of mxc_v4l2_g_fmt: crop_current widthxheight 720 x 576
[11149.375060] In MVC:mxc_v4l_ioctl
[11149.378302] In MVC: mxc_v4l_do_ioctl 80085617
[11149.382664] case VIDIOC_G_STD
[11149.385905] In mxc_v4l2_g_std
[11149.388915] In MVC:mxc_v4l_ioctl
[11149.392150] In MVC: mxc_v4l_do_ioctl 402c560b
[11149.396531] case VIDIOC_S_FBUF
[11149.399854] In MVC:mxc_v4l_ioctl
[11149.403087] In MVC: mxc_v4l_do_ioctl 802c560a
[11149.407463] case VIDIOC_G_FBUF
[11149.410835] In MVC:mxc_v4l_ioctl
frame buffer width 800, height 4[11149.414199] In MVC: mxc_v4l_do_ioctl 4004560e
80, bytesperline 3200
[11149.421430] VIDIOC_OVERLAY on=1
[11149.426825] MVC: start_preview
[11149.429884] BGR32
[11149.443274] End of start_preview: v2f pix widthxheight 720 x 288
[11149.449325] End of start_preview: crop_bounds widthxheight 720 x 625
[11149.455699] End of start_preview: crop_defrect widthxheight 720 x 625
[11149.462146] End of start_preview: crop_current widthxheight 720 x 576
[11149.468638] In MVC:mxc_v4l_ioctl
[11149.471873] In MVC: mxc_v4l_do_ioctl c008561c
[11149.476249] case VIDIOC_S_CTRL
[11149.479568] In MVC:mxc_v4l2_s_ctrl
[11150.483109] In MVC:mxc_v4l_ioctl
[11150.486419] In MVC: mxc_v4l_do_ioctl c008561c
[11150.490796] case VIDIOC_S_CTRL
[11150.494127] In MVC:mxc_v4l2_s_ctrl
[11151.497704] In MVC:mxc_v4l_ioctl
[11151.500957] In MVC: mxc_v4l_do_ioctl c008561c
[11151.505439] case VIDIOC_S_CTRL
[11151.508775] In MVC:mxc_v4l2_s_ctrl
|