dt-bindings: sound: sun4i-spdif: Document that the RX channel can be missing
The H3 and compatibles controllers don't have any reception capabilities, even though it was never documented as such in the binding before. Therefore, on those controllers, we don't have the option to set an RX DMA channel. This was already done in the DTSI, but the binding itself was never updated. Let's add a special case in the schemas. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
506c7f9b06
commit
b1f35dfd7c
@ -44,19 +44,11 @@ properties:
|
|||||||
- const: apb
|
- const: apb
|
||||||
- const: spdif
|
- const: spdif
|
||||||
|
|
||||||
dmas:
|
|
||||||
items:
|
|
||||||
- description: RX DMA Channel
|
|
||||||
- description: TX DMA Channel
|
|
||||||
|
|
||||||
dma-names:
|
|
||||||
items:
|
|
||||||
- const: rx
|
|
||||||
- const: tx
|
|
||||||
|
|
||||||
# Even though it only applies to subschemas under the conditionals,
|
# Even though it only applies to subschemas under the conditionals,
|
||||||
# not listing them here will trigger a warning because of the
|
# not listing them here will trigger a warning because of the
|
||||||
# additionalsProperties set to false.
|
# additionalsProperties set to false.
|
||||||
|
dmas: true
|
||||||
|
dma-names: true
|
||||||
resets:
|
resets:
|
||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
@ -73,6 +65,32 @@ allOf:
|
|||||||
required:
|
required:
|
||||||
- resets
|
- resets
|
||||||
|
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
const: allwinner,sun8i-h3-spdif
|
||||||
|
|
||||||
|
then:
|
||||||
|
properties:
|
||||||
|
dmas:
|
||||||
|
description: TX DMA Channel
|
||||||
|
|
||||||
|
dma-names:
|
||||||
|
const: tx
|
||||||
|
|
||||||
|
else:
|
||||||
|
properties:
|
||||||
|
dmas:
|
||||||
|
items:
|
||||||
|
- description: RX DMA Channel
|
||||||
|
- description: TX DMA Channel
|
||||||
|
|
||||||
|
dma-names:
|
||||||
|
items:
|
||||||
|
- const: rx
|
||||||
|
- const: tx
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- "#sound-dai-cells"
|
- "#sound-dai-cells"
|
||||||
- compatible
|
- compatible
|
||||||
|
Loading…
Reference in New Issue
Block a user