IMX8MP ONOFF pin trigger issue

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

IMX8MP ONOFF pin trigger issue

Jump to solution
1,081 Views
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 Kudos
Reply
1 Solution
686 Views
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

View solution in original post

0 Kudos
Reply
9 Replies
1,053 Views
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 Kudos
Reply
1,029 Views
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 Kudos
Reply
998 Views
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 Kudos
Reply
968 Views
brady3
Contributor III

Hello,

 

  ro.build.version.release=13

  ro.build.version.sdk=33

 

Best Regards

0 Kudos
Reply
897 Views
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 Kudos
Reply
858 Views
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 Kudos
Reply
837 Views
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 Kudos
Reply
698 Views
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 Kudos
Reply
687 Views
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 Kudos
Reply