IMX8MP ISI.0 MIPI-CSI2 Camera Capture

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

IMX8MP ISI.0 MIPI-CSI2 Camera Capture

Jump to solution
1,139 Views
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";
};
Tags (3)
0 Kudos
Reply
1 Solution
1,103 Views
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.

View solution in original post

0 Kudos
Reply
2 Replies
1,115 Views
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 Kudos
Reply
1,104 Views
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 Kudos
Reply