<?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: gpio Issues in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/gpio-Issues/m-p/361501#M50949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe from above info, I cant solve my problem. Now I export a LED gpio. And I cant use "echo 1 /sys/class/gpio/gpio50/value" to change the LED on/off. could you give another info?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 08:06:44 GMT</pubDate>
    <dc:creator>tony_l_cai</dc:creator>
    <dc:date>2015-02-10T08:06:44Z</dc:date>
    <item>
      <title>gpio Issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/gpio-Issues/m-p/361499#M50947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now, I used gpio_export to export the GPIO,but in console, it didnt show the gpio which I what? why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And I want to know about the what is the definition of the gpiochip, how to use? what can I get from it and how to get in console?&lt;/P&gt;&lt;P&gt;3Q!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 01:52:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/gpio-Issues/m-p/361499#M50947</guid>
      <dc:creator>tony_l_cai</dc:creator>
      <dc:date>2015-02-10T01:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: gpio Issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/gpio-Issues/m-p/361500#M50948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you apply the configuration &lt;STRONG&gt;CONFIG_GPIO_SYSFS=y ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can read this for reference.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/304791"&gt;imx.6 GPIO&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/343778"&gt;GPIO output value not changing.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 03:10:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/gpio-Issues/m-p/361500#M50948</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2015-02-10T03:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: gpio Issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/gpio-Issues/m-p/361501#M50949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe from above info, I cant solve my problem. Now I export a LED gpio. And I cant use "echo 1 /sys/class/gpio/gpio50/value" to change the LED on/off. could you give another info?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 08:06:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/gpio-Issues/m-p/361501#M50949</guid>
      <dc:creator>tony_l_cai</dc:creator>
      <dc:date>2015-02-10T08:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: gpio Issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/gpio-Issues/m-p/361502#M50950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. First, do you enable the GPIO in SYSFS in kernel?&lt;/P&gt;&lt;P&gt;Device Drivers ---&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --- GPIO Support&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*] /sys/class/gpio/... (sysfs interface)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I don't know which pin you want to export. Have you try to follow example in "&lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-content-finding="Community" data-objectid="343778" data-objecttype="2" href="https://community.nxp.com/message/343778#343778"&gt;GPIO output value not changing.&lt;/A&gt;"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be sure that the pins you will try to use are really accessible as GPIO pins and were not requested by the kernel (gpio_request). &lt;/P&gt;&lt;P&gt;If pin was gpio_request'ed, you will need to gpio_export the same pin inside the kernel in order to have it accessible through SYSFS. &lt;/P&gt;&lt;P&gt;If pin is not set as GPIO by default, you will need to set IO MUX in the proper file inside &amp;lt;kernel&amp;gt;/arch/arm/mach-XXX.&lt;/P&gt;&lt;P&gt;Accessing GPIO in user space&lt;/P&gt;&lt;P&gt;After enabling GPIO-SYSFS feature, you can boot your device with the new kernel to make some tests.&lt;/P&gt;&lt;P&gt;First you need to export the GPIO you want to test to the user space:&lt;BR /&gt;BUZZER GPIO(4,28) - (4-1)*32 + 28 &lt;/P&gt;&lt;P&gt;echo 124 &amp;gt; /sys/class/gpio/export&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;XX shall be determined by the following algorithm:&lt;BR /&gt;GPIOA_[B] is the GPIO you want to export, where "A" is the GPIO bank and "B" is the offset of the pin in the bank.&lt;/P&gt;&lt;P&gt;if the first available GPIO bank is 0 // (iMX.6, for example)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XX = A*32 + B;&lt;BR /&gt;else // first GPIO bank is 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XX = (A-1)*32 + B;&lt;/P&gt;&lt;P&gt;After exporting a GPIO pin, you shall be able to see the GPIO interface exported to:&lt;BR /&gt;/sys/class/gpio/gpio124&lt;/P&gt;&lt;P&gt;Through this interface, you are now able to do things like:&lt;BR /&gt;# Reading the pin value&lt;BR /&gt;cat /sys/class/gpio/gpio124/value&lt;/P&gt;&lt;P&gt;# Changing pin direction&lt;BR /&gt;echo in &amp;gt; /sys/class/gpio/gpio124/direction&lt;BR /&gt;echo out &amp;gt; /sys/class/gpio/gpio124/direction&lt;/P&gt;&lt;P&gt;# Toggling GPIO output level&lt;BR /&gt;echo 0 &amp;gt; /sys/class/gpio/gpio124/value&lt;BR /&gt;echo 1 &amp;gt; /sys/class/gpio/gpio124/value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 08:20:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/gpio-Issues/m-p/361502#M50950</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2015-02-10T08:20:14Z</dc:date>
    </item>
  </channel>
</rss>

