<?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: imx8mm - Pin bank and offset mapping</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986898#M146567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example&lt;/P&gt;&lt;PRE style="color: #000000; font-size: 13.3333px;"&gt;&lt;SPAN class="" style="color: #cc0000; font-weight: bold;"&gt;#define USDHC2_CD_GPIO IMX_GPIO_NR(2, 12)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I wanted to know how I could find&amp;nbsp;that bank 2 and offset 12 corresponds to a specific pin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example where can I find&amp;nbsp;the mapping from&amp;nbsp;SAI5_RXC or AC15 to a bank and offset number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2019 01:19:44 GMT</pubDate>
    <dc:creator>raman_thapar</dc:creator>
    <dc:date>2019-11-14T01:19:44Z</dc:date>
    <item>
      <title>imx8mm - Pin bank and offset mapping</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986896#M146565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was trying to setup some pins in uBoot and was trying to find the IO bank and offset mapping so I could make use of&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;IMX_GPIO_NR&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(bank, nr) to control the pin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I didnt see anything in the reference manual and the imx dts files on the kernel side use this format&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; * The pin function ID is a tuple of&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; * &amp;lt;mux_reg conf_reg input_reg mux_mode input_val&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Also in the kernel is there a recommended place for board initialization or is it best to keep that in uboot?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 00:21:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986896#M146565</guid>
      <dc:creator>raman_thapar</dc:creator>
      <dc:date>2019-11-14T00:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm - Pin bank and offset mapping</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986897#M146566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for IMX_GPIO_NR one can look at&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/include/asm/arch-imx8/gpio.h?h=imx_v2018.03_4.14.98_2.0.0_ga" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/include/asm/arch-imx8/gpio.h?h=imx_v2018.03_4.14.98_2.0.0_ga"&gt;gpio.h\arch-imx8\asm\include\arm\arch - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/imx8mq_evk/spl.c?h=imx_v2018.03_4.14.98_2.0.0_ga" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/imx8mq_evk/spl.c?h=imx_v2018.03_4.14.98_2.0.0_ga"&gt;spl.c\imx8mq_evk\freescale\board - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN class=""&gt;Also in the kernel is there a recommended place for board initialization or is it best to keep that in uboot?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it depends on kernel, in latest for example clock initialization is performed in&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/clk/imx?h=imx_4.14.98_2.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/clk/imx?h=imx_4.14.98_2.0.0_ga"&gt;imx\clk\drivers - linux-imx - i.MX Linux kernel&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>Thu, 14 Nov 2019 01:15:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986897#M146566</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-11-14T01:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm - Pin bank and offset mapping</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986898#M146567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example&lt;/P&gt;&lt;PRE style="color: #000000; font-size: 13.3333px;"&gt;&lt;SPAN class="" style="color: #cc0000; font-weight: bold;"&gt;#define USDHC2_CD_GPIO IMX_GPIO_NR(2, 12)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I wanted to know how I could find&amp;nbsp;that bank 2 and offset 12 corresponds to a specific pin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example where can I find&amp;nbsp;the mapping from&amp;nbsp;SAI5_RXC or AC15 to a bank and offset number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 01:19:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986898#M146567</guid>
      <dc:creator>raman_thapar</dc:creator>
      <dc:date>2019-11-14T01:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm - Pin bank and offset mapping</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986899#M146568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from &lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx%2Fuboot-imx%2Ftree%2Farch%2Farm%2Finclude%2Fasm%2Farch-imx8%2Fgpio.h%3Fh%3Dimx_v2018.03_4.14.98_2.0.0_ga" rel="nofollow noopener noreferrer" target="_blank"&gt;gpio.h\arch-imx8\asm\include\arm\arch - uboot-imx - i.MX U-Boot&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;/* IMX8 the GPIO index is from 0 not 1 */&lt;/SPAN&gt;&lt;SPAN class=""&gt;#define IMX_GPIO_NR(port, index)  (((port)*32)+((index)&amp;amp;31))&lt;/SPAN&gt;&lt;/PRE&gt;port number can be found in IOMUX Chapter of i.MX8M Mini Reference Manual
&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX8MMRM" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;STRONG&gt;i.MX 8M Mini Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&gt;

Best regards
igor&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 01:57:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986899#M146568</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-11-14T01:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm - Pin bank and offset mapping</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986900#M146569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Igor I found this in uboot and understand how to use the #define.&lt;/P&gt;&lt;P&gt;What I need is a way to map from a named pin for example&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SAI5_RXC or AC15 to a bank/port and offset number.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know where I can find that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 02:01:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986900#M146569</guid>
      <dc:creator>raman_thapar</dc:creator>
      <dc:date>2019-11-14T02:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm - Pin bank and offset mapping</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986901#M146570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from p.1395 RM : GPIO3_IO20 (port3, index 20)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92569i60981429EDDBA2CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&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>Thu, 14 Nov 2019 07:34:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-Pin-bank-and-offset-mapping/m-p/986901#M146570</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-11-14T07:34:50Z</dc:date>
    </item>
  </channel>
</rss>

