Skip to contentSkip to conversation

dt-bindings: dma: fsl-mxs-dma: allow interrupt-names for fsl,imx23-dma-apbx

PATCH Applied Frank Li 3 participants 7 messages May 23, 2025 – Jul 23, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: dma: fsl-mxs-dma: allow interrupt-names for fsl,imx23-dma-apbx

Allow interrupt-names for fsl,imx23-dma-apbx and keep the same restriction for others.

---
 .../devicetree/bindings/dma/fsl,mxs-dma.yaml  | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
Documentation/devicetree/bindings/dma/fsl,mxs-dma.yaml +33 -0
index 75a7d9556699c..9102b615dbd61 100644
@@ -23,6 +23,35 @@ allOf:
       properties:
         power-domains: false
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: fsl,imx23-dma-apbx
+    then:
+      properties:
+        interrupt-names:
+          items:
+            - const: audio-adc
+            - const: audio-dac
+            - const: spdif-tx
+            - const: i2c
+            - const: saif0
+            - const: empty0
+            - const: auart0-rx
+            - const: auart0-tx
+            - const: auart1-rx
+            - const: auart1-tx
+            - const: saif1
+            - const: empty1
+            - const: empty2
+            - const: empty3
+            - const: empty4
+            - const: empty5
+    else:
+      properties:
+        interrupt-names: false
+
 properties:
   compatible:
     oneOf:
@@ -54,6 +83,10 @@ properties:
     minItems: 4
     maxItems: 16
 
+  interrupt-names:
+    minItems: 4
+    maxItems: 16
+
   "#dma-cells":
     const: 1
 
Signature · 1 line
2.34.1
#1 lore raw
Quoted 2 lines · Frank Li

Allow interrupt-names for fsl,imx23-dma-apbx and keep the same restriction for others.

The content of the patch seems okay, but why are you doing this? What is the value on this particular platform but not the others?

Quoted 60 lines
---
 .../devicetree/bindings/dma/fsl,mxs-dma.yaml  | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
Documentation/devicetree/bindings/dma/fsl,mxs-dma.yaml +33 -0
index 75a7d9556699c..9102b615dbd61 100644
@@ -23,6 +23,35 @@ allOf:
       properties:
         power-domains: false
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: fsl,imx23-dma-apbx
+    then:
+      properties:
+        interrupt-names:
+          items:
+            - const: audio-adc
+            - const: audio-dac
+            - const: spdif-tx
+            - const: i2c
+            - const: saif0
+            - const: empty0
+            - const: auart0-rx
+            - const: auart0-tx
+            - const: auart1-rx
+            - const: auart1-tx
+            - const: saif1
+            - const: empty1
+            - const: empty2
+            - const: empty3
+            - const: empty4
+            - const: empty5
+    else:
+      properties:
+        interrupt-names: false
+
 properties:
   compatible:
     oneOf:
@@ -54,6 +83,10 @@ properties:
     minItems: 4
     maxItems: 16
 
+  interrupt-names:
+    minItems: 4
+    maxItems: 16
+
   "#dma-cells":
     const: 1
 
Signature · 1 line
2.34.1
author maintainer
#2 lore raw
Quoted 6 lines · Conor Dooley
Quoted 2 lines · Frank Li

Allow interrupt-names for fsl,imx23-dma-apbx and keep the same restriction for others.

The content of the patch seems okay, but why are you doing this? What is the value on this particular platform but not the others?

Actually it is not used in dma driver, i.MX23 is quite old chips (over 10year). Just to match existed dts to reduce warnings.

Frank

Quoted 61 lines
Quoted 61 lines
---
 .../devicetree/bindings/dma/fsl,mxs-dma.yaml  | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
Documentation/devicetree/bindings/dma/fsl,mxs-dma.yaml +33 -1
index 75a7d9556699c..9102b615dbd61 100644
@@ -23,6 +23,35 @@ allOf:
       properties:
         power-domains: false
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: fsl,imx23-dma-apbx
+    then:
+      properties:
+        interrupt-names:
+          items:
+            - const: audio-adc
+            - const: audio-dac
+            - const: spdif-tx
+            - const: i2c
+            - const: saif0
+            - const: empty0
+            - const: auart0-rx
+            - const: auart0-tx
+            - const: auart1-rx
+            - const: auart1-tx
+            - const: saif1
+            - const: empty1
+            - const: empty2
+            - const: empty3
+            - const: empty4
+            - const: empty5
+    else:
+      properties:
+        interrupt-names: false
+
 properties:
   compatible:
     oneOf:
@@ -54,6 +83,10 @@ properties:
     minItems: 4
     maxItems: 16
 
+  interrupt-names:
+    minItems: 4
+    maxItems: 16
+
   "#dma-cells":
     const: 1
 
--

2.34.1

#3 lore raw
Quoted 9 lines · Frank Li
Quoted 6 lines · Conor Dooley
Quoted 2 lines · Frank Li

Allow interrupt-names for fsl,imx23-dma-apbx and keep the same restriction for others.

The content of the patch seems okay, but why are you doing this? What is the value on this particular platform but not the others?

Actually it is not used in dma driver, i.MX23 is quite old chips (over 10year).

If they provide no value, why not just delete them?

Quoted 1 line

Just to match existed dts to reduce warnings.

You should mention this in your commit message.

author maintainer
#4 lore raw
Quoted 6 lines · Conor Dooley
Quoted 5 lines · Frank Li
Quoted 4 lines · Conor Dooley
Quoted 2 lines · Frank Li

Allow interrupt-names for fsl,imx23-dma-apbx and keep the same restriction for others.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

The content of the patch seems okay, but why are you doing this? What is the value on this particular platform but not the others?

Actually it is not used in dma driver, i.MX23 is quite old chips (over 10year).

If they provide no value, why not just delete them?

The platform is too old. I have not hardware to test if it really unused.

Frank

Quoted 4 lines
Quoted 2 lines

Just to match existed dts to reduce warnings.

You should mention this in your commit message.

Acked-by
#5 lore raw
Quoted 7 lines · Frank Li
Quoted 6 lines · Conor Dooley
Quoted 5 lines · Frank Li
Quoted 4 lines · Conor Dooley
Quoted 2 lines · Frank Li

Allow interrupt-names for fsl,imx23-dma-apbx and keep the same restriction for others.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

The content of the patch seems okay, but why are you doing this? What is the value on this particular platform but not the others?

Actually it is not used in dma driver, i.MX23 is quite old chips (over 10year).

If they provide no value, why not just delete them?

The platform is too old. I have not hardware to test if it really unused.

oh well,

maintainer Applied
#6 lore raw
In reply to Frank Li
Quoted 4 lines · Frank Li

Allow interrupt-names for fsl,imx23-dma-apbx and keep the same restriction for others.

Applied, thanks!

[1/1] dt-bindings: dma: fsl-mxs-dma: allow interrupt-names for fsl,imx23-dma-apbx

      commit: e3a9ccd21897a59d02cf2b7a95297086249306d6

Best regards,

Signature · 1 line
~Vinod