[RFC v1 5/7] usb: onboard-hub: Add support for VL817 USB hub
Anand Moon
linux.amoon at gmail.com
Fri May 9 09:02:10 CEST 2025
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 at gmail.com>
---
=> dm tree
simple_bus 11 [ + ] dwc3-meson-g12a | `-- usb at ffe09000
usb_gadget 0 [ ] dwc2-udc-otg | |-- usb at ff400000
usb 0 [ + ] xhci-dwc3 | `-- usb at 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
More information about the U-Boot
mailing list