Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: usb: dwc3-imx8mp: dma-range is required only for imx8mp
@ 2025-09-19  6:25 Xu Yang
  2025-09-19 16:03 ` Frank Li
  0 siblings, 1 reply; 3+ messages in thread
From: Xu Yang @ 2025-09-19  6:25 UTC (permalink / raw)
  To: gregkh, robh, krzk+dt, conor+dt, shawnguo, s.hauer, kernel,
	festevam, jun.li
  Cc: linux-usb, devicetree, imx, linux-arm-kernel, linux-kernel

Only i.MX8MP need dma-range property to let USB controller work properly.
Remove dma-range from required list and add limitation for imx8mp.

Fixes: d2a704e29711 ("dt-bindings: usb: dwc3-imx8mp: add imx8mp dwc3 glue bindings")
Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
---
 .../devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml       | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml
index baf130669c38..73e7a60a0060 100644
--- a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml
@@ -89,13 +89,21 @@ required:
   - reg
   - "#address-cells"
   - "#size-cells"
-  - dma-ranges
   - ranges
   - clocks
   - clock-names
   - interrupts
   - power-domains
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          const: fsl,imx8mp-dwc3
+    then:
+      required:
+        - dma-ranges
+
 additionalProperties: false
 
 examples:
-- 
2.34.1



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

* Re: [PATCH] dt-bindings: usb: dwc3-imx8mp: dma-range is required only for imx8mp
  2025-09-19  6:25 [PATCH] dt-bindings: usb: dwc3-imx8mp: dma-range is required only for imx8mp Xu Yang
@ 2025-09-19 16:03 ` Frank Li
  2025-09-19 17:19   ` Conor Dooley
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Li @ 2025-09-19 16:03 UTC (permalink / raw)
  To: Xu Yang
  Cc: gregkh, robh, krzk+dt, conor+dt, shawnguo, s.hauer, kernel,
	festevam, jun.li, linux-usb, devicetree, imx, linux-arm-kernel,
	linux-kernel

On Fri, Sep 19, 2025 at 02:25:34PM +0800, Xu Yang wrote:
> Only i.MX8MP need dma-range property to let USB controller work properly.

"dma-ranges"

Reviewed-by: Frank Li <Frank.Li@nxp.com>

> Remove dma-range from required list and add limitation for imx8mp.
>
> Fixes: d2a704e29711 ("dt-bindings: usb: dwc3-imx8mp: add imx8mp dwc3 glue bindings")
> Reviewed-by: Jun Li <jun.li@nxp.com>
> Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
> ---
>  .../devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml       | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml
> index baf130669c38..73e7a60a0060 100644
> --- a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml
> +++ b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml
> @@ -89,13 +89,21 @@ required:
>    - reg
>    - "#address-cells"
>    - "#size-cells"
> -  - dma-ranges
>    - ranges
>    - clocks
>    - clock-names
>    - interrupts
>    - power-domains
>
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          const: fsl,imx8mp-dwc3
> +    then:
> +      required:
> +        - dma-ranges
> +
>  additionalProperties: false
>
>  examples:
> --
> 2.34.1
>


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

* Re: [PATCH] dt-bindings: usb: dwc3-imx8mp: dma-range is required only for imx8mp
  2025-09-19 16:03 ` Frank Li
@ 2025-09-19 17:19   ` Conor Dooley
  0 siblings, 0 replies; 3+ messages in thread
From: Conor Dooley @ 2025-09-19 17:19 UTC (permalink / raw)
  To: Frank Li
  Cc: Xu Yang, gregkh, robh, krzk+dt, conor+dt, shawnguo, s.hauer,
	kernel, festevam, jun.li, linux-usb, devicetree, imx,
	linux-arm-kernel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 52 bytes --]

Acked-by: Conor Dooley <conor.dooley@microchip.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

end of thread, other threads:[~2025-09-19 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-19  6:25 [PATCH] dt-bindings: usb: dwc3-imx8mp: dma-range is required only for imx8mp Xu Yang
2025-09-19 16:03 ` Frank Li
2025-09-19 17:19   ` Conor Dooley

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