A charging device for providing power from a power supply to an electronic device is provided. The charging device includes a detachable first electrical connector connected to a wired or wireless power output port, and a detachable second electrical connector attached to the power supply. The power output port is configured to provide power to the electronic device when the first electrical connector is connected to the power supply.