You can use any pin to control the device to sleep.
But only the power button can wake it up.
You can configure the AXP192 register to make the device enter the sleep state.
https://github.com/MarsTechHAN/MaixPy/blob/master/projects/maixpy_m5stickv/builtin_py/pmu.py