beagleboard / beagleboard/linux
TCPM separate power supply driver and cc manager
- Dominant language
- C
- Stars
- 810
- Forks
- 582
- PR merge metrics
- No merged PRs in 30d
Description
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](https://github.com/beagleboard/linux/blob/5ff7d8356e91ff8516c0bd37710829a7556b6790/drivers/usb/typec/tcpm/fusb302.c#L754 )
where you can turn on a declared "vbus" regulator or turn on "charge"?
and here:
[Tcpm driver](https://github.com/beagleboard/linux/blob/5ff7d8356e91ff8516c0bd37710829a7556b6790/drivers/usb/typec/tcpm/tcpm.c#L725)
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](https://github.com/beagleboard/linux/blob/5ff7d8356e91ff8516c0bd37710829a7556b6790/drivers/usb/typec/tcpm/tcpm.c#L4634)
[Callout to above from port register that is called from fusb302 section](https://github.com/beagleboard/linux/blob/5ff7d8356e91ff8516c0bd37710829a7556b6790/drivers/usb/typec/tcpm/tcpm.c#L4724)
Any pointers are much appreciated!
Thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.