- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the information. Where is that code and how do we get it? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
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 .
Thanks & Regards
Mohamed Rahmathulla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
please check the below link which will help to resolve.
Kindly share the PD command Log, so that it will help me to analyze this problem.
Thanks & Regards
Mohamed Rahmathulla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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