[PATCH 4/4] commands: stusb4500: add USB-C PD control command

Giandomenico Rossi rossi at amelchem.com
Tue Nov 17 05:12:15 PST 2026


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



More information about the barebox mailing list