My project is based on reference project firmware CYPD3120-40LQXI_dp_dongle it partly works except the power charging.
Below is the diagram. Before Samsung is plugged in the USB-C the MOSFET switch is off so when Samsung is plugged in the USB-C the Dp-to-HDMI converter and USB hub start working. But Samsung is a power source.
I can use one of the GPIO P1.0 or P1.1 to turn on/off the MOSFET switch. I would like to turn on the MOSFET switch to charge the Samsung from the dc/dc power supply. Could you please tell me how I can send a command to Samsung to change to power sink?
Hi Derong Yuan,
We have already shared the example code in the threadCCG3 charge through dongle firmware The attached file is for initial PR_SWAP and DR_SWAP to make sure CCG3 is target for Power source and Data device.