Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Marek Vasut <marex@denx.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230105144145.165010-1-marex@denx.de
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Marek Vasut and committed by
Mark Brown
21d64f6f 5b28c049

+8 -30
+8 -30
Documentation/devicetree/bindings/sound/fsl,sai.yaml
··· 76 76 minItems: 4 77 77 78 78 dmas: 79 - maxItems: 2 79 + items: 80 + - description: DMA controller phandle and request line for RX 81 + - description: DMA controller phandle and request line for TX 80 82 81 83 dma-names: 82 - maxItems: 2 84 + items: 85 + - const: rx 86 + - const: tx 83 87 84 88 interrupts: 85 89 items: ··· 147 143 allOf: 148 144 - $ref: dai-common.yaml# 149 145 - if: 150 - properties: 151 - compatible: 152 - contains: 153 - const: fsl,vf610-sai 154 - then: 155 - properties: 156 - dmas: 157 - items: 158 - - description: DMA controller phandle and request line for TX 159 - - description: DMA controller phandle and request line for RX 160 - dma-names: 161 - items: 162 - - const: tx 163 - - const: rx 164 - else: 165 - properties: 166 - dmas: 167 - items: 168 - - description: DMA controller phandle and request line for RX 169 - - description: DMA controller phandle and request line for TX 170 - dma-names: 171 - items: 172 - - const: rx 173 - - const: tx 174 - - if: 175 146 required: 176 147 - fsl,sai-asynchronous 177 148 then: ··· 178 199 <&clks VF610_CLK_SAI2>, 179 200 <&clks 0>, <&clks 0>; 180 201 clock-names = "bus", "mclk1", "mclk2", "mclk3"; 181 - dma-names = "tx", "rx"; 182 - dmas = <&edma0 0 21>, 183 - <&edma0 0 20>; 202 + dma-names = "rx", "tx"; 203 + dmas = <&edma0 0 20>, <&edma0 0 21>; 184 204 big-endian; 185 205 lsb-first; 186 206 };