Skip to contentSkip to conversation

Display Alt mode with TPS6598x driver

DISCUSSION Shah, Nehal-bakulchandra 2 participants 5 messages Nov 25, 2020 – Jan 8, 2021 USB

lore
Share & tools
lore
#0 lore raw

Hi Heikki,

I am working on the project with PD controller as TPS6598x. The current implementation of TPS6598x does not invoke display alt mode driver .

Can you help me to understand how to achieve this?

Thanks and regards

Nehal Shah

#1 lore raw
Quoted 6 lines · Nehal-bakulchandra

Hi Heikki,

I am working on the project with PD controller as TPS6598x. The current implementation of TPS6598x does not invoke display alt mode driver .

Can you help me to understand how to achieve this?

You should be able to get an idea how to achieve that for example by checking how we did it for UCSI: drivers/usb/typec/ucsi/displayport.c

I think you should start by first only registering the alternate mode without any control. That way you should not need to deal with anything else except the DP SID Status register.

After that we can add control as the next step.

If you need more help, let me know.

Br,

Signature · 1 line
heikki
#2 lore raw

Hi Heikki,

Quoted 14 lines · Heikki Krogerus
Quoted 6 lines · Nehal-bakulchandra

Hi Heikki,

I am working on the project with PD controller as TPS6598x. The current implementation of TPS6598x does not invoke display alt mode driver .

Can you help me to understand how to achieve this?

You should be able to get an idea how to achieve that for example by checking how we did it for UCSI: drivers/usb/typec/ucsi/displayport.c

I think you should start by first only registering the alternate mode without any control. That way you should not need to deal with anything else except the DP SID Status register.

Quoted 5 lines

After that we can add control as the next step.

If you need more help, let me know.

Br,

Thanks for the input. I will have a look.

regards

Nehal

#3 lore raw

Hi Heikki,

Quoted 19 lines · Nehal-bakulchandra

Hi Heikki,

Quoted 16 lines · Heikki Krogerus
Quoted 6 lines · Nehal-bakulchandra

Hi Heikki,

I am working on the project with PD controller as TPS6598x. The current implementation of TPS6598x does not invoke display alt mode driver .

Can you help me to understand how to achieve this?

You should be able to get an idea how to achieve that for example by checking how we did it for UCSI: drivers/usb/typec/ucsi/displayport.c

I think you should start by first only registering the alternate mode without any control. That way you should not need to deal with anything else except the DP SID Status register.

After that we can add control as the next step.

Quoted 8 lines
Quoted 3 lines

If you need more help, let me know.

Br,

Thanks for the input. I will have a look.

regards

Nehal

I am not able to understand who will trigger ucsi_displayport_exit ? for enter mode , i understood it goes through vdm statemachine. But how exit is getting triggered?.

Thanks

Nehal Shah

Quoted 1 line
#4 lore raw

Hi,

Quoted 23 lines · Nehal-bakulchandra
Quoted 22 lines · Nehal-bakulchandra
Quoted 14 lines · Heikki Krogerus
Quoted 6 lines · Nehal-bakulchandra

Hi Heikki,

I am working on the project with PD controller as TPS6598x. The current implementation of TPS6598x does not invoke display alt mode driver .

Can you help me to understand how to achieve this?

You should be able to get an idea how to achieve that for example by checking how we did it for UCSI: drivers/usb/typec/ucsi/displayport.c

I think you should start by first only registering the alternate mode without any control. That way you should not need to deal with anything else except the DP SID Status register.

Quoted 5 lines

After that we can add control as the next step.

If you need more help, let me know.

Br,

Thanks for the input. I will have a look.

Quoted 7 lines
Quoted 3 lines

regards

Nehal

I am not able to understand who will trigger ucsi_displayport_exit ? for enter mode , i understood it goes through vdm statemachine. But how exit is getting triggered?.

ucsi_displayport_exit() ends up being called when the displayport altmode driver (drivers/usb/typec/altmodes/displayport.c) executes typec_altmode_exit().

Br,

Signature · 1 line
heikki