public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] dt-bindings: usb: microchip,usb2514: Fix reference USB device schema
@ 2024-08-14  6:58 Alexander Stein
  2024-08-14  7:16 ` Greg Kroah-Hartman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexander Stein @ 2024-08-14  6:58 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Fabio Estevam
  Cc: Alexander Stein, Krzysztof Kozlowski, linux-usb, devicetree,
	linux-kernel

An USB hub is not a HCD, but an USB device. Fix the referenced schema
accordingly. Adjust example to keep it aligned to other schemas.

Fixes: bfbf2e4b77e27 ("dt-bindings: usb: Document the Microchip USB2514 hub")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
As this USB hub also can contain an USB (ethernet) sub device, I copied
the subdevice part from usb-hcd.yaml.

I had to add 'additionalProperties: true' as well, because I got that warning
upon dt_binding_check otherwise:
> Documentation/devicetree/bindings/usb/microchip,usb2514.yaml: 
>   ^.*@[0-9a-f]{1,2}$: Missing additionalProperties/unevaluatedProperties constraint

I added a Fixes tag to keep this schema aligned in v6.10 stable tree.

 .../devicetree/bindings/usb/microchip,usb2514.yaml    | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/usb/microchip,usb2514.yaml b/Documentation/devicetree/bindings/usb/microchip,usb2514.yaml
index 245e8c3ce6699..aa3db8e373c70 100644
--- a/Documentation/devicetree/bindings/usb/microchip,usb2514.yaml
+++ b/Documentation/devicetree/bindings/usb/microchip,usb2514.yaml
@@ -10,7 +10,7 @@ maintainers:
   - Fabio Estevam <festevam@gmail.com>
 
 allOf:
-  - $ref: usb-hcd.yaml#
+  - $ref: usb-device.yaml#
 
 properties:
   compatible:
@@ -36,6 +36,13 @@ required:
   - compatible
   - reg
 
+patternProperties:
+  "^.*@[0-9a-f]{1,2}$":
+    description: The hard wired USB devices
+    type: object
+    $ref: /schemas/usb/usb-device.yaml
+    additionalProperties: true
+
 unevaluatedProperties: false
 
 examples:
@@ -47,7 +54,7 @@ examples:
         #address-cells = <1>;
         #size-cells = <0>;
 
-        usb-hub@1 {
+        hub@1 {
             compatible = "usb424,2514";
             reg = <1>;
             clocks = <&clks IMX6QDL_CLK_CKO>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] dt-bindings: usb: microchip,usb2514: Fix reference USB device schema
  2024-08-14  6:58 [PATCH 1/1] dt-bindings: usb: microchip,usb2514: Fix reference USB device schema Alexander Stein
@ 2024-08-14  7:16 ` Greg Kroah-Hartman
  2024-08-14 13:13 ` Krzysztof Kozlowski
  2024-08-14 13:33 ` Rob Herring
  2 siblings, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2024-08-14  7:16 UTC (permalink / raw)
  To: Alexander Stein
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Fabio Estevam,
	Krzysztof Kozlowski, linux-usb, devicetree, linux-kernel

On Wed, Aug 14, 2024 at 08:58:32AM +0200, Alexander Stein wrote:
> An USB hub is not a HCD, but an USB device. Fix the referenced schema
> accordingly. Adjust example to keep it aligned to other schemas.
> 
> Fixes: bfbf2e4b77e27 ("dt-bindings: usb: Document the Microchip USB2514 hub")
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> As this USB hub also can contain an USB (ethernet) sub device, I copied
> the subdevice part from usb-hcd.yaml.
> 
> I had to add 'additionalProperties: true' as well, because I got that warning
> upon dt_binding_check otherwise:
> > Documentation/devicetree/bindings/usb/microchip,usb2514.yaml: 
> >   ^.*@[0-9a-f]{1,2}$: Missing additionalProperties/unevaluatedProperties constraint
> 
> I added a Fixes tag to keep this schema aligned in v6.10 stable tree.
> 
>  .../devicetree/bindings/usb/microchip,usb2514.yaml    | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/usb/microchip,usb2514.yaml b/Documentation/devicetree/bindings/usb/microchip,usb2514.yaml
> index 245e8c3ce6699..aa3db8e373c70 100644
> --- a/Documentation/devicetree/bindings/usb/microchip,usb2514.yaml
> +++ b/Documentation/devicetree/bindings/usb/microchip,usb2514.yaml
> @@ -10,7 +10,7 @@ maintainers:
>    - Fabio Estevam <festevam@gmail.com>
>  
>  allOf:
> -  - $ref: usb-hcd.yaml#
> +  - $ref: usb-device.yaml#
>  
>  properties:
>    compatible:
> @@ -36,6 +36,13 @@ required:
>    - compatible
>    - reg
>  
> +patternProperties:
> +  "^.*@[0-9a-f]{1,2}$":
> +    description: The hard wired USB devices
> +    type: object
> +    $ref: /schemas/usb/usb-device.yaml
> +    additionalProperties: true
> +
>  unevaluatedProperties: false
>  
>  examples:
> @@ -47,7 +54,7 @@ examples:
>          #address-cells = <1>;
>          #size-cells = <0>;
>  
> -        usb-hub@1 {
> +        hub@1 {
>              compatible = "usb424,2514";
>              reg = <1>;
>              clocks = <&clks IMX6QDL_CLK_CKO>;
> -- 
> 2.34.1
> 
> 

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- You have marked a patch with a "Fixes:" tag for a commit that is in an
  older released kernel, yet you do not have a cc: stable line in the
  signed-off-by area at all, which means that the patch will not be
  applied to any older kernel releases.  To properly fix this, please
  follow the documented rules in the
  Documentation/process/stable-kernel-rules.rst file for how to resolve
  this.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] dt-bindings: usb: microchip,usb2514: Fix reference USB device schema
  2024-08-14  6:58 [PATCH 1/1] dt-bindings: usb: microchip,usb2514: Fix reference USB device schema Alexander Stein
  2024-08-14  7:16 ` Greg Kroah-Hartman
@ 2024-08-14 13:13 ` Krzysztof Kozlowski
  2024-08-14 13:33 ` Rob Herring
  2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-14 13:13 UTC (permalink / raw)
  To: Alexander Stein, Greg Kroah-Hartman, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Fabio Estevam
  Cc: linux-usb, devicetree, linux-kernel

On 14/08/2024 08:58, Alexander Stein wrote:
> An USB hub is not a HCD, but an USB device. Fix the referenced schema
> accordingly. Adjust example to keep it aligned to other schemas.
> 
> Fixes: bfbf2e4b77e27 ("dt-bindings: usb: Document the Microchip USB2514 hub")
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> As this USB hub also can contain an USB (ethernet) sub device, I copied
> the subdevice part from usb-hcd.yaml.
> 
> I had to add 'additionalProperties: true' as well, because I got that warning
> upon dt_binding_check otherwise:


Thanks for fixing this.

>  
> +patternProperties:
> +  "^.*@[0-9a-f]{1,2}$":
> +    description: The hard wired USB devices
> +    type: object
> +    $ref: /schemas/usb/usb-device.yaml
> +    additionalProperties: true
> +
>  unevaluatedProperties: false
>  
>  examples:
> @@ -47,7 +54,7 @@ examples:
>          #address-cells = <1>;
>          #size-cells = <0>;
>  
> -        usb-hub@1 {
> +        hub@1 {

This is not needed. Both are correct - usb-hub and hub. I prefer not to
rename all "phy" nodes to "usb-phy" and vice versa.

Rest is good, so with dropping this renaming hunk:

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] dt-bindings: usb: microchip,usb2514: Fix reference USB device schema
  2024-08-14  6:58 [PATCH 1/1] dt-bindings: usb: microchip,usb2514: Fix reference USB device schema Alexander Stein
  2024-08-14  7:16 ` Greg Kroah-Hartman
  2024-08-14 13:13 ` Krzysztof Kozlowski
@ 2024-08-14 13:33 ` Rob Herring
  2 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2024-08-14 13:33 UTC (permalink / raw)
  To: Alexander Stein
  Cc: Greg Kroah-Hartman, Krzysztof Kozlowski, Conor Dooley,
	Fabio Estevam, Krzysztof Kozlowski, linux-usb, devicetree,
	linux-kernel

On Wed, Aug 14, 2024 at 08:58:32AM +0200, Alexander Stein wrote:
> An USB hub is not a HCD, but an USB device. Fix the referenced schema
> accordingly. Adjust example to keep it aligned to other schemas.
> 
> Fixes: bfbf2e4b77e27 ("dt-bindings: usb: Document the Microchip USB2514 hub")

checkpatch.pl complains the hash is 13 chars rather than 12.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-14 13:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-14  6:58 [PATCH 1/1] dt-bindings: usb: microchip,usb2514: Fix reference USB device schema Alexander Stein
2024-08-14  7:16 ` Greg Kroah-Hartman
2024-08-14 13:13 ` Krzysztof Kozlowski
2024-08-14 13:33 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox