xref: /freebsd/sys/contrib/device-tree/Bindings/sound/mediatek,mt8188-mt6359.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2cb7aa33aSEmmanuel Vadot%YAML 1.2
3cb7aa33aSEmmanuel Vadot---
4cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/mediatek,mt8188-mt6359.yaml#
5cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadottitle: MediaTek MT8188 ASoC sound card
8cb7aa33aSEmmanuel Vadot
9cb7aa33aSEmmanuel Vadotmaintainers:
10cb7aa33aSEmmanuel Vadot  - Trevor Wu <trevor.wu@mediatek.com>
11cb7aa33aSEmmanuel Vadot
12aa1a8ff2SEmmanuel VadotallOf:
13aa1a8ff2SEmmanuel Vadot  - $ref: sound-card-common.yaml#
14aa1a8ff2SEmmanuel Vadot
15cb7aa33aSEmmanuel Vadotproperties:
16cb7aa33aSEmmanuel Vadot  compatible:
17f126890aSEmmanuel Vadot    enum:
18*8d13bc63SEmmanuel Vadot      - mediatek,mt8188-es8326
19f126890aSEmmanuel Vadot      - mediatek,mt8188-mt6359-evb
20f126890aSEmmanuel Vadot      - mediatek,mt8188-nau8825
2184943d6fSEmmanuel Vadot      - mediatek,mt8188-rt5682s
22cb7aa33aSEmmanuel Vadot
23cb7aa33aSEmmanuel Vadot  audio-routing:
24cb7aa33aSEmmanuel Vadot    description:
25aa1a8ff2SEmmanuel Vadot      Valid names could be the input or output widgets of audio components,
26aa1a8ff2SEmmanuel Vadot      power supplies, MicBias of codec and the software switch.
27cb7aa33aSEmmanuel Vadot
28cb7aa33aSEmmanuel Vadot  mediatek,platform:
29cb7aa33aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
30cb7aa33aSEmmanuel Vadot    description: The phandle of MT8188 ASoC platform.
31cb7aa33aSEmmanuel Vadot
32cb7aa33aSEmmanuel VadotpatternProperties:
33cb7aa33aSEmmanuel Vadot  "^dai-link-[0-9]+$":
34cb7aa33aSEmmanuel Vadot    type: object
35cb7aa33aSEmmanuel Vadot    description:
36cb7aa33aSEmmanuel Vadot      Container for dai-link level properties and CODEC sub-nodes.
37cb7aa33aSEmmanuel Vadot
38cb7aa33aSEmmanuel Vadot    properties:
39cb7aa33aSEmmanuel Vadot      link-name:
40cb7aa33aSEmmanuel Vadot        description:
41cb7aa33aSEmmanuel Vadot          This property corresponds to the name of the BE dai-link to which
42cb7aa33aSEmmanuel Vadot          we are going to update parameters in this node.
43cb7aa33aSEmmanuel Vadot        items:
44cb7aa33aSEmmanuel Vadot          enum:
45cb7aa33aSEmmanuel Vadot            - DPTX_BE
46cb7aa33aSEmmanuel Vadot            - ETDM1_IN_BE
47cb7aa33aSEmmanuel Vadot            - ETDM2_IN_BE
48cb7aa33aSEmmanuel Vadot            - ETDM1_OUT_BE
49cb7aa33aSEmmanuel Vadot            - ETDM2_OUT_BE
50cb7aa33aSEmmanuel Vadot            - ETDM3_OUT_BE
51cb7aa33aSEmmanuel Vadot            - PCM1_BE
52cb7aa33aSEmmanuel Vadot
53cb7aa33aSEmmanuel Vadot      codec:
54cb7aa33aSEmmanuel Vadot        description: Holds subnode which indicates codec dai.
55cb7aa33aSEmmanuel Vadot        type: object
56cb7aa33aSEmmanuel Vadot        additionalProperties: false
57cb7aa33aSEmmanuel Vadot        properties:
58cb7aa33aSEmmanuel Vadot          sound-dai:
59cb7aa33aSEmmanuel Vadot            minItems: 1
60cb7aa33aSEmmanuel Vadot            maxItems: 2
61cb7aa33aSEmmanuel Vadot        required:
62cb7aa33aSEmmanuel Vadot          - sound-dai
63cb7aa33aSEmmanuel Vadot
64f126890aSEmmanuel Vadot      dai-format:
65f126890aSEmmanuel Vadot        description: audio format.
66f126890aSEmmanuel Vadot        items:
67f126890aSEmmanuel Vadot          enum:
68f126890aSEmmanuel Vadot            - i2s
69f126890aSEmmanuel Vadot            - right_j
70f126890aSEmmanuel Vadot            - left_j
71f126890aSEmmanuel Vadot            - dsp_a
72f126890aSEmmanuel Vadot            - dsp_b
73f126890aSEmmanuel Vadot
74f126890aSEmmanuel Vadot      mediatek,clk-provider:
75f126890aSEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/string
76f126890aSEmmanuel Vadot        description: Indicates dai-link clock master.
77f126890aSEmmanuel Vadot        items:
78f126890aSEmmanuel Vadot          enum:
79f126890aSEmmanuel Vadot            - cpu
80f126890aSEmmanuel Vadot            - codec
81f126890aSEmmanuel Vadot
82cb7aa33aSEmmanuel Vadot    additionalProperties: false
83cb7aa33aSEmmanuel Vadot
84cb7aa33aSEmmanuel Vadot    required:
85cb7aa33aSEmmanuel Vadot      - link-name
86cb7aa33aSEmmanuel Vadot
87aa1a8ff2SEmmanuel VadotunevaluatedProperties: false
88cb7aa33aSEmmanuel Vadot
89cb7aa33aSEmmanuel Vadotrequired:
90cb7aa33aSEmmanuel Vadot  - compatible
91cb7aa33aSEmmanuel Vadot  - mediatek,platform
92cb7aa33aSEmmanuel Vadot
93cb7aa33aSEmmanuel Vadotexamples:
94cb7aa33aSEmmanuel Vadot  - |
95cb7aa33aSEmmanuel Vadot    sound {
96cb7aa33aSEmmanuel Vadot        compatible = "mediatek,mt8188-mt6359-evb";
97aa1a8ff2SEmmanuel Vadot        model = "MT6359-EVB";
98cb7aa33aSEmmanuel Vadot        mediatek,platform = <&afe>;
99cb7aa33aSEmmanuel Vadot        pinctrl-names = "default";
100cb7aa33aSEmmanuel Vadot        pinctrl-0 = <&aud_pins_default>;
101cb7aa33aSEmmanuel Vadot        audio-routing =
102cb7aa33aSEmmanuel Vadot            "Headphone", "Headphone L",
103cb7aa33aSEmmanuel Vadot            "Headphone", "Headphone R",
104cb7aa33aSEmmanuel Vadot            "AIN1", "Headset Mic";
105cb7aa33aSEmmanuel Vadot        dai-link-0 {
106cb7aa33aSEmmanuel Vadot            link-name = "ETDM3_OUT_BE";
107f126890aSEmmanuel Vadot            dai-format = "i2s";
108f126890aSEmmanuel Vadot            mediatek,clk-provider = "cpu";
109cb7aa33aSEmmanuel Vadot            codec {
110cb7aa33aSEmmanuel Vadot                sound-dai = <&hdmi0>;
111cb7aa33aSEmmanuel Vadot            };
112cb7aa33aSEmmanuel Vadot        };
113cb7aa33aSEmmanuel Vadot    };
114cb7aa33aSEmmanuel Vadot
115cb7aa33aSEmmanuel Vadot...
116