From: Giandomenico Rossi <rossi@amelchem.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org, Nicola Fontana <ntd@entidi.it>
Subject: Re: [PATCH 4/4] commands: stusb4500: add USB-C PD control command
Date: Tue, 17 Nov 2026 14:12:15 +0100 [thread overview]
Message-ID: <2a55ec2381ab6e98a49627647adb5dde066fd696.camel@amelchem.com> (raw)
In-Reply-To: <19f0a52f-ad0f-44fd-b97d-644b925eff29@pengutronix.de>
On Tue, 2026-11-17 at 11:46 +0000, Sascha Hauer wrote:
> If I understand correctly then
> that should already give you the base case supported with the PDOs
> being
> configured through device tree, right?
Hi Sascha,
yes, that’s correct.
Stripping the exported functions and the helpers
that only backed them (the RDO/contract decode and the negotiated-
voltage read) leaves exactly the base case: the driver parses
sink-pdos from the device tree, programs them into registers and sets
the active PDO count at probe. From there the STUSB4500 negotiates the
contract autonomously in hardware, as it’s designed to.
No board-facing API, nothing exported - everything static. That’s a
self-contained, useful driver on its own, and I’m happy to send it as
v2 that way.
I’ll drop the stusb4500 command from this series entirely.
I agree it shouldn’t be chip-specific.
Maybe I’ll revisit that as a separate RFC on top, which is also where
renegotiation and contract reporting would come back (I’ll leave
st,renegotiate-on-probe out of the base).
Thanks,
Giandomenico
prev parent reply other threads:[~2026-11-17 13:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-14 16:19 [PATCH 0/4] usb: typec: add STUSB4500 USB-C PD sink support Giandomenico Rossi
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 [this message]
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=2a55ec2381ab6e98a49627647adb5dde066fd696.camel@amelchem.com \
--to=rossi@amelchem.com \
--cc=barebox@lists.infradead.org \
--cc=ntd@entidi.it \
--cc=s.hauer@pengutronix.de \
/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