<?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: Wake up using MPR121 interrupt</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-using-MPR121-interrupt/m-p/289025#M34607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you..... :smileyhappy: &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jul 2013 12:44:19 GMT</pubDate>
    <dc:creator>winstonrodrigue</dc:creator>
    <dc:date>2013-07-02T12:44:19Z</dc:date>
    <item>
      <title>Wake up using MPR121 interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-using-MPR121-interrupt/m-p/289023#M34605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Pals,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am working on IMX53_smd board (SABRE tablet) ...&lt;/P&gt;&lt;P&gt;So I wanted to make this board to wake up when I touch the touch keys (MPR121) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I can wake up the system using GPIOs as well as volume + / volume - keys...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static struct gpio_keys_button smd_buttons[] = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_BUTTON(MX53_PAD_EIM_A24__GPIO5_4, &lt;STRONG&gt;TOUCH_INTERRPT&lt;/STRONG&gt; ,1,"touching",1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_BUTTON(MX53_SMD_KEY_VOL_UP, &lt;STRONG&gt;KEY_VOLUMEUP&lt;/STRONG&gt;, 1, "volume-up", 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_BUTTON(MX53_SMD_KEY_VOL_DOWN, &lt;STRONG&gt;KEY_VOLUMEDOWN&lt;/STRONG&gt;, 1, "volume-down", 1),&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in above code I wanted to know where is &lt;STRONG&gt;KEY_VOLUMEUP and &lt;/STRONG&gt;&lt;STRONG&gt;KEY_VOLUMEDOWN &lt;/STRONG&gt;is defined.. because when i compile&lt;/P&gt;&lt;P&gt;i get error saying&lt;STRONG&gt; TOUCH_INTERRPT &lt;/STRONG&gt;not defined...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; One more thing......&lt;/P&gt;&lt;P&gt;&amp;nbsp; If the system is sleep /suspend mode whether the MP121 chip gets the power ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Winston,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 10:04:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wake-up-using-MPR121-interrupt/m-p/289023#M34605</guid>
      <dc:creator>winstonrodrigue</dc:creator>
      <dc:date>2013-04-29T10:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up using MPR121 interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-using-MPR121-interrupt/m-p/289024#M34606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/AdrianAlonso"&gt;AdrianAlonso&lt;/A&gt; replied:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KEY_VOULUMEUP, KEY_VOULUMEDOWN are macros defined in "include/linux/input.h"&lt;/P&gt;&lt;P&gt;the GPIO_BUTTON macros help to map a given GPIO to a Key code that user space applications will interpret such a key volume up;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define an macro for TOUCH_INTERRUPT, but typically for touch screen drivers the interrupt line is used to trigger a new read on MPR121 and emit the X,Y input events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In MPR121 touch screen driver handles suspend/resume callbacks to properly power down/up the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See drivers/input/keyboard/mpr121.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And from arch/arm/mach-mx5/mx53_smd.c code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static struct i2c_board_info mxc_i2c1_board_info[] __initdata = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .type = "sgtl5000-i2c",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .addr = 0x0a,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .type = "mpr121_touchkey",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .addr = 0x5a,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .irq = gpio_to_irq(MX53_SMD_KEY_INT),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .platform_data = &amp;amp;mpr121_keyboard_platdata,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .type = "mag3110",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .addr = 0x0e,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .irq = gpio_to_irq(MX53_SMD_eCOMPASS_INT),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&amp;nbsp; &lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The letters in bold show where mpr121 driver is associated and MX53_SMD_KEY_INT correspond to GPIO 5_4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 21:37:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wake-up-using-MPR121-interrupt/m-p/289024#M34606</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2013-06-11T21:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up using MPR121 interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Wake-up-using-MPR121-interrupt/m-p/289025#M34607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you..... :smileyhappy: &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 12:44:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Wake-up-using-MPR121-interrupt/m-p/289025#M34607</guid>
      <dc:creator>winstonrodrigue</dc:creator>
      <dc:date>2013-07-02T12:44:19Z</dc:date>
    </item>
  </channel>
</rss>

