<?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 i.MX8MP gpio wakeup type issue in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2202316#M242072</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using imx8mp EVK&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Linux 6.12.3_1.0.0 and testing gpio wakeup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when setting&amp;nbsp;IRQ_TYPE_EDGE_FALLING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The system is incorrectly woken up when the GPIO changes from low to high.&lt;/P&gt;&lt;P&gt;(It should be wakeup when GPIO changes from high to low only)&lt;/P&gt;&lt;P&gt;How can this problem be solved?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 11 Nov 2025 03:45:31 GMT</pubDate>
    <dc:creator>Winslow</dc:creator>
    <dc:date>2025-11-11T03:45:31Z</dc:date>
    <item>
      <title>i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2202316#M242072</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using imx8mp EVK&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Linux 6.12.3_1.0.0 and testing gpio wakeup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when setting&amp;nbsp;IRQ_TYPE_EDGE_FALLING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The system is incorrectly woken up when the GPIO changes from low to high.&lt;/P&gt;&lt;P&gt;(It should be wakeup when GPIO changes from high to low only)&lt;/P&gt;&lt;P&gt;How can this problem be solved?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 03:45:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2202316#M242072</guid>
      <dc:creator>Winslow</dc:creator>
      <dc:date>2025-11-11T03:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2202392#M242075</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248522"&gt;@Winslow&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you configure the gpio wakeup in dts?&lt;/P&gt;
&lt;P&gt;Here is&amp;nbsp;drivers/input/keyboard/gpio_keys.c source code, you can try to dump&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;bdata-&amp;gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;wakeup_trigger_type&lt;/STRONG&gt; to confirm real type in driver.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;LI-CODE lang="markup"&gt;bool active_low = gpiod_is_active_low(bdata-&amp;gt;gpiod);		

switch (button-&amp;gt;wakeup_event_action) {
		case EV_ACT_ASSERTED:
			bdata-&amp;gt;wakeup_trigger_type = active_low ?
				IRQ_TYPE_EDGE_FALLING : IRQ_TYPE_EDGE_RISING;
			break;
		case EV_ACT_DEASSERTED:
			bdata-&amp;gt;wakeup_trigger_type = active_low ?
				IRQ_TYPE_EDGE_RISING : IRQ_TYPE_EDGE_FALLING;
			break;
		case EV_ACT_ANY:&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 05:52:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2202392#M242075</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-11-11T05:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2202434#M242079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;my setting is&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        btn-wakeup {
            label = "BTN-WAKEUP";
            gpios = &amp;lt;&amp;amp;gpio5 12 GPIO_ACTIVE_LOW&amp;gt;;
            linux,code = &amp;lt;KEY_WAKEUP&amp;gt;;
            debounce-interval = &amp;lt;10&amp;gt;;
            interrupt-parent = &amp;lt;&amp;amp;gpio5&amp;gt;;
            interrupts = &amp;lt;12 IRQ_TYPE_EDGE_FALLING&amp;gt;;
            wakeup-source;
        };&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this code means irq is setting trigger both falling and rising?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;irqflags&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;IRQF_TRIGGER_RISING&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;IRQF_TRIGGER_FALLING;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;error&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;devm_request_any_context_irq&lt;/SPAN&gt;&lt;SPAN&gt;(dev,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;bdata&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;irq&lt;/SPAN&gt;&lt;SPAN&gt;, isr, irqflags,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;desc, bdata);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Nov 2025 06:40:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2202434#M242079</guid>
      <dc:creator>Winslow</dc:creator>
      <dc:date>2025-11-11T06:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2202509#M242083</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248522"&gt;@Winslow&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Did you set the pull up in iomux setting? and make sure that this gpio stay high before your click the button. Otherwise, there is no HIGH-&amp;gt;LOW signal when you click button. If this gpio stays low before you click the button, the driver's action is correct.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 07:45:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2202509#M242083</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-11-11T07:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2202533#M242087</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iomux setting:&lt;/P&gt;&lt;P&gt;MX8MP_IOMUXC_ECSPI2_MISO__GPIO5_IO12 0x00000140&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We keep press the button (GPIO:&amp;nbsp;&lt;SPAN&gt;HIGH-&amp;gt;LOW)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then using systemctl suspend to enter suspend (GPIO stay LOW)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and then relase the button&amp;nbsp;(GPIO: LOW-&amp;gt;HIGH), system will be woken up&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is this correct?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 08:10:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2202533#M242087</guid>
      <dc:creator>Winslow</dc:creator>
      <dc:date>2025-11-11T08:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203106#M242105</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw this in source code&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;* The trigger type is always both edges for gpio-based keys and we do&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;* not support changing wakeup trigger for interrupt-based keys.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Does this mean that IRQ_TYPE_EDGE_FALLING is not working?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Nov 2025 02:45:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203106#M242105</guid>
      <dc:creator>Winslow</dc:creator>
      <dc:date>2025-11-12T02:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203238#M242111</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248522"&gt;@Winslow&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you add below property to test? This will set wakeup event for&amp;nbsp;&lt;SPAN&gt;IRQ_TYPE_EDGE_FALLING referring the source code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;wakeup-event-action = &amp;lt;EV_ACT_ASSERTED&amp;gt;;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 05:35:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203238#M242111</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-11-12T05:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203245#M242112</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did added this, but it's not working.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        BTN-wakeup {
            label = "BTN-WAKEUP";
            gpios = &amp;lt;&amp;amp;gpio5 12 GPIO_ACTIVE_LOW&amp;gt;;
            linux,code = &amp;lt;KEY_WAKEUP&amp;gt;;
            debounce-interval = &amp;lt;10&amp;gt;;
            interrupt-parent = &amp;lt;&amp;amp;gpio5&amp;gt;;
            interrupts = &amp;lt;12 IRQ_TYPE_EDGE_FALLING&amp;gt;;
            wakeup-event-action = &amp;lt;EV_ACT_ASSERTED&amp;gt;;
            wakeup-source;
        };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 05:41:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203245#M242112</guid>
      <dc:creator>Winslow</dc:creator>
      <dc:date>2025-11-12T05:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203293#M242116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248522"&gt;@Winslow&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did test based on i.MX8MP FRDM platform, iomux value 0x1c4. Enter suspend with systemctl, then click button, keep it low, system will be waken up.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;	sw-keys {
		compatible = "gpio-keys";

		K1: user_btn1 {
			label = "User Button1";
			linux,code = &amp;lt;KEY_WAKEUP&amp;gt;;
			gpios = &amp;lt;&amp;amp;gpio3 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)&amp;gt;;
			interrupt-parent = &amp;lt;&amp;amp;gpio3&amp;gt;;
			interrupts = &amp;lt;14 IRQ_TYPE_EDGE_FALLING&amp;gt;;
			wakeup-event-action = &amp;lt;EV_ACT_ASSERTED&amp;gt;;
			wakeup-source;
		};
	};&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 06:39:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203293#M242116</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-11-12T06:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203422#M242122</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you help to try&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;click button, keep it low&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. systemctl suspend&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. release button (low -&amp;gt; high)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;system will wakeup?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 08:52:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203422#M242122</guid>
      <dc:creator>Winslow</dc:creator>
      <dc:date>2025-11-12T08:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203987#M242138</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248522"&gt;@Winslow&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I did such test steps for many times, the system will not wake up while LOW-&amp;gt;HIGH. So at least on my side, rising edge will not work if setting failing edge in dts.&lt;/P&gt;
&lt;P&gt;This should relate to hardware design, as i didn't find availble button on EVK board, so i test it on i.MX8MP FRDM board which has a user button.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_0-1762994853485.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/365380i5CB28C3E06748EAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_0-1762994853485.png" alt="Zhiming_Liu_0-1762994853485.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 00:47:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2203987#M242138</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-11-13T00:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MP gpio wakeup type issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2204013#M242141</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;We will review our&amp;nbsp;&lt;SPAN&gt;hardware design&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 02:06:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-gpio-wakeup-type-issue/m-p/2204013#M242141</guid>
      <dc:creator>Winslow</dc:creator>
      <dc:date>2025-11-13T02:06:44Z</dc:date>
    </item>
  </channel>
</rss>

