<?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: VF5xx: DSPI and eDMA usage in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/VF5xx-DSPI-and-eDMA-usage/m-p/397315#M58326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, using DSPI with eDMA is _not_ reasonable on the current Vybrid processors due to the reasons, described in the community thread you're referring to.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Artur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 23 Sep 2015 07:29:31 GMT</pubDate>
    <dc:creator>art</dc:creator>
    <dc:date>2015-09-23T07:29:31Z</dc:date>
    <item>
      <title>VF5xx: DSPI and eDMA usage</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VF5xx-DSPI-and-eDMA-usage/m-p/397314#M58325</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;as stated in this link it is not recommended or possible to use the freescale dspi core with eDMA.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-thread-small" data-containerid="2023" data-containertype="14" data-objectid="323538" data-objecttype="1" href="https://community.freescale.com/thread/323538#407491"&gt;https://community.freescale.com/thread/323538#407491&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expieriences with the vybrid vf50 processor are very close to the described behaviour. I tried to use dspi with the default spi-fsl-dspi driver. Further I declared an mmc-spi-slot in our devicetree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;amp;dspi1 {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = "okay";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mmc-slot@0 {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "mmc-spi-slot";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; voltage-ranges = &amp;lt;3300 3300&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spi-max-frequency = &amp;lt;50000000&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsl,spi-cs-sck-delay = &amp;lt;100&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsl,spi-sck-cs-delay = &amp;lt;50&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This definetly doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The full mmc log gives me something like this in the sdcard init phase:&lt;/P&gt;&lt;P&gt;CMD0 -&amp;gt; sometimes ok, but also timeouts -&amp;gt; 40h (transmitted cmd-code to slave in hexa)&lt;/P&gt;&lt;P&gt;CMD8 -&amp;gt; sometimes ok, but also timeouts -&amp;gt; 48h (cmd code hexa)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All further commands have a systematic error, as could observed in a logic analyzer:&lt;/P&gt;&lt;P&gt;Eg. CMD58 -&amp;gt; never ok, transmitted api command should be: 40h+3Ah (58d) = 7Ah, oberserved transmitted cmd is: FA, the most significant bit is 1 not.&lt;/P&gt;&lt;P&gt;All further commands behave in the same way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first and working solution was to adapt the mmc_spi driver not using dma. So now it is working in pure PIO mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed this line&amp;nbsp; (approx. 1400)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (spi-&amp;gt;master-&amp;gt;dev.parent-&amp;gt;dma_mask) {&lt;/P&gt;&lt;P&gt;in something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (0) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the mmc_spi driver do not use dma transfers anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since these ops are very processor intensive task a dma capable spi driver would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further on I discovered a patchset starting here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://srv-ex.hoffrichter.de/owa/redir.aspx?C=246369b14d2049609a7cfc19d23901e7&amp;amp;URL=http%3a%2f%2flists.infradead.org%2fpipermail%2flinux-arm-kernel%2f2014-February%2f235597.html" target="_blank"&gt;http://lists.infradead.org/pipermail/linux-arm-kernel/2014-February/235597.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At time it is not applied in the mainline kernel. So I looked for a reason and found the freescale forum entry mentioned above.&lt;/P&gt;&lt;P&gt;As wiki says the dspi core of the vybrid processors is from the coldfire series. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you confirm these statements, is the usage of dspi and dma within current vybrid processor reasonable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Christian Stenzel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 13:33:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VF5xx-DSPI-and-eDMA-usage/m-p/397314#M58325</guid>
      <dc:creator>christianstenze</dc:creator>
      <dc:date>2015-09-21T13:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: VF5xx: DSPI and eDMA usage</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VF5xx-DSPI-and-eDMA-usage/m-p/397315#M58326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, using DSPI with eDMA is _not_ reasonable on the current Vybrid processors due to the reasons, described in the community thread you're referring to.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Artur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 23 Sep 2015 07:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VF5xx-DSPI-and-eDMA-usage/m-p/397315#M58326</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2015-09-23T07:29:31Z</dc:date>
    </item>
  </channel>
</rss>

