Hello @alcor
please have a look at the schematic.
With external 5 V you can power the M5Stack Gray either through the IO Port or the Bus Port. Use pins 5 V and GND (G).
No, when powering the M5Stack with external 5 V, the battery will not be charged as this bypasses the TP5306 charger IC.
Thanks
Felix