AnsweredAssumed Answered

Change freqency of mclk for ov5640_mipi with imx6dl

Question asked by Pham Van Dong on Jul 4, 2017
Latest reply on Mar 27, 2018 by Pham Van Dong

Hi,

 

Currently, We're doing EMC testing for our product that using imx6dl and camera ov5640.

Now, we want to change frequency of mclk for ov5640_mipi. It's default value is 24Mhz.

I tried change mclk with many difference value from device tree but it still got measuring result from Oscilloscope is 24Mhz.

    ov564x_mipi: ov564x_mipi@3c { /* i2c2 driver */
        compatible = "ovti,ov564x_mipi";
        reg = <0x3c>;
        clocks = <&clks 201>;
        clock-names = "csi_mclk";
        DOVDD-supply = <&vgen4_reg>; /* 1.8v */
        AVDD-supply = <&vgen3_reg>;  /* 2.8v, rev C board is VGEN3
                        rev B board is VGEN5 */
        DVDD-supply = <&vgen2_reg>;  /* 1.5v*/
        pwn-gpios = <&gpio1 19 1>;   /* active low: SD1_CLK */
        rst-gpios = <&gpio1 20 0>;   /* active high: SD1_DAT2 */
        csi_id = <1>;
        mclk = <12000000>;  /* default is 24000000 */
        mclk_source = <0>;
    };

 

My question is if above solutions is not correct . So, is there any way to change this frequency of mclk?

Kernel version we 're using is Linux 4.1.15.

 

Thanks & Best Regards,

Dong

Outcomes