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