GNU Linux-libre 5.19-rc6-gnu
[releases.git] / Documentation / devicetree / bindings / sound / samsung,snow.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/samsung,snow.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Google Snow audio complex with MAX9809x codec
8
9 maintainers:
10   - Krzysztof Kozlowski <krzk@kernel.org>
11   - Sylwester Nawrocki <s.nawrocki@samsung.com>
12
13 properties:
14   compatible:
15     enum:
16       - google,snow-audio-max98090
17       - google,snow-audio-max98091
18       - google,snow-audio-max98095
19
20   codec:
21     type: object
22     properties:
23       sound-dai:
24         description: List of phandles to the CODEC and HDMI IP nodes.
25         items:
26           - description: Phandle to the MAX98090, MAX98091 or MAX98095 CODEC.
27           - description: Phandle to the HDMI IP block node.
28     required:
29       - sound-dai
30
31   cpu:
32     type: object
33     properties:
34       sound-dai:
35         description: Phandle to the Samsung I2S controller.
36         maxItems: 1
37     required:
38       - sound-dai
39
40   samsung,audio-codec:
41     description: Phandle to the audio codec.
42     $ref: /schemas/types.yaml#/definitions/phandle
43     deprecated: true
44
45   samsung,i2s-controller:
46     description: Phandle to the Samsung I2S controller.
47     $ref: /schemas/types.yaml#/definitions/phandle
48     deprecated: true
49
50   samsung,model:
51     description: The user-visible name of this sound complex.
52     $ref: /schemas/types.yaml#/definitions/string
53
54 required:
55   - compatible
56   - codec
57   - cpu
58
59 additionalProperties: false
60
61 examples:
62   - |
63     sound {
64         compatible = "google,snow-audio-max98095";
65         samsung,model = "Snow-I2S-MAX98095";
66
67         cpu {
68             sound-dai = <&i2s0 0>;
69         };
70
71         codec {
72             sound-dai = <&max98095 0>, <&hdmi>;
73         };
74     };