Add support for AVS in TCPM
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 1 replyIn review
- v13 patches 4 repliesSuperseded
Changes in v2 from the cover letter
- Updated Documentation/ABI/testing/sysfs-class-power to address Sebastian Reichel's comments
- Added Acked-by tag for patch 3 and patch 1.
- Rebased on top of usb-next which dropped prerequisite-patch-id tags as Depends-on patch is now part of usb-next
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | dt-bindings: connector: Add SPR AVS Sink APDO definitionsDocumentation/ include/ | +21 | 0 replies | |
| 2/3 | power: supply: Add PD SPR AVS support to USB type enumDocumentation/ drivers/ include/ | +7 | 1 reply | |
| 3/3 | tcpm: Implement sink support for PD SPR AVS negotiationdrivers/ include/ include/ | +537 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Rob Herring (Arm) | Amit Sunil Dhamne | Heikki Krogerus | Sebastian Reichel |
|---|---|---|---|---|
| 1/3 | A-b | |||
| 2/3 | A-b | |||
| 3/3 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v2 0/3] Add support for AVS in TCPM
To facilitate optimum charging USB_PD_R3_2 introduced a SPR AVS (Standard Power Range Adjustable Voltage Supply) which is a power supply mode operating within the Standard Power Range (up to 100W). It allows a Source to offer an output voltage that can be adjusted by the Sink in fine increments (100mV) within a defined range.
Unlike the Programmable Power Supply (PPS), SPR AVS does not support a programmable current limit (Current Limit Mode). Instead, it functions similarly to a Fixed Supply where the voltage is adjustable; the Sink is responsible for ensuring it does not draw more current than negotiated.
This patch series enables sink to enable and negotiate SPR AVS with an SPR AVS capable PD source. This allows gs101 to negotiate SPR AVS with a SPR AVS compatible USB PD port partner. The DTS changes for gs101 will be sent as a separate patch while marking this topic as a dependency.
This patch series also depends on the "Introduce Sink Cap Extended AMS" introduced by Amit Sunil Dhamne as it introduces the SPR AVS voltage tier constants which this patch series relies on.
Depends-on: https://lore.kernel.org/lkml/[email protected]/
---
Changes in v2:
- Updated Documentation/ABI/testing/sysfs-class-power to address Sebastian Reichel's comments
- Added Acked-by tag for patch 3 and patch 1.
- Rebased on top of usb-next which dropped prerequisite-patch-id tags as Depends-on patch is now part of usb-next
Link to v1: https://lore.kernel.org/lkml/[email protected]/
---
Badhri Jagan Sridharan (3):
dt-bindings: connector: Add SPR AVS Sink APDO definitions
power: supply: Add PD SPR AVS support to USB type enum
tcpm: Implement sink support for PD SPR AVS negotiation
Documentation/ABI/testing/sysfs-class-power | 3 +- .../bindings/connector/usb-connector.yaml | 5 +- drivers/power/supply/power_supply_sysfs.c | 2 + drivers/usb/typec/tcpm/tcpm.c | 611 +++++++++++++++--- include/dt-bindings/usb/pd.h | 18 + include/linux/power_supply.h | 3 + include/linux/usb/pd.h | 32 +- include/linux/usb/tcpm.h | 2 +- 8 files changed, 565 insertions(+), 111 deletions(-)
base-commit: de6c925db978004703944585e9dd57d58aba0fac
Signature · 1 line
2.53.0.851.ga537e3e6e9-goog