Skip to content

usb: typec: ucsi: Expand power supply support

Jameson Thies linux-pm linux-usb lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 7 repliesIn review
  2. v14 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Uses DRP bit in source PDOs for setting USB DRP power supply type.
- Adds SET_SINK_PATH call when handling an update to charge_control_limit_max.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4usb: typec: ucsi: Add status to UCSI power supply driverdrivers/usb/typec/ucsi/psy.c+17 -03 replies
2/4usb: typec: ucsi: Add USB PD DRP to USB typedrivers/usb/typec/ucsi/psy.c+11 -10 replies
3/4usb: typec: ucsi: Set sink path based on UCSI charge controldrivers/usb/typec/ucsi/psy.c drivers/usb/typec/ucsi/ucsi.c drivers/usb/typec/ucsi/ucsi.h+72 -02 replies
4/4usb: typec: ucsi: Fix SET_PDR typo in UCSI header filedrivers/usb/typec/ucsi/ucsi.h+1 -12 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchNeil Armstrong
1/4
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] usb: typec: ucsi: Expand power supply support

Hi Heikki,

This series makes the following updates to the UCSI power supply driver.

1. Adds support for the power supply status property.
2. Updates the driver to distinguish between PD and PD DRP power supply types.
3. Adds the charge control limit max property which can be used to request a PR swap from sysfs.
4. Fixes a simple SET_PRD typo in the ucsi.h header.

I've checked that the series builds on top of the usb-next branch and manually tested functionality on top of a 6.10-rc5 ChromeOS kernel. Let me know if you have any questions.

Thanks,
Jameson

Changes in V2
- Uses DRP bit in source PDOs for setting USB DRP power supply type.
- Adds SET_SINK_PATH call when handling an update to charge_control_limit_max.

Jameson Thies (4):
usb: typec: ucsi: Add status to UCSI power supply driver
usb: typec: ucsi: Add USB PD DRP to USB type
usb: typec: ucsi: Set sink path based on UCSI charge control
usb: typec: ucsi: Fix SET_PDR typo in UCSI header file

 drivers/usb/typec/ucsi/psy.c  | 81 ++++++++++++++++++++++++++++++++++-
 drivers/usb/typec/ucsi/ucsi.c | 15 +++++++
 drivers/usb/typec/ucsi/ucsi.h |  7 ++-
 3 files changed, 101 insertions(+), 2 deletions(-)

base-commit: 933069701c1b507825b514317d4edd5d3fd9d417

Signature · 1 line
2.45.2.1089.g2a221341d9-goog