IMX8MP ISI.0 MIPI-CSI2 Camera Capture

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IMX8MP ISI.0 MIPI-CSI2 Camera Capture

跳至解决方案
1,335 次查看
guffigubber
Contributor II

Hi!

I have a processor IMX8MP with a kernel version 5.4.70.

I am trying to connect a camera to csi0 (camera --> mipi csi 0 --> isi0 --> /dev/video0).

On another input (camera --> mipi csi 1 --> isi0 --> /dev/video1) it works without problems with the same settings.

What could be the problem?

 

camera_0: camera_0_mipi@3e {
	compatible = "camera_0";
	reg = <0x3e>;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_csi0_rst>, <&pinctrl_csi0_pwn>;
	csi_id = <0>;
	reset-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
	enable-gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
	mipi_csi;
	status = "okay";

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

camera_1: camera_1_mipi@3c {
	compatible = "camera_1";
	reg = <0x3c>;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_csi1_rst>, <&pinctrl_csi1_pwn>;
	csi_id = <1>;
	reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
	enable-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
	mipi_csi;
	status = "okay";
	port {
	        camera_mipi_1_ep: endpoint {
		        bus-type = <4>;
			data-lanes = <1 2 3 4>;
			clock-lanes = <0>;
			remote-endpoint = <&mipi_csi1_ep>;
		};
	};
};


&mipi_csi_0 {
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";
	port@0 {
		reg = <0>;
		mipi_csi0_ep: endpoint {
			remote-endpoint = <&camera_mipi_0_ep>;
			data-lanes = <4>;
			csis-hs-settle = <13>;
			csis-clk-settle=<2>;
			csis-wclk;
		};
	};
	
};

&mipi_csi_1 {
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	port@1 {
		reg = <1>;
		mipi_csi1_ep: endpoint {
			remote-endpoint = <&camera_mipi_1_ep>;
			data-lanes = <4>;
			csis-hs-settle = <13>;
			csis-clk-settle=<2>;
			csis-wclk;
		};
	};
};

&cameradev {
	status = "okay";
};

&isi_0 {
	status = "okay";

	cap_device {
		status = "okay";
	};

//	m2m_device {
//		status = "okay";
//	};
};

&isi_1 {
	status = "okay";

	cap_device {
		status = "okay";
	};
};

&isp_0 {
    status = "disabled";
};

&isp_1 {
	status = "disabled";
};

&dewarp_0 {
    status = "disabled";
};
标记 (3)
0 项奖励
回复
1 解答
1,299 次查看
guffigubber
Contributor II

Thank you! Problem solved!

The camera started sending video when turned on. And CSI1 could immediately capture the video.
For CSI0, you need to turn off the camera so that it does not send video.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,311 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

The camera works on continous mode, it can't work DSI+CSI0, after change to non-continous mode, it can work DSI+CSI0.

 

Regards

0 项奖励
回复
1,300 次查看
guffigubber
Contributor II

Thank you! Problem solved!

The camera started sending video when turned on. And CSI1 could immediately capture the video.
For CSI0, you need to turn off the camera so that it does not send video.

0 项奖励
回复