imx8mm cannot be awakened from sleep

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

imx8mm cannot be awakened from sleep

545 Views
yzg
Contributor I

Excuse me, have you tested keystroke wakeup on the 5.1 kernel again?I am currently using the gpio_keys.c driver which won't wake up the device, but it will work on the 4.1 kernel.Specific kernel version:Linux imx8mmevk 5.10.52-1.0,The following is the configuration of my device tree

    gpio_keys {
        compatible = "gpio-keys";
        #address-cells = <1>;
        #size-cells = <0>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_gpiokey>;

        key-1 { //power-button
            debounce_interval = <50>;
            wakeup-source;
            linux,code = <116>;
            label = "POWER";
            gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
        };

        key-2 { //KEY_VOLUMEUP
            debounce_interval = <50>;
            wakeup-source;
            linux,code = <115>;
            label = "VOLUMEUP";
            gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
        };

        key-3 { //KEY_VOLUMEDOWN
            debounce_interval = <50>;
            wakeup-source;
            linux,code = <114>;
            label = "VOLUMEDOWN";
            gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
        };
               
        key-4 { //KEY_MICMUTE
            debounce_interval = <50>;
            wakeup-source;
            linux,code = <248>;
            label = "MICMUTE";
            gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
        };
    };
0 Kudos
5 Replies

528 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @yzg,

Please try testing the GPIO wakeup with the latest kernel available!

 

Thanks & Regards,
Dhruvit.

0 Kudos

522 Views
yzg
Contributor I

I can confirm that my gpio is fine, I have tested the wake up function in 4.1 kernel and it works perfectly

0 Kudos

518 Views
Dhruvit
NXP TechSupport
NXP TechSupport
Hi,
Thank you for your reply.

What I am asking is to test with the latest version i.e., linux-imx 5.15. As this has been resolved in that.

Thank you for understanding!
Best regards,
Dhruvit.
0 Kudos

516 Views
yzg
Contributor I

Hi

Thank you for your reply. At present, my kernel version is Linux imx8mmevk 5.10.52-1.0. Is there any patch available?

0 Kudos

513 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @yzg,


No currently, there are no patches available for Linux 5.10.

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

 

Best regards,
Dhruvit.

0 Kudos