Enable/disable Port

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
Anonymous
Not applicable

Hi,

     We are using CYPD2122-24LQXI as notebook Application to charge the Battery, can we Enable/Disable Port  through HPI PD Command when our battery is low/full.

Is it Port Disable/Port Enable commands used only to recover from error scenarios?

Thanks,

Nagaraj

0 Likes
1 Solution
RajathB_01
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hi Nagaraj,

Yes PD port can be en/disabled using HPI.

You can initiate this according to your situation (end application).

Regards,

Rajath

View solution in original post

0 Likes
10 Replies
RajathB_01
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hi Nagaraj,

Yes PD port can be en/disabled using HPI.

You can initiate this according to your situation (end application).

Regards,

Rajath

0 Likes
Anonymous
Not applicable

Hi Rajath,

In our application we are using Type C to charge a battery. What we need is whenever the battery is fully charged we need to disable the PD even though the power adapter is connected. We have gone through the HPI and found that the Port can be disabled, but the HPI document says the port can be disabled in error condition and reset command should be sent after the port disable.

In our application we don't want to send the reset command and we just need to disable the PD.

Is this possible? If Yes, please do let me know which command has to be send to disable and enable PD.


Thanks,

Nagaraj

0 Likes
RajathB_01
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hi Nagaraj,

Yes it is possible.

You can disable PD when the battery is charged. Reset can be sent whenever PD needs to resume.

The commands are described in HPI document and are confidential to be mentioned over here.

Regards,

Rajath

0 Likes
Anonymous
Not applicable

Hi Rajath,

If we disable the PD will the EC come to know the type C port connect detect and port disconnect detect if we have configured EVENT_MASK register.

Thanks,

Nagaraj

0 Likes
RajathB_01
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Yes, the port will wake up automatically and notify the EC.

Regards,

Rajath

0 Likes
Anonymous
Not applicable

Hi Rajath,

      

We tested with PD Disable Command through HPI, no Disconnect/connect response event from CCG2 device when we type C  plug/unplugged, Only after Reset Command and reconfigure Event Mask register able to get Disconnect/connect response event from ccg2 device .

Thanks,

Nagaraj

0 Likes
RajathB_01
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Then I was wrong, wake does not work under disable.

You can modify the firmware to poll for connection if you need to, under disabled state.

Regards,

Rajath

0 Likes
Anonymous
Not applicable

Hi Rajath,

               Yes, we have to handle this case, How we can handle the connection state by Polling?

Thanks,

Nagaraj

0 Likes
Anonymous
Not applicable

Hi Rajath,

Do we have to modify the CCG notebook application for polling or the EC application for implementing the polling method.

Thanks,

Nagaraj

0 Likes
RajathB_01
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hi Nagaraj,

In the CCG2 FW, you can use functions like - is_port_attached(), get_port_status() etc listed in the CCG2 Notebook Application FW API guide (page 15 onwards) to detect type-c plugging.

Regards,

Rajath

0 Likes