]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - Bindings/sound/samsung,odroid.yaml
DTS: Update the device-tree files to Linux 5.5
[FreeBSD/FreeBSD.git] / Bindings / sound / samsung,odroid.yaml
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/samsung,odroid.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec
8
9 maintainers:
10   - Krzysztof Kozlowski <krzk@kernel.org>
11   - Sylwester Nawrocki <s.nawrocki@samsung.com>
12
13 properties:
14   compatible:
15     oneOf:
16       - const: hardkernel,odroid-xu3-audio
17
18       - const: hardkernel,odroid-xu4-audio
19         deprecated: true
20
21       - const: samsung,odroid-xu3-audio
22         deprecated: true
23
24       - const: samsung,odroid-xu4-audio
25         deprecated: true
26
27   model:
28     $ref: /schemas/types.yaml#/definitions/string
29     description: The user-visible name of this sound complex.
30
31   cpu:
32     type: object
33     properties:
34       sound-dai:
35         $ref: /schemas/types.yaml#/definitions/phandle-array
36         description: phandles to the I2S controllers
37
38   codec:
39     type: object
40     properties:
41       sound-dai:
42         $ref: /schemas/types.yaml#/definitions/phandle-array
43         description: |
44           List of phandles to the CODEC nodes,
45           first entry must be corresponding to the MAX98090 CODEC and
46           the second entry must be the phandle of the HDMI IP block node.
47
48   samsung,audio-routing:
49     $ref: /schemas/types.yaml#/definitions/non-unique-string-array
50     description: |
51       List of the connections between audio
52       components;  each entry is a pair of strings, the first being the
53       connection's sink, the second being the connection's source;
54       valid names for sources and sinks are the MAX98090's pins (as
55       documented in its binding), and the jacks on the board.
56       For Odroid X2: "Headphone Jack", "Mic Jack", "DMIC"
57       For Odroid U3, XU3: "Headphone Jack", "Speakers"
58       For Odroid XU4: no entries
59
60   samsung,audio-widgets:
61     $ref: /schemas/types.yaml#/definitions/non-unique-string-array
62     description: |
63       This property specifies off-codec audio elements
64       like headphones or speakers, for details see widgets.txt
65
66 required:
67   - compatible
68   - model
69   - cpu
70   - codec
71
72 examples:
73   - |
74     sound {
75         compatible = "hardkernel,odroid-xu3-audio";
76         model = "Odroid-XU3";
77         samsung,audio-routing =
78                 "Headphone Jack", "HPL",
79                 "Headphone Jack", "HPR",
80                 "IN1", "Mic Jack",
81                 "Mic Jack", "MICBIAS";
82
83         cpu {
84             sound-dai = <&i2s0 0>;
85         };
86
87         codec {
88             sound-dai = <&hdmi>, <&max98090>;
89         };
90     };
91