This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TPS65987D: TPS65987 proper config to support a Samsung S9 and S20 in alt mode with USB 3

Part Number: TPS65987D
Other Parts Discussed in Thread: TUSB1064, TPS65987,

I am trying to config the TPS65987 PD controller to be able to support a  Samsung S9 and S20 in alt mode. I am paring the pd controller with the TUSB1064. The current config will work for both S9 and S20 in allowing the phone to charge, be a host of the usb network, and puts the phone into 4 lane display port. The problem is that i would like the S20 to go into 2 lane display port and have USB3 functionality. I am able to due this by setting the multifunction preferred bit in the Display port capabilities (0x51). when i set this bit though it will force the s9 to also try to go into the 2 lane displayport mode and i have confirmed with Samsung that the S9 has no support for that mode. In trying to switch to that mode then the s9 will not display through the display port. I do not have access to the S9 and S20 software to be able to put a service or app that would let a embedded microcontroller running as a usb peripheral (virtual com port) to toggle the setting once the S9 or the S20 is present. I have looked at all the registers in the PD controller and a USB hub (USB5807) to see if there is any register that would give me the indication that the a S9 or a S20 are present so that with that information i could toggle the bit. Samsung suggested that there must be a PD controller configuration that will automatically to the distinction and the setup for the 2 lane and 4 lane mode. I have used different docking station with the phones and verified that they do support this functionality that i describe above, i do not know what pd controller they use though.

Could you please advise?

TacBoxTPS_File.pjt

  • Carlson, I am not sure those other devices will detect whether it is is S9 or S20 through CC controller, unless if Samsung gave you some indication on how to detect it. If your design has a microcontroller then you can use that maybe to look for something unique about S9/S20 through HUB.

    Interms of forcing device to use 2 lane only, multifunction bit is not sufficient sometimes, you need to limit the DP ping assignment as well. You can look at https://www.ti.com/lit/pdf/slva844 document for details.

  • Samsung did not indicate on how to detect between the two. The hub i am using is the USB5807C from microchip and there does not seem to any information about the host in its registers. 

    so i looked through the slva844 and i gathered that i need to be mapped to C and D pin assignment which it is setup that way. I assume if i want to guarantee that the phone goes into 2 lane mode then i would only set the D pin assignment. But i dont want it to be only D pin assignment because i know the S9 does not support  2 lane DisplayPort. I guess I'm a little confused on what is happening when i select the multifunction. My assumption is that the phone is negotiating to do 2 lane mode and doing pin assignment to D but the s9 phone doesnt support that function so i dont understand why it would select that.

  • Carlson,

    It would be good to know the PD traffic between thew S9 and the TPS65987D. The PD will use the multifunction, connection type, and the phone's capabilities received from Discover Modes.

    Another option to build off of Ghouse's response, if you have an EC or SoC device connected to the PD, you could dynamically change the DP pin assignment based on a unique identifier between the two phones.

  • Ok, so Attached is a zip with a bunch of pd captures comparing s9 and s20, a cots dock(hootoo) and our custom dock what i am debuging...

     i updated the pjt file to include the multifunction and get closer to what the custom dock does. those captures has the _multi appended. 

    I agree if i could detect something different between the phones but as of right now i can not detect a difference in the hub or my micro. 

    caputures and new project.zip

  • Carlson,

    Our advice is to find some information that would be unique to each device. Let us know if you need any other help.