* [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller
[not found] ` <20250507131143.2243079-1-mike.looijmans@topic.nl>
@ 2025-05-07 13:11 ` Mike Looijmans
2025-05-08 14:58 ` Conor Dooley
0 siblings, 1 reply; 6+ messages in thread
From: Mike Looijmans @ 2025-05-07 13:11 UTC (permalink / raw)
To: linux-usb
Cc: Mike Looijmans, Alexander Stein, Conor Dooley, Greg Kroah-Hartman,
Krzysztof Kozlowski, Rob Herring, devicetree, linux-kernel
The TI USB8044 is similar to the USB8041.
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
---
Documentation/devicetree/bindings/usb/ti,usb8041.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/usb/ti,usb8041.yaml b/Documentation/devicetree/bindings/usb/ti,usb8041.yaml
index c2e29bd61e11..fd6b35a40a5b 100644
--- a/Documentation/devicetree/bindings/usb/ti,usb8041.yaml
+++ b/Documentation/devicetree/bindings/usb/ti,usb8041.yaml
@@ -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 <alexander.stein@ew.tq-group.com>
@@ -17,6 +17,8 @@ properties:
enum:
- usb451,8140
- usb451,8142
+ - usb451,8440
+ - usb451,8442
reg: true
--
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: mike.looijmans@topic.nl
W: www.topic.nl
Please consider the environment before printing this e-mail
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller
2025-05-07 13:11 ` [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller Mike Looijmans
@ 2025-05-08 14:58 ` Conor Dooley
2025-05-08 15:19 ` Mike Looijmans
0 siblings, 1 reply; 6+ messages in thread
From: Conor Dooley @ 2025-05-08 14:58 UTC (permalink / raw)
To: Mike Looijmans
Cc: linux-usb, Alexander Stein, Conor Dooley, Greg Kroah-Hartman,
Krzysztof Kozlowski, Rob Herring, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1489 bytes --]
On Wed, May 07, 2025 at 03:11:43PM +0200, Mike Looijmans wrote:
> The TI USB8044 is similar to the USB8041.
Similar how? Why's a fallback not suitable?
>
> Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
> ---
>
> Documentation/devicetree/bindings/usb/ti,usb8041.yaml | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/ti,usb8041.yaml b/Documentation/devicetree/bindings/usb/ti,usb8041.yaml
> index c2e29bd61e11..fd6b35a40a5b 100644
> --- a/Documentation/devicetree/bindings/usb/ti,usb8041.yaml
> +++ b/Documentation/devicetree/bindings/usb/ti,usb8041.yaml
> @@ -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 <alexander.stein@ew.tq-group.com>
> @@ -17,6 +17,8 @@ properties:
> enum:
> - usb451,8140
> - usb451,8142
> + - usb451,8440
> + - usb451,8442
>
> reg: true
>
> --
> 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: mike.looijmans@topic.nl
> W: www.topic.nl
>
> Please consider the environment before printing this e-mail
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller
2025-05-08 14:58 ` Conor Dooley
@ 2025-05-08 15:19 ` Mike Looijmans
2025-05-08 15:53 ` Conor Dooley
0 siblings, 1 reply; 6+ messages in thread
From: Mike Looijmans @ 2025-05-08 15:19 UTC (permalink / raw)
To: Conor Dooley
Cc: linux-usb, Alexander Stein, Conor Dooley, Greg Kroah-Hartman,
Krzysztof Kozlowski, Rob Herring, devicetree, linux-kernel
On 08-05-2025 16:58, Conor Dooley wrote:
> On Wed, May 07, 2025 at 03:11:43PM +0200, Mike Looijmans wrote:
>> 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.
>
>> Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
>> ---
>>
>> Documentation/devicetree/bindings/usb/ti,usb8041.yaml | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/devicetree/bindings/usb/ti,usb8041.yaml b/Documentation/devicetree/bindings/usb/ti,usb8041.yaml
>> index c2e29bd61e11..fd6b35a40a5b 100644
>> --- a/Documentation/devicetree/bindings/usb/ti,usb8041.yaml
>> +++ b/Documentation/devicetree/bindings/usb/ti,usb8041.yaml
>> @@ -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 <alexander.stein@ew.tq-group.com>
>> @@ -17,6 +17,8 @@ properties:
>> enum:
>> - usb451,8140
>> - usb451,8142
>> + - usb451,8440
>> + - usb451,8442
>>
>> reg: true
>>
>> --
>> 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: mike.looijmans@topic.nl
>> W: www.topic.nl
>>
>> Please consider the environment before printing this e-mail
--
Mike Looijmans
System Expert
TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands
T: +31 (0) 499 33 69 69
E: mike.looijmans@topic.nl
W: www.topic.nl
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller
2025-05-08 15:19 ` Mike Looijmans
@ 2025-05-08 15:53 ` Conor Dooley
2025-05-09 5:56 ` Mike Looijmans
0 siblings, 1 reply; 6+ messages in thread
From: Conor Dooley @ 2025-05-08 15:53 UTC (permalink / raw)
To: Mike Looijmans
Cc: linux-usb, Alexander Stein, Conor Dooley, Greg Kroah-Hartman,
Krzysztof Kozlowski, Rob Herring, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 830 bytes --]
On Thu, May 08, 2025 at 05:19:03PM +0200, Mike Looijmans wrote:
> On 08-05-2025 16:58, Conor Dooley wrote:
> > On Wed, May 07, 2025 at 03:11:43PM +0200, Mike Looijmans wrote:
> > > 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.
> 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?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller
2025-05-08 15:53 ` Conor Dooley
@ 2025-05-09 5:56 ` Mike Looijmans
2025-05-09 15:48 ` Conor Dooley
0 siblings, 1 reply; 6+ messages in thread
From: Mike Looijmans @ 2025-05-09 5:56 UTC (permalink / raw)
To: Conor Dooley
Cc: linux-usb, Alexander Stein, Conor Dooley, Greg Kroah-Hartman,
Krzysztof Kozlowski, Rob Herring, devicetree, linux-kernel
On 08-05-2025 17:53, Conor Dooley wrote:
> On Thu, May 08, 2025 at 05:19:03PM +0200, Mike Looijmans wrote:
>> On 08-05-2025 16:58, Conor Dooley wrote:
>>> On Wed, May 07, 2025 at 03:11:43PM +0200, Mike Looijmans wrote:
>>>> 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.
>> 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.
--
Mike Looijmans
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller
2025-05-09 5:56 ` Mike Looijmans
@ 2025-05-09 15:48 ` Conor Dooley
0 siblings, 0 replies; 6+ messages in thread
From: Conor Dooley @ 2025-05-09 15:48 UTC (permalink / raw)
To: Mike Looijmans
Cc: linux-usb, Alexander Stein, Conor Dooley, Greg Kroah-Hartman,
Krzysztof Kozlowski, Rob Herring, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2067 bytes --]
On Fri, May 09, 2025 at 07:56:35AM +0200, Mike Looijmans wrote:
> On 08-05-2025 17:53, Conor Dooley wrote:
> > On Thu, May 08, 2025 at 05:19:03PM +0200, Mike Looijmans wrote:
> > > On 08-05-2025 16:58, Conor Dooley wrote:
> > > > On Wed, May 07, 2025 at 03:11:43PM +0200, Mike Looijmans wrote:
> > > > > 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.
> > > 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.
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,
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-05-09 15:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.3e03400f-766d-4690-8f43-cbea2cac93d8@emailsignatures365.codetwo.com>
[not found] ` <20250507131143.2243079-1-mike.looijmans@topic.nl>
2025-05-07 13:11 ` [PATCH 2/2] dt-bindings: usb: ti,usb8041: Add binding for TI USB8044 hub controller Mike Looijmans
2025-05-08 14:58 ` Conor Dooley
2025-05-08 15:19 ` Mike Looijmans
2025-05-08 15:53 ` Conor Dooley
2025-05-09 5:56 ` Mike Looijmans
2025-05-09 15:48 ` Conor Dooley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox