From: Giandomenico Rossi <rossi@amelchem.com>
To: barebox@lists.infradead.org
Cc: Giandomenico Rossi <rossi@amelchem.com>
Subject: [PATCH 0/4] usb: typec: add STUSB4500 USB-C PD sink support
Date: Sat, 14 Nov 2026 17:19:49 +0100 [thread overview]
Message-ID: <20261114161953.1457428-1-rossi@amelchem.com> (raw)
Hello,
this series adds support for the STMicroelectronics STUSB4500
autonomous USB-C Power Delivery sink controller.
The STUSB4500 negotiates a PD contract in hardware from a set of
sink PDOs configured via the Device Tree, without host firmware
involvement after probe. The series adds:
- a small addition to the typec core (typec_port_from_device())
needed to look up a registered port from its struct device
- the driver itself: configuring sink PDOs from the "connector"
sub-node and exposing voltage/current as read-only parameters
- the Device Tree binding for the controller
- an optional shell command ('stusb4500') for bring-up: dumping
sink/source PDOs, editing sink PDOs, forcing renegotiation and
reading back the negotiated contract
Tested on an STM32MP151A-based board against multiple USB-C PD
chargers: an XP Power PGD100PS20C2-8, a Lenovo ADLX65YLC3D (65W)
and an EDACPOWER EUM110A2A, verifying contract negotiation,
PDO updates and renegotiation.
This series has been reviewed internally by Nicola Fontana.
Giandomenico Rossi (4):
usb: typec: add typec_port_from_device()
usb: typec: stusb4500: add USB PD fixed supply driver
dt-bindings: usb: add STUSB4500 USB PD sink controller binding
commands: stusb4500: add USB-C PD control command
.../bindings/misc/st,stusb4500.yaml | 102 ++
commands/Kconfig | 23 +
commands/Makefile | 1 +
commands/stusb4500.c | 274 +++++
drivers/usb/typec/Kconfig | 11 +
drivers/usb/typec/Makefile | 1 +
drivers/usb/typec/class.c | 21 +
drivers/usb/typec/stusb4500.c | 1040 +++++++++++++++++
include/linux/usb/typec.h | 2 +
include/usb/stusb4500.h | 59 +
10 files changed, 1534 insertions(+)
create mode 100644 Documentation/devicetree/bindings/misc/st,stusb4500.yaml
create mode 100644 commands/stusb4500.c
create mode 100644 drivers/usb/typec/stusb4500.c
create mode 100644 include/usb/stusb4500.h
--
2.34.1
next reply other threads:[~2026-11-14 16:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-14 16:19 Giandomenico Rossi [this message]
2026-11-14 16:19 ` [PATCH 1/4] usb: typec: add typec_port_from_device() Giandomenico Rossi
2026-11-14 16:19 ` [PATCH 2/4] usb: typec: stusb4500: add USB PD fixed supply driver Giandomenico Rossi
2026-11-17 11:27 ` Sascha Hauer
2026-11-14 16:19 ` [PATCH 3/4] dt-bindings: usb: add STUSB4500 USB PD sink controller binding Giandomenico Rossi
2026-11-14 16:19 ` [PATCH 4/4] commands: stusb4500: add USB-C PD control command Giandomenico Rossi
2026-11-17 11:46 ` Sascha Hauer
2026-11-17 13:12 ` Giandomenico Rossi
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=20261114161953.1457428-1-rossi@amelchem.com \
--to=rossi@amelchem.com \
--cc=barebox@lists.infradead.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