AnsweredAssumed Answered

IMX8MM - MIPI CSI 

Question asked by Santhosh Kumar on Jul 31, 2020
Latest reply on Aug 7, 2020 by Santhosh Kumar

Hi,

 The IMX8MM board configuration fsl-imx8mm-evk.dts file is configured to mipi ov5640 camera.

 

I am using high defination HDMI camera and using bridge IC  converting from HDMI to MIPI data. The MIPI has three data lane and clock is generated from the source itself. so how to modify this for my application

(Camera and Bridge IC datasheet attached)

 

The current setting in fsl-imx8mm-evk.dts for mipi ov5640 camera are as below.

------------------------------------------------------------------------------------------------------------------------------------------------------

&mipi_csi_1 {
    #address-cells = <1>;
    #size-cells = <0>;
    status = "okay";
    port {
        mipi1_sensor_ep: endpoint1 {
            remote-endpoint = <&ov5640_mipi1_ep>;
            data-lanes = <2>;
            csis-hs-settle = <13>;
            csis-clk-settle = <2>;
            csis-wclk;
        };

 

 

        csi1_mipi_ep: endpoint2 {
            remote-endpoint = <&csi1_ep>;
        };
    };
};

    ov5640_mipi: ov5640_mipi@3c {
        compatible = "ovti,ov5640_mipi";
        reg = <0x3c>;
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_csi_pwn>, <&pinctrl_csi_rst>;
        clocks = <&clk IMX8MM_CLK_CLKO1_DIV>;
        clock-names = "csi_mclk";
        assigned-clocks = <&clk IMX8MM_CLK_CLKO1_SRC>,
                  <&clk IMX8MM_CLK_CLKO1_DIV>;
        assigned-clock-parents = <&clk IMX8MM_CLK_24M>;
        assigned-clock-rates = <0>, <24000000>;
        csi_id = <0>;
        pwn-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
        mclk = <24000000>;
        mclk_source = <0>;
        port {
            ov5640_mipi1_ep: endpoint {
                remote-endpoint = <&mipi1_sensor_ep>;
            };
        };
    };

Outcomes