Skip to contentSkip to conversation

usb: misc: onboard_usb_dev: Add support for TI TUSB8044 hub

PATCH In review Mike Looijmans 2 participants 7 messages May 7, 2025 – May 9, 2025 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.88a2c5b0-4a7a-480c-94d2-acc50e27e923@emailsignatures365.codetwo.com

#1 lore raw

PATCH 1/2 usb: misc: onboard_usb_dev: Add support for TI TUSB8044 hub

The TUSB8044 is similar to the TUSB8041. This adds the PID/VID values and allows to specify the reset GPIO signal on the board.

---

 drivers/usb/misc/onboard_usb_dev.c | 2 ++
 drivers/usb/misc/onboard_usb_dev.h | 2 ++
 2 files changed, 4 insertions(+)
drivers/usb/misc/onboard_usb_dev.c +2 -0
index 9660b7fe8ee3..c4252186621b 100644
@@ -556,6 +556,8 @@ static const struct usb_device_id onboard_dev_id_table[] = {
 	{ USB_DEVICE(VENDOR_ID_TI, 0x8027) }, /* TI USB8020B 2.0 HUB */
 	{ USB_DEVICE(VENDOR_ID_TI, 0x8140) }, /* TI USB8041 3.0 HUB */
 	{ USB_DEVICE(VENDOR_ID_TI, 0x8142) }, /* TI USB8041 2.0 HUB */
+	{ USB_DEVICE(VENDOR_ID_TI, 0x8440) }, /* TI USB8044 3.0 HUB */
+	{ USB_DEVICE(VENDOR_ID_TI, 0x8442) }, /* TI USB8044 2.0 HUB */
 	{ USB_DEVICE(VENDOR_ID_VIA, 0x0817) }, /* VIA VL817 3.1 HUB */
 	{ USB_DEVICE(VENDOR_ID_VIA, 0x2817) }, /* VIA VL817 2.0 HUB */
 	{}
drivers/usb/misc/onboard_usb_dev.h +2 -0
index 367c5c418ae6..b0bc53f781e6 100644
@@ -86,6 +86,8 @@ static const struct of_device_id onboard_dev_match[] = {
 	{ .compatible = "usb451,8027", .data = &ti_tusb8020b_data, },
 	{ .compatible = "usb451,8140", .data = &ti_tusb8041_data, },
 	{ .compatible = "usb451,8142", .data = &ti_tusb8041_data, },
+	{ .compatible = "usb451,8440", .data = &ti_tusb8041_data, },
+	{ .compatible = "usb451,8442", .data = &ti_tusb8041_data, },
 	{ .compatible = "usb4b4,6504", .data = &cypress_hx3_data, },
 	{ .compatible = "usb4b4,6506", .data = &cypress_hx3_data, },
 	{ .compatible = "usb4b4,6570", .data = &cypress_hx2vl_data, },
Signature · 18 lines
2.34.1


Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl

Please consider the environment before printing this e-mail
#2 lore raw

PATCH 2/2 dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller

The TI USB8044 is similar to the USB8041.

---

 Documentation/devicetree/bindings/usb/ti,usb8041.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/ti,usb8041.yaml +3 -1
index c2e29bd61e11..fd6b35a40a5b 100644
@@ -4,7 +4,7 @@
 $id: http://devicetree.org/schemas/usb/ti,usb8041.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: TI USB8041 USB 3.0 hub controller
+title: TI USB8041 and USB8044 USB 3.0 hub controllers
 
 maintainers:
   - Alexander Stein <[email protected]>
@@ -17,6 +17,8 @@ properties:
     enum:
       - usb451,8140
       - usb451,8142
+      - usb451,8440
+      - usb451,8442
 
   reg: true
 
Signature · 18 lines
2.34.1


Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl

Please consider the environment before printing this e-mail
#3 lore raw

Re: [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller

Quoted 1 line · Mike Looijmans

The TI USB8044 is similar to the USB8041.

Similar how? Why's a fallback not suitable?

Quoted 48 lines

---

 Documentation/devicetree/bindings/usb/ti,usb8041.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/ti,usb8041.yaml +3 -1
index c2e29bd61e11..fd6b35a40a5b 100644
@@ -4,7 +4,7 @@
 $id: http://devicetree.org/schemas/usb/ti,usb8041.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: TI USB8041 USB 3.0 hub controller
+title: TI USB8041 and USB8044 USB 3.0 hub controllers
 
 maintainers:
   - Alexander Stein <[email protected]>
@@ -17,6 +17,8 @@ properties:
     enum:
       - usb451,8140
       - usb451,8142
+      - usb451,8440
+      - usb451,8442
 
   reg: true
 
Signature · 18 lines
2.34.1


Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl

Please consider the environment before printing this e-mail
#4 lore raw

Re: [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller

Quoted 3 lines · Conor Dooley
Quoted 1 line · Mike Looijmans

The TI USB8044 is similar to the USB8041.

Similar how? Why's a fallback not suitable?

I don't quite understand what is meant by "fallback" here?

It's similar in that the USB8044 provides the same functionality and can use the same driver as the USB8041, all that is needed is to add the PID/VID values.

M.

Quoted 48 lines
Quoted 48 lines

---

  Documentation/devicetree/bindings/usb/ti,usb8041.yaml | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/ti,usb8041.yaml +3 -1
index c2e29bd61e11..fd6b35a40a5b 100644
@@ -4,7 +4,7 @@
  $id: http://devicetree.org/schemas/usb/ti,usb8041.yaml#
  $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: TI USB8041 USB 3.0 hub controller
+title: TI USB8041 and USB8044 USB 3.0 hub controllers
 
  maintainers:
    - Alexander Stein <[email protected]>
@@ -17,6 +17,8 @@ properties:
      enum:
        - usb451,8140
        - usb451,8142
+      - usb451,8440
+      - usb451,8442
 
    reg: true
 
Signature · 18 lines
2.34.1


Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl

Please consider the environment before printing this e-mail
Signature · 10 lines
Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl
#5 lore raw

Re: [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller

Quoted 6 lines · Mike Looijmans
Quoted 3 lines · Conor Dooley
Quoted 1 line · Mike Looijmans

The TI USB8044 is similar to the USB8041.

Similar how? Why's a fallback not suitable?

I don't quite understand what is meant by "fallback" here?

A fallback compatible, since you;re using the same match data as the 8041.

Quoted 3 lines

It's similar in that the USB8044 provides the same functionality and can use the same driver as the USB8041, all that is needed is to add the PID/VID values.

Is this onboard_dev_id_table table with the vid/pid used in combination with dt, or in-place of dt when device detection is dynamic? If the latter, why can't dt use a fallback compatible since the handling is identical to the 8041?

#6 lore raw

Re: [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller

Quoted 8 lines · Conor Dooley
Quoted 5 lines · Mike Looijmans
Quoted 3 lines · Conor Dooley
Quoted 1 line · Mike Looijmans

The TI USB8044 is similar to the USB8041.

Similar how? Why's a fallback not suitable?

I don't quite understand what is meant by "fallback" here?

A fallback compatible, since you;re using the same match data as the 8041.

I think it would work. It would look strange though, having to put an additional vid/pid in the devicetree to make it work.

Quoted 7 lines
Quoted 3 lines

It's similar in that the USB8044 provides the same functionality and can use the same driver as the USB8041, all that is needed is to add the PID/VID values.

Is this onboard_dev_id_table table with the vid/pid used in combination with dt, or in-place of dt when device detection is dynamic? If the latter, why can't dt use a fallback compatible since the handling is identical to the 8041?

My basic understanding is:

The devicetree match creates a platform device that controls the reset pin of the hub. It's basic task is to de-assert the reset, so the hub starts negotiating. This part also works with the 8041 devicetree entry (which is how I first tried to get it up and running).

The VID/PID table then matches the hub on the USB bus, which can then be associated with its platform device. Since the 8044 reports a different VID/PID, this part only worked when I added the entries to the tables.

Signature · 1 line
Mike Looijmans
Acked-by
#7 lore raw

Re: [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller

Quoted 4 lines · Mike Looijmans
Quoted 3 lines · Conor Dooley
Quoted 2 lines · Mike Looijmans
Quoted 1 line · Conor Dooley

On Wed, May 07, 2025 at 03:11:43PM +0200, Mike Looijmans wrote:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line

The TI USB8044 is similar to the USB8041.

Similar how? Why's a fallback not suitable?

I don't quite understand what is meant by "fallback" here?

A fallback compatible, since you;re using the same match data as the 8041.

I think it would work. It would look strange though, having to put an additional vid/pid in the devicetree to make it work.

That's how a huge number of other devices work in devicetree when handling differs between devices.

Quoted 10 lines
Quoted 7 lines
Quoted 3 lines

It's similar in that the USB8044 provides the same functionality and can use the same driver as the USB8041, all that is needed is to add the PID/VID values.

Is this onboard_dev_id_table table with the vid/pid used in combination with dt, or in-place of dt when device detection is dynamic? If the latter, why can't dt use a fallback compatible since the handling is identical to the 8041?

My basic understanding is:

Quoted 8 lines

The devicetree match creates a platform device that controls the reset pin of the hub. It's basic task is to de-assert the reset, so the hub starts negotiating. This part also works with the 8041 devicetree entry (which is how I first tried to get it up and running).

The VID/PID table then matches the hub on the USB bus, which can then be associated with its platform device. Since the 8044 reports a different VID/PID, this part only worked when I added the entries to the tables.

Right, so you do actually need to use the dt entry /and/ the dynamic data? In that case, there's little value in a fallback, since you need non-fallback information in the driver for things to work. If that's a correct understanding,