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 5/7] usb: onboard-hub: Add support for VL817 USB hub
Date: Fri, 9 May 2025 12:32:10 +0530 [thread overview]
Message-ID: <20250509070258.5077-6-linux.amoon@gmail.com> (raw)
In-Reply-To: <20250509070258.5077-1-linux.amoon@gmail.com>
Enable support for the Via labs VL817 USB2.0 and USB3.1 Hub
on the Odroid C4. The Via labs VL817 USB 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
partition 1 [ + ] blk_partition | | | |-- usb_mass_storage.lun0:2
partition 2 [ + ] blk_partition | | | |-- usb_mass_storage.lun0:3
partition 3 [ + ] blk_partition | | | `-- usb_mass_storage.lun0:4
bootdev 3 [ ] usb_bootdev | | `-- usb_mass_storage.lun0.bootdev
usb_hub 2 [ + ] usb_hub | `-- usb_hub
---
common/usb_onboard_hub.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index 3914e2f773d..1242513c631 100644
--- a/common/usb_onboard_hub.c
+++ b/common/usb_onboard_hub.c
@@ -235,6 +235,10 @@ static const struct onboard_hub_data genesys_gl853g_data = {
.reset_us = 50,
};
+static const struct onboard_hub_data vialab_vl817_data = {
+ .reset_us = 10,
+};
+
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 */
@@ -251,6 +255,12 @@ static const struct udevice_id usb_onboard_hub_ids[] = {
}, {
.compatible = "usb5e3,620", /* GL852G USB 3.1 */
.data = (ulong)&genesys_gl853g_data,
+ }, {
+ .compatible = "usb2109,817", /* Via labs VL817 2.0 */
+ .data = (ulong)&vialab_vl817_data,
+ }, {
+ .compatible = "usb2109,2817", /* Via labs VL817 3.1 */
+ .data = (ulong)&vialab_vl817_data,
}
};
--
2.49.0
next prev parent reply other threads:[~2025-05-09 7:04 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 ` [RFC v1 3/7] usb: onboard-hub: Add support for Genesys GL853G Anand Moon
2025-05-09 7:58 ` 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 ` Anand Moon [this message]
2025-05-09 7:58 ` [RFC v1 5/7] usb: onboard-hub: Add support for VL817 USB hub 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-6-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.