IMX8MP ONOFF pin trigger issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX8MP ONOFF pin trigger issue

ソリューションへジャンプ
1,089件の閲覧回数
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 解決策
694件の閲覧回数
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,061件の閲覧回数
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,037件の閲覧回数
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 件の賞賛
返信
1,006件の閲覧回数
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 件の賞賛
返信
976件の閲覧回数
brady3
Contributor III

Hello,

 

  ro.build.version.release=13

  ro.build.version.sdk=33

 

Best Regards

0 件の賞賛
返信
905件の閲覧回数
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 件の賞賛
返信
866件の閲覧回数
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 件の賞賛
返信
845件の閲覧回数
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 件の賞賛
返信
706件の閲覧回数
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 件の賞賛
返信
695件の閲覧回数
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 件の賞賛
返信