@kuriko
Thank you for your hint. However, I don't know how it could help to solve my requirements.
In M5StickC-Plus example, IMU will remain powered on and will send interrupt on gpio 35 on motion.
In my requirement, axp2101 could send interrupt on power-on (usb), but its interrupt pin is not connected to esp32.
AXP2101 usually wakes up esp32 by simply powering on esp32, it is not a real wake up by interrupt. Therefore, wake up by power-on (usb) works only if esp32 was powered off by axp2101 previously. I cannot power-off esp32 because it should also wake up on gpio interrupt from PIR.