Imx7d sleep mode

I have used the following command to enable the sleep mode

echo mem > /sys/power/state

How to use gpio (SODIMM 135 or SODIMM 22) as a wake-up source?

hi abhilash

Could you provide some details about the version of your BSP and hardware of the module? What is your application? Usually the module can be wake-up using SODIMM PIN 45 as stated here. Is there a reason, you want to use a different pin?

Hi jaski,

Thanks for your reply.

I am uisng colibri imx7d with colibri eval board. Linux BSP version is Linux colibri-imx7-emmc 4.1.44-2.7.4+gb1555bf.
I checked with SODIMM PIN 45, its working fine. According to the Colibriimx7 datasheet, preferred wakeup source is SODIMM PIN 43 and 45. Can we change the pin number in device tree?


SODIMM PIN 43 and 45 are recommended as described in section 5.2.1 of datasheet, since they are compatible with other colibri modules.
Yes, you can change the pin number in device tree. You just have to take care of the correct pin muxing, so that the used pin for wakeup is not used for some other function.