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