blob: b77284e3e26aa7f58a791656f2ea730189a5f63c [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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
7title: Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec
8
9maintainers:
10 - Krzysztof Kozlowski <krzk@kernel.org>
11 - Sylwester Nawrocki <s.nawrocki@samsung.com>
12
13allOf:
14 - $ref: sound-card-common.yaml#
15
16properties:
17 compatible:
18 oneOf:
19 - const: hardkernel,odroid-xu3-audio
20
21 - const: hardkernel,odroid-xu4-audio
22 deprecated: true
23
24 - const: samsung,odroid-xu3-audio
25 deprecated: true
26
27 - const: samsung,odroid-xu4-audio
28 deprecated: true
29
30 assigned-clock-parents: true
31 assigned-clock-rates: true
32 assigned-clocks: true
33 clocks: true
34
35 cpu:
36 type: object
37 additionalProperties: false
38 properties:
39 sound-dai:
40 description: phandles to the I2S controllers
41
42 codec:
43 type: object
44 additionalProperties: false
45 properties:
46 sound-dai:
47 minItems: 1
48 items:
49 - description: phandle of the HDMI IP block node
50 - description: phandle of the MAX98090 CODEC
51
52 samsung,audio-routing:
53 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
54 deprecated: true
55 description: |
56 List of the connections between audio
57 components; each entry is a pair of strings, the first being the
58 connection's sink, the second being the connection's source;
59 valid names for sources and sinks are the MAX98090's pins (as
60 documented in its binding), and the jacks on the board.
61 For Odroid X2: "Headphone Jack", "Mic Jack", "DMIC"
62 For Odroid U3, XU3: "Headphone Jack", "Speakers"
63 For Odroid XU4: no entries
64 Deprecated, use audio-routing.
65
66 samsung,audio-widgets:
67 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
68 description: |
69 This property specifies off-codec audio elements
70 like headphones or speakers, for details see widgets.txt
71
72required:
73 - compatible
74 - cpu
75 - codec
76
77unevaluatedProperties: false
78
79examples:
80 - |
81 sound {
82 compatible = "hardkernel,odroid-xu3-audio";
83 model = "Odroid-XU3";
84 audio-routing =
85 "Headphone Jack", "HPL",
86 "Headphone Jack", "HPR",
87 "IN1", "Mic Jack",
88 "Mic Jack", "MICBIAS";
89
90 cpu {
91 sound-dai = <&i2s0 0>;
92 };
93
94 codec {
95 sound-dai = <&hdmi>, <&max98090>;
96 };
97 };