[RFC PATCH 0/3] Type C partner power supply and PDO support.

From: Prashant Malani
Date: Thu Sep 02 2021 - 17:35:13 EST


Hi,

We'd like to expose the USB PD Power Source/Sink capabilities provided
by a partner (SOP) to userspace. Towards that end,
here is a short series which adds the capabilities to the power supply
class. We also add a function to the Type C connector class
to register a power supply device for a connected partner.

I'm sending this out as an RFC to get some initial feedback from the
relevant groups. Once we can settle on an approach, I can resend the
series with a sample implementation in the Chrome OS Type C port driver
(cros-ec-typec).

Thanks!

Prashant Malani (3):
usb: pd: Increase max PDO objects to 13
power: supply: Add support for PDOs props
usb: typec: Add partner power registration call

Documentation/ABI/testing/sysfs-class-power | 30 +++++++++++++++++++++
drivers/power/supply/power_supply_sysfs.c | 18 ++++++++++++-
drivers/usb/typec/class.c | 18 ++++++++++++-
drivers/usb/typec/class.h | 2 ++
include/linux/power_supply.h | 5 ++++
include/linux/usb/pd.h | 8 +++++-
include/linux/usb/typec.h | 5 ++++
7 files changed, 83 insertions(+), 3 deletions(-)

--
2.33.0.153.gba50c8fa24-goog