<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi there,</p>
    <p>I'm developing a device based on iMX6UL and I need to enabled
      SAI1 with MCLK as output (generated internally). I define SAI1 and
      iomuxc as follows above and I can see in .../pinctrl-maps file
      that those pins have been asigned to SAI1. But I can't get this
      signals in the oscilloscope (neither MCLK). Have any of you
      experience with this? <br>
    </p>
    <p>Regards!<br>
    </p>
    <p><i><b>imx6ul.dtsi:</b></i><br>
    </p>
    <p>    Â Â Â  Â Â Â  Â Â Â  sai1: sai@02028000 {<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  compatible = "fsl,imx6ul-sai",<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â  "fsl,imx6sx-sai";<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  reg = <0x02028000 0x4000>,
      <0x02028008 0x0500>;<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  interrupts = <GIC_SPI 97
      IRQ_TYPE_LEVEL_HIGH>;<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  clocks = <&clks
      IMX6UL_CLK_SAI1_IPG>,<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â <&clks IMX6UL_CLK_DUMMY>,<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â <&clks IMX6UL_CLK_SAI1>,<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â <&clks 0>, <&clks 0>;<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  clock-names = "bus", "mclk0", "mclk1",
      "mclk2", "mclk3";<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  dma-names = "rx", "tx";<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  dmas = <&sdma 35 24 0>,
      <&sdma 36 24 0>;<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  status = "disabled";<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  };</p>
    <p><br>
    </p>
    <p><b><i>my_board.dtsi:</i></b></p>
    <p>&sai1 {<br>
      Â Â Â  pinctrl-names = "default";<br>
      Â Â Â  pinctrl-0 = <&pinctrl_sai1>;<br>
      Â Â Â  assigned-clocks = <&clks
      IMX6UL_CLK_SAI1_SEL>,<&clks IMX6UL_CLK_SAI1>;<br>
      Â Â Â  assigned-clock-parents = <&clks
      IMX6UL_CLK_PLL4_AUDIO_DIV>;<br>
      Â Â Â  assigned-clock-rates = <0>, <11289600>;<br>
      Â Â Â  status = "okay";<br>
      };<b><i><br>
        </i></b></p>
    <p>&iomuxc{</p>
    <p><i>...</i><b><i><br>
        </i></b></p>
    <p>    Â Â Â  pinctrl_sai1: sai1grp {<br>
      Â Â Â  Â Â Â  Â Â Â  fsl,pins = <<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  MX6UL_PAD_CSI_DATA05__SAI1_TX_BCLK    0x11088<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  MX6UL_PAD_CSI_DATA04__SAI1_TX_SYNC    0x17088<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  MX6UL_PAD_CSI_DATA06__SAI1_RX_DATA    0x11088<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  MX6UL_PAD_CSI_DATA07__SAI1_TX_DATA    0x11088<br>
      Â Â Â  Â Â Â  Â Â Â  Â Â Â  MX6UL_PAD_CSI_DATA01__SAI1_MCLK    Â Â Â  0x17088   
      Â Â Â  /*Pruebas*/<br>
      Â Â Â  Â Â Â  Â Â Â  >;<br>
      Â Â Â  Â Â Â  };</p>
    <p>...</p>
    <p>};<br>
    </p>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <title></title>
      <meta name="generator" content="LibreOffice 5.1.4.2 (Linux)">
      <meta name="created" content="00:00:00">
      <meta name="changed" content="2016-12-15T19:00:09.272021878">
      <style type="text/css">
                a:link { color: #0000ff }
        </style>
      <hr>
      <table style="page-break-before: always" cellspacing="0"
        cellpadding="0" width="552">
        <colgroup><col width="200"> <col width="200"> <col width="200">
        </colgroup><tbody>
          <tr valign="top">
            <td style="border: none; padding: 0cm" width="200"
              height="79">
              <p style="margin-bottom: 0cm"><font face="verdana,
                  sans-serif"><font style="font-size: 10pt" size="1"><b>Stefano
                      Zuin Castillo</b></font></font><br>
                <font face="verdana, sans-serif"><font style="font-size:
                    9pt" size="1"> Ingeniero de Software <br>
                    email: <a href="mailto:szuin@kiversal.com">szuin@kiversal.com</a>
                    <br>
                    Tel: +34 93 551 14 94 <br>
                  </font></font></p>
            </td>
            <td style="border: none; padding: 0cm" width="200">
              <p align="center"><img
                  src="cid:part2.CB86A944.5A35E56A@kiversal.com"
                  name="Imagen 4" border="0" align="bottom" hspace="1"
                  width="112" height="65"> </p>
            </td>
            <td style="border: none; padding: 0cm" width="200">
              <p style="margin-bottom: 0cm"><font face="verdana,
                  sans-serif"><font style="font-size: 9pt" size="2"><b>DEVIMETRIX,
                      S.L.</b></font></font><br>
                <font face="verdana, sans-serif"><font style="font-size:
                    9pt" size="2"> C/ Llacuna 162, módulo 118</font></font><br>
                <font face="verdana, sans-serif"><font style="font-size:
                    9pt" size="2">08018 Barcelona (SPAIN)</font></font><br>
                <a href="http://www.kiversal.com/"><font face="verdana,
                    sans-serif"><font style="font-size: 9pt" size="2">www.kiversal.com</font></font></a></p>
            </td>
          </tr>
        </tbody>
      </table>
      <p style="margin-bottom: 0cm"><br>
      </p>
    </div>
  </body>
</html>
<br><hr><font size="1" face="verdana">Este correo electrónico y sus documentos adjuntos contienen información privilegiada, personal y estrictamente confidencial, y está prohibida la copia, reenvío o utilización de la información.<br>Si usted no es la persona destinataria del presente mensaje, no está autorizada a leerlo, retenerlo o difundirlo.<br><br>This e-mail and its attachments are privileged, confidential and contain private information, and any sending, using or copy of its information is prohibited.<br>Any person other than its intended recipient is not authorised to read, retain or distribute this information.<br></font><hr><br>