U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Anand Moon <linux.amoon@gmail.com>
To: Tom Rini <trini@konsulko.com>,
	Beniamino Galvani <b.galvani@gmail.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>,
	Marek Vasut <marex@denx.de>, Michal Simek <michal.simek@amd.com>,
	Patrice Chotard <patrice.chotard@foss.st.com>,
	u-boot@lists.denx.de (open list),
	u-boot-amlogic@groups.io (open list:P200)
Cc: Anand Moon <linux.amoon@gmail.com>, Wayne Schroeder <raz@chewies.net>
Subject: [RFC v1 3/7] usb: onboard-hub: Add support for Genesys GL853G
Date: Fri,  9 May 2025 12:32:08 +0530	[thread overview]
Message-ID: <20250509070258.5077-4-linux.amoon@gmail.com> (raw)
In-Reply-To: <20250509070258.5077-1-linux.amoon@gmail.com>

Enable support for the Genesys GL853G USB2.0 and USB3.1 Hub on
the Odroid N2 and N2-plus. The GL853G driver activates the hub
reset signal, which toggles the GPIO.

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
=> dm tree

 simple_bus   11  [ + ]   dwc3-meson-g12a       |   `-- usb@ffe09000
 usb_gadget    0  [   ]   dwc2-udc-otg          |       |-- usb@ff400000
 usb           0  [ + ]   xhci-dwc3             |       `-- usb@ff500000
 usb_hub       0  [ + ]   usb_hub               |           `-- usb_hub
 usb_hub       1  [ + ]   usb_hub               |               |-- usb_hub
 usb_mass_s    0  [ + ]   usb_mass_storage      |               |   `-- usb_mass_storage
 blk           2  [ + ]   usb_storage_blk       |               |       |-- usb_mass_storage.lun0
 partition     0  [ + ]   blk_partition         |               |       |   `-- usb_mass_storage.lun0:1
 bootdev       3  [   ]   usb_bootdev           |               |       `-- usb_mass_storage.lun0.bootdev
 usb_hub       2  [ + ]   usb_hub               |               `-- usb_hub
 clk           2  [ + ]   fixed_clock           |-- xtal-clk
---
 common/usb_onboard_hub.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index 39bbc1aefa2..3914e2f773d 100644
--- a/common/usb_onboard_hub.c
+++ b/common/usb_onboard_hub.c
@@ -231,6 +231,10 @@ static const struct onboard_hub_data genesys_gl852g_data = {
 	.reset_us = 50,
 };
 
+static const struct onboard_hub_data genesys_gl853g_data = {
+	.reset_us = 50,
+};
+
 static const struct udevice_id usb_onboard_hub_ids[] = {
 	/* Use generic usbVID,PID dt-bindings (usb-device.yaml) */
 	{	.compatible = "usb424,2514",	/* USB2514B USB 2.0 */
@@ -244,6 +248,9 @@ static const struct udevice_id usb_onboard_hub_ids[] = {
 	}, {
 		.compatible = "usb5e3,610",     /* GL852G USB 2.0 */
 		.data = (ulong)&genesys_gl852g_data,
+	}, {
+		.compatible = "usb5e3,620",     /* GL852G USB 3.1 */
+		.data = (ulong)&genesys_gl853g_data,
 	}
 };
 
-- 
2.49.0


  parent reply	other threads:[~2025-05-09  7:03 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-09  7:02 [RFC v1 0/7] common: usb_onboard_hub: Add support for Odroid onboard USB hub reset Anand Moon
2025-05-09  7:02 ` [RFC v1 1/7] usb: onboard-hub: Add support for Genesys GL852G hub Anand Moon
2025-05-09  7:55   ` Neil Armstrong
2025-05-09  7:02 ` [RFC v1 2/7] configs: odorid-c2: Enable Onboard HUB driver Anand Moon
2025-05-09  7:56   ` Neil Armstrong
2025-05-09  8:01     ` Anand Moon
2025-05-09  7:02 ` Anand Moon [this message]
2025-05-09  7:58   ` [RFC v1 3/7] usb: onboard-hub: Add support for Genesys GL853G Neil Armstrong
2025-05-09  7:02 ` [RFC v1 4/7] configs: odorid-n2: Enable Oboard HUB driver Anand Moon
2025-05-09  7:57   ` Neil Armstrong
2025-05-09  7:02 ` [RFC v1 5/7] usb: onboard-hub: Add support for VL817 USB hub Anand Moon
2025-05-09  7:58   ` Neil Armstrong
2025-05-09  7:02 ` [RFC v1 6/7] configs: odorid-c4: Enable Oboard HUB driver Anand Moon
2025-05-09  7:57   ` Neil Armstrong
2025-05-09  7:02 ` [RFC v1 7/7] usb: onboard-hub: Add conditional compilation for I2C initialization Anand Moon
2025-05-09  7:57   ` Neil Armstrong
2025-05-09  9:17     ` Anand Moon
2025-05-09 11:51     ` Quentin Schulz
2025-05-09 17:45       ` Anand Moon
2025-05-12  7:06         ` Quentin Schulz
2025-05-12  8:21           ` Anand Moon
     [not found]           ` <183EB9E9446C2114.11104@groups.io>
2025-05-13 16:14             ` Anand Moon
2025-05-13 16:22               ` Quentin Schulz
2025-05-14  7:30                 ` Anand Moon
2025-05-21 14:34           ` Michal Simek
2025-05-21 15:18             ` Quentin Schulz
2025-05-22  5:54               ` Michal Simek

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=20250509070258.5077-4-linux.amoon@gmail.com \
    --to=linux.amoon@gmail.com \
    --cc=b.galvani@gmail.com \
    --cc=marex@denx.de \
    --cc=michal.simek@amd.com \
    --cc=neil.armstrong@linaro.org \
    --cc=patrice.chotard@foss.st.com \
    --cc=raz@chewies.net \
    --cc=trini@konsulko.com \
    --cc=u-boot-amlogic@groups.io \
    --cc=u-boot@lists.denx.de \
    --cc=venkatesh.abbarapu@amd.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