Re: Some ideas about tcpm driver

From: Guenter Roeck
Date: Thu Aug 03 2017 - 09:03:01 EST


On Thu, Aug 3, 2017 at 12:28 AM, Zain Wang <wzz@xxxxxxxxxxxxxx> wrote:
> Hi all,
>
> In recent days, I tested the fusb302 driver with tcpm. (RK3399 evb board)
> But I found an issues:
> There is not a regulator for type-c vbus power-supply in my board.
> The vbus is just controlled by a gpio-pin, and unable to support other
> voltage except 5V.

gpio-regulator does not work ?

> But now, I can't use fusb302 driver without workaround fix.
> Could you fix it in next version? @Yueyao
>
> The altmode looks not complete. I can't enter DP Alt Mode now.

Yes, I know. Patches welcome.

> And we'd like to used extcon function (used in Chrome) to link usb, dp and
> type-c together.

Plan is to use the extcon driver (from cros-ec) to register with the
type-c infrastructure. I have not thought about how to tie low level
drivers (fusb/tcpm) with extcon. Ideas welcome.

Guenter

> How do you think about it? @Guenter
>
> Thanks
> Zain
>