Re: [PATCH v3] dt-bindings: dma: fsl,imx-dma: Convert to dtschema

From: Krzysztof Kozlowski
Date: Wed Jun 05 2024 - 03:07:58 EST


On 05/06/2024 02:33, Animesh Agarwal wrote:
> 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.

>
> Signed-off-by: Animesh Agarwal <animeshagarwal28@xxxxxxxxx>
>
> ---
> 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
>
> diff --git a/Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml b/Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml
> new file mode 100644
> index 000000000000..902a11f65be2
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml
> @@ -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 <animeshagarwal28@xxxxxxxxx>
> +
> +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.

That's confusing. It is supposed to be deprecated.

Best regards,
Krzysztof