How to configure GPIO wakeup pin using negative edge triggering?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to configure GPIO wakeup pin using negative edge triggering?

1,141 Views
vikneshwarthand
Contributor II

Hi Team,

Board used: imx6ulevk

Image : Custom build (using Yocto)

Kerne version: 4.9.11-1.0.0

I configured gpio3 14 GPIO as wakeup pin, i am able to put evk to suspend mode using the command 

echo mem > /sys/power/state, also i am able to wake-up evk using the configured wake-up pin by giving (3.3v ) positive pulse. The actual requirement is to achieve wake-up using negative edge triggering (3.3v-0v) .

Note: By default gpio3 14 GPIO used as LCD DATA9 in dts i disabled this functionality and configured as wake-up pin.

Please sugest ASAP.

DTS changes made:

   /* GPIO_Wakeup Pin configuration*/
        gpio-keys {
                compatible = "gpio-keys";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_gpio_keys>;

                power {
                        label = "Wakeup Button";
                        gpios = <&gpio3 14 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WAKEUP>;
                        gpio-key,wakeup;
                  };
                };

pinctrl_gpio_keys: gpio_keysgrp {
                fsl,pins = <
                        /* Wakeup-Button powerctrl*/
                         MX6UL_PAD_LCD_DATA09__GPIO3_IO14    0x1b0b0    
                   
                >;
        };

Labels (4)
0 Kudos
Reply
1 Reply

1,007 Views
jamesbone
NXP TechSupport
NXP TechSupport

Please take a look to the following document:

Device Tree Customization 

0 Kudos
Reply