IMX8MM - MIPI CSI

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX8MM - MIPI CSI

3,441 次查看
santhosh2
Contributor IV

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>;
            };
        };
    };

0 项奖励
4 回复数

109 次查看
zohargolan
Contributor III

@santhosh2 

Did you end up with a solution to this problem? did you manage to config the system to work with a device which is master on the MIPI clock?

I am trying to deal with the same problem now

Thank you,

Zohar

0 项奖励

1,792 次查看
Hrithik
Contributor III

Hi @santhosh2 ,

We are stuck in a similar situation as you had faced with another cam.
Could you please guide us the way you resolved this issue?

Thanks.

0 项奖励

3,295 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Santhosh

for new camera driver adaptions one can look at below links

https://community.nxp.com/message/1342163?commentID=1342163#comment-1342163 

https://community.nxp.com/message/1312444?commentID=1312444#comment-1312444 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励

3,295 次查看
santhosh2
Contributor IV

Thanks igor,

In the fsl-imx8mm-evk.dts is configured such that the processor generates the clock. But in our case Our Camera will be generating the clock signal. Do let me know what changes i need to do in the below configuration for setting the clock as external clock

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>;
            };
        };

0 项奖励