imx8m mini change mipi csi mclk frequency

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8m mini change mipi csi mclk frequency

1,577 Views
chinaman
Fresh Out Contributor

Hi,everyone:

    I am now developing a project with imx8mm,the bsp version is 4.14.98. My mipi camera sensor needs 50m MCLK,

   so I change the value in fsl-imx8mm-evk.dts like the following,but it doesn't work.Is there anything else I need to         change?

        snappy_mipi: snappy_mipi@3c {
               compatible = "ovti,snappy_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>, <50000000>;
               csi_id = <0>;
               pwn-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
               mclk = <50000000>;
               mclk_source = <0>;
               port {
                     ov5640_mipi1_ep: endpoint {
                     remote-endpoint = <&mipi1_sensor_ep>;
                      };
               };
         };

手动阀
Labels (1)
0 Kudos
2 Replies

1,508 Views
igorpadykov
NXP Employee
NXP Employee

Hi songrui2008@126.com

using IMX8MM_CLK_24M [24MHz] as parent seems it is not possible to derive

from it 50MHz, assigned-clock-rates = <0>, <50000000>;

One can try other clock sources in clk driver, imx8mm_clko1_sels[]

clk-imx8mm.c\imx\clk\drivers - linux-imx - i.MX Linux kernel 

some examples can be found in https://community.nxp.com/thread/518949 

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

0 Kudos

1,508 Views
chinaman
Fresh Out Contributor

Dear igorpadykov:

     Thank you for your reply,I'll try it now.

手动阀
0 Kudos