From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: rossi@amelchem.com, barebox@lists.infradead.org
Subject: Re: Driver placement for a new STUSB4500 USB-C PD sink controller
Date: Tue, 25 Aug 2026 12:08:45 +0200 [thread overview]
Message-ID: <2d747fac-3c27-45d1-9f6c-95e8579c75a2@pengutronix.de> (raw)
In-Reply-To: <561b94b11b45ec960fbbc060d8db8f292e2446e4.camel@amelchem.com>
Hello Giandomenico,
On 8/25/26 11:38 AM, Giandomenico Rossi wrote:
> Hi,
>
> I'm writing a Barebox driver for the STMicroelectronics STUSB4500, an
> autonomous USB Type-C Power Delivery sink controller (I2C).
> It can trigger a renegotiation, and reports the resulting contract.
> Target platform is an STM32MP151-based board.
Cool. What information should this driver make available?
> I'd like to agree on where the files should live, so I don't have to
> reshuffle everything later.
>
> Driver source: at the moment I have the driver under drivers/usb/misc/,
> but since it's a USB Type-C PD sink controller it might fit better
> under drivers/usb/typec/ (which Barebox doesn't have yet, so it would
> mean creating it). Would you prefer that, or somewhere else?
We have had a drivers/usb/typec directory since v2023.07.0.
If you missed it you may also want to check the basic USB Type-C
framework that was added there and see how well it fits your driver.
> DT binding: I've written the binding as a YAML schema
> (st,stusb4500.yaml), matching the Linux dt-schema format and reusing
> the common usb-connector.yaml for the connector sub-node.
> Where should it go in the Barebox tree?
I am unsure why you need a custom schema if there's already one
upstream? Anyways, barebox-specific schemas are collected in
Documentation/devicetree/bindings/. Upstream bindings are imported to
dts/Bindings/
Cheers,
Ahmad
>
> Regards,
> Giandomenico Rossi
> Amel s.r.l.
>
--
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 |
next prev parent reply other threads:[~2026-08-25 10:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 9:38 Giandomenico Rossi
2026-08-25 10:08 ` Ahmad Fatoum [this message]
2026-08-25 12:14 ` 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=2d747fac-3c27-45d1-9f6c-95e8579c75a2@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=rossi@amelchem.com \
/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