<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to disable MCLK ? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-disable-MCLK/m-p/1672476#M207843</link>
    <description>&lt;P&gt;the HW and dts I shared with you, just reminder you checking if you disable it correctly, how did you disable this&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2023 07:35:25 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2023-06-20T07:35:25Z</dc:date>
    <item>
      <title>How to disable MCLK ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-disable-MCLK/m-p/1670627#M207689</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;To rule out the impact of MCLK frequency to other high speed interfaces on our custom PCB based on iMX8MP, we have a need to enable/disable the MIPI-CSI2 camera driver in order to enable /disable the MCLK clock:&lt;/P&gt;&lt;P&gt;I re-built the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;ov5640_mipi_v2.c&lt;/STRONG&gt;&lt;/EM&gt; as loadable kernel module :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;diff --git a/arch/arm64/configs/imx_v8_defconfig b/arch/arm64/configs/imx_v8_defconfig
index a8a46508482d..a096230294d3 100644
--- a/arch/arm64/configs/imx_v8_defconfig
+++ b/arch/arm64/configs/imx_v8_defconfig
@@ -528,7 +528,7 @@ CONFIG_VIDEO_MXC_CAPTURE=y
 CONFIG_VIDEO_MX8_CAPTURE=y
 CONFIG_VIDEO_MXC_CSI_CAMERA=y
 CONFIG_MXC_MIPI_CSI=y
-CONFIG_MXC_CAMERA_OV5640_MIPI_V2=y
+CONFIG_MXC_CAMERA_OV5640_MIPI_V2=m
 CONFIG_V4L_MEM2MEM_DRIVERS=y
 CONFIG_SDR_PLATFORM_DRIVERS=y
 CONFIG_VIDEO_IMX219=m&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw the in remove() function, clk_disable_unprepare(sensor-&amp;gt;sensor_clk) is called. But the 24-MHz MCLK&amp;nbsp; still persists after &lt;STRONG&gt;rmmod&lt;/STRONG&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;static int ov5640_remove(struct i2c_client *client)
{
        struct v4l2_subdev *sd = i2c_get_clientdata(client);
        struct ov5640 *sensor = to_ov5640(client);

        v4l2_async_unregister_subdev(sd);

        clk_disable_unprepare(sensor-&amp;gt;sensor_clk);

        ov5640_power_down(sensor, 1);

        ov5640_regualtor_disable();

        return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know how to disable it completely during the removing of the module, please?&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;BR /&gt;Khang&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 23:02:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-disable-MCLK/m-p/1670627#M207689</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2023-06-15T23:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable MCLK ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-disable-MCLK/m-p/1671577#M207764</link>
      <description>&lt;P&gt;refer to the schematic&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joanxie_0-1687146571020.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228244i4EA322755F85E805/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joanxie_0-1687146571020.png" alt="joanxie_0-1687146571020.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the dts file set this already,&lt;/P&gt;
&lt;P&gt;pinctrl_csi_mclk: csi_mclk_grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX8MP_IOMUXC_GPIO1_IO15__CCM_CLKO2 0x50&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 03:51:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-disable-MCLK/m-p/1671577#M207764</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-06-19T03:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable MCLK ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-disable-MCLK/m-p/1671645#M207769</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Sorry that I did not catch what you meant.Did you mean that MCLK was enabled permanently by the relevant lines in dts file ?&lt;/P&gt;&lt;P&gt;I would like to know if there's any way to disable the MCLK&amp;nbsp; in runtime, please ?&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 06:42:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-disable-MCLK/m-p/1671645#M207769</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2023-06-19T06:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable MCLK ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-disable-MCLK/m-p/1672474#M207842</link>
      <description>&lt;P&gt;how did you set in the dts file? did you disable this camera in the dts? if yes, did you still measure the mclk 24M from this pin?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 07:33:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-disable-MCLK/m-p/1672474#M207842</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-06-20T07:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable MCLK ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-disable-MCLK/m-p/1672476#M207843</link>
      <description>&lt;P&gt;the HW and dts I shared with you, just reminder you checking if you disable it correctly, how did you disable this&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 07:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-disable-MCLK/m-p/1672476#M207843</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-06-20T07:35:25Z</dc:date>
    </item>
  </channel>
</rss>

