<?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: Linux device tree question - Use internal clock for SAI peripheral on IMX8 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1876276#M224252</link>
    <description>&lt;P&gt;No, the ICS43434 has no I2C/SPI interface. I removed the "@" and "reg=" in the codec defintion, those were copy/paste mistakes.&lt;BR /&gt;Do you think I shall put the codec under another node so that the clocks are correctly configured?&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 11:05:51 GMT</pubDate>
    <dc:creator>MasterFoo</dc:creator>
    <dc:date>2024-05-28T11:05:51Z</dc:date>
    <item>
      <title>Linux device tree question - Use internal clock for SAI peripheral on IMX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1867796#M223862</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a board with a ICS43434 microphone (I2S device) connected to SAI interface of an IMX8DX. Linux runs on that microprocessor. I'm kind of novice with device tree configuration and I'm struggling to find the correct configuration for the clocks. Whatever configuration I try I have no signal going out of the SAI pins (bit clock and word clock).&amp;nbsp;&lt;BR /&gt;I uploaded my device tree file. This is the output of&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;/sys/kernel/debug/clk/clk_summary when runnig arecord:&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clk.png" style="width: 936px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279314iA3A8342B375F6E26/image-size/large?v=v2&amp;amp;px=999" role="button" title="clk.png" alt="clk.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;arecord -l gives me a correct output:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arecordlist.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279315iC6B811EFA37803C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="arecordlist.png" alt="arecordlist.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;But I get the following error when recording: pcm_read:2221: read error: Input/output error&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;What is missing so that the SAI1 clock is enabled?&lt;BR /&gt;&lt;BR /&gt;Any help appreciated !&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 07:12:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1867796#M223862</guid>
      <dc:creator>MasterFoo</dc:creator>
      <dc:date>2024-05-17T07:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Linux device tree question - Use internal clock for SAI peripheral on IMX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1869483#M223993</link>
      <description>&lt;P&gt;Is your audio codec control by I2C? so put it under the I2C node.&lt;/P&gt;
&lt;P&gt;FYI. this is the evk device tree file.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/imx_5.4.70_2.3.0/arch/arm64/boot/dts/freescale/imx8x-mek.dtsi" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/imx_5.4.70_2.3.0/arch/arm64/boot/dts/freescale/imx8x-mek.dtsi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 07:54:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1869483#M223993</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2024-05-21T07:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Linux device tree question - Use internal clock for SAI peripheral on IMX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1876276#M224252</link>
      <description>&lt;P&gt;No, the ICS43434 has no I2C/SPI interface. I removed the "@" and "reg=" in the codec defintion, those were copy/paste mistakes.&lt;BR /&gt;Do you think I shall put the codec under another node so that the clocks are correctly configured?&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 11:05:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1876276#M224252</guid>
      <dc:creator>MasterFoo</dc:creator>
      <dc:date>2024-05-28T11:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Linux device tree question - Use internal clock for SAI peripheral on IMX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1876960#M224289</link>
      <description>&lt;P&gt;Have you try to measure the signals? is the clock correct?&lt;/P&gt;&lt;P&gt;You may try to set the mclkout0_lpcg to 12288000.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 07:51:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1876960#M224289</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2024-05-29T07:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Linux device tree question - Use internal clock for SAI peripheral on IMX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1877968#M224346</link>
      <description>&lt;P&gt;Yes, I'm measuring the signals (all 3 pins on I2S) and there is no clock at all. I tried many clocks rates including&amp;nbsp;&lt;SPAN&gt;12288000,&lt;BR /&gt;I think that I'm maybe misunderstanding what clocks, assigned-clocks and assigned-clock-parents mean...&lt;BR /&gt;And what I should set for sai1, the codec and the sound entry in the device tree. The others example I found while googling seem to use an external clock for the master clock, but I need to use the SAI master clock.&lt;BR /&gt;With the attached version of DTS I can see now&amp;nbsp;sai1_lpcg_mclk enabled. But still no signals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MasterFoo_0-1717065966159.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281749i18384DDF8226FAEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MasterFoo_0-1717065966159.png" alt="MasterFoo_0-1717065966159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 10:46:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1877968#M224346</guid>
      <dc:creator>MasterFoo</dc:creator>
      <dc:date>2024-05-30T10:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Linux device tree question - Use internal clock for SAI peripheral on IMX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1879330#M224451</link>
      <description>&lt;P&gt;Please try to set like this:&lt;/P&gt;
&lt;P&gt;simple-audio-card,bitclock-master = &amp;lt;&amp;amp;cpudai&amp;gt;;&lt;BR /&gt;simple-audio-card,frame-master = &amp;lt;&amp;amp;cpudai&amp;gt;;&lt;/P&gt;
&lt;P&gt;cpudai: simple-audio-card,cpu {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sound-dai = &amp;lt;&amp;amp;sai1&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 02:21:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1879330#M224451</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2024-06-03T02:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Linux device tree question - Use internal clock for SAI peripheral on IMX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1879539#M224474</link>
      <description>Thank you so much!</description>
      <pubDate>Mon, 03 Jun 2024 07:14:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-device-tree-question-Use-internal-clock-for-SAI-peripheral/m-p/1879539#M224474</guid>
      <dc:creator>MasterFoo</dc:creator>
      <dc:date>2024-06-03T07:14:51Z</dc:date>
    </item>
  </channel>
</rss>

