How to configure GPIO wakeup pin using negative edge triggering?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to configure GPIO wakeup pin using negative edge triggering?

1,137 次查看
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    
                   
                >;
        };

标签 (4)
0 项奖励
回复
1 回复

1,003 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Please take a look to the following document:

Device Tree Customization 

0 项奖励
回复