mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dennis Gilmore <dennis@ausil.us>
To: Alexey Charkov <alchark@flipper.net>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: misc: onboard_usb_dev: Add support for requesting VBUS for Type-A ports
Date: Tue, 31 Mar 2026 19:49:09 -0500	[thread overview]
Message-ID: <a7c2973a44ad14c15f808765c3d394d07bef09f8.camel@ausil.us> (raw)
In-Reply-To: <20260217-typea-vbus-v1-1-657b4e55a4c2@flipper.net>

On Tue, 2026-02-17 at 14:12 +0400, Alexey Charkov wrote:
> Add a regulator-only entry matching OF-described USB Type-A
> connectors.
> 
> This allows platforms to explicitly model VBUS supply regulators for
> these
> ports instead of calling them PHY supplies or making the respective
> regulators always-on in their device trees.
> 
> Type-A ports won't typically need a dedicated driver, as there is
> nothing
> to configure apart from the power supply, so there is no controller
> driver
> to traverse the OF graph and request the VBUS regulator, unlike for
> Type-C
> ports. Thus make it an onboard USB device, which it kind of really
> is.

Tested this on an orange pi 5 pro, with this and matching dts changes
the USB port was functional.

Dennis

Tested-by: Dennis Gilmore <dennis@ausil.us>
> 
> Signed-off-by: Alexey Charkov <alchark@flipper.net>
> ---
>  drivers/usb/misc/onboard_usb_dev.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/usb/misc/onboard_usb_dev.h
> b/drivers/usb/misc/onboard_usb_dev.h
> index 1a1e86e60e04..35d15b034664 100644
> --- a/drivers/usb/misc/onboard_usb_dev.h
> +++ b/drivers/usb/misc/onboard_usb_dev.h
> @@ -108,6 +108,11 @@ static const struct onboard_dev_pdata
> genesys_gl852g_data = {
>  	.is_hub = true,
>  };
>  
> +static const struct onboard_dev_pdata usb_a_conn_data = {
> +	.num_supplies = 1,
> +	.supply_names = { "vbus" },
> +};
> +
>  static const struct onboard_dev_pdata vialab_vl817_data = {
>  	.reset_us = 10,
>  	.num_supplies = 1,
> @@ -130,6 +135,7 @@ static const struct onboard_dev_pdata
> xmos_xvf3500_data = {
>  };
>  
>  static const struct of_device_id onboard_dev_match[] = {
> +	{ .compatible = "usb-a-connector", .data = &usb_a_conn_data,
> },
>  	{ .compatible = "usb424,2412", .data =
> &microchip_usb424_data, },
>  	{ .compatible = "usb424,2514", .data =
> &microchip_usb2514_data, },
>  	{ .compatible = "usb424,2517", .data =
> &microchip_usb424_data, },
> 
> ---
> base-commit: 350adaf7fde9fdbd9aeed6d442a9ae90c6a3ab97
> change-id: 20260217-typea-vbus-74515378021d
> 
> Best regards,

      reply	other threads:[~2026-04-01  0:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-17 10:12 Alexey Charkov
2026-04-01  0:49 ` Dennis Gilmore [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=a7c2973a44ad14c15f808765c3d394d07bef09f8.camel@ausil.us \
    --to=dennis@ausil.us \
    --cc=alchark@flipper.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.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

all inboxes | Powered by JetHome®