<?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: Linux, imx6q SPI as slave</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705431#M109585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it goes:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v4.18.5&amp;amp;id=71abd29057cb17b6b9532421821dc443427399ed" title="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v4.18.5&amp;amp;id=71abd29057cb17b6b9532421821dc443427399ed"&gt;https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v4.18.5&amp;amp;id=71abd29057cb17b6b9532421821dc443427399ed&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2018 15:57:43 GMT</pubDate>
    <dc:creator>fabio_estevam</dc:creator>
    <dc:date>2018-09-04T15:57:43Z</dc:date>
    <item>
      <title>Linux, imx6q SPI as slave</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705426#M109580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have actually a MCU connected to imx6q, in the classic MISO-&amp;gt;MISO, MOSI-&amp;gt;MOSI. Actually Linux is master and MCU is salve. All works fine. I would try, and as far as i know, with same wiring it should be possible, an inversion of role. Linux slave and MCU master. About MCU side thing is simple.&amp;nbsp; About linux seems slave mode is not supported. Is this possible ? I found also a possible patch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://patchwork.kernel.org/patch/7266901/" title="https://patchwork.kernel.org/patch/7266901/"&gt;[v2,8/8] spi: imx: Add support for SPI Slave mode for imx53 and imx6 chips - Patchwork&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help to have imx6q as SPI configured as slave is appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 16:00:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705426#M109580</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2017-09-15T16:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Linux, imx6q SPI as slave</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705427#M109581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi angelo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can consider ecspi errata&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf" title="https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf"&gt;https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and try patches on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://lists.infradead.org/pipermail/linux-arm-kernel/2017-April/501262.html" title="http://lists.infradead.org/pipermail/linux-arm-kernel/2017-April/501262.html"&gt;http://lists.infradead.org/pipermail/linux-arm-kernel/2017-April/501262.html&lt;/A&gt;&amp;nbsp;&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>Fri, 15 Sep 2017 23:32:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705427#M109581</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-09-15T23:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Linux, imx6q SPI as slave</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705428#M109582</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 the support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I implemented a minimal spi-slave linux driver, it works fine. But there is something that is not clear from the errata and that maybe you can clarify.&lt;/P&gt;&lt;P&gt;I have IMX6QP6AVT1AA-SBAQ1636 (for mask reference).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) In the errata, and RM datasheet as well, it is said that for slave mode, SS_CTL bit must be set to 0 (no input chip select considered) and to always set BURST_LENGTH.&lt;/P&gt;&lt;P&gt;By the way, if from master side i fully disable CS and just set BURST_LENGTH on imx6q rx side, i can't get any rx interrupt happening. CS must anyway be generated at least as start of transfer, seems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) So, from1, if i keep master side toggling CS, it selects and de-select CS for each byte. In this new scenario i cannot in any way use&amp;nbsp;&lt;SPAN&gt;BURST_LENGTH&lt;SPAN&gt;&amp;nbsp;to have an interrupt f&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;or multiple bytes, seems the limit is the CS deselecting (going up) so max 1 byte actually.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;These 2 points above are someway confusing me, i thought i could read i.e. a burst of 160 bit (20 bytes) without any care on CS. But seems not.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Every clarification is welcome.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Angelo&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 08:28:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705428#M109582</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2017-10-02T08:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Linux, imx6q SPI as slave</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705429#M109583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mx6 slave driver support has been accepted recently:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/spi/spi-imx.c?h=next-20170929&amp;amp;id=71abd29057cb17b6b9532421821dc443427399ed" title="https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/spi/spi-imx.c?h=next-20170929&amp;amp;id=71abd29057cb17b6b9532421821dc443427399ed"&gt;https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/spi/spi-imx.c?h=next-20170929&amp;amp;id=71abd29057cb17b6b9532421821dc443427399ed&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try linux-next tree, that has this support in place?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 11:35:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705429#M109583</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2017-10-02T11:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Linux, imx6q SPI as slave</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705430#M109584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link is failure，could you attach a new link please？&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 08:12:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705430#M109584</guid>
      <dc:creator>afeionline</dc:creator>
      <dc:date>2018-09-04T08:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Linux, imx6q SPI as slave</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705431#M109585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it goes:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v4.18.5&amp;amp;id=71abd29057cb17b6b9532421821dc443427399ed" title="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v4.18.5&amp;amp;id=71abd29057cb17b6b9532421821dc443427399ed"&gt;https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v4.18.5&amp;amp;id=71abd29057cb17b6b9532421821dc443427399ed&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 15:57:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705431#M109585</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2018-09-04T15:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Linux, imx6q SPI as slave</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705432#M109586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2018 15:12:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-imx6q-SPI-as-slave/m-p/705432#M109586</guid>
      <dc:creator>afeionline</dc:creator>
      <dc:date>2018-09-09T15:12:21Z</dc:date>
    </item>
  </channel>
</rss>

