I'm currently designing a device, which consists of a STM32 microcontroller with USB 2.0 support, USB 2.0 hub and few dimmable leds.
STM is connected to the hub, along with few other devices. Hub is then connected to a smartphone via a USB-C connector. The device has two modes of operation:
When connected to external power source it has to operate as upstream facing device (UFP, USB hub is connected to smartphone), and power SOURCE.
When external power is disconnected, it should switch to power SINK, while maintaining it's data role (UFP, all devices still connected to hub should be visible to smartphone). The device has a microcontroller, which can send power role swap to the smartphone.
I'm not sure if I'm understanding the standard correctly, but: STUSB1600A is only a controller, without Fast Role Swap while TPS65987D I think is an overkill for the task (or maybe I'm wrong?) Could You please advise some sensible solution?