<?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 imx6 sdma in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6-sdma/m-p/1181928#M164806</link>
    <description>&lt;P&gt;I would like to ask what the &amp;lt;&amp;amp;sdma 3 7 1&amp;gt; parameters mean.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 03:14:41 GMT</pubDate>
    <dc:creator>2548903578</dc:creator>
    <dc:date>2020-11-12T03:14:41Z</dc:date>
    <item>
      <title>imx6 sdma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-sdma/m-p/1181928#M164806</link>
      <description>&lt;P&gt;I would like to ask what the &amp;lt;&amp;amp;sdma 3 7 1&amp;gt; parameters mean.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 03:14:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-sdma/m-p/1181928#M164806</guid>
      <dc:creator>2548903578</dc:creator>
      <dc:date>2020-11-12T03:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 sdma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-sdma/m-p/1182216#M164832</link>
      <description>&lt;P&gt;This parameter maps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a SDMA event line (3)&lt;/LI&gt;&lt;LI&gt;a peripheral type (7)&lt;/LI&gt;&lt;LI&gt;a SDMA priority (1)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;to a peripheral.&lt;/P&gt;&lt;P&gt;Each peripheral has one or two &lt;STRONG&gt;event lines&lt;/STRONG&gt; internally connected to the SDMA controller. The SDMA controller has 48 event line inputs at all. In most (all?) i.MX6 reference manuals there is a chapter "3.3 SDMA event mapping" which shows the connection between peripherals and SDMA event lines.&lt;BR /&gt;&lt;STRONG&gt;Don't mistake SDMA event lines (48) with SDMA channels (32).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The possible &lt;STRONG&gt;peripheral types&lt;/STRONG&gt; are listed in include/linux/platform_data/dma-imx.h:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;enum sdma_peripheral_type {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMX_DMATYPE_SSI, /* MCU domain SSI */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMX_DMATYPE_SSI_SP, /* Shared SSI */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMX_DMATYPE_MMC, /* MMC */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMX_DMATYPE_SDHC, /* SDHC */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMX_DMATYPE_UART, /* MCU domain UART */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMX_DMATYPE_UART_SP, /* Shared UART */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMX_DMATYPE_FIRI, /* FIRI */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMX_DMATYPE_CSPI, /* MCU domain CSPI */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMX_DMATYPE_CSPI_SP, /* Shared CSPI */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;So &lt;STRONG&gt;peripheral type 7&lt;/STRONG&gt; is IMX_DMATYPE_CSPI which means SPI over AHB bus.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;SDMA priorities&lt;/STRONG&gt; are reverse mapped to reverse mapped to hardware priorities of the SDMA CPU (also include/linux/platform_data/dma-imx.h):&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;enum imx_dma_prio {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DMA_PRIO_HIGH = 0,&amp;nbsp; /* highest possible prio --&amp;gt; hardware prio 3 of 7 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DMA_PRIO_MEDIUM = 1, /* medium prio --&amp;gt; hardware prio 2 of 7 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DMA_PRIO_LOW = 2&amp;nbsp;&amp;nbsp; /* lowest prio -&amp;gt; hardware prio 1 of 7 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I would highly appreciate if NXP could provide patches for using preprocessor defines instead of magic numbers in the device tree files. Device tree support preprocessor, but no C style enums.&lt;/P&gt;&lt;P&gt;If you have more questions regarding the SDMA, you can also contact me directly (there is a function in the forum for private messages). I don't scan the forum for new posts everyday...&lt;/P&gt;&lt;P&gt;regards&lt;BR /&gt;Christian&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 09:43:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-sdma/m-p/1182216#M164832</guid>
      <dc:creator>ceggers</dc:creator>
      <dc:date>2020-11-12T09:43:53Z</dc:date>
    </item>
  </channel>
</rss>

