From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f74.google.com (mail-dl1-f74.google.com [74.125.82.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94F6A2AE68 for ; Thu, 26 Feb 2026 05:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772085198; cv=none; b=p7x+/2OVOkWb3mNK/8XYGsWN6S6RPYlQ9fHovmBAghliaDuQv2Wfwre4bKVfMnF0m62y4/z4L8RVr2L1xahWIEQfE+fcSDf5GyvMxy56U5KwpsxXniZ6611koFFTN8rBN8AKTE20EvWgBXwMEjpE7Jinl2xbKPTVK1UumqjWDO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772085198; c=relaxed/simple; bh=Qlw/1Ju44GL9aQDN0N2cEiRZFdixh9GCnMHZ/Mti0+w=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=h91B7D/qbBCzyuoZRmdR7ymFzRaP7Fail2ictqfe4TF5HtoY/XZu/MnuMqEHDqUdTi5Rd3GZBT3tw1dhnnkLU7WwcynW5bTfpfeV45jg4RWFmYuxH1oJ7bP+JNeH3ya6eeQFc0PPrweIwnVSRNKzFn08XezvS7/9zzBeRcI2UIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--badhri.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=tWc4lbSO; arc=none smtp.client-ip=74.125.82.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--badhri.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="tWc4lbSO" Received: by mail-dl1-f74.google.com with SMTP id a92af1059eb24-12733603eb5so8507879c88.0 for ; Wed, 25 Feb 2026 21:53:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1772085197; x=1772689997; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=6fqgL7f/DJ61Hn3+dq/y0RfyIFeDJLaKoFUILGJGRcs=; b=tWc4lbSOQ9rCulMXUSwQcNt2tJKbaeou+cWG7CJ86s/xD/CBIdQZCP2TQbwTMouHll GDrYhLXZqZu0O8Jlxy5ZGiLdpB3bzMIFJ3uOLxlu3Fx66bECK3Xdzuda3mziuLeEhoXj JbWhA5R6no6g0hOZ5pXkxxLBcyr4Zsa6lIhW5iOstscUVIUAvvgTMZ2FshHEPHONQjux e7IlZPXHWjQMiXyak+DbJ2gXrZLxM1EZ+OqevwbleUC8GAgertiK0j+5+SqINQ8ND2g1 WZAb7JeMhJkgJBTsnB68yYYjPjurJAo91LM4o/GFt97VD6l03hCMp5g9sX76LN6GX4Xs ocyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772085197; x=1772689997; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6fqgL7f/DJ61Hn3+dq/y0RfyIFeDJLaKoFUILGJGRcs=; b=c4r7yowqz4NJfMUUhDXdvYXjb2U5kgEg0Bo1SGFQ1v721RIMZPDThub4/hyaqsfXVw l6l02J0D1q/+7nnbmPRx97k3vsZz8nIUh94FyWvx81xj/k82s2Bdz9qFxKZGbd/vjwOM mxCIJ/KfCLQIdN0YeglV2UjG2s58AMtb72jP0pf7TanTCqj23t2ScVW+MNQ5Y4uYJO6N Ehlx7R694cJo6Mo1MdrZ6M1xrSOEJIaBaQQWsQxGfFZU3RF71EElO2wLJV17MHT6IvDS OXlfWHrkfbIzt617t1lpwmksVNY5RLIx+WKa9sg399wNM1M1ioenNEcv+WP/9idZTJUO DLbg== X-Forwarded-Encrypted: i=1; AJvYcCVA0VMp3Vyj+VEymd8FLhti/6nykiWhjl0+3J9oeU/+kLGS5tvvESttovXVmicQ1S3QYPVe9Vjzn/A=@vger.kernel.org X-Gm-Message-State: AOJu0YwVZj8zaVmlm3aWd+yZ4m32VSM6Rdu81uf4vRmT8TlkeRQCoqwp 5TAGOzUNT8mWt0lMtFuu4xUGujB0U6QxARjnraeQLCrHVr8uNpT0xlAlUu7bhdPYiBcC0qtMlZ6 4eRHoWA== X-Received: from dlbbz39.prod.google.com ([2002:a05:7022:23a7:b0:127:c11:f47a]) (user=badhri job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:670d:b0:119:e569:fbb2 with SMTP id a92af1059eb24-1276ad77ce7mr9417450c88.33.1772085196605; Wed, 25 Feb 2026 21:53:16 -0800 (PST) Date: Thu, 26 Feb 2026 05:53:08 +0000 Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.53.0.414.gf7e9f6c205-goog Message-ID: <20260226055311.2591357-1-badhri@google.com> Subject: [PATCH v1 0/3] Add support for AVS in TCPM From: Badhri Jagan Sridharan To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Badhri Jagan Sridharan , Heikki Krogerus , Greg Kroah-Hartman , Amit Sunil Dhamne Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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/ 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 .../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 +- 7 files changed, 563 insertions(+), 110 deletions(-) base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f prerequisite-patch-id: 4dacd8bc550e317d67134d030814765fb9f4c6e1 prerequisite-patch-id: e863378fc602b6bee2e9fdd8c568003c00b2a38e -- 2.53.0.414.gf7e9f6c205-goog