i.MX8MP 移植tc358743分辨率调整问题

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8MP 移植tc358743分辨率调整问题

Jump to solution
985 Views
feiyu
Contributor III

NXP技术您好

我们参考这篇文章:Solved: imx8mm mipi csi capture with tc358743 hdmi->mipi n... - NXP Community

在i.MX8MP上移植了tc358743驱动,PC输出分辨率1920X1080@60Hz时,我们使用media-ctl --set-dv "'tc358743 1-000f':0 [fmt:"UYVY8_2X8"/"1920x1080"] " -v命令,对tc358743进行初始化,能够进行正确视频采集,但是分辨率调整为1280X1024@60Hz时,没有视频流输出,但是也没有报错。

我对比了media-ctl -p的输出,和参考文章有些不同,我们的如下:

root@canon-tiger:~# media-ctl -p
Media controller API version 5.10.9

Media device information
------------------------
driver          mxc-md
model           FSL Capture Media Device
serial
bus info
hw revision     0x0
driver version  5.10.9

Device topology
- entity 1: mxc_isi.0 (16 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
        pad0: Sink
                <- "mxc-mipi-csi2.0":4 [ENABLED]
        pad1: Sink
        pad2: Sink
        pad3: Sink
        pad4: Sink
        pad5: Sink
        pad6: Sink
        pad7: Sink
        pad8: Sink
        pad9: Sink
        pad10: Sink
        pad11: Sink
        pad12: Source
                -> "mxc_isi.0.capture":0 [ENABLED]
        pad13: Source
        pad14: Source
        pad15: Sink

- entity 18: mxc_isi.0.capture (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video0
        pad0: Sink
                <- "mxc_isi.0":12 [ENABLED]

- entity 22: mxc_isi.1 (16 pads, 2 links)
             type V4L2 subdev subtype Unknown flags 0
        pad0: Sink
                <- "mxc-mipi-csi2.0":4 [ENABLED]
        pad1: Sink
        pad2: Sink
        pad3: Sink
        pad4: Sink
        pad5: Sink
        pad6: Sink
        pad7: Sink
        pad8: Sink
        pad9: Sink
        pad10: Sink
        pad11: Sink
        pad12: Source
                -> "mxc_isi.1.capture":0 [ENABLED]
        pad13: Source
        pad14: Source
        pad15: Sink

- entity 39: mxc_isi.1.capture (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video1
        pad0: Sink
                <- "mxc_isi.1":12 [ENABLED]

- entity 43: mxc-mipi-csi2.0 (8 pads, 3 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev0
        pad0: Sink
                <- "tc358743 1-000f":0 [ENABLED,IMMUTABLE]
        pad1: Sink
        pad2: Sink
        pad3: Sink
        pad4: Source
                -> "mxc_isi.0":0 [ENABLED]
                -> "mxc_isi.1":0 [ENABLED]
        pad5: Source
        pad6: Source
        pad7: Source

- entity 52: mxc-mipi-csi2.1 (8 pads, 0 link)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev1
        pad0: Sink
        pad1: Sink
        pad2: Sink
        pad3: Sink
        pad4: Source
        pad5: Source
        pad6: Source
        pad7: Source

- entity 61: tc358743 1-000f (1 pad, 1 link)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev2
        pad0: Source
                [fmt:UYVY8_2X8/1920x1080 field:none colorspace:smpte170m]
                [dv.caps:BT.656/1120 min:640x350@13000000 max:1920x1200@165000000 stds:CEA-861,DMT,CVT,GTF caps:progressive,reduced-blanking,custom]
                [dv.detect:BT.656/1120 1280x1024p60 (1688x1066) stds: flags:]
                [dv.current:BT.656/1120 1920x1080p60 (2200x1125) stds:CEA-861,DMT flags:can-reduce-fps,CE-video,has-cea861-vic]
                -> "mxc-mipi-csi2.0":0 [ENABLED,IMMUTABLE

 

除了tc358743,其他CSI和ISI节点不显示fmt,看起来比较奇怪。

我们想知道,除了对tc358743进行初始化,还需要做哪些设置,因为刚开始做视频采集,对各种命令不是很熟悉,是否可以提供一下必要的调试命令?

非常感谢!

0 Kudos
1 Solution
947 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @feiyu,

I hope you are doing well.

One can refer to the Wandboard EDM-G board where TC358743 HDMI to MIPI-CSI-2 bridge IC is ported successfully.

Please refer to the below-mentioned article.
Getting Started using the VizionLink-HDMI Adapter.

Please make sure that the HDMI adapter supports the given resolution.

Alternatively, One can try using the gstreamer pipeline to stream video.

Please refer to mentioned documents.

AN13430- i.MX 8MP Dual ISI channels for single CSI

i.MX 8 GStreamer User Guide

Thanks & Regards,
Dhruvit Vasavada

View solution in original post

0 Kudos
2 Replies
961 Views
feiyu
Contributor III

我们还发现了其他奇怪的现象

1、如果将PC输出分辨率设置为1280X1024,dv-timing保持不变,然后录制1280X1024视频,视频会呈现以下奇怪的状态:

新建位图图像.jpg

2、如果重新设置dv-timing为1280X1024,再录制1280X1024,发现没有视频流,无法录制视频

我们用于设置dv-timing命令:

media-ctl --set-dv "'tc358743 1-000f':0 [fmt:"UYVY8_2X8"/"1280x1024"] " -v

查看视频流输出命令:v4l2-ctl -d /dev/video0 --stream-mmap 

设置分辨率命令:

v4l2-ctl --verbose -d /dev/video0 --set-fmt-video=width=1280,height=1024,pixelformat='YUV4'

我们CSI、isi、tc358743驱动,来自于boundary devices Nitrogen8mm board,仅修改了单路CSI输入,双路ISI功能。

EDID主要配置了1920X1080和1280X1024两种分辨率

1.jpg2.jpg

如果有人知道问题出在哪里,或者有解决问题的思路,拜托指导一下,非常感谢

0 Kudos
948 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @feiyu,

I hope you are doing well.

One can refer to the Wandboard EDM-G board where TC358743 HDMI to MIPI-CSI-2 bridge IC is ported successfully.

Please refer to the below-mentioned article.
Getting Started using the VizionLink-HDMI Adapter.

Please make sure that the HDMI adapter supports the given resolution.

Alternatively, One can try using the gstreamer pipeline to stream video.

Please refer to mentioned documents.

AN13430- i.MX 8MP Dual ISI channels for single CSI

i.MX 8 GStreamer User Guide

Thanks & Regards,
Dhruvit Vasavada

0 Kudos