<?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 How to use SAI1 in master mode for IMX7D with Linux 4.14.98 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-SAI1-in-master-mode-for-IMX7D-with-Linux-4-14-98/m-p/1624720#M203438</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;We are using imx7D for our prototype board and trying to interface with TLV320DAC3100.&lt;BR /&gt;We have connected SAI1 to the codec. I want to generate MCLK from SAI1. When the kernel boots, I can see the clock on the MCLK pin for 2 seconds, and then it turns off. Can somebody please verify if my device tree is right, and if not, how to correct it?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;sai1 {
pinctrl-names = "default";
pinctrl-0 = &amp;lt;&amp;amp;pinctrl_sai1&amp;gt;;
assigned-clocks = &amp;lt;&amp;amp;clks IMX7D_SAI1_ROOT_SRC&amp;gt;,
&amp;lt;&amp;amp;clks IMX7D_SAI1_ROOT_CLK&amp;gt;;
assigned-clock-parents = &amp;lt;&amp;amp;clks IMX7D_PLL_AUDIO_POST_DIV&amp;gt;;
assigned-clock-rates = &amp;lt;0&amp;gt;, &amp;lt;24576000&amp;gt;;
fsl,sai-mclk-direction-output;
fsl,sai-synchronous-rx;
status = "okay";
};


pinctrl_sai1: sai1grp {
fsl,pins = &amp;lt;
MX7D_PAD_SAI1_MCLK__SAI1_MCLK 0x1f
MX7D_PAD_ENET1_RX_CLK__SAI1_TX_BCLK 0x1f
MX7D_PAD_ENET1_CRS__SAI1_TX_SYNC 0x1f
MX7D_PAD_ENET1_COL__SAI1_TX_DATA0 0x30
&amp;gt;;
};



sound {
compatible = "simple-audio-card";
simple-audio-card,name = "Audio Output";
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = &amp;lt;&amp;amp;sound_codec&amp;gt;;
simple-audio-card,frame-master = &amp;lt;&amp;amp;sound_codec&amp;gt;;
simple-audio-card,widgets =
"Headphone", "Headphone Jack",
"Speaker", "speakerOut";
simple-audio-card,routing =
"Headphone Jack", "HPL",
"Headphone Jack", "HPR",
"speakerOut", "SPK";
simple-audio-card,cpu {
sound-dai = &amp;lt;&amp;amp;sai1&amp;gt;;
};

sound_codec: simple-audio-card,codec {
sound-dai = &amp;lt;&amp;amp;codec1&amp;gt;;
clocks = &amp;lt;&amp;amp;clks IMX7D_SAI1_ROOT_SRC&amp;gt;;
};
};



codec1: codec@18 {
compatible = "ti,tlv320dac3100";
pinctrl-names = "default";
pinctrl-0 = &amp;lt;&amp;amp;pinctrl_codec1&amp;gt;;
reg = &amp;lt;0x18&amp;gt;;
#sound-dai-cells = &amp;lt;0&amp;gt;;
HPVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
SPRVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
SPLVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
AVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
IOVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
DVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
gpio-reset = &amp;lt;&amp;amp;gpio6 12 GPIO_ACTIVE_HIGH&amp;gt;;
status = "okay";
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 01:58:10 GMT</pubDate>
    <dc:creator>asmaa</dc:creator>
    <dc:date>2023-03-30T01:58:10Z</dc:date>
    <item>
      <title>How to use SAI1 in master mode for IMX7D with Linux 4.14.98</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-SAI1-in-master-mode-for-IMX7D-with-Linux-4-14-98/m-p/1624720#M203438</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;We are using imx7D for our prototype board and trying to interface with TLV320DAC3100.&lt;BR /&gt;We have connected SAI1 to the codec. I want to generate MCLK from SAI1. When the kernel boots, I can see the clock on the MCLK pin for 2 seconds, and then it turns off. Can somebody please verify if my device tree is right, and if not, how to correct it?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;sai1 {
pinctrl-names = "default";
pinctrl-0 = &amp;lt;&amp;amp;pinctrl_sai1&amp;gt;;
assigned-clocks = &amp;lt;&amp;amp;clks IMX7D_SAI1_ROOT_SRC&amp;gt;,
&amp;lt;&amp;amp;clks IMX7D_SAI1_ROOT_CLK&amp;gt;;
assigned-clock-parents = &amp;lt;&amp;amp;clks IMX7D_PLL_AUDIO_POST_DIV&amp;gt;;
assigned-clock-rates = &amp;lt;0&amp;gt;, &amp;lt;24576000&amp;gt;;
fsl,sai-mclk-direction-output;
fsl,sai-synchronous-rx;
status = "okay";
};


pinctrl_sai1: sai1grp {
fsl,pins = &amp;lt;
MX7D_PAD_SAI1_MCLK__SAI1_MCLK 0x1f
MX7D_PAD_ENET1_RX_CLK__SAI1_TX_BCLK 0x1f
MX7D_PAD_ENET1_CRS__SAI1_TX_SYNC 0x1f
MX7D_PAD_ENET1_COL__SAI1_TX_DATA0 0x30
&amp;gt;;
};



sound {
compatible = "simple-audio-card";
simple-audio-card,name = "Audio Output";
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = &amp;lt;&amp;amp;sound_codec&amp;gt;;
simple-audio-card,frame-master = &amp;lt;&amp;amp;sound_codec&amp;gt;;
simple-audio-card,widgets =
"Headphone", "Headphone Jack",
"Speaker", "speakerOut";
simple-audio-card,routing =
"Headphone Jack", "HPL",
"Headphone Jack", "HPR",
"speakerOut", "SPK";
simple-audio-card,cpu {
sound-dai = &amp;lt;&amp;amp;sai1&amp;gt;;
};

sound_codec: simple-audio-card,codec {
sound-dai = &amp;lt;&amp;amp;codec1&amp;gt;;
clocks = &amp;lt;&amp;amp;clks IMX7D_SAI1_ROOT_SRC&amp;gt;;
};
};



codec1: codec@18 {
compatible = "ti,tlv320dac3100";
pinctrl-names = "default";
pinctrl-0 = &amp;lt;&amp;amp;pinctrl_codec1&amp;gt;;
reg = &amp;lt;0x18&amp;gt;;
#sound-dai-cells = &amp;lt;0&amp;gt;;
HPVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
SPRVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
SPLVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
AVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
IOVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
DVDD-supply = &amp;lt;&amp;amp;audio_3v3&amp;gt;;
gpio-reset = &amp;lt;&amp;amp;gpio6 12 GPIO_ACTIVE_HIGH&amp;gt;;
status = "okay";
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 01:58:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-SAI1-in-master-mode-for-IMX7D-with-Linux-4-14-98/m-p/1624720#M203438</guid>
      <dc:creator>asmaa</dc:creator>
      <dc:date>2023-03-30T01:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SAI1 in master mode for IMX7D with Linux 4.14.98</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-SAI1-in-master-mode-for-IMX7D-with-Linux-4-14-98/m-p/1625717#M203514</link>
      <description>&lt;P&gt;pls refer to the topic as below:&lt;/P&gt;
&lt;P&gt;"&lt;A href="https://community.nxp.com/t5/i-MX-Processors/iMX6UL-define-sai1-as-master/m-p/707120&amp;quot;" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/iMX6UL-define-sai1-as-master/m-p/707120"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;"&lt;A href="https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690910" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/i-MX7D-SAI1-Slave-connection-to-codec-Master/m-p/690910&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 02:46:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-SAI1-in-master-mode-for-IMX7D-with-Linux-4-14-98/m-p/1625717#M203514</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-03-31T02:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SAI1 in master mode for IMX7D with Linux 4.14.98</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-SAI1-in-master-mode-for-IMX7D-with-Linux-4-14-98/m-p/1625727#M203515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The first link is not working, and the second link discussed SAI1 in slave mode.&lt;BR /&gt;I want to make SAI1 work in master mode.&lt;BR /&gt;&lt;BR /&gt;Could you please help me to make SAI1 work in master mode for IMX7D?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asma&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 02:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-SAI1-in-master-mode-for-IMX7D-with-Linux-4-14-98/m-p/1625727#M203515</guid>
      <dc:creator>asmaa</dc:creator>
      <dc:date>2023-03-31T02:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SAI1 in master mode for IMX7D with Linux 4.14.98</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-SAI1-in-master-mode-for-IMX7D-with-Linux-4-14-98/m-p/1628922#M203812</link>
      <description>&lt;P&gt;the first link to remove " in the end, try again&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/iMX6UL-define-sai1-as-master/m-p/707120" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/iMX6UL-define-sai1-as-master/m-p/707120&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 08:34:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-SAI1-in-master-mode-for-IMX7D-with-Linux-4-14-98/m-p/1628922#M203812</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-04-06T08:34:14Z</dc:date>
    </item>
  </channel>
</rss>

