<?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: Problem Configuring GPIO L5.4 on I.MX6UL-EVK</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070498#M157256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/shivanipatel"&gt;shivanipatel&lt;/A&gt;&amp;nbsp;and &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/weidong.sun"&gt;weidong.sun&lt;/A&gt;; but&amp;nbsp;what is the logic to know&amp;nbsp;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold; font-size: 14px;"&gt;GPIO4_IO19&lt;/STRONG&gt; is mapped to i2c2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2020 15:57:50 GMT</pubDate>
    <dc:creator>jayhunt1</dc:creator>
    <dc:date>2020-05-12T15:57:50Z</dc:date>
    <item>
      <title>Problem Configuring GPIO L5.4 on I.MX6UL-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070495#M157253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having problems configuring the GPIO on my imx6ul-evk...&amp;nbsp;I've built L5.4.3 as follows:&lt;/P&gt;&lt;PRE&gt;$ repo init -u &lt;A href="https://source.codeaurora.org/external/imx/imx-manifest" rel="nofollow noopener noreferrer" target="test_blank"&gt;https://source.codeaurora.org/external/imx/imx-manifest&lt;/A&gt; -b imx-linux-zeus -m imx-5.4.3-1.0.0.xml
$ repo sync&amp;nbsp;&amp;nbsp;
$&amp;nbsp;DISTRO=fsl-imx-fb MACHINE=imx6ulevk source imx-setup-release.sh -b build-fb
//Added imx-test utilities to local.conf
$ bitbake core-image-base&lt;/PRE&gt;&lt;P&gt;I uploaded the&amp;nbsp;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;core-image-base-imx6ulevk.wic.bz2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;image on to the sdcard and booted the imx6ul-evk.&amp;nbsp; At the u-boot prompt I did:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;=&amp;gt;setenv fdt_file imx6ul-14x14-evk.dtb&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; "&gt;=&amp;gt;saveenv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and rebooted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using the imx6ul-14x14-evk.dtb that is the default for L5.4.3.1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is that when I try to configure GPIO using sysfs, with&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; "&gt;$&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;echo 115 &amp;gt; /sys/class/gpio/export&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the GPIO port is not listed in &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;$ ls&amp;nbsp;/sys/class/gpio&lt;/SPAN&gt; afterwards.&lt;/P&gt;&lt;P&gt;I'm having the same problem as in &lt;A href="https://community.nxp.com/message/594100" rel="nofollow noopener noreferrer" target="_blank"&gt;Simple GPIO Example - quandry&lt;/A&gt;&amp;nbsp; and used&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/BiyongSUN" rel="nofollow noopener noreferrer" target="_blank"&gt;BiyongSUN&lt;/A&gt;'s example using memtool to check the IOMUX:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;One important thing, you need to check the IOMUX you configured is correct for GPIO.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;A data-content-finding="Community" href="mailto:root@imx6qdlsolo" rel="nofollow noopener noreferrer" style="color: #3d9ce7; background-color: transparent; border: 0px; font-weight: inherit; padding: 1px 0px 1px calc(12px + 0.35ex);" target="_blank"&gt;root@imx6qdlsolo&lt;/A&gt;:~# echo 115 &amp;gt; /sys/class/gpio/export&lt;BR /&gt;&lt;A data-content-finding="Community" href="mailto:root@imx6qdlsolo" rel="nofollow noopener noreferrer" style="color: #3d9ce7; background-color: transparent; border: 0px; font-weight: inherit; padding: 1px 0px 1px calc(12px + 0.35ex);" target="_blank"&gt;root@imx6qdlsolo&lt;/A&gt;:~# /unit_tests/memtool 0x20a8004 1&lt;BR /&gt;E&lt;BR /&gt;Reading 0x1 count starting at address 0x020A8004&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;0x020A8004:&amp;nbsp; 0E050000&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However the result I get is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;root@imx6ulevk:/unit_tests# ./memtool 0x20a8004 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;E&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;Reading 0x1 count starting at address 0x020A8004&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;0x020A8004: &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;00800400&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a bit new to linux on embedded systems ... where should I start to debug this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2020 23:01:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070495#M157253</guid>
      <dc:creator>jayhunt1</dc:creator>
      <dc:date>2020-05-11T23:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Configuring GPIO L5.4 on I.MX6UL-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070496#M157254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jayhunt1"&gt;jayhunt1&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to export or access &lt;STRONG&gt;GPIO4_IO19&lt;/STRONG&gt;, right?&lt;/P&gt;&lt;P&gt;If so, then this pin has been configured as a &lt;STRONG&gt;"CSI_VSYNC"&lt;/STRONG&gt; in CSI module of imx6ul EVK.&lt;/P&gt;&lt;P&gt;So, to use this pin as a GPIO, you need to first disable the node in which this pin-muxing is used and after that you need to configure this pin as a gpio in device tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This "CSI_VSYNC" pin-muxing has been defined in the &lt;STRONG&gt;i2c2&lt;/STRONG&gt; node in "imx6ul-14x14-evk.dtsi" device tree file. So I have disabled this node in device tree and configure this pin-muxing as GPIO as shown in below screenshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot from 2020-05-12 16-52-19.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/105407i6204B111BBA88706/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2020-05-12 16-52-19.png" alt="Screenshot from 2020-05-12 16-52-19.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot from 2020-05-12 16-52-44.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/105506iEE3074C368E8BA5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2020-05-12 16-52-44.png" alt="Screenshot from 2020-05-12 16-52-44.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing the above configurations, I am able to export the &lt;STRONG&gt;GPIO pin 115&lt;/STRONG&gt; on the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Let us know if you have any query regarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shivani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR style="color: #51626f;" /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR style="color: #51626f;" /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 11:29:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070496#M157254</guid>
      <dc:creator>shivanipatel</dc:creator>
      <dc:date>2020-05-12T11:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Configuring GPIO L5.4 on I.MX6UL-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070497#M157255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@&lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="317300" data-username="shivanipatel" href="https://community.nxp.com/people/shivanipatel"&gt;Shivani Patel&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, good job!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;B.R,&lt;/P&gt;&lt;P&gt;weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 12:26:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070497#M157255</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2020-05-12T12:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Configuring GPIO L5.4 on I.MX6UL-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070498#M157256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/shivanipatel"&gt;shivanipatel&lt;/A&gt;&amp;nbsp;and &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/weidong.sun"&gt;weidong.sun&lt;/A&gt;; but&amp;nbsp;what is the logic to know&amp;nbsp;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold; font-size: 14px;"&gt;GPIO4_IO19&lt;/STRONG&gt; is mapped to i2c2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 15:57:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070498#M157256</guid>
      <dc:creator>jayhunt1</dc:creator>
      <dc:date>2020-05-12T15:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Configuring GPIO L5.4 on I.MX6UL-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070499#M157257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GPIO4_19 can't be mapped to I2C2, About signals' mapping , you can get all infromation from i.MX6UL Rreference manual.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106542iE00E6A5F8C782B8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this means I2C2_SCL can be routed to one of 3 pads: CSI_HSYNC or GPIO1_IO00 or UART5_TX_DATA, and I2C2_SDA also has 3 options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;B.R,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 00:26:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070499#M157257</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2020-05-13T00:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Configuring GPIO L5.4 on I.MX6UL-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070500#M157258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Wigros -&amp;nbsp; That clears it up for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 03:31:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-Configuring-GPIO-L5-4-on-I-MX6UL-EVK/m-p/1070500#M157258</guid>
      <dc:creator>jayhunt1</dc:creator>
      <dc:date>2020-05-13T03:31:51Z</dc:date>
    </item>
  </channel>
</rss>

