xref: /freebsd/sys/contrib/device-tree/Bindings/sound/samsung,tm2-audio.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotSamsung Exynos5433 TM2(E) audio complex with WM5110 codec
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot - compatible		 : "samsung,tm2-audio"
6*c66ec88fSEmmanuel Vadot - model		 : the user-visible name of this sound complex
7*c66ec88fSEmmanuel Vadot - audio-codec		 : the first entry should be phandle of the wm5110 audio
8*c66ec88fSEmmanuel Vadot			   codec node, as described in ../mfd/arizona.txt;
9*c66ec88fSEmmanuel Vadot			   the second entry should be phandle of the HDMI
10*c66ec88fSEmmanuel Vadot			   transmitter node
11*c66ec88fSEmmanuel Vadot - i2s-controller	 : the list of phandle and argument tuples pointing to
12*c66ec88fSEmmanuel Vadot			   I2S controllers, the first entry should be I2S0 and
13*c66ec88fSEmmanuel Vadot			   the second one I2S1
14*c66ec88fSEmmanuel Vadot - audio-amplifier	 : the phandle of the MAX98504 amplifier
15*c66ec88fSEmmanuel Vadot - samsung,audio-routing : a list of the connections between audio components;
16*c66ec88fSEmmanuel Vadot			   each entry is a pair of strings, the first being the
17*c66ec88fSEmmanuel Vadot			   connection's sink, the second being the connection's
18*c66ec88fSEmmanuel Vadot			   source; valid names for sources and sinks are the
19*c66ec88fSEmmanuel Vadot			   WM5110's and MAX98504's pins and the jacks on the
20*c66ec88fSEmmanuel Vadot			   board: HP, SPK, Main Mic, Sub Mic, Third Mic,
21*c66ec88fSEmmanuel Vadot			   Headset Mic
22*c66ec88fSEmmanuel Vadot - mic-bias-gpios	 : GPIO pin that enables the Main Mic bias regulator
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel VadotExample:
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadotsound {
28*c66ec88fSEmmanuel Vadot	compatible = "samsung,tm2-audio";
29*c66ec88fSEmmanuel Vadot	audio-codec = <&wm5110>, <&hdmi>;
30*c66ec88fSEmmanuel Vadot	i2s-controller = <&i2s0 0>, <&i2s1 0>;
31*c66ec88fSEmmanuel Vadot	audio-amplifier = <&max98504>;
32*c66ec88fSEmmanuel Vadot	mic-bias-gpios = <&gpr3 2 0>;
33*c66ec88fSEmmanuel Vadot	model = "wm5110";
34*c66ec88fSEmmanuel Vadot	samsung,audio-routing =
35*c66ec88fSEmmanuel Vadot		"HP", "HPOUT1L",
36*c66ec88fSEmmanuel Vadot		"HP", "HPOUT1R",
37*c66ec88fSEmmanuel Vadot		"SPK", "SPKOUT",
38*c66ec88fSEmmanuel Vadot		"SPKOUT", "HPOUT2L",
39*c66ec88fSEmmanuel Vadot		"SPKOUT", "HPOUT2R",
40*c66ec88fSEmmanuel Vadot		"Main Mic", "MICBIAS2",
41*c66ec88fSEmmanuel Vadot		"IN1R", "Main Mic";
42*c66ec88fSEmmanuel Vadot};
43