[PATCH 4/4] commands: stusb4500: add USB-C PD control command
Sascha Hauer
s.hauer at pengutronix.de
Tue Nov 17 03:46:13 PST 2026
Hi Giandomenico,
On 2026-11-14 17:19, Giandomenico Rossi wrote:
> Add a Barebox shell command to inspect and control the STUSB4500
> USB-C Power Delivery sink controller.
>
> The command supports listing and dumping configured PDOs, updating
> sink PDOs, forcing PD renegotiation, and displaying the negotiated
> contract. The target STUSB4500 device can be selected with the -d
> option.
The command as such can not be accepted upstream. It shouldn't be
STUSB4500 specific, but instead call into the driver through ops
which can be implemented by other drivers as well.
I think the driver part of this series can be upstreamed quite fast
if you remove the exported functions and other stuff that's only there
to implement the exported functions. If I understand correctly then
that should already give you the base case supported with the PDOs being
configured through device tree, right?
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list