Skip to content

Commit a8e3d66

Browse files
author
AngeloGioacchino Del Regno
committed
dt-bindings: arm: mediatek: audsys: Support mt8192-audsys variant
Add support for the mediatek,mt8192-audsys compatible, which uses a different audio controller (mt8192-afe-pcm) compared to mt8183 and mt2701. This resolves a dtbs_check warning on all MT8192 devicetrees. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
1 parent e1c9223 commit a8e3d66

1 file changed

Lines changed: 33 additions & 13 deletions

File tree

Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,39 @@ required:
4848
- compatible
4949
- '#clock-cells'
5050

51-
if:
52-
properties:
53-
compatible:
54-
contains:
55-
const: mediatek,mt8183-audiosys
56-
then:
57-
properties:
58-
audio-controller:
59-
$ref: /schemas/sound/mediatek,mt8183-audio.yaml#
60-
else:
61-
properties:
62-
audio-controller:
63-
$ref: /schemas/sound/mediatek,mt2701-audio.yaml#
51+
allOf:
52+
- if:
53+
properties:
54+
compatible:
55+
contains:
56+
enum:
57+
- mediatek,mt2701-audsys
58+
- mediatek,mt7622-audsys
59+
then:
60+
properties:
61+
audio-controller:
62+
$ref: /schemas/sound/mediatek,mt2701-audio.yaml#
63+
64+
- if:
65+
properties:
66+
compatible:
67+
contains:
68+
const: mediatek,mt8183-audiosys
69+
then:
70+
properties:
71+
audio-controller:
72+
$ref: /schemas/sound/mediatek,mt8183-audio.yaml#
73+
74+
- if:
75+
properties:
76+
compatible:
77+
contains:
78+
const: mediatek,mt8192-audsys
79+
then:
80+
properties:
81+
audio-controller:
82+
$ref: /schemas/sound/mt8192-afe-pcm.yaml#
83+
6484

6585
additionalProperties: false
6686

0 commit comments

Comments
 (0)