Open floydelcy opened 10 months ago
RK3566 (orangepi CM4) TC358743做hdmiin
数据链路:TC358743->csi2_dphy1->MIPI_CSI2->RKCIF_MIPI_LVDS
root@orangepicm4:~# v4l2-ctl --verbose -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat='NV12' --stream-mmap=4 --stream-skip=3 --stream-to=2k_nv12.yuv --stream-count=4 --stream-poll VIDIOC_QUERYCAP: ok VIDIOC_G_FMT: ok VIDIOC_S_FMT: ok Format Video Capture Multiplanar: Width/Height : 1920/1080 Pixel Format : 'NV12' (Y/CbCr 4:2:0) Field : None Number of planes : 1 Flags : Colorspace : Default Transfer Function : Default YCbCr/HSV Encoding: Default Quantization : Default Plane 0 : Bytes per Line : 1920 Size Image : 3110400 VIDIOC_REQBUFS returned 0 (Success) VIDIOC_QUERYBUF returned 0 (Success) VIDIOC_QUERYBUF returned 0 (Success) VIDIOC_QUERYBUF returned 0 (Success) VIDIOC_QUERYBUF returned 0 (Success) VIDIOC_QBUF returned 0 (Success) VIDIOC_QBUF returned 0 (Success) VIDIOC_QBUF returned 0 (Success) VIDIOC_QBUF returned 0 (Success) VIDIOC_STREAMON returned 0 (Success) cap dqbuf: 0 seq: 2 bytesused: 3110400 ts: 1206.852213 (ts-monotonic, ts-src-eof) cap dqbuf: 1 seq: 4 bytesused: 3110400 ts: 1206.885563 delta: 33.350 ms dropped: 1 (ts-monotonic, ts-src-eof) cap dqbuf: 2 seq: 6 bytesused: 3110400 ts: 1206.918846 delta: 33.283 ms dropped: 1 (ts-monotonic, ts-src-eof) cap dqbuf: 3 seq: 7 bytesused: 3110400 ts: 1206.935536 delta: 16.690 ms (ts-monotonic, ts-src-eof) cap dqbuf: 0 seq: 9 bytesused: 3110400 ts: 1206.968942 delta: 33.406 ms fps: 59.97 dropped: 1 (ts-monotonic, ts-src-eof) cap dqbuf: 1 seq: 11 bytesused: 3110400 ts: 1207.002239 delta: 33.297 ms fps: 59.99 dropped: 1 (ts-monotonic, ts-src-eof) cap dqbuf: 2 seq: 13 bytesused: 3110400 ts: 1207.035635 delta: 33.396 ms fps: 59.97 dropped: 1 (ts-monotonic, ts-src-eof) ***Dmesg*** [ 1212.658024] stream_cif_mipi_id0: open video, entity use_countt 1 [ 1212.737491] rkcif_mipi_lvds: stream[0] start streaming [ 1212.743136] rkcif_mipi_lvds: Allocate dummy buffer, size: 0x003f5000 [ 1212.743461] rockchip-mipi-csi2 fdfb0000.mipi-csi2: stream on, src_sd: 000000001354f0c4, sd_name:rockchip-csi2-dphy1 [ 1212.743490] rockchip-mipi-csi2 fdfb0000.mipi-csi2: stream ON [ 1212.743583] rockchip-csi2-dphy1: dphy1, data_rate_mbps 620 [ 1212.743651] rockchip-csi2-dphy csi2-dphy1: csi2_dphy_s_stream stream on:1, dphy1 [ 1212.743678] rockchip-csi2-dphy csi2-dphy1: csi2_dphy_s_stream stream on:1, dphy1 [ 1212.778839] rkcif_mipi_lvds: ERR: multi fs in oneframe in id0, fs_num:0 [ 1212.809018] rkcif_mipi_lvds: ERR: multi fs in oneframe in id0, fs_num:0 [ 1212.838327] rkcif_mipi_lvds: ERR: multi fs in oneframe in id0, fs_num:0 [ 1212.898019] rkcif_mipi_lvds: ERR: multi fs in oneframe in id0, fs_num:0 [ 1212.928171] rkcif_mipi_lvds: ERR: multi fs in oneframe in id0, fs_num:0 [ 1212.958325] rkcif_mipi_lvds: ERR: multi fs in oneframe in id0, fs_num:0 [ 1212.975908] rkcif_mipi_lvds: stream[0] start stopping, total mode 0x1, cur 0x1 [ 1212.975922] rkcif_mipi_lvds: get vblank fail, vblank_def 0, vblank_curr 0 [ 1212.988383] rockchip-mipi-csi2 fdfb0000.mipi-csi2: stream off, src_sd: 000000001354f0c4, sd_name:rockchip-csi2-dphy1 [ 1212.988394] rockchip-mipi-csi2 fdfb0000.mipi-csi2: stream OFF [ 1212.989112] rockchip-csi2-dphy csi2-dphy1: csi2_dphy_s_stream_stop stream stop, dphy1 [ 1212.989127] rockchip-csi2-dphy csi2-dphy1: csi2_dphy_s_stream stream on:0, dphy1 [ 1212.989159] rockchip-csi2-dphy csi2-dphy1: csi2_dphy_s_stream stream on:0, dphy1 [ 1213.008111] rkcif_mipi_lvds: stream[0] stopping finished, dma_en 0x0 [ 1213.273259] stream_cif_mipi_id0: close video, entity use_count 0
root@orangepicm4:~# media-ctl -p Media controller API version 5.10.160 Media device information ------------------------ driver rkcif model rkcif_mipi_lvds serial bus info hw revision 0x0 driver version 5.10.160 Device topology - entity 1: stream_cif_mipi_id0 (1 pad, 4 links) type Node subtype V4L flags 0 device node name /dev/video0 pad0: Sink <- "rockchip-mipi-csi2":1 [ENABLED] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] - entity 5: stream_cif_mipi_id1 (1 pad, 4 links) type Node subtype V4L flags 0 device node name /dev/video1 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [ENABLED] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] - entity 9: stream_cif_mipi_id2 (1 pad, 4 links) type Node subtype V4L flags 0 device node name /dev/video2 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [ENABLED] <- "rockchip-mipi-csi2":4 [] - entity 13: stream_cif_mipi_id3 (1 pad, 4 links) type Node subtype V4L flags 0 device node name /dev/video3 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [ENABLED] - entity 17: rkcif_tools_id0 (1 pad, 4 links) type Node subtype V4L flags 0 device node name /dev/video4 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] - entity 21: rkcif_tools_id1 (1 pad, 4 links) type Node subtype V4L flags 0 device node name /dev/video5 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] - entity 25: rkcif_tools_id2 (1 pad, 4 links) type Node subtype V4L flags 0 device node name /dev/video6 pad0: Sink <- "rockchip-mipi-csi2":1 [] <- "rockchip-mipi-csi2":2 [] <- "rockchip-mipi-csi2":3 [] <- "rockchip-mipi-csi2":4 [] - entity 29: rkcif-mipi-luma (0 pad, 0 link) type Node subtype V4L flags 0 device node name /dev/video7 - entity 32: rockchip-mipi-csi2 (5 pads, 29 links) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev0 pad0: Sink [fmt:UYVY8_2X8/1920x1080 field:none colorspace:smpte170m crop.bounds:(0,0)/1920x1080 crop:(0,0)/1920x1080] <- "rockchip-csi2-dphy1":1 [ENABLED] pad1: Source -> "stream_cif_mipi_id0":0 [ENABLED] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad2: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [ENABLED] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad3: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [ENABLED] -> "stream_cif_mipi_id3":0 [] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] pad4: Source -> "stream_cif_mipi_id0":0 [] -> "stream_cif_mipi_id1":0 [] -> "stream_cif_mipi_id2":0 [] -> "stream_cif_mipi_id3":0 [ENABLED] -> "rkcif_tools_id0":0 [] -> "rkcif_tools_id1":0 [] -> "rkcif_tools_id2":0 [] - entity 38: rockchip-csi2-dphy1 (2 pads, 2 links) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 pad0: Sink [fmt:UYVY8_2X8/1920x1080@10000/600000 field:none colorspace:smpte170m] <- "m00_b_tc35874x 1-000f":0 [ENABLED] pad1: Source -> "rockchip-mipi-csi2":0 [ENABLED] - entity 43: m00_b_tc35874x 1-000f (1 pad, 1 link) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev2 pad0: Source [fmt:UYVY8_2X8/1920x1080@10000/600000 field:none colorspace:smpte170m] [dv.caps:BT.656/1120 min:1x1@0 max:10000x10000@310000000 stds:CEA-861,DMT,CVT,GTF caps:interlaced,progressive,reduced-blanking,custom] [dv.detect:BT.656/1120 1920x1080p60 (2200x1125) stds: flags:] [dv.current:BT.656/1120 1920x1080p60 (2200x1125) stds: flags:] -> "rockchip-csi2-dphy1":0 [ENABLED]
RK3566 (orangepi CM4) TC358743做hdmiin
数据链路:TC358743->csi2_dphy1->MIPI_CSI2->RKCIF_MIPI_LVDS
Media device information