I'm using TPS65987D with 2 modes: UFP & DRP at 2 different scenarios. As the board does not have its own power source, the device is configured as UFP (dead battery mode) when it's first connected to a phone. It relies on the phone power to power on the board. When another external power source is applied, we want the TPS65987D to do a PD PR_Swap to source in order to act as a power source to the phone (i.e. charging the phone). The problem is, as soon as the swap occurs, there is little current going to the phone which causes it to output a message "device is slowly charging ..".
Before the swap, the TPS65987D was set up with appropriate values to registers: Tx Source Capabilties (addr 0x32), Port Config (addr 0x28) as DRP, Port Control (addr 0x29) as initiateSwapToSource.
The current draw from the phone is very low (~150 mA) via a USB-C connector.
Can you point out what I might have been missing?