<?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: i.MX6 DMA and ADC in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618862#M93750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Strahinja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid it can not be used. SDMA works with particular&lt;/P&gt;&lt;P&gt;module on specific bus (to which that peripheral connected), one&lt;/P&gt;&lt;P&gt;can look at Figure 43-1. SDMA Block Diagram i.MX6UL Reference Manual&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Very simplified, there are three buses: spba, burst dma, peripheral dma,&lt;/P&gt;&lt;P&gt;which have some number of connected peripherals. Each group is handled&lt;/P&gt;&lt;P&gt;by own script. Better sdma description is given in Table A-1. SDMA Scripts Overview&lt;/P&gt;&lt;P&gt;i.MX53 RM, so one can find for example two uart different scripts: Shared UART and UART.&lt;/P&gt;&lt;P&gt;One is connected on spba, other on peripheral dma. NAND is connected to own APBH-Bridge-DMA bus.&lt;/P&gt;&lt;P&gt;Also may be useful to check&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://billauer.co.il/blog/2011/10/imx-sdma-howto-memory-map/" title="http://billauer.co.il/blog/2011/10/imx-sdma-howto-memory-map/"&gt;Freescale i.MX SDMA tutorial (part I)&lt;/A&gt;&amp;nbsp;&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>Mon, 27 Mar 2017 11:03:27 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-03-27T11:03:27Z</dc:date>
    <item>
      <title>i.MX6 DMA and ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618859#M93747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using i.MX6UL processor and we need to have fast sapling of one ADC channel.&lt;/P&gt;&lt;P&gt;Since driver is not supporting DMA transfer vf60_adc, my idea was to implement IIO buffer and Dmaengine into the driver.&lt;/P&gt;&lt;P&gt;SDMA is responsigle for communication between memory and peripherals, but I never saw that DMA was used for ADC transfer.&lt;/P&gt;&lt;P&gt;Does sdma-imx6q.bin (script) supports this type of transfer or additional script should be written?&lt;/P&gt;&lt;P&gt;From device tree documentation, I think that this is not possible:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt" title="http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt"&gt;Linux/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt - Linux Cross Reference - Free Electrons&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case that is necessary to write new script, is there a free version of CodeWarrior and source code of&amp;nbsp;&lt;SPAN&gt;dma-imx6q.bin binary?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. I found some similar questions regardins SDMA:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/381053"&gt;Custom SDMA script to convert bayer image&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 16:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618859#M93747</guid>
      <dc:creator>strahinjavukovi</dc:creator>
      <dc:date>2017-03-24T16:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 DMA and ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618860#M93748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Strahinja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right, linux sdma supports limited number peripherals which are described on linux documentation on&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW"&gt;http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW&lt;/A&gt;&lt;/P&gt;&lt;P&gt;General approach for writing new script and adding sdma support for new peripheral is using Professional Services:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/support/nxp-professional-services:PROFESSIONAL-SERVICE"&gt;http://www.nxp.com/support/nxp-professional-services:PROFESSIONAL-SERVICE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortunately source code of&amp;nbsp;&lt;SPAN&gt;dma-imx6q.bin is not available, sorry.&lt;/SPAN&gt;&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>Sun, 26 Mar 2017 23:15:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618860#M93748</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-03-26T23:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 DMA and ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618861#M93749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since you confirmed that SDMA can`t perform ADC transfer, is it possible to do this using APBH-Bridge-DMA?&lt;/P&gt;&lt;P&gt;I know that this DMA is used for NAND, but for what other peripherals can be used? In reference maunal is written "memory-mapped I/O to the APB device", but I am not certain what that means. Can you clarify this for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Strahinja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 08:59:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618861#M93749</guid>
      <dc:creator>strahinjavukovi</dc:creator>
      <dc:date>2017-03-27T08:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 DMA and ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618862#M93750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Strahinja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid it can not be used. SDMA works with particular&lt;/P&gt;&lt;P&gt;module on specific bus (to which that peripheral connected), one&lt;/P&gt;&lt;P&gt;can look at Figure 43-1. SDMA Block Diagram i.MX6UL Reference Manual&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Very simplified, there are three buses: spba, burst dma, peripheral dma,&lt;/P&gt;&lt;P&gt;which have some number of connected peripherals. Each group is handled&lt;/P&gt;&lt;P&gt;by own script. Better sdma description is given in Table A-1. SDMA Scripts Overview&lt;/P&gt;&lt;P&gt;i.MX53 RM, so one can find for example two uart different scripts: Shared UART and UART.&lt;/P&gt;&lt;P&gt;One is connected on spba, other on peripheral dma. NAND is connected to own APBH-Bridge-DMA bus.&lt;/P&gt;&lt;P&gt;Also may be useful to check&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://billauer.co.il/blog/2011/10/imx-sdma-howto-memory-map/" title="http://billauer.co.il/blog/2011/10/imx-sdma-howto-memory-map/"&gt;Freescale i.MX SDMA tutorial (part I)&lt;/A&gt;&amp;nbsp;&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>Mon, 27 Mar 2017 11:03:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618862#M93750</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-03-27T11:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 DMA and ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618863#M93751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since our main goal is to have fast sampling, we can maybe use external ADC with SPI interface.&lt;/P&gt;&lt;P&gt;Problem is that from i.MX6UL and i.MX53 RM I don´t see that SDMA has a support for SPI.&lt;/P&gt;&lt;P&gt;From the other hand in Linux device tree documentation is written CSPI support (ID 7 and 8):&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt" title="http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt"&gt;Linux/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt - Linux Cross Reference - Free Electrons&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am confused, does current bin support SPI or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Strahinja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 12:50:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618863#M93751</guid>
      <dc:creator>strahinjavukovi</dc:creator>
      <dc:date>2017-03-27T12:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 DMA and ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618864#M93752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Strahinja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i.mx there are many bsps, please check for example&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.freescale.com/message/402940#402940"&gt;https://community.freescale.com/message/402940#402940&lt;/A&gt;&lt;/P&gt;&lt;P&gt;official nxp releases do not support spi sdma, please check&amp;nbsp;&lt;/P&gt;&lt;P&gt;Linux Manual Chapter 4 Smart Direct Memory Access (SDMA)&lt;/P&gt;&lt;P&gt;included in doc package on link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW" title="http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW"&gt;i.MX 6 / i.MX 7 Series Software and Development Tool|NXP&lt;/A&gt;&amp;nbsp;&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>Mon, 27 Mar 2017 23:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-DMA-and-ADC/m-p/618864#M93752</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-03-27T23:54:13Z</dc:date>
    </item>
  </channel>
</rss>

