From: Badhri Jagan Sridharan <badhri@google.com>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Sebastian Reichel <sre@kernel.org>,
Badhri Jagan Sridharan <badhri@google.com>,
Heikki Krogerus <heikki.krogerus@linux.intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Amit Sunil Dhamne <amitsd@google.com>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org, linux-usb@vger.kernel.org
Subject: [PATCH v2 0/3] Add support for AVS in TCPM
Date: Mon, 16 Mar 2026 15:02:58 +0000 [thread overview]
Message-ID: <20260316150301.3892223-1-badhri@google.com> (raw)
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/20260223-skedb-v2-0-60675765bc7e@google.com/
---
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/20260226055311.2591357-1-badhri@google.com/
---
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
--
2.53.0.851.ga537e3e6e9-goog
next reply other threads:[~2026-03-16 15:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-16 15:02 Badhri Jagan Sridharan [this message]
2026-03-16 15:02 ` [PATCH v2 1/3] dt-bindings: connector: Add SPR AVS Sink APDO definitions Badhri Jagan Sridharan
2026-03-16 15:03 ` [PATCH v2 2/3] power: supply: Add PD SPR AVS support to USB type enum Badhri Jagan Sridharan
2026-04-02 22:39 ` Sebastian Reichel
2026-03-16 15:03 ` [PATCH v2 3/3] tcpm: Implement sink support for PD SPR AVS negotiation Badhri Jagan Sridharan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260316150301.3892223-1-badhri@google.com \
--to=badhri@google.com \
--cc=amitsd@google.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sre@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox