This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] SK-AM62P-LP:启用4个 AHD 摄像头

Guru**** 2473270 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1463131/sk-am62p-lp-enabling-4-ahd-cameras

器件型号:SK-AM62P-LP

工具与软件:

你(们)好

我们使用的是 Linux SDK 10.00.07.04和内核6.6、 并且我们已经实现了适用于4通道汽车 AHD RX 的驱动程序、具有 MIPI-CSI2接口、并且我们已经更新了 DTS 文件。 但他的视频不能正常工作

这是器件树的 Stract


&main_i2c2 {
	#address-cells = <1>;
    #size-cells = <0>;
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&main_i2c2_pins_default>;
	clock-frequency = <400000>;

	i2c-switch@71 {
		compatible = "nxp,pca9543";
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <0x71>;

		/* CAM port */
		i2c@1 {
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <1>;

			nvp6324: camera@33 {
				compatible = "nextchip,nvp6324_mipi";
				reg = <0x33>;
			
				clocks = <&clk_nvp6324_fixed>;
				clock-names = "capture_mclk";
			
				mclk = <27000000>;
				mclk_source = <0>;
				pwn-gpios = <&exp1 13 GPIO_ACTIVE_HIGH>;

					port {
						csi2_cam0: endpoint {
						remote-endpoint = <&mipi_csi0_ep>;
						clock-lanes = <0>;
						data-lanes = <1 2 3 4>;
						};
					};
			};
		};
	};
};

&cdns_csi2rx0 {
	status = "okay";
	ports{
		#address-cells = <1>;
		#size-cells = <0>;
		
		csi0_port0: port@0{
			reg = <0>;
			status = "okay";	

			mipi_csi0_ep: endpoint {
				remote-endpoint = <&csi2_cam0>;
				bus-type = <4>; /* MIPI CSI-2 D-PHY */
				clock-lanes = <0>;
				data-lanes = <1 2 3 4>;
			};
		};
	};
};

&ti_csi2rx0 {
	status = "okay";
};

&dphy0 {
	status = "okay";
};



"Device (设备)"树中是否有任何缺失?

我们已在终端上使用了这些命令

insmod ./nvp6324.ko.
media-ctl -V "nvp6324_mipi 5-0033":0 [fmt:UYVY8_1x16/1280x720字段:none]"
media-ctl -V ""cdns_csi2rx.30101000.csi-bridge":0 [fmt:UYVY8_1x16/1280x720字段:none]"
media-ctl -V ""cdns_csi2rx.30101000.csi-bridge":1 [fmt:UYVY8_1x16/1280x720字段:none]"
media-ctl -V "30102000.ticsi2rx":0 [fmt:UYVY8_1x16/1280x720字段:none]"
media-ctl -V "30102000.ticsi2rx":1 [fmt:UYVY8_1x16/1280x720字段:none]"
v4l2-ctl -z platform:30102000.ticsi2rx -d "30102000.ticsi2rx context 0"-v width=1280、height=720、pixelformat=UYVY
gst_debug=3 gst-launch-1.0 -v v4l2src device=/dev/video2! video/x-raw、width=1280、height=720、帧速率=30/1、format=UYVY! ticolorconvert! 运维受电方

但它没有显示任何摄像头图像。

有人能解决这个问题吗?


BR

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    运行命令"gst_debug=3 gst-launch-1.0 -v v4l2src device=/dev/video2! video/x-raw、width=1280、height=720、帧速率=30/1、format=UYVY! ticolorconvert! waylandsink"、我有以下输出。



    root 用户@am62pxx-evm:~# gst_debug=3 gst-launch-1.0 -v v4l2src device=/dev/video2! video/x-raw、width=1280、height=720、帧速率=30/1、format=UYVY! ticolorconvert! 运维受电方
    正在将管道设置为暂停...
    管道处于活动状态、不需要 PREROLL ...
    0:00:00.356606430 2175 0xffff78000b70 warn v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect: VIDIOC_CROPCAP 失败
    管道是 PREROLLED ...
    正在将管道设置为播放...
    新时钟:GstSystemClock
    /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src:cap = video/x-raw、width=(int) 1280、height=(int) 720、framerate=(fractional) 30/1、format=(string) UYVY、 interlace-mode=(string)progressive, colorimetry=(string)bt709
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src:caps = video/x-raw、width=(int) 1280、height=(int) 720、framerate=(fractional) 30/1、format=(string) UYVY、 interlace-mode=(string)progressive, colorimetry=(string)bt709
    /GstPipeline:pipeline0/GstTIColorConvert:ticolorconvert0.GstPad:src:cps = video/x-raw、format=(string) NV12、width=(int) 1280、height=(int) 720、framerate=(fractional) 30/1
    /GstPipeline:pipeline0/GstWaylandSink:waylandsink0.GstPad:sink:caps = video/x-raw、format=(string) NV12、width=(int) 1280、height=(int) 720、framerate=(fractional) 30/1
    /GstPipeline:pipeline0/GstTIColorConvert:ticolorconvert0.GstPad:sink:caps = video/x-raw、width=(int) 1280、height=(int) 720、framerate=(fractional) 30/1、format=(string) UYVY、 interlace-mode=(string)progressive, colorimetry=(string)bt709
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink:caps = video/x-raw、width=(int) 1280、height=(int) 720、framerate=(fractional) 30/1、format=(string) UYVY、 interlace-mode=(string)progressive, colorimetry=(string)bt709
    0:00:00.361180360 2175 0xff78000b70 warn v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect: VIDIOC_CROPCAP 失败
    μ s ^中断。
    中断:正在停止管道...
    执行在0:30:21.400837505之后结束
    正在将管道设置为空...

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Sergio、

    您能否提供有关  具有 MIPI-CSI2接口的4通道汽车 AHD RX 的更多信息? 您是否有公共规范? 具体而言、它是否通过4个通道发送数据?

    谢谢!

    建中

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    当然

    NVP6324包括具有 MIPI-CSI2/BT.656接口的4通道汽车 AHDTM RX。 它提供高质量 CVBS、1M、2M 图像。 它接受来自摄像头和其他视频信号源的 CVBS、COMET、1M / 2M 模拟输入。 它接受单端/差动模拟 SD/HD/FHD 视频信号、然后处理钳位/AGC (自动增益控制)/YC 分离并转换 BT.656/BT.1120/MIPI-CSI2格式。 MIPI-CSI2接口、符合 MIPI D-PHY v1.1标准。

    NVP6324能够使用相同的传输电缆与传统的传输电缆用于 CVBS / COMET (SD 级别)、1M/2M (HD / FHD 级别)、并通过在分离 Y 和 C 时最大限度地减少干扰来提供卓越的图像质量

    NVP6324支持同轴通信协议、通过同轴电缆在控制器(DVR)和摄像机之间通过视频信号进行通信
    限制。

    视频解码器
     输入格式
    - 4通道单端和差动模拟视频输入
    : CVBS/COMET(720H/960H)
    : AHD

    输出格式
    -支持8bit*4并行输出端口,每个端口视频输出格式
    可选
    -支持每个8位并行输出端口的字节交错
    -支持 MIPI-CSI2,单通道和虚拟通道4通道
    - MIPI-CSI2 1/2/4数据通道配置
    :YUV422 8位格式
    - 2个数据通道、支持高达1080p@25/30 2个通道
    - 4个数据通道,高达1080p@25/30 4通道

    MIPI 输出格式
    NVP6324支持到符合 MIPI CSI2 V1.1规范的 MIPI 接口的4通道模拟视频输入(CVBS/AHD)。 符合 D-PHY V1.1规范
    具有1个时钟通道和4个数据通道。 在 YUV422/YUV420/LegacyYUV420-8bit 格式下、MIPI 数据通道的最大数据速率高达1.5Gbps。
    4个数据通道应用于4通道1920x1080@20/30Hz 格式、2个数据通道可用于4通道1280x720@25/30Hz 格式。
    CSI-2是一种通道可扩展规范。 需要更多带宽的应用程序、而这些带宽是由一个数据通道或尝试提供的
    避免高时钟速率可以将数据路径扩展到两个、四个通道、并使峰值总线带宽大致呈线性增加。 。
    数据流分布在各个通道之间。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    感谢您的规格。 我想您已将其配置为通过 4个数据通道输出 YUV422。 是否有4个虚拟通道(高达1080p@25/30 4CH)?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好,我们配置了 YUYv8,我们使用1280x720@30,我们已经使用了这组命令波纹.

    media-ctl -V "nvp6324_mipi 5-0033":0 [fmt:UYVY8_1x16/1280x720字段:none]"
    media-ctl -V ""cdns_csi2rx.30101000.csi-bridge":0 [fmt:UYVY8_1x16/1280x720字段:none]"
    media-ctl -V ""cdns_csi2rx.30101000.csi-bridge":1 [fmt:UYVY8_1x16/1280x720字段:none]"
    media-ctl -V "30102000.ticsi2rx":0 [fmt:UYVY8_1x16/1280x720字段:none]"
    media-ctl -v "30102000.ticsi2rx":1 [fmt:UYVY8_1x16/1280x720字段:none]" v4l2-ctl -z 平台:30102000.ticsi2rx -d "pix2000.ticsi2rx 上下文0"-v width=1280、height=720、elformat=UYVY
    gst_debug=3 gst-launch-1.0 -v v4l2src device=/dev/video2! video/x-raw、width=1280、height=720、帧速率=30/1、format=UYVY! ticolorconvert! 运维受电方

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    以下是我们的拓扑

    root@am62pxx-evm:~# media-ctl -p
    Media controller API version 6.6.32
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial          
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  6.6.32
    
    Device topology
    - entity 1: 30102000.ticsi2rx (7 pads, 7 links, 1 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev0
    	routes:
    		0/0 -> 1/0 [ACTIVE]
    	pad0: Sink
    		[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
    		<- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
    	pad1: Source
    		[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
    		-> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
    	pad2: Source
    		-> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
    	pad3: Source
    		-> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
    	pad4: Source
    		-> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
    	pad5: Source
    		-> "30102000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
    	pad6: Source
    		-> "30102000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]
    
    - entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 1 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev1
    	routes:
    		0/0 -> 1/0 [ACTIVE]
    	pad0: Sink
    		[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
    		<- "nvp6324_mipi 5-0033":0 [ENABLED,IMMUTABLE]
    	pad1: Source
    		[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
    		-> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
    	pad2: Source
    	pad3: Source
    	pad4: Source
    
    - entity 15: nvp6324_mipi 5-0033 (4 pads, 1 link, 0 routes)
                 type V4L2 subdev subtype Sensor flags 0
                 device node name /dev/v4l-subdev2
    	pad0: Source
    		[stream:0 fmt:UYVY8_1X16/1280x720 field:none
    		 crop.bounds:(0,0)/1280x720
    		 crop:(0,0)/1280x720]
    		-> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
    	pad1: Source
    	pad2: Source
    	pad3: Source
    
    - entity 24: 30102000.ticsi2rx context 0 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video2
    	pad0: Sink
    		<- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
    
    - entity 30: 30102000.ticsi2rx context 1 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video3
    	pad0: Sink
    		<- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
    
    - entity 36: 30102000.ticsi2rx context 2 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video4
    	pad0: Sink
    		<- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
    
    - entity 42: 30102000.ticsi2rx context 3 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video5
    	pad0: Sink
    		<- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
    
    - entity 48: 30102000.ticsi2rx context 4 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video6
    	pad0: Sink
    		<- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE]
    
    - entity 54: 30102000.ticsi2rx context 5 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video7
    	pad0: Sink
    		<- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
    

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    我的问题是、您的 NVP6324是通过4个虚拟通道还是仅1个虚拟通道发送数据?

    谢谢!

    建中

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    大家好、我们的 NVP 直接连接到该引脚

    其数据表中提到了其输出" NVP6324支持4通道模拟视频输入(CVBS / AHD)至符合 MIPI CSI2 V1.1规范的 MIPI 接口。 符合 D-PHY V1.1规范
    具有1个时钟通道和4个数据通道。 "

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    根据您提供的内容、"4数据通道应用于 4通道 1920x1080@20/30Hz 格式和2个数据通道可用于 4通道 1280x720@25/30 Hz 格式。"、我觉得这个器件有4个虚拟通道。 您需要确保将驱动程序编程为在4个虚拟通道中发送数据。

    请参阅 本说明