This is WHY you should do itFor devices up to 100W (20V; 5A), the USB Power Delivery standard now offers a charging connector alternative to any input power plug (USB micro-B or DC barrel for instance). Main benefits are the following:1) SMARTER...
This is HOW you do itImplementation can be as simple as the bellow picture, which uses a standalone SINK PD controller, such as STUSB4500 and a PMOS. Get the source files for a minimal implementation here: STREF-SCS001V1 or order an evaluation board ...