dt-bindings: dma: fsl,imx-dma: Convert to dtschema
Subsystems (3)
PATCH v3 1/1 dt-bindings: dma: fsl,imx-dma: Convert to dtschema
Convert the fsl i.MX DMA controller bindings to DT schema. Remove old and deprecated properties #dma-channels and #dma-requests.
---
Changes in v3:
- Changed maximum: 16 back to const: 16 as the device use exactly 16 channels.
Changes in v2:
- Added description for each interrupt item.
- Changed dma-channels: const: 16 to maximum: 16.
- Removed unnecessary '|' character.
- Dropped unused label.
--- .../devicetree/bindings/dma/fsl,imx-dma.yaml | 56 +++++++++++++++++++ .../devicetree/bindings/dma/fsl-imx-dma.txt | 50 ----------------- 2 files changed, 56 insertions(+), 50 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml delete mode 100644 Documentation/devicetree/bindings/dma/fsl-imx-dma.txt
Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml new file +56 -0
@@ -0,0 +1,56 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/fsl,imx-dma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Direct Memory Access (DMA) Controller for i.MX + +maintainers: + - Animesh Agarwal <[email protected]> + +allOf: + - $ref: dma-controller.yaml# + +properties: + compatible: + enum: + - fsl,imx1-dma + - fsl,imx21-dma + - fsl,imx27-dma + + reg: + maxItems: 1 + + interrupts: + items: + - description: DMA complete interrupt + - description: DMA Error interrupt + minItems: 1 + + "#dma-cells": + const: 1 + + dma-channels: + const: 16 + + dma-requests: + description: Number of DMA requests supported. + +required: + - compatible + - reg + - interrupts + - "#dma-cells" + +additionalProperties: false + +examples: + - | + dma-controller@10001000 { + compatible = "fsl,imx27-dma"; + reg = <0x10001000 0x1000>; + interrupts = <32 33>; + #dma-cells = <1>; + dma-channels = <16>; + };
Documentation/devicetree/bindings/dma/fsl-imx-dma.txt deleted +0 -50
50 lines not on this page · raw message
Signature · 1 line
2.45.1
Quoted 2 lines · Animesh Agarwal
Convert the fsl i.MX DMA controller bindings to DT schema. Remove old and deprecated properties #dma-channels and #dma-requests.
Where? I see them.
Quoted 54 lines
Signed-off-by Animesh Agarwal <[email protected]>---
Changes in v3:
- Changed maximum: 16 back to const: 16 as the device use exactly 16 channels.Changes in v2:
- Added description for each interrupt item.
- Changed dma-channels: const: 16 to maximum: 16.
- Removed unnecessary '|' character.
- Dropped unused label.--- .../devicetree/bindings/dma/fsl,imx-dma.yaml | 56 +++++++++++++++++++ .../devicetree/bindings/dma/fsl-imx-dma.txt | 50 ----------------- 2 files changed, 56 insertions(+), 50 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml delete mode 100644 Documentation/devicetree/bindings/dma/fsl-imx-dma.txtDocumentation/devicetree/bindings/dma/fsl,imx-dma.yaml new file +28
-0@@ -0,0 +1,56 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/fsl,imx-dma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Direct Memory Access (DMA) Controller for i.MX + +maintainers: + - Animesh Agarwal <[email protected]> + +allOf: + - $ref: dma-controller.yaml# + +properties: + compatible: + enum: + - fsl,imx1-dma + - fsl,imx21-dma + - fsl,imx27-dma + + reg: + maxItems: 1 + + interrupts: + items: + - description: DMA complete interrupt + - description: DMA Error interrupt
Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml line 38
Quoted 10 lines
Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml new file +10
-0+ minItems: 1 + + "#dma-cells": + const: 1 + + dma-channels: + const: 16 + + dma-requests: + description: Number of DMA requests supported.
That's confusing. It is supposed to be deprecated.
Best regards,
Krzysztof
Hi Krzysztof,
Quoted 6 lines · Krzysztof Kozlowski
Quoted 2 lines · Animesh Agarwal
Convert the fsl i.MX DMA controller bindings to DT schema. Remove old and deprecated properties #dma-channels and #dma-requests.
Where? I see them.
What you see is dma-channels which is the newer properties. We removed the deprecated ones named '#dma-channels'
See the original txt file:
-- dma-requests : Number of DMA requests supported. -- #dma-requests : deprecated
Funny or not there were two properties with similar names the only difference was the '#' at the beginning.
We removed the deprecated property named '#dma-requests'.
Quoted 5 lines
+
Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml line 38
Quoted 2 lines
Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml new file +2
-0+ dma-requests: + description: Number of DMA requests supported.That's confusing. It is supposed to be deprecated.
No, this is not deprecated.
The property starting with '#' is deprecated and we removed it from the yaml file.
For example you can look at this commit:
commit bd1eca7b2c66c53873a0eab84f9f301aca41f33a
Author: Krzysztof Kozlowski <[email protected]> Date: Tue May 3 08:54:04 2022 +0200
dt-bindings: dmaengine: mmp: deprecate '#dma-channels' and '#dma-requests'
The generic properties, used in most of the drivers and defined in generic dma-common DT bindings, are 'dma-channels' and 'dma-requests'.
Quoted 15 lines · Daniel Baluta
Hi Krzysztof,
Quoted 6 lines · Krzysztof Kozlowski
Quoted 2 lines · Animesh Agarwal
Convert the fsl i.MX DMA controller bindings to DT schema. Remove old and deprecated properties #dma-channels and #dma-requests.
Where? I see them.
What you see is dma-channels which is the newer properties. We removed the deprecated ones named '#dma-channels'
See the original txt file:
Quoted 7 lines
-- dma-requests : Number of DMA requests supported. -- #dma-requests : deprecated
Funny or not there were two properties with similar names the only difference was the '#' at the beginning.
We removed the deprecated property named '#dma-requests'.
Oh, I see now, thank you.
Best regards,
Krzysztof
Quoted 6 lines · Animesh Agarwal
Convert the fsl i.MX DMA controller bindings to DT schema. Remove old and deprecated properties #dma-channels and #dma-requests.
Signed-off-by Animesh Agarwal <[email protected]>---
Best regards,
Krzysztof
Quoted 4 lines · Animesh Agarwal
Convert the fsl i.MX DMA controller bindings to DT schema. Remove old and deprecated properties #dma-channels and #dma-requests.
Applied, thanks!
[1/1] dt-bindings: dma: fsl,imx-dma: Convert to dtschema
commit: 45a24e40581db95f9c7ee08e0f27874daf7d3e7b
Best regards,
Signature · 1 line
Vinod Koul <[email protected]>