My ps4 wont connect controllers

Hey my ps4 isn’t connecting any devices via the USB ports and it’s stuck in the safe mode screen I can’t do anything and need help.