<?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: I2C with SDMA on i.MX6?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446951#M68970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi peterw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;IMX6DQRM&lt;/A&gt; Table A-1. SDMA Scripts Overview&lt;/P&gt;&lt;P&gt;shows available scripts. One can try scripts which&lt;/P&gt;&lt;P&gt;do not require fifo events, like ap_2_ap with&lt;/P&gt;&lt;P&gt;fixed address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-93891"&gt;SDMA ap_to_ap Fixed Scripts (i.MX6DQ)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 00:41:56 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2015-04-28T00:41:56Z</dc:date>
    <item>
      <title>I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446950#M68969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to get the I2C also working with the SDMA, like the example of the SPI? &lt;/P&gt;&lt;P&gt;The I2C has no equal registers like the SPI for DMA settings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any hints.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 15:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446950#M68969</guid>
      <dc:creator>peterw</dc:creator>
      <dc:date>2015-04-27T15:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446951#M68970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi peterw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;IMX6DQRM&lt;/A&gt; Table A-1. SDMA Scripts Overview&lt;/P&gt;&lt;P&gt;shows available scripts. One can try scripts which&lt;/P&gt;&lt;P&gt;do not require fifo events, like ap_2_ap with&lt;/P&gt;&lt;P&gt;fixed address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-93891"&gt;SDMA ap_to_ap Fixed Scripts (i.MX6DQ)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 00:41:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446951#M68970</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-04-28T00:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446952#M68971</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 will try it with the ap_2_ap script.&lt;/P&gt;&lt;P&gt;But using this I have to run a timer which transmits the data or&lt;/P&gt;&lt;P&gt;can I use one of the SDMA events e.g. SDMA_EVENT_I2C3_A from the sdma_event.h file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even what’s the different between SDMA_EVENT_I2C3_A and SDMA_EVENT_I2C3_B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446952#M68971</guid>
      <dc:creator>peterw</dc:creator>
      <dc:date>2015-04-28T12:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446953#M68972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi peterw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is explained in&lt;/P&gt;&lt;P&gt;Table 3-2. SDMA event mapping &lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;IMX6DQRM&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 13:03:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446953#M68972</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-04-28T13:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446954#M68973</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;I have seen the explanation in table 3-2 before but I don’t really understand this regarding the I2C.&lt;/P&gt;&lt;P&gt;Using the ap_2_ap_fixed works fine on usual RAM. But not on writing data to the DR register of the I2C.&lt;/P&gt;&lt;P&gt;Maybe a short fragment of my test code makes it clear:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chan_desc.script_addr = script_addr;&amp;nbsp; //(SDMA_AP_2_AP_FIXED)&lt;/P&gt;&lt;P&gt;chan_desc.dma_mask[0] = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // No event?? also not for I2C3???&lt;/P&gt;&lt;P&gt;chan_desc.dma_mask[1] = 0;&lt;/P&gt;&lt;P&gt;chan_desc.priority = SDMA_CHANNEL_PRIORITY_LOW;&lt;/P&gt;&lt;P&gt;chan_desc.gpr[0:7] = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bd.mode = SDMA_FLAGS_BUSY | SDMA_FLAGS_WRAP | (I2C_BUFFER_TEST &amp;lt;&amp;lt; 2);&lt;/P&gt;&lt;P&gt;bd.buf_addr = (uint32_t) src_buf_p;&lt;/P&gt;&lt;P&gt;bd.ext_buf_addr = (uint32_t)&amp;amp;i2cRegBase-&amp;gt;i2dr;&amp;nbsp; // Using I2C3 DR = 0x021A8010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I2C part:&lt;/P&gt;&lt;P&gt;HW_I2C_I2SR_WR(instance, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HW_I2C_I2CR_WR(instance, BM_I2C_I2CR_IEN);&lt;/P&gt;&lt;P&gt;HW_I2C_I2CR_WR(instance, BM_I2C_I2CR_IEN | BM_I2C_I2CR_MSTA | BM_I2C_I2CR_MTX);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sdma_channel_start(channel);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the ext_buf_addr to an RAM address everything works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 07:21:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446954#M68973</guid>
      <dc:creator>peterw</dc:creator>
      <dc:date>2015-04-29T07:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446955#M68974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi peterw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sdma is not working with i2c in official BSPs and&lt;/P&gt;&lt;P&gt;I am afraid, this was not tested.&lt;/P&gt;&lt;P&gt;My suggestion was just try and test it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 11:35:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446955#M68974</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-04-29T11:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446956#M68975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, when looking through the Linux I2C driver for the i.MX6 I saw that the driver supports DMA, however which of the SDMA channels would be suitable for rx and tx? In the SDMA event mapping, I see both channel 3 and 23 can have I2C3 as DMA source, if GPR0[6] and GPR0[1] is set. Both channel 5 and 10 can have I2C1 as DMA source but only one channel can have I2C2.&lt;/P&gt;&lt;P&gt;What's the reasoning behind this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could channel 3 be used as rx channel and 23 as tx channel in the i2c-imx driver or are they supposed to be used for something else? Would/should the ap_2_ap script be used to transfer &lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;DMA_MEM_TO_DEV and &lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;DMA_DEV_TO_MEM&lt;/SPAN&gt;&lt;/SPAN&gt;? I am referring to: &lt;A href="https://github.com/torvalds/linux/blob/master/drivers/i2c/busses/i2c-imx.c#L283" title="https://github.com/torvalds/linux/blob/master/drivers/i2c/busses/i2c-imx.c#L283"&gt;linux/i2c-imx.c at master · torvalds/linux · GitHub&lt;/A&gt; (Line 283)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 21:38:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446956#M68975</guid>
      <dc:creator>clemensgruber</dc:creator>
      <dc:date>2015-07-14T21:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446957#M68976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems these dma codes are for i.MX23/28.&lt;/P&gt;&lt;P&gt;Also there are no any references for i.MX6 on that link.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 02:13:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446957#M68976</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-07-15T02:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446958#M68977</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;do you mean SDMA scripts as you talk about the dma codes? What exactly are the difference between the SDMA on the MX23/28 and the MX6. Isn’t it the same DSP (StarCore) on every MX series? Referring to the reference manuals from MX23/35/53/6 the SDMA seems the same (except the missing CRC unit in MX6 why?). &lt;/P&gt;&lt;P&gt;Is it possible to get the assembler code (scripts) of the SDMA? For now I’m using the SDMA with the given binary scripts (SDK) for the SPI transfer which is working. &lt;/P&gt;&lt;P&gt;B/R&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 06:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446958#M68977</guid>
      <dc:creator>peterw</dc:creator>
      <dc:date>2015-07-15T06:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446959#M68978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.MX23/28 use own DMA engine, not SDMA,&lt;/P&gt;&lt;P&gt;quite different from SDMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 06:36:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446959#M68978</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-07-15T06:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446960#M68979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry was the MX25 my mistake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 06:57:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446960#M68979</guid>
      <dc:creator>peterw</dc:creator>
      <dc:date>2015-07-15T06:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446961#M68980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;​Hi Igor, but what are the I2C Events in the SDMA Event Mapping for? Those that are muxed with ECSPI Events etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any chance of leveraging SDMA for improving an I2C driver like i2c-imx which is working on the i.MX6 just without DMA support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 08:10:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446961#M68980</guid>
      <dc:creator>clemensgruber</dc:creator>
      <dc:date>2015-07-15T08:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446962#M68981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not aware of examples of I2C working with SDMA.&lt;/P&gt;&lt;P&gt;Regarding "any chance of leveraging SDMA" - as this is not part&lt;/P&gt;&lt;P&gt;of standard Freescale BSP, this can be done using Freescale Professional Services&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http://www.freescale.com/webapp/sps/site/overview.jsp?code=CW_PROFESSIONAL" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/site/overview.jsp?code=CW_PROFESSIONAL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 12:48:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446962#M68981</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-07-15T12:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with SDMA on i.MX6?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446963#M68982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peterw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you do any progress with the I2C SDMA? is it working now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 11:07:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I2C-with-SDMA-on-i-MX6/m-p/446963#M68982</guid>
      <dc:creator>AlbertoLiberal</dc:creator>
      <dc:date>2015-12-11T11:07:49Z</dc:date>
    </item>
  </channel>
</rss>

