IMX8MP ONOFF pin trigger issue

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

IMX8MP ONOFF pin trigger issue

跳至解决方案
1,076 次查看
brady3
Contributor III

brady3_0-1747632635092.png

Hello NXP,

1.When the device is turned on, pressing ONOFF does not trigger the Power Key pop-up window.

2.After multiple on-off pin power-on and power-off operations, the system failed to start normally.The situation shown in the following picture occurs.

brady3_1-1747632912355.png

 

Best Regards.

0 项奖励
回复
1 解答
681 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @brady3 
Please check the andoid log for crash or error related logs, NXP Android is for EVK hardware, please compare the hardware differences, it may be that some hardware does not exist on your board, but PowerManagerservice is still trying to operate.

Best Regards,
Zhiming

在原帖中查看解决方案

0 项奖励
回复
9 回复数
1,048 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @brady3 

Did you add the gpio in dts?

gpio-keys {
		compatible = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_gpio_keys>;

		power-on {
			label = "PowerOn";
			gpios = <&gpiof 31 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_POWER>;
		};
	};





Best Regards,
Zhiming

0 项奖励
回复
1,024 次查看
brady3
Contributor III

Hello @Zhiming_Liu 

  I would like to know how to configure your pinctrl_gpio_keys. I haven't used gpiof.

  Compilation error "Reference to non-- existent node or label "gpiof" ".

  I have tried using other pins. They can standby but can't be awakened. They need to be awakened through ONOFF, but there is a problem with this method.

key-1 { //P-button
 debounce_interval = <50>;
 wakeup-source;
 linux,code = <116>;
 label = "POWER";
 gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
};
 
MX8MP_IOMUXC_SAI5_RXFS__GPIO3_IO19 0x1d6 // P_button
0 项奖励
回复
993 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

I have tested with Android15_1.2.0 demo image, ONOFF is used to control turning the display on/off, and pressing it multiple times did not cause a problem with entering recovery mode. ONOFF long press(> 3s) is forced reboot. ONOFF long press 2-3 seconds will appear power mode selection menu, Power off/ Restart.

Which version are you using?



Best Regards,
Zhiming

0 项奖励
回复
963 次查看
brady3
Contributor III

Hello,

 

  ro.build.version.release=13

  ro.build.version.sdk=33

 

Best Regards

0 项奖励
回复
892 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Also no issue on Android13. This issue  you mentioned could relate to hardware design.

There is no resistor between SW button and ONOFF IO.

Zhiming_Liu_0-1748307708064.png

 



Best Regards,
Zhiming

0 项奖励
回复
853 次查看
brady3
Contributor III

Hello,

Even after I removed the resistor, the above phenomenon still occurred. I want to know if this on/off requires software control. If not, how can I troubleshoot hardware issues?

Best Regards

0 项奖励
回复
832 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

The ONOFF driver is drivers/input/keyboard/snvs_pwrkey.c

You can check if there is a problem by looking at the button waveform.

Best Regards,
Zhiming

0 项奖励
回复
693 次查看
brady3
Contributor III

Hello,

  I added this driver and the pop-up window problem has been solved. However, the factory reset problem still exists. Do you have any good troubleshooting suggestions for this?

Best Regards

0 项奖励
回复
682 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @brady3 
Please check the andoid log for crash or error related logs, NXP Android is for EVK hardware, please compare the hardware differences, it may be that some hardware does not exist on your board, but PowerManagerservice is still trying to operate.

Best Regards,
Zhiming

0 项奖励
回复