Commit 37020f86 authored by Julien Massot's avatar Julien Massot Committed by Rob Herring (Arm)
Browse files

dt-bindings: arm: mediatek: Support mt8183-audiosys variant



Update the mediatek,audsys binding to support the mt8183-audiosys
compatible, which uses a different audio controller
(mediatek,mt8183-audio.yaml) compared to the legacy mt2701-audio
controller.

Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Signed-off-by: default avatarJulien Massot <julien.massot@collabora.com>
Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
parent a31c2f8e
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ properties:
              - mediatek,mt7622-audsys
              - mediatek,mt8167-audsys
              - mediatek,mt8173-audsys
              - mediatek,mt8183-audiosys
              - mediatek,mt8183-audsys
              - mediatek,mt8186-audsys
              - mediatek,mt8192-audsys
@@ -41,13 +42,26 @@ properties:
    const: 1

  audio-controller:
    $ref: /schemas/sound/mediatek,mt2701-audio.yaml#
    type: object

required:
  - compatible
  - '#clock-cells'

if:
  properties:
    compatible:
      contains:
        const: mediatek,mt8183-audiosys
then:
  properties:
    audio-controller:
      $ref: /schemas/sound/mediatek,mt8183-audio.yaml#
else:
  properties:
    audio-controller:
      $ref: /schemas/sound/mediatek,mt2701-audio.yaml#

additionalProperties: false

examples: