Skip to contentSkip to conversation

usb: misc: onboard_usb_hub: add gl3510 support

PATCH Superseded Jerome Brunet 3 participants 6 messages Aug 8, 2023 – Sep 11, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover usb: misc: onboard_usb_hub: add gl3510 support

This patchset adds the bindings and driver support to trigger the reset pin of the Genesys Logic gl3510 usb hub.

Jerome Brunet (2):
dt-bindings: usb: add device for Genesys Logic hub gl3510
usb: misc: onboard_usb_hub: add Genesys Logic gl3510 hub support

 Documentation/devicetree/bindings/usb/genesys,gl850g.yaml | 3 ++-
 drivers/usb/misc/onboard_usb_hub.h                        | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)
Signature · 1 line
2.40.1
#1 lore raw

PATCH 1/2 dt-bindings: usb: add device for Genesys Logic hub gl3510

Add gl3510 USB 3 root hub device id

---
 Documentation/devicetree/bindings/usb/genesys,gl850g.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +2 -1
index cc4cf92b70d1..a7e7142651f8 100644
@@ -4,7 +4,7 @@
 $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Genesys Logic GL850G USB 2.0 hub controller
+title: Genesys Logic USB hub controller
 
 maintainers:
   - Icenowy Zheng <[email protected]>
@@ -17,6 +17,7 @@ properties:
     enum:
       - usb5e3,608
       - usb5e3,610
+      - usb5e3.626
 
   reg: true
 
Signature · 1 line
2.40.1
maintainer
#3 lore raw

Re: [PATCH 1/2] dt-bindings: usb: add device for Genesys Logic hub gl3510

In reply to Jerome Brunet
Quoted 21 lines · Jerome Brunet

Add gl3510 USB 3 root hub device id

---
 Documentation/devicetree/bindings/usb/genesys,gl850g.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +1 -1
index cc4cf92b70d1..a7e7142651f8 100644
@@ -4,7 +4,7 @@
 $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Genesys Logic GL850G USB 2.0 hub controller
+title: Genesys Logic USB hub controller
 
 maintainers:
   - Icenowy Zheng <[email protected]>

Documentation/devicetree/bindings/usb/genesys,gl850g.yaml properties: · line 20

Quoted 4 lines
Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +1 -0
@@ -17,6 +17,7 @@ properties:
     enum:
       - usb5e3,608
       - usb5e3,610
+      - usb5e3.626

Should be a comma, not a period.

Quoted 6 lines
Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +0 -0
   reg: true
 
Signature · 1 line
2.40.1
#4 lore raw

Re: [PATCH 1/2] dt-bindings: usb: add device for Genesys Logic hub gl3510

Quoted 19 lines · Rob Herring
Quoted 18 lines · Jerome Brunet

Add gl3510 USB 3 root hub device id

---
 Documentation/devicetree/bindings/usb/genesys,gl850g.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +1 -1
index cc4cf92b70d1..a7e7142651f8 100644
@@ -4,7 +4,7 @@
 $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Genesys Logic GL850G USB 2.0 hub controller
+title: Genesys Logic USB hub controller
 
Quoted 10 lines

Documentation/devicetree/bindings/usb/genesys,gl850g.yaml properties: · line 20

Quoted 7 lines
Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +1 -0
 maintainers:
   - Icenowy Zheng <[email protected]>
@@ -17,6 +17,7 @@ properties:
     enum:
       - usb5e3,608
       - usb5e3,610
+      - usb5e3.626

Should be a comma, not a period.

Good catch, thanks a lot

Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +0 -0
   reg: true
 
Signature · 1 line
2.40.1
#5 lore raw

PATCH 2/2 usb: misc: onboard_usb_hub: add Genesys Logic gl3510 hub support

In reply to Jerome Brunet

Add support for the gl3510 4 ports USB3.1 hub. This allows to control its reset pins with a gpio.

No public documentation is available for this hub. Using the same reset duration as the gl852g which seems OK.

---
 drivers/usb/misc/onboard_usb_hub.h | 5 +++++
 1 file changed, 5 insertions(+)
drivers/usb/misc/onboard_usb_hub.h +5 -0
index aca5f50eb0da..4b94ea375d45 100644
@@ -22,6 +22,10 @@ static const struct onboard_hub_pdata ti_tusb8041_data = {
 	.reset_us = 3000,
 };
 
+static const struct onboard_hub_pdata genesys_gl3510_data = {
+	.reset_us = 50,
+};
+
 static const struct onboard_hub_pdata genesys_gl850g_data = {
 	.reset_us = 3,
 };
@@ -41,6 +45,7 @@ static const struct of_device_id onboard_hub_match[] = {
 	{ .compatible = "usb451,8142", .data = &ti_tusb8041_data, },
 	{ .compatible = "usb5e3,608", .data = &genesys_gl850g_data, },
 	{ .compatible = "usb5e3,610", .data = &genesys_gl852g_data, },
+	{ .compatible = "usb5e3,626", .data = &genesys_gl3510_data, },
 	{ .compatible = "usbbda,411", .data = &realtek_rts5411_data, },
 	{ .compatible = "usbbda,5411", .data = &realtek_rts5411_data, },
 	{ .compatible = "usbbda,414", .data = &realtek_rts5411_data, },
Signature · 1 line
2.40.1