<?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: Controlling GPIO and user's buttons</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219254#M14277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miroslav,&lt;/P&gt;&lt;P&gt;thanks for the tip, it's a starting point. I did already some test in the console. Now I try to figure it out the irq base inputs in a user program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2012 08:31:18 GMT</pubDate>
    <dc:creator>kurt1z</dc:creator>
    <dc:date>2012-04-05T08:31:18Z</dc:date>
    <item>
      <title>Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219250#M14273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can i control/configure&amp;nbsp;the gpio?&lt;/P&gt;&lt;P&gt;I want to &amp;nbsp;read signal from the user's&amp;nbsp;buttons and control the leds?&lt;/P&gt;&lt;DIV dir="ltr"&gt;I'll be very grateful for code examples as well.&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;TNX,&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 18:55:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219250#M14273</guid>
      <dc:creator>ChaimA</dc:creator>
      <dc:date>2012-03-14T18:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219251#M14274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need also some sample code to access the buttons and user led of the IMX53QSB.&lt;/P&gt;&lt;P&gt;The second step is to change the hardware and add some buttons and leds on the expansionslot.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 19:17:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219251#M14274</guid>
      <dc:creator>kurt1z</dc:creator>
      <dc:date>2012-04-04T19:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219252#M14275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at file&amp;nbsp;&lt;A href="http://cache.freescale.com/files/32bit/doc/user_guide/MX53UG.pdf?fpsp=1" target="_blank"&gt;i.MX53 System Development User’s Guide&lt;/A&gt;,&amp;nbsp;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;STRONG&gt;hapter 13&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Configuring the IOMUX Controller (IOMUXC)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;There you can find a way to control a gpio pin from user space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 20:53:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219252#M14275</guid>
      <dc:creator>MiroslavIMX53QS</dc:creator>
      <dc:date>2012-04-04T20:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219253#M14276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&lt;/P&gt;&lt;P&gt;What's tha function/API to read the event of press on the buttuns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 21:36:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219253#M14276</guid>
      <dc:creator>ChaimA</dc:creator>
      <dc:date>2012-04-04T21:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219254#M14277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miroslav,&lt;/P&gt;&lt;P&gt;thanks for the tip, it's a starting point. I did already some test in the console. Now I try to figure it out the irq base inputs in a user program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 08:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219254#M14277</guid>
      <dc:creator>kurt1z</dc:creator>
      <dc:date>2012-04-05T08:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219255#M14278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the file arch/arm/mach-mx5/mx53_evk.c ,&lt;/P&gt;&lt;P&gt;you can find much sample code which control/configure the gpio.&lt;/P&gt;&lt;P&gt;it's under linux kernel in freescale's bsp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;What's tha function/API to read the event of press on the buttuns&lt;/SPAN&gt;" ?&lt;/P&gt;&lt;P&gt;it's standard input event API . you can use evtest to monitor the button event.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want your function, &amp;nbsp;can reference the evtest's source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ubuntu PC, you can install evtest through &amp;nbsp;apt-get install evtest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 09:25:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219255#M14278</guid>
      <dc:creator>KevinChen_ng</dc:creator>
      <dc:date>2012-04-05T09:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219256#M14279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi all, if someone still looking for a very good starting point&lt;/SPAN&gt;&lt;A href="https://www.ridgerun.com/developer/wiki/index.php/Gpio-int-test.c" target="_blank"&gt;https://www.ridgerun.com/developer/wiki/index.php/Gpio-int-test.c&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 20:46:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219256#M14279</guid>
      <dc:creator>kurt1z</dc:creator>
      <dc:date>2012-04-10T20:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219257#M14280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this post where I explain how you can access GPIOs in Linux:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.freescale.com/t5/i-MX-Microprocessors/iMX28-SYSFS-and-GPIO/td-p/60938" target="_blank"&gt;http://forums.freescale.com/t5/i-MX-Microprocessors/iMX28-SYSFS-and-GPIO/td-p/60938&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 03:38:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219257#M14280</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2012-04-11T03:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219258#M14281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;jose,&lt;/P&gt;&lt;P&gt;this is for the user-space side.&lt;/P&gt;&lt;P&gt;I'm trying now to setup a kernel module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gr.&lt;/P&gt;&lt;P&gt;Kurt&lt;BR /&gt; &lt;BR /&gt; &lt;CITE&gt;jose said:&lt;/CITE&gt;&lt;/P&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/controlling-gpio-and-user-s-buttons?commentId=4103961%3AComment%3A66486&amp;amp;xg_source=msg_com_forum#4103961Comment66295"&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/controlling-gpio-and-user-s-buttons?commentId=4103961%3AComment%3A66372&amp;amp;xg_source=msg_com_forum#4103961Comment66385"&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;By the way, this is for the user-space side right?&lt;/P&gt;&lt;P&gt;How about the kernel-space? Or should i say the driver part?&lt;/P&gt;&lt;P&gt;I don't know if i make sense sorry correct me if im wrong.&lt;/P&gt;&lt;P&gt;&lt;CITE&gt;&lt;BR /&gt;kurt said:&lt;/CITE&gt;&lt;/P&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/controlling-gpio-and-user-s-buttons?commentId=4103961%3AComment%3A66372&amp;amp;xg_source=msg_com_forum#4103961Comment66371"&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;hi all,&lt;BR /&gt; if someone still looking for a very good starting point&lt;BR /&gt; &lt;A href="https://www.ridgerun.com/developer/wiki/index.php/Gpio-int-test.c" rel="nofollow" target="_blank"&gt;https://www.ridgerun.com/developer/wiki/index.php/Gpio-int-test.c&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 08:12:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219258#M14281</guid>
      <dc:creator>kurt1z</dc:creator>
      <dc:date>2012-04-11T08:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219259#M14282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any update on the kernel side Kurt?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 07:51:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219259#M14282</guid>
      <dc:creator>jose</dc:creator>
      <dc:date>2012-04-24T07:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219260#M14283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jose,&lt;/P&gt;&lt;P&gt;I will post something soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 18:14:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219260#M14283</guid>
      <dc:creator>kurt1z</dc:creator>
      <dc:date>2012-04-30T18:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219261#M14284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's great man.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;BR /&gt; &lt;BR /&gt; &lt;CITE&gt;kurt said:&lt;/CITE&gt;&lt;/P&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/controlling-gpio-and-user-s-buttons?commentId=4103961%3AComment%3A68627&amp;amp;xg_source=msg_com_forum#4103961Comment68627"&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;Jose,&lt;/P&gt;&lt;P&gt;I will post something soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 17:27:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219261#M14284</guid>
      <dc:creator>jose</dc:creator>
      <dc:date>2012-05-01T17:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219262#M14285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CITE&gt;kurt said:&lt;/CITE&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/controlling-gpio-and-user-s-buttons?xg_source=activity#4103961Comment68627"&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;Jose,&lt;/P&gt;&lt;P&gt;I will post something soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Nothing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 22:42:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219262#M14285</guid>
      <dc:creator>enaud</dc:creator>
      <dc:date>2012-05-23T22:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219263#M14286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also lookin forward to that but... we just have to wait bec. we are just askin a favor right?&lt;/P&gt;&lt;P&gt;I hope sir kurt will give a follow up on this and we should thank him for his effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sir kurt... just sayin hello here...&lt;/P&gt;&lt;P&gt;everyone is waitin for your tutorial sir... thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 10:47:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219263#M14286</guid>
      <dc:creator>jose</dc:creator>
      <dc:date>2012-05-24T10:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219264#M14287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if other users have solved this problem, pls explain all :D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 12:54:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219264#M14287</guid>
      <dc:creator>enaud</dc:creator>
      <dc:date>2012-05-24T12:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219265#M14288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an unexpected problem with exporting (opening) the two user defined buttons on the QSB.&lt;/P&gt;&lt;P&gt;/sys/class/gpio is enabled in the kernel.&lt;/P&gt;&lt;P&gt;According to the QSB users manual:&lt;BR /&gt;USERDEF1: USERDEF2:&lt;BR /&gt;These two buttons are user defined buttons attached to PATA_DATA14 (P6) and PATA_DATA15 (P5).&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;BR /&gt;iomux-mx53.h is unmodified and contains:&lt;/P&gt;&lt;P&gt;#define _MX53_PAD_PATA_DATA14__GPIO2_14 IOMUX_PAD(0x660, 0x2DC, 1, 0x0, 0, 0)&lt;BR /&gt;....&lt;BR /&gt;#define _MX53_PAD_PATA_DATA15__GPIO2_15 IOMUX_PAD(0x664, 0x2E0, 1, 0x0, 0, 0)&lt;BR /&gt;....&lt;BR /&gt;....&lt;BR /&gt;#define MX53_PAD_PATA_DATA14__GPIO2_14 (_MX53_PAD_PATA_DATA14__GPIO2_14 | MUX_PAD_CTRL(NO_PAD_CTRL))&lt;BR /&gt;....&lt;BR /&gt;#define MX53_PAD_PATA_DATA15__GPIO2_15 (_MX53_PAD_PATA_DATA15__GPIO2_15 | MUX_PAD_CTRL(NO_PAD_CTRL))&lt;BR /&gt;....&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;BR /&gt;mx53_loco.c is unmodified and contains:&lt;/P&gt;&lt;P&gt;static iomux_v3_cfg_t mx53_loco_pads[]&lt;BR /&gt;{&lt;BR /&gt;....&lt;BR /&gt; /* GPIO */&lt;BR /&gt;....&lt;BR /&gt; MX53_PAD_PATA_DATA14__GPIO2_14,&lt;BR /&gt; MX53_PAD_PATA_DATA15__GPIO2_15,&lt;BR /&gt;....&lt;BR /&gt;};&lt;BR /&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;Calculating GPIO number:&lt;BR /&gt;GPIO2_14 = (2 - 1) * 32 + 14 = 46&lt;BR /&gt;GPIO2_15 = (2 - 1) * 32 + 15 = 47&lt;/P&gt;&lt;P&gt;At the command line, export GPIO2_14 and GPIO_15:&lt;BR /&gt;echo 46 &amp;gt; /sys/class/gpio/export&lt;BR /&gt;echo 47 &amp;gt; /sys/class/gpio/export&lt;/P&gt;&lt;P&gt;.... no error is shown.&lt;/P&gt;&lt;P&gt;Then do "ls /sys/class/gpio" but they do not appear in the file list&lt;/P&gt;&lt;P&gt;I can do the same with GPIO number 199, which is the LED on the QSB, and it works fine.&lt;/P&gt;&lt;P&gt;/sys/class/gpio/gpio199 appears in the file list when I do ls and I can set and clear it to turn the LED on and off.&lt;/P&gt;&lt;P&gt;Any ideas? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 14:56:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219265#M14288</guid>
      <dc:creator>StevieRG</dc:creator>
      <dc:date>2012-07-13T14:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219266#M14289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to Freescale tech support, I have this working.&lt;/P&gt;&lt;P&gt;The fix is to remove the lines from mx53_loco.c that configure these GPIO as "buttons", or they can't be used as simple GPIO and won't appear in /sys/class/gpio:&lt;/P&gt;&lt;P&gt;static struct gpio_keys_button loco_buttons[] = {&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_BUTTON(MX53_nONKEY, KEY_POWER, 1, "power", 0),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_BUTTON(USER_UI1, KEY_VOLUMEUP, 1, "volume-up", 0),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_BUTTON(USER_UI2, KEY_VOLUMEDOWN, 1, "volume-down", 0),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now these commands work to read the pins:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;echo 46 &amp;gt; /sys/class/gpio/export&lt;BR /&gt;echo in &amp;gt; /sys/class/gpio/gpio46/direction&lt;BR /&gt;cat /sys/class/gpio/gpio46/value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo 47 &amp;gt; /sys/class/gpio/export&lt;BR /&gt;echo in &amp;gt; /sys/class/gpio/gpio47/direction&lt;BR /&gt;cat /sys/class/gpio/gpio47/value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 08:01:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219266#M14289</guid>
      <dc:creator>StevieRG</dc:creator>
      <dc:date>2012-07-31T08:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling GPIO and user's buttons</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219267#M14290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steeve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I would like to use USERDEF GPIO's on IMX53 Quick STart-R Board Ubuntu(Linux). I couldn't find the file mx53_loco.c in kernel source which you said in above conversation. Did u said the above one for Ubuntu Linux or is it for Android. Could you please help me in enabling this Pins for Linux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:22:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Controlling-GPIO-and-user-s-buttons/m-p/219267#M14290</guid>
      <dc:creator>praveendosapati</dc:creator>
      <dc:date>2014-09-26T14:22:13Z</dc:date>
    </item>
  </channel>
</rss>

