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.
Best Regards.
Solved! Go to Solution.
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
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
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.
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
Hello,
ro.build.version.release=13
ro.build.version.sdk=33
Best Regards
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.
Best Regards,
Zhiming
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
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
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
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