Skip to content

Type-C charger support using power_supply

Mathew King linux-pm linux-usb lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v0 Latest2 patches 3 repliesIn review

Patches in v0 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2typec: Move typec class structs into a header filedrivers/usb/typec/class.c drivers/usb/typec/class.h+62 -550 replies
2/2typec: Add Type-C chargerdrivers/usb/typec/Kconfig drivers/usb/typec/Makefile drivers/usb/typec/charger.c +3 more+290 -93 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v0 yet.

Read the v0 thread

Cover letter [PATCH v0 0/2] Type-C charger support using power_supply

I am looking to expose Type-C charging ports using a power_supply class. In this patch series I have done this by creating a config option to enable this by adding support directly into the typec driver. I would like some feedback on this general approach.

I have been testing on a system that uses an ACPI implementation of UCSI and things are working as expected.

Mathew King (2):
typec: Move typec class structs into a header file
typec: Add Type-C charger

 drivers/usb/typec/Kconfig   |  11 ++
 drivers/usb/typec/Makefile  |   1 +
 drivers/usb/typec/charger.c | 204 ++++++++++++++++++++++++++++++++++++
 drivers/usb/typec/charger.h |  33 ++++++
 drivers/usb/typec/class.c   | 108 ++++++++-----------
 drivers/usb/typec/class.h   |  63 +++++++++++
 6 files changed, 356 insertions(+), 64 deletions(-)
 create mode 100644 drivers/usb/typec/charger.c
 create mode 100644 drivers/usb/typec/charger.h
 create mode 100644 drivers/usb/typec/class.h
Signature · 1 line
2.26.1.301.g55bc3eb7cb9-goog