Reverse docking of battery and external power supply