Working on VAR-SOM-DUAL with Android Nougat N7.1.1_1.0.0(kernel 4.1.15).
I use a button to power off the device. On short press, device goes to standby. On long press, Android asks to power off or reboot the device.
When I power off the device, it falls in kernel panic, which reboot the device.
Code: Select all
imx2-wdt 20bc000.wdog: Device shutdown: Expect reboot!
reboot: Power down
Unable to poweroff system
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
Rebooting in 5 seconds..
The button use the input gpio3_25, configured in imx6qdl-var-solocb-buttons.dtsi :
label = "Power";
gpios = <&gpio3 25 1>;
linux,code = <KEY_POWER>;
To clear power supply, I need to clear gpio5_13. It will electrically power off the device. How can I link gpio5_13 to power off sequence ?
Best regards, Pierre