summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound/mediatek,mt8173-rt5650-rt5514.yaml
blob: becc7a11f8dc140968f4ee50507c63cf1fecc1e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/mediatek,mt8173-rt5650-rt5514.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Mediatek MT8173 with RT5650 and RT5514 audio codecs

maintainers:
  - Koro Chen <koro.chen@mediatek.com>

properties:
  compatible:
    const: mediatek,mt8173-rt5650-rt5514

  mediatek,audio-codec:
    $ref: /schemas/types.yaml#/definitions/phandle-array
    description: Phandles of rt5650 and rt5514 codecs
    items:
      - description: phandle of rt5650 codec
        maxItems: 1
      - description: phandle of rt5514 codec
        maxItems: 1

  mediatek,platform:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: The phandle of MT8173 ASoC platform.

required:
  - compatible
  - mediatek,audio-codec
  - mediatek,platform

additionalProperties: false

examples:
  - |
    sound {
        compatible = "mediatek,mt8173-rt5650-rt5514";
        mediatek,audio-codec = <&rt5650>, <&rt5514>;
        mediatek,platform = <&afe>;
    };
...