Connect FRAMOS FSM:GO IMX662 to CSI2 CH2 of IMX8MP

We are currently having issues trying to connect one FRAMOS FSM:GO IMX662 Camera Sensor to the second CSI2 channel on our custom carrier board with the Verdin IMX8M P SoM.

Connecting it to CSI2 channel one/zero is working but we can not get it to work on the other CSI channel. It seems that the i2c connection is working and we can set configurations but after docker run…gst example and gst launch.. but the stream crashes after that. We have adapted the device tree overlay; it would be great if you could check if there is anything wrong with it:

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

/dts-v1/;
/plugin/;

#include <dt-bindings/clock/imx8mp-clock.h>
#include <dt-bindings/gpio/gpio.h>

/ {
compatible = “toradex,verdin-imx8mp”;
};

#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)

&i2c3 {
status = “okay”;
//clock-frequency = <100000>;
//pinctrl-names = “default”;
//pinctrl-0 = <&pinctrl_i2c3>;
imx662_0: imx662_mipi@1a {
compatible = “framos,imx662”;
reg = <0x1a>;
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_gpio5>, <&pinctrl_gpio6>;
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
clock-names = “csi_mclk”;

	/* CSI1 statt CSI0 */
	csi_id = <1>;
	rst-gpios = <&gpio4 30 GPIO_ACTIVE_LOW>;
	mipi_csi;
	status = "okay";

	port {
		imx662_mipi_1_ep: endpoint {
			remote-endpoint = <&mipi_csi1_ep>;

			/*
			 * Falls CSI1 auf deinem Carrier nur 2 Lanes hat:
			 * data-lanes = <1 2>;
			 */
			data-lanes = <1 2 3 4>;
			clock-lanes = <0>;
			max-pixel-frequency = /bits/ 64 <500000000>;
		};
	};
}; 

};

&cameradev {
status = “okay”;
};

&isi_0 {
status = “disabled”;
};

&isi_1 {
status = “disabled”;
};

&isp_0 {
status = “okay”;
};

&isp_1 {
status = “okay”;
};

&dewarp {
status = “okay”;
};

/* CSI0 deaktivieren */
&mipi_csi_0 {
status = “disabled”;
};

/* CSI1 aktivieren und mit IMX662 verbinden */
&mipi_csi_1 {
#address-cells = <1>;
#size-cells = <0>;
status = “okay”;
//clock-frequency = <266000000>;
//assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_266M>;
//assigned-clock-rates = <266000000>;

port@1 {
	reg = <1>;
	//reg = <0>; dann port@0 schreiben

	mipi_csi1_ep: endpoint {
		remote-endpoint = <&imx662_mipi_1_ep>;

		/*
		 * Achtung:
		 * Im originalen Overlay steht hier data-lanes = <4>;
		 * beim Sensor-Endpoint aber data-lanes = <1 2 3 4>.
		 *
		 * Ich lasse es hier wie im originalen Framos/Toradex-Overlay,
		 * nur auf CSI1 umgezogen.
		 */
		data-lanes = <4>;
		csis-hs-settle = <13>;
		csis-clk-settle = <2>;
		csis-wclk;
	};
};

};

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


I’d be glad to help! Could you let me know which OS and version you are using? For example:

Common platforms to consider:

  • Hardware: Verdin iMX8M Plus, Verdin AM62, Aquila AM69, Apalis iMX8QP, Colibri iMX8X, Ivy Carrier Board, Ixora Carrier Board, Mallow Carrier Board, IMX95
  • OS: Yocto 7.2.0, Torizon 6.8.2, Torizon OS 6, BSP 7, BSP 6, Torizon OS 7.2.0-build.13
  • Implementation: Docker, Chromium, Qt, weston
  • Integration: Device tree, gpio, spi, can, hdmi, display, camera, recovery mode, device driver, kernel patch, ethernet, rpmsg, lvds

You can also run the tdx-info command on your device to get detailed system information. More details about this tool are available at: Getting Device Information with Tdx-Info | Toradex Developer Center

Once I know your specific platform and OS version, I can provide targeted guidance for configuring the FRAMOS FSM:GO IMX662 on CSI2 channel 2 with your Verdin iMX8M Plus SoM.

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

Hi @MK_S2V!

Reviewing a device tree overlay is not straightforward, as it would require testing with the same hardware setup you have. Since you are using a custom carrier board, this is not possible on our side.

That said, we do have a single-channel overlay, and FRAMOS provides a dual-channel overlay for the iMX8M Plus EVK. You could use these as a starting point to compare against your overlay.

Additionally, we are not currently focused on porting or developing dual-channel overlays.

Best regards.