IMX8MM doesnt register two cameras on single MIPI-CSI line

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

IMX8MM doesnt register two cameras on single MIPI-CSI line

215 Views
ajita02
Contributor IV

Hi all,

I want to register two cameras with single MIPI-CSI line. Currently one camera is getting register. I have added two endpoints for mipi_csi in dts file. I followed this link . The files mentioned in given PDF are not used for IMX8MM. It used "drivers/media/platform/mxc/capture/mxc_mipi_csi.c" file.

Can someone help me to add endpoint in mentioned file?

Thanks,

Ajita

 

Labels (2)
0 Kudos
Reply
1 Reply

186 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

I don't know why you change all of drivers, obviously these issue are related to your driver, since you use your own drivers, you need debug by yourself, I suggest that you can add more print in the driver, then to check if your mipi csi create correct link from camera to mipi csi, for nxp, imx8mm uses this mipi csi driver

"https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/drivers/media/platform/mxc/capture/mxc_mipi_csi.c...

you can compare yours with this, you can focus on these codes

/* Attach sensors linked to csi receivers */
for_each_available_child_of_node(parent, node) {
if (of_node_cmp(node->name, "port"))
continue;

/* The csi node can have only port subnode. */
port = of_get_next_child(node, NULL);
if (!port)
continue;
rem = of_graph_get_remote_port_parent(port);
of_node_put(port);
if (rem == NULL) {
v4l2_info(&state->v4l2_dev,
"Remote device at %s not found\n",
port->full_name);
return -1;
}

you also can check your dts settings, refer to your information, link from mipi csi to csi is ok, but ov5640 to mipi csi failed,

ports {
					#address-cells = <1>;
					#size-cells = <0>;

					port@0 {
						reg = <0>;
					};

					port@1 {
						reg = <1>;
						imx8mm_mipi_csi_out: endpoint {
							remote-endpoint = <&csi_in>;
						};

 check mipi csi get proper information from your dts settings

 

Regards

0 Kudos
Reply