<?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>i.MX ProcessorsのトピックRe: IMX6UL two SGTL5000</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692431#M107344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look at patch&lt;/P&gt;&lt;P&gt;&lt;A href="http://linuxppc-dev.ozlabs.narkive.com/pVUAOxGW/patch-0-2-asoc-fsl-make-snd-soc-imx-sgtl5000-driver-useable-on-i-mx6ul"&gt;http://linuxppc-dev.ozlabs.narkive.com/pVUAOxGW/patch-0-2-asoc-fsl-make-snd-soc-imx-sgtl5000-driver-useable-on-i-mx6ul&lt;/A&gt;&lt;/P&gt;&lt;P&gt;error "imx-sgtl5000 sound: mux-int-port missing or invalid" may mean that there may be left&lt;/P&gt;&lt;P&gt;entries from audmux-ssi, used&amp;nbsp; on i.MX6DQ/SDL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jul 2017 23:22:41 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-07-11T23:22:41Z</dc:date>
    <item>
      <title>IMX6UL two SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692430#M107343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background: What I'm trying to do is to add an additional SGTL5000 codec to my own motherboard PCB in additional to the one that already is present on my SOM board.&lt;/P&gt;&lt;P&gt;- The one on the SOM works fine by itself (Connected to SAI1 and I2C2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The canges I've made so far are the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Added an additional SGTL5000 on my board to SAI2 &amp;amp; I2C4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- The connections are exactly the same as for the one on the SOM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Made changes to the DTS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Made changes to a patch file that I think enables the MCLK&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;The DTS file (Changes in Red):&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sound {&lt;BR /&gt; compatible = "fsl,imx-audio-sgtl5000";&lt;BR /&gt; model = "imx6ul-sgtl5000";&lt;BR /&gt; audio-cpu = &amp;lt;&amp;amp;sai1&amp;gt;;&lt;BR /&gt; audio-codec = &amp;lt;&amp;amp;codec&amp;gt;;&lt;BR /&gt; audio-routing =&lt;BR /&gt; "LINE_IN", "Line In Jack",&lt;BR /&gt; "MIC_IN", "Mic Jack",&lt;BR /&gt; "Mic Jack", "Mic Bias",&lt;BR /&gt; "Headphone Jack", "HP_OUT";&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #ff0000;"&gt;sound2 {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; compatible = "fsl,imx-audio-sgtl5000";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; model = "imx6ul-sgtl5000";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; audio-cpu = &amp;lt;&amp;amp;sai2&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; audio-codec = &amp;lt;&amp;amp;codec2&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; audio-routing =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; "LINE_IN", "Line In Jack",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; "MIC_IN", "Mic Jack",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; "Mic Jack", "Mic Bias",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; "Headphone Jack", "HP_OUT";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; }; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;clks {&lt;BR /&gt; assigned-clocks = &amp;lt;&amp;amp;clks IMX6UL_CLK_PLL4_AUDIO_DIV&amp;gt;;&lt;BR /&gt; assigned-clock-rates = &amp;lt;786432000&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;amp;i2c4 {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; clock-frequency = &amp;lt;100000&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; pinctrl-names = "default";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c4&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; status = "okay";&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; codec2: sgtl5000@0a {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; reg = &amp;lt;0x0a&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; compatible = "fsl,sgtl5000";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; clocks = &amp;lt;&amp;amp;clks IMX6UL_CLK_SAI2&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; assigned-clocks = &amp;lt;&amp;amp;clks IMX6UL_CLK_SAI2_SEL&amp;gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; &amp;lt;&amp;amp;clks IMX6UL_CLK_SAI2&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; assigned-clock-parents = &amp;lt;&amp;amp;clks IMX6UL_CLK_PLL4_AUDIO_DIV&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; assigned-clock-rates = &amp;lt;0&amp;gt;, &amp;lt;24576000&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; gpr = &amp;lt;&amp;amp;gpr&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; VDDA-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; VDDIO-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; };&lt;/SPAN&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;i2c2 {&lt;BR /&gt; clock-frequency = &amp;lt;100000&amp;gt;;&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c2&amp;gt;;&lt;BR /&gt; status = "okay";&lt;/P&gt;&lt;P&gt;codec: sgtl5000@0a {&lt;BR /&gt; reg = &amp;lt;0x0a&amp;gt;;&lt;BR /&gt; compatible = "fsl,sgtl5000";&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks IMX6UL_CLK_SAI1&amp;gt;;&lt;BR /&gt; assigned-clocks = &amp;lt;&amp;amp;clks IMX6UL_CLK_SAI1_SEL&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX6UL_CLK_SAI1&amp;gt;;&lt;BR /&gt; assigned-clock-parents = &amp;lt;&amp;amp;clks IMX6UL_CLK_PLL4_AUDIO_DIV&amp;gt;;&lt;BR /&gt; assigned-clock-rates = &amp;lt;0&amp;gt;, &amp;lt;24576000&amp;gt;;&lt;BR /&gt; gpr = &amp;lt;&amp;amp;gpr&amp;gt;;&lt;BR /&gt; VDDA-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;;&lt;BR /&gt; VDDIO-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;amp;iomuxc {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_hog_1&amp;gt;;&lt;/P&gt;&lt;P&gt;imx6ul-nxpu-iopb {&lt;BR /&gt; pinctrl_hog_1: hoggrp-1 {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6UL_PAD_CSI_DATA01__SAI1_MCLK 0x17088 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;I wonder why this one is here and not in the SAI1grp?&lt;/SPAN&gt;&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;pinctrl_i2c1: i2c1grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6UL_PAD_GPIO1_IO02__I2C1_SCL 0x4001b8b0&lt;BR /&gt; MX6UL_PAD_GPIO1_IO03__I2C1_SDA 0x4001b8b0&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;pinctrl_i2c2: i2c2grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0&lt;BR /&gt; MX6UL_PAD_CSI_VSYNC__I2C2_SDA 0x4001b8b0&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;pinctrl_i2c4: i2c4grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6UL_PAD_ENET2_TX_DATA0__I2C4_SDA 0x4001b8b0&lt;BR /&gt; MX6UL_PAD_ENET2_RX_EN__I2C4_SCL 0x4001b8b0&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pinctrl_sai1: sai1grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6UL_PAD_CSI_DATA07__SAI1_TX_DATA 0x17088&lt;BR /&gt; MX6UL_PAD_CSI_DATA06__SAI1_RX_DATA 0x17088&lt;BR /&gt; MX6UL_PAD_CSI_DATA05__SAI1_TX_BCLK 0x17088&lt;BR /&gt; MX6UL_PAD_CSI_DATA04__SAI1_TX_SYNC 0x17088&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #ff0000;"&gt;pinctrl_sai2: sai2grp {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; fsl,pins = &amp;lt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; MX6UL_PAD_JTAG_TDI__SAI2_TX_BCLK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x17088&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; MX6UL_PAD_JTAG_TDO__SAI2_TX_SYNC &amp;nbsp; &amp;nbsp; &amp;nbsp;0x17088&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; MX6UL_PAD_JTAG_TRST_B__SAI2_TX_DATA 0x11088 /* 120b0 */ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; MX6UL_PAD_JTAG_TCK__SAI2_RX_DATA &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x11088 /* 130b0 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; MX6UL_PAD_JTAG_TMS__SAI2_MCLK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x17088&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; &amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;sai1 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_sai1&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;amp;sai2 {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; pinctrl-names = "default";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_sai2&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; status = "okay";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;Part of the Patch file:&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff --git a/sound/soc/Makefile b/sound/soc/Makefile&lt;BR /&gt;index 974ba70..63302d2 100644&lt;BR /&gt;--- a/sound/soc/Makefile&lt;BR /&gt;+++ b/sound/soc/Makefile&lt;BR /&gt;@@ -10,7 +10,6 @@ snd-soc-core-objs += soc-ac97.o&lt;BR /&gt; endif&lt;BR /&gt; &lt;BR /&gt; obj-$(CONFIG_SND_SOC) += snd-soc-core.o&lt;BR /&gt;-obj-$(CONFIG_SND_SOC) += codecs/&lt;BR /&gt; obj-$(CONFIG_SND_SOC) += generic/&lt;BR /&gt; obj-$(CONFIG_SND_SOC) += adi/&lt;BR /&gt; obj-$(CONFIG_SND_SOC) += atmel/&lt;BR /&gt;@@ -38,3 +37,4 @@ obj-$(CONFIG_SND_SOC) += tegra/&lt;BR /&gt; obj-$(CONFIG_SND_SOC) += txx9/&lt;BR /&gt; obj-$(CONFIG_SND_SOC) += ux500/&lt;BR /&gt; obj-$(CONFIG_SND_SOC) += xtensa/&lt;BR /&gt;+obj-$(CONFIG_SND_SOC) += codecs/&lt;BR /&gt;diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c&lt;BR /&gt;index 3a29c0a..e1d582a 100644&lt;BR /&gt;--- a/sound/soc/codecs/sgtl5000.c&lt;BR /&gt;+++ b/sound/soc/codecs/sgtl5000.c&lt;BR /&gt;@@ -29,6 +29,7 @@&lt;BR /&gt; #include &amp;lt;sound/soc.h&amp;gt;&lt;BR /&gt; #include &amp;lt;sound/soc-dapm.h&amp;gt;&lt;BR /&gt; #include &amp;lt;sound/initval.h&amp;gt;&lt;BR /&gt;+#include &amp;lt;linux/mfd/syscon.h&amp;gt;&lt;BR /&gt; &lt;BR /&gt; #include "sgtl5000.h"&lt;BR /&gt; &lt;BR /&gt;@@ -1428,11 +1429,14 @@ static int sgtl5000_fill_defaults(struct sgtl5000_priv *sgtl5000)&lt;BR /&gt; static int sgtl5000_i2c_probe(struct i2c_client *client,&lt;BR /&gt; const struct i2c_device_id *id)&lt;BR /&gt; {&lt;BR /&gt;+ struct device_node *gpr_np;&lt;BR /&gt;+ struct regmap *gpr;&lt;BR /&gt; struct sgtl5000_priv *sgtl5000;&lt;BR /&gt; int ret, reg, rev;&lt;BR /&gt; struct device_node *np = client-&amp;gt;dev.of_node;&lt;BR /&gt; u32 value;&lt;BR /&gt; &lt;BR /&gt;+&lt;BR /&gt; sgtl5000 = devm_kzalloc(&amp;amp;client-&amp;gt;dev, sizeof(*sgtl5000), GFP_KERNEL);&lt;BR /&gt; if (!sgtl5000)&lt;BR /&gt; return -ENOMEM;&lt;BR /&gt;@@ -1458,6 +1462,18 @@ static int sgtl5000_i2c_probe(struct i2c_client *client,&lt;BR /&gt; if (ret)&lt;BR /&gt; return ret;&lt;BR /&gt; &lt;BR /&gt;+ gpr_np = of_parse_phandle(client-&amp;gt;dev.of_node, "gpr", 0);&lt;BR /&gt;+ if (gpr_np) {&lt;BR /&gt;+ gpr = syscon_node_to_regmap(gpr_np);&lt;BR /&gt;+ if (IS_ERR(gpr)) {&lt;BR /&gt;+ ret = PTR_ERR(gpr);&lt;BR /&gt;+ dev_err(&amp;amp;client-&amp;gt;dev, "failed to get gpr regmap\n");&lt;BR /&gt;+ return ret;&lt;BR /&gt;+ }&lt;BR /&gt;+ /* set SAI1_MCLK_DIR to enable codec MCLK for imx6ul */&lt;BR /&gt;+ regmap_update_bits(gpr, 4, 1&amp;lt;&amp;lt;19, 1&amp;lt;&amp;lt;19);&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;+ regmap_update_bits(gpr, 4, 1&amp;lt;&amp;lt;20, 1&amp;lt;&amp;lt;20);&lt;/SPAN&gt;&lt;BR /&gt;+ }&lt;BR /&gt;+&lt;BR /&gt; /* Need 8 clocks before I2C accesses */&lt;BR /&gt; udelay(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- I assume that the&lt;SPAN style="color: #ff0000;"&gt; regmap_update_bits(gpr, 4, 1&amp;lt;&amp;lt;20, 1&amp;lt;&amp;lt;20);&amp;nbsp;&lt;SPAN style="color: #000000;"&gt;needs to be done here in order to set the direction for the SAI2 MCLK also?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;The error I get when booting linux is:&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fsl-asrc 2034000.asrc: driver registered&lt;BR /&gt;imx-sgtl5000 sound: mux-int-port missing or invalid&lt;BR /&gt;imx-sgtl5000: probe of sound failed with error -22&lt;BR /&gt;imx-sgtl5000 sound2: mux-int-port missing or invalid&lt;BR /&gt;imx-sgtl5000: probe of sound2 failed with error -22&lt;BR /&gt;sgtl5000 1-000a: sgtl5000 revision 0x11&lt;BR /&gt;sgtl5000: probe of 3-000a failed with error -5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and naturally later on:&lt;/P&gt;&lt;P&gt;ALSA device list:&lt;BR /&gt; No soundcards found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that now neither one of the Codecs are working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone point me in the right direction or enlighten me what I have missed or done wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If only the I2C works and there is no MCLK etc. Should I still be able to see the additional codec with, for example, i2cdetect? Because now I only see the codec connected to i2c2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Jonas&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 12:30:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692430#M107343</guid>
      <dc:creator>jonasnyberg</dc:creator>
      <dc:date>2017-07-11T12:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6UL two SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692431#M107344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look at patch&lt;/P&gt;&lt;P&gt;&lt;A href="http://linuxppc-dev.ozlabs.narkive.com/pVUAOxGW/patch-0-2-asoc-fsl-make-snd-soc-imx-sgtl5000-driver-useable-on-i-mx6ul"&gt;http://linuxppc-dev.ozlabs.narkive.com/pVUAOxGW/patch-0-2-asoc-fsl-make-snd-soc-imx-sgtl5000-driver-useable-on-i-mx6ul&lt;/A&gt;&lt;/P&gt;&lt;P&gt;error "imx-sgtl5000 sound: mux-int-port missing or invalid" may mean that there may be left&lt;/P&gt;&lt;P&gt;entries from audmux-ssi, used&amp;nbsp; on i.MX6DQ/SDL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 23:22:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692431#M107344</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-07-11T23:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6UL two SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692432#M107345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply and the link.&lt;/P&gt;&lt;P&gt;One question that confuses me is that, the codec on the SOM works perfectly alone (with the patch file above).&lt;/P&gt;&lt;P&gt;But, when I add the changes to the DTS and&amp;nbsp;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;+ regmap_update_bits(gpr, 4, 1&amp;lt;&amp;lt;20, 1&amp;lt;&amp;lt;20);&amp;nbsp;&lt;SPAN style="color: #000000;"&gt;in the patch, I get the above errors:&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;error "imx-sgtl5000 sound: mux-int-port missing or invalid".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN style="color: #000000;"&gt;Could it be something with loading the same driver two times? Or is it something else that has to be done for the SAI2 interface, and at the same time confuses the existing SAI1 configuration?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;If the Codec on my baseboard would be defect or some connections wrong I would expect the SOM codec to still work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;I have to cross-check this also by first removing the SOM codec from the DTS and only use the baseboard codec and see if the baseboard codec will work alone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;Jonas&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 06:35:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692432#M107345</guid>
      <dc:creator>jonasnyberg</dc:creator>
      <dc:date>2017-07-12T06:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6UL two SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692433#M107346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can check if regmap is changing sai configurations using gpr&lt;/P&gt;&lt;P&gt;registers described in Chapter 30 i.MX6UL Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 11:04:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692433#M107346</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-07-12T11:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6UL two SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692434#M107347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any easy way to read these registers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 08:31:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692434#M107347</guid>
      <dc:creator>jonasnyberg</dc:creator>
      <dc:date>2017-07-13T08:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6UL two SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692435#M107348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi Jonas&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;please try memtool&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;A href="https://community.nxp.com/thread/390743"&gt;https://community.nxp.com/thread/390743&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 10:28:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692435#M107348</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-07-13T10:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6UL two SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692436#M107349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the codec to work (Just writing here if anyone else struggles with something similar):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thing was a brainfart to enable the SAI1 &amp;amp; SAI2 clocks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This&lt;BR /&gt;""&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;+ regmap_update_bits(gpr, 4, 1&amp;lt;&amp;lt;19, 1&amp;lt;&amp;lt;19);&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff; border: 0px;"&gt;+ regmap_update_bits(gpr, 4, 1&amp;lt;&amp;lt;20, 1&amp;lt;&amp;lt;20);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff; border: 0px;"&gt;""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;Should of course be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f;"&gt;+ regmap_update_bits(gpr, 4, 3&amp;lt;&amp;lt;19, 3&amp;lt;&amp;lt;19);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f;"&gt;Otherwise we are moving all the previous bits again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f;"&gt;The other thing after that was a problem with the driver and LDO (VDDD) initialization because the driver was loaded two times.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f;"&gt;This can be solved with the following patch in this thread:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f;"&gt;&lt;A href="https://community.nxp.com/thread/377866"&gt;https://community.nxp.com/thread/377866&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Jonas&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thanks for your input Igor!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2017 09:20:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692436#M107349</guid>
      <dc:creator>jonasnyberg</dc:creator>
      <dc:date>2017-07-15T09:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6UL two SGTL5000</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692437#M107350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a trouble with the sgtl5000 on imx6ul board,too. And It also come out the error log just like "imx-sgtl5000 sound: mux-int-port missing or invalid imx-sgtl5000: probe of sound failed with error -22". As Igor said that there were&amp;nbsp; two path could solve this problem , but the link just have one path ,&amp;nbsp; could you provide the first path to me ? Thanks .&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 08:07:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-two-SGTL5000/m-p/692437#M107350</guid>
      <dc:creator>lemficb</dc:creator>
      <dc:date>2017-11-22T08:07:19Z</dc:date>
    </item>
  </channel>
</rss>

