CYPD3120 configuration for a USB-C display port alt mode sink

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
daver
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

We are trying to configure the CYPD3120 for a display port sink/UFP application with sink pin assignment C (and DP source device pin assignment not supported) We are using the EZ-PD configuration tool but it looks like FW may be over writing the tool setting for SVID 0 bits 15:8 which set the source device pin assignment.  The CYPD3120 always seems to change this field from 0x00 (not supported) to 0x10 (pin assignment E).  Can the device be set for this type of application via the EZ-PD tool or is a FW change required?

0 Likes
1 Solution
HmdRahmathulla
Moderator
Moderator
Moderator
100 solutions authored 250 sign-ins 25 likes received

Hi,

Thank you for posting in infineon community.

For DFP selection we have dedicated GPIO to config. kindly look into the mentioned line in the program

HmdRahmathulla_0-1663584485145.png

 you have to use the GPIO to set the DFP configuration. it is executing else statement to assign the pin as E. 

changing the state of the GPIO will change the pin assignment.

 

Best Regards

Mohamed Rahmathulla

View solution in original post

0 Likes
12 Replies
HmdRahmathulla
Moderator
Moderator
Moderator
100 solutions authored 250 sign-ins 25 likes received

Hi,

Thank you for posting in infineon community.

For DFP selection we have dedicated GPIO to config. kindly look into the mentioned line in the program

HmdRahmathulla_0-1663584485145.png

 you have to use the GPIO to set the DFP configuration. it is executing else statement to assign the pin as E. 

changing the state of the GPIO will change the pin assignment.

 

Best Regards

Mohamed Rahmathulla

0 Likes

Thanks for the information.  Where is that code and how do we get it?  Thanks

0 Likes
HmdRahmathulla
Moderator
Moderator
Moderator
100 solutions authored 250 sign-ins 25 likes received

Hi,

https://www.infineon.com/cms/en/design-support/tools/tools-archive/usb-ez-pd-host-sdk-archives/#!?fi...

DOWNLOAD - EzPdCCGxSdk_3.0.1_Setup.exe from the above link.

 

Note : it will support in lower version of Psoc creator . please download Psoc creator 3.3 with the below link .

https://www.infineon.com/cms/en/design-support/tools/tools-archive/psoc-creator-archive/#!?fileId=8a...

 

Thanks & Regards

Mohamed Rahmathulla

0 Likes
daver
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

Thanks, with the FW changes we are now able to get a DP Configure / ACK DP configure with the DP sink set as an UFP with the correct pin assignments but a this point we think the sink should send a USB PD Attention command with the HPD state high but we aren't seeing this out of the PD controller.  Is there some additional configuration or pin control required to get the Attention command sent?

0 Likes
daver
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

Additional information - when we toggle pin 35 on the PD controller we get the desired Attention command  with  the HPD state high.  Is there pin or registers status which indicates when the PD controller has reached a state where it is OK to send the attention command ?

0 Likes
HmdRahmathulla
Moderator
Moderator
Moderator
100 solutions authored 250 sign-ins 25 likes received

Hi,

 please check the below link which will help to resolve. 

https://community.infineon.com/t5/USB-EZ-PD-Type-C/HPD-status-shows-low-with-CYPD-3120-solution-with...

Kindly share the PD command Log, so that it will help me to analyze this problem.

 

Thanks & Regards

Mohamed Rahmathulla

0 Likes

Hi Mohamed,

I don't know if you see the additional information posted above -  we are able to get the Attention command with the correct HPD state by toggling pin 35.  The question is how do we determine that the PD controller has received and ack'd the DisplayPort Configure command (so we know when to toggle pin 35)?

Thanks

0 Likes
HmdRahmathulla
Moderator
Moderator
Moderator
100 solutions authored 250 sign-ins 25 likes received

Hi Daver, 

HPD change in State will trigger the PD controller to get the status message. but  you don't need to do it manually. 

if you connect the Display you will get the attention messages as follows 

* Discovery SVIDs (DFP to UFP)

* LIST of SVIDs (UFP to DFP)

* Display port Discover modes (DFP to UFP)

* List of Modes (UFP to DFP)

* Enter Display Mode(DFP to UFP)

* Enter Display Mode ACK (UFP to DFP)

 As soon as it configured as Display Port, the controller sent the ACK message and stay in the configured DP.

 

Please share me the PD Log, so that i will look into that and help you to solve.

 

Thanks & Regards

Mohamed Rahmathulla

0 Likes

Hi,

  Thanks for the help - we get to the ACK DP_Configure state (w/ DP controller as an UFP) and now want the PD controller to send the Attention Command with the HPD high indication.  The message gets sent if we raise the HPD signal (pin 35).  The question is how do we know the PD controller has reached the ACK DP_Configure  state so we know to toggle the HPD pin?

0 Likes
HmdRahmathulla
Moderator
Moderator
Moderator
100 solutions authored 250 sign-ins 25 likes received

Hi,

 DP_Configure Ack message is handled in dp_ufp_run(port) function in dp_sid.c file.

 if you want to get the Attention message you can set flag in the switch case named DP_STATE_CONFIG, and use that flag in main loop to set/reset the HPD pin.

could you please give the use case for toggle the HPD pin manually?

we have developed the code to follow the flow which is mentioned in the USB-PD display port Spec. you will get the PD message accordingly.

note : it is not advisable to manually trigger the HPD pins which is already mapped to the DP connector to get the interrupt for the Plug detection. 

 

Thanks & Regards

Mohamed Rahmathulla

 

 

0 Likes
lock attach
Attachments are accessible only for community members.

Hi Mohamed,

 When we connect the USB-C cable the discovery process gets as far as ACK DP_Configure and stops there (see attached) Then we need to toggle the HPD to get the ATTENTION message and for DP link training to start. 

Regards,

Dave

 

0 Likes
HmdRahmathulla
Moderator
Moderator
Moderator
100 solutions authored 250 sign-ins 25 likes received

Hi dave, 

Please try the last solution which i suggested, it will give you the attention message after the DP_Configure Ack with HPD_IRQ status.

 

Thanks & Regards

Mohamed Rahmathulla

0 Likes