<?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 enable SAI MCLK on iMX8MP? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1508222#M193990</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52883"&gt;@ensc&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I think there is no dependency of MCLK on I2C to work.&lt;/P&gt;
&lt;P&gt;Could you please confirm at your end if there is something that you are missing related to any pins/GPIOs or&amp;nbsp;SGTL5000?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 11:33:47 GMT</pubDate>
    <dc:creator>Dhruvit</dc:creator>
    <dc:date>2022-08-18T11:33:47Z</dc:date>
    <item>
      <title>How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1495731#M193059</link>
      <description>&lt;P&gt;What is required to output a clock e.g. on the `SAI2_MCLK` pin?&lt;/P&gt;&lt;P&gt;With iMX8MM, the clock started immediately after iomux have been configured.&amp;nbsp; E.g. in barebox bootloader I see the signal after&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mw 0x303301c8 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But on iMX8MP the signal stays static&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mw 0x303a00d8 32    ## power up audio block
mw 0x303301b4 0     ## ALT0_AUDIOMIX_SAI2_MCLK&lt;/LI-CODE&gt;&lt;P&gt;and can be toggled by changing pull up/down settings&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mw 0x30330414 0x140     ## signal becomes high
mw 0x30330414 0x100     ## signal becomes low&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clocks are enabled, audio_blk_ctrl controller is having power-on settings and I enabled MOE in SAI MCTL:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&lt;LI-EMOJI id="lia_confused-face" title=":confused_face:"&gt;&lt;/LI-EMOJI&gt; md 0x30384650  
30384650: 00000003 00000003 00000003 00000003                ................

:/ md 0x30e20000+8  
30e20000: ff777777 0000003f                                  www.?...

:/ md 0x30e20300+0x20
30e20300: 00000000 00000000 00000000 00000000                ................
30e20310: 00000000 00000000 00000000 00000000                ................

:/ md 0x30c20100          
30c20100: 80000000 00000000 xxxxxxxx xxxxxxxx                ................&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What has to be configured else to output the MCLK signal?&amp;nbsp; I require it for using an SGTL5000 which needs MCLK for its i2c communication.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 16:35:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1495731#M193059</guid>
      <dc:creator>ensc</dc:creator>
      <dc:date>2022-07-26T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1508222#M193990</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52883"&gt;@ensc&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I think there is no dependency of MCLK on I2C to work.&lt;/P&gt;
&lt;P&gt;Could you please confirm at your end if there is something that you are missing related to any pins/GPIOs or&amp;nbsp;SGTL5000?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 11:33:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1508222#M193990</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2022-08-18T11:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1508270#M193998</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;I think there is no dependency of MCLK on I2C to work.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;MCLK &lt;STRONG&gt;is&lt;/STRONG&gt; required; see Table 7 "Dynamic Electrical Characteristics", note 1&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The SGTL5000 has an internal reset that is deasserted 8 SYS_MCLK cycles after all power rails have been brought up. After this time, communication can start.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and figure 4 "Power Up Timing"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ensc_1-1660829353535.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190633i452868AC69EDFE1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ensc_1-1660829353535.png" alt="ensc_1-1660829353535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But this question is about the iMX8MP;&amp;nbsp; I want to know how to generate SAI MCLK there.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 13:30:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1508270#M193998</guid>
      <dc:creator>ensc</dc:creator>
      <dc:date>2022-08-18T13:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1508280#M193999</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52883"&gt;@ensc&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try playing/recording something first to make SAI work?&lt;/P&gt;
&lt;P&gt;For example, with default i.MX8MP evk, when I use the wm8960 for playback, SAI3 will be used, then I can read the register like,&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;ot@imx8mpevk:~# /unit_tests/memtool 30e20000 1
E
Reading 0x1 count starting at address 0x30E20000

0x30E20000:  04000300&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 13:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1508280#M193999</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2022-08-18T13:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1508290#M194001</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Could you please try playing/recording something first to make SAI work?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The problem is, that I can not play or record anything because I can not initialize the SGTL5000 due to the missing SAI_MCLK.&lt;/P&gt;&lt;P&gt;With iMX8MM on a similar hardware, this clock was easy to generate just by setting iomux.&amp;nbsp; This does not work anymore with iMX8MP.&lt;/P&gt;&lt;P&gt;What have I to do for generating SAI_MCLK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;For example, with default i.MX8MP evk, when I use the wm8960 for playback&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I do not know the wm8960; perhaps its I2C works without the global mclk.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 13:49:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1508290#M194001</guid>
      <dc:creator>ensc</dc:creator>
      <dc:date>2022-08-18T13:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1514416#M194503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52883"&gt;@ensc&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I have sent the additional details over email.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 07:10:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1514416#M194503</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2022-08-31T07:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1557106#M197761</link>
      <description>Can you see a solution to this problem? I have the same situation, the sgtl5000 works fine on the imx8mm board, since a normal clock is generated (MCLK - SAI3), but on the imx8mp board the clock does not work, as a result, there is no i2c device.</description>
      <pubDate>Mon, 21 Nov 2022 10:30:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1557106#M197761</guid>
      <dc:creator>VoVan</dc:creator>
      <dc:date>2022-11-21T10:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1557132#M197764</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;`FSL_SAI_MCTL_MCLK_EN` + `FSL_SAI_CSR_TERE` must be enabled to generate the clock.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I solved it by making SAI a clock provider and enable MCLK in sgtl5000 when needed.&lt;/P&gt;&lt;P&gt;- &lt;A href="https://git.data-modul.com/i.mx8mm-std-mirror/components/kernel/-/commit/6dc48366bd8ce5778183ac0d5ed967e346334246" target="_blank" rel="noopener"&gt;https://git.data-modul.com/i.mx8mm-std-mirror/components/kernel/-/commit/6dc48366bd8ce5778183ac0d5ed967e346334246&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="https://git.data-modul.com/i.mx8mm-std-mirror/components/kernel/-/commit/9521345a094391fcab628aedcf7f6ace58f49bd0" target="_blank" rel="noopener"&gt;https://git.data-modul.com/i.mx8mm-std-mirror/components/kernel/-/commit/9521345a094391fcab628aedcf7f6ace58f49bd0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="https://git.data-modul.com/i.mx8mm-std-mirror/components/kernel/-/commit/dae9f931fb1472a410383cd257048b2b9cf049b3" target="_blank" rel="noopener"&gt;https://git.data-modul.com/i.mx8mm-std-mirror/components/kernel/-/commit/dae9f931fb1472a410383cd257048b2b9cf049b3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="https://git.data-modul.com/i.mx8mm-std-mirror/components/kernel/-/commit/49e16c26682b54bff23ffce4ec4446c88a3d3a70" target="_blank" rel="noopener"&gt;https://git.data-modul.com/i.mx8mm-std-mirror/components/kernel/-/commit/49e16c26682b54bff23ffce4ec4446c88a3d3a70&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="https://git.data-modul.com/i.mx8mm-std-mirror/meta-dmo-imx8/-/blob/ac485fc6d075520aa0f27c6a54865a2b0664b30f/recipes-bsp/devicetree/dtree/imx8mp-dmo-sbc__base.dtsi#L877" target="_blank" rel="noopener"&gt;https://git.data-modul.com/i.mx8mm-std-mirror/meta-dmo-imx8/-/blob/ac485fc6d075520aa0f27c6a54865a2b0664b30f/recipes-bsp/devicetree/dtree/imx8mp-dmo-sbc__base.dtsi#L877&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is racy like hell but works for now.&amp;nbsp; Future hardware will probably replace the SGTL5000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 11:12:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1557132#M197764</guid>
      <dc:creator>ensc</dc:creator>
      <dc:date>2022-11-21T11:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1557161#M197770</link>
      <description>Thanks, i'll try add this patches</description>
      <pubDate>Mon, 21 Nov 2022 11:59:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1557161#M197770</guid>
      <dc:creator>VoVan</dc:creator>
      <dc:date>2022-11-21T11:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1557768#M197840</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52883"&gt;@ensc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you resolved your issues?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 10:57:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1557768#M197840</guid>
      <dc:creator>edwardtyrrell</dc:creator>
      <dc:date>2022-11-22T10:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1825596#M221082</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can your sgtl5000 work properly? Can you provide your device tree configuration? Currently, I followed your patch, but there is still no mclk output.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 01:40:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/1825596#M221082</guid>
      <dc:creator>Eddy1</dc:creator>
      <dc:date>2024-03-12T01:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SAI MCLK on iMX8MP?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/2138380#M239456</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;I also have a problem to enable a clock output at SAI3_MCLK. In my case I need the clock for a first board hardware test before Linux&amp;nbsp; will be installed. My situation is that any access to the AUDIO_BLK_CTRL bock for example at address 0x30E20000 causes an "Synchronous Abort" exception. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Has someone a hint for me? Is some core clock missing or what else causes the exception? &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 12:08:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-SAI-MCLK-on-iMX8MP/m-p/2138380#M239456</guid>
      <dc:creator>siegfried_buerger</dc:creator>
      <dc:date>2025-07-22T12:08:35Z</dc:date>
    </item>
  </channel>
</rss>

