blob: 625b1b18fd027b110f9bcef0ddae383c5e710925 [file] [log] [blame]
Sylwester Nawrocki92c9f052017-04-21 19:19:49 +02001Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec
2
3Required properties:
4
5 - compatible - "samsung,odroidxu3-audio" - for Odroid XU3 board,
6 "samsung,odroidxu4-audio" - for Odroid XU4 board
7 - model - the user-visible name of this sound complex
Sylwester Nawrocki92c9f052017-04-21 19:19:49 +02008 - clocks - should contain entries matching clock names in the clock-names
9 property
Sylwester Nawrocki92c9f052017-04-21 19:19:49 +020010 - samsung,audio-widgets - this property specifies off-codec audio elements
11 like headphones or speakers, for details see widgets.txt
12 - samsung,audio-routing - a list of the connections between audio
13 components; each entry is a pair of strings, the first being the
14 connection's sink, the second being the connection's source;
15 valid names for sources and sinks are the MAX98090's pins (as
16 documented in its binding), and the jacks on the board
17
18 For Odroid X2:
19 "Headphone Jack", "Mic Jack", "DMIC"
20
21 For Odroid U3, XU3:
22 "Headphone Jack", "Speakers"
23
24 For Odroid XU4:
25 no entries
26
Sylwester Nawrocki63ddf5d2017-06-09 19:09:44 +020027Required sub-nodes:
28
29 - 'cpu' subnode with a 'sound-dai' property containing the phandle of the I2S
30 controller
31 - 'codec' subnode with a 'sound-dai' property containing list of phandles
32 to the CODEC nodes, first entry must be corresponding to the MAX98090
33 CODEC and the second entry must be the phandle of the HDMI IP block node
34
Sylwester Nawrocki92c9f052017-04-21 19:19:49 +020035Example:
36
37sound {
38 compatible = "samsung,odroidxu3-audio";
Sylwester Nawrocki92c9f052017-04-21 19:19:49 +020039 model = "Odroid-XU3";
40 samsung,audio-routing =
41 "Headphone Jack", "HPL",
42 "Headphone Jack", "HPR",
43 "IN1", "Mic Jack",
44 "Mic Jack", "MICBIAS";
45
Sylwester Nawrocki92c9f052017-04-21 19:19:49 +020046 cpu {
47 sound-dai = <&i2s0 0>;
48 };
49 codec {
50 sound-dai = <&hdmi>, <&max98090>;
51 };
52};