Unverified Commit 21d64f6f authored by Marek Vasut's avatar Marek Vasut Committed by Mark Brown
Browse files

ASoC: dt-bindings: fsl-sai: Simplify the VFxxx dmas binding



Get rid of the vf610 sai special case, instead update the vfxxx.dtsi
DT to use the same DMA channel ordering as all the other devices. The
sai DMA channel ordering has not been aligned with other IP DMA channel
ordering in the vfxxx.dtsi anyway.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230105144145.165010-1-marex@denx.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5b28c049
Loading
Loading
Loading
Loading
+8 −30
Original line number Diff line number Diff line
@@ -76,10 +76,14 @@ properties:
        minItems: 4

  dmas:
    maxItems: 2
    items:
      - description: DMA controller phandle and request line for RX
      - description: DMA controller phandle and request line for TX

  dma-names:
    maxItems: 2
    items:
      - const: rx
      - const: tx

  interrupts:
    items:
@@ -142,31 +146,6 @@ properties:

allOf:
  - $ref: dai-common.yaml#
  - if:
      properties:
        compatible:
          contains:
            const: fsl,vf610-sai
    then:
      properties:
        dmas:
          items:
            - description: DMA controller phandle and request line for TX
            - description: DMA controller phandle and request line for RX
        dma-names:
          items:
            - const: tx
            - const: rx
    else:
      properties:
        dmas:
          items:
            - description: DMA controller phandle and request line for RX
            - description: DMA controller phandle and request line for TX
        dma-names:
          items:
            - const: rx
            - const: tx
  - if:
      required:
        - fsl,sai-asynchronous
@@ -199,9 +178,8 @@ examples:
                 <&clks VF610_CLK_SAI2>,
                 <&clks 0>, <&clks 0>;
        clock-names = "bus", "mclk1", "mclk2", "mclk3";
        dma-names = "tx", "rx";
        dmas = <&edma0 0 21>,
               <&edma0 0 20>;
        dma-names = "rx", "tx";
        dmas = <&edma0 0 20>, <&edma0 0 21>;
        big-endian;
        lsb-first;
    };