Using gpio2-22 as the earphone interrupt pin, hot plug the earphone during u-boot, and the level detection is correct. After entering the system, the hot plug earphone and the detection pin are always at high level.
Excuse me, is there a problem with the detection pin configuration?
Thank you, this problem has been solved.
After shielding these two sentences, the level detection of plugging and unplugging headphones is correct.
Hello @xiang_1001
I hope you are doing very well.
Just to clarify, are you using the same Device Tree in U-boot and Kernel, right?
Also, could you please check with memtool the register 443C_0068h? that register belongs to the MUX of the GPIO_IO22, I want to see if is selected the GPIO2_IO22 in that PAD.
Best regards,
Salas.