beagleboard / linux

The official Read Only BeagleBoard and BeagleBone kernel repository https://git.beagleboard.org/beagleboard/linux
http://beagleboard.org/source
Other
707 stars 565 forks source link

TCPM separate power supply driver and cc manager #254

Open kanceld opened 3 years ago

kanceld commented 3 years ago

How would a TCPM-implementing device such as the fusb302 driver integrate with a buck-boost nvdc charger such as the bq25710?

I see the points here: Fusb302 driver where you can turn on a declared "vbus" regulator or turn on "charge"?

and here: Tcpm driver that discusses setting limits and voltages.

But for a port that has a separate "charger" ic for managing the power (at least from the fusb) how can I attach the power control to the same tcpm driver?

I do see that there is a section for registering a power supply in tcpm, but it seems to be called from the section of the fusb302 driver that initializes the tcpm: Register Power Supply section Callout to above from port register that is called from fusb302 section

Any pointers are much appreciated!

Thanks!