xref: /freebsd/sys/contrib/device-tree/Bindings/sound/mt2701-cs42448.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotMT2701 with CS42448 CODEC
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible: "mediatek,mt2701-cs42448-machine"
5*c66ec88fSEmmanuel Vadot- mediatek,platform: the phandle of MT2701 ASoC platform
6*c66ec88fSEmmanuel Vadot- audio-routing: a list of the connections between audio
7*c66ec88fSEmmanuel Vadot- mediatek,audio-codec: the phandles of cs42448 codec
8*c66ec88fSEmmanuel Vadot- mediatek,audio-codec-bt-mrg the phandles of bt-sco dummy codec
9*c66ec88fSEmmanuel Vadot- pinctrl-names: Should contain only one value - "default"
10*c66ec88fSEmmanuel Vadot- pinctrl-0: Should specify pin control groups used for this controller.
11*c66ec88fSEmmanuel Vadot- i2s1-in-sel-gpio1, i2s1-in-sel-gpio2: Should specify two gpio pins to
12*c66ec88fSEmmanuel Vadot					control I2S1-in mux.
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel VadotExample:
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadot	sound:sound {
17*c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2701-cs42448-machine";
18*c66ec88fSEmmanuel Vadot		mediatek,platform = <&afe>;
19*c66ec88fSEmmanuel Vadot		/* CS42448 Machine name */
20*c66ec88fSEmmanuel Vadot		audio-routing =
21*c66ec88fSEmmanuel Vadot			"Line Out Jack", "AOUT1L",
22*c66ec88fSEmmanuel Vadot			"Line Out Jack", "AOUT1R",
23*c66ec88fSEmmanuel Vadot			"Line Out Jack", "AOUT2L",
24*c66ec88fSEmmanuel Vadot			"Line Out Jack", "AOUT2R",
25*c66ec88fSEmmanuel Vadot			"Line Out Jack", "AOUT3L",
26*c66ec88fSEmmanuel Vadot			"Line Out Jack", "AOUT3R",
27*c66ec88fSEmmanuel Vadot			"Line Out Jack", "AOUT4L",
28*c66ec88fSEmmanuel Vadot			"Line Out Jack", "AOUT4R",
29*c66ec88fSEmmanuel Vadot			"AIN1L", "AMIC",
30*c66ec88fSEmmanuel Vadot			"AIN1R", "AMIC",
31*c66ec88fSEmmanuel Vadot			"AIN2L", "Tuner In",
32*c66ec88fSEmmanuel Vadot			"AIN2R", "Tuner In",
33*c66ec88fSEmmanuel Vadot			"AIN3L", "Satellite Tuner In",
34*c66ec88fSEmmanuel Vadot			"AIN3R", "Satellite Tuner In",
35*c66ec88fSEmmanuel Vadot			"AIN3L", "AUX In",
36*c66ec88fSEmmanuel Vadot			"AIN3R", "AUX In";
37*c66ec88fSEmmanuel Vadot		mediatek,audio-codec = <&cs42448>;
38*c66ec88fSEmmanuel Vadot		mediatek,audio-codec-bt-mrg = <&bt_sco_codec>;
39*c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
40*c66ec88fSEmmanuel Vadot		pinctrl-0 = <&aud_pins_default>;
41*c66ec88fSEmmanuel Vadot		i2s1-in-sel-gpio1 = <&pio 53 0>;
42*c66ec88fSEmmanuel Vadot		i2s1-in-sel-gpio2 = <&pio 54 0>;
43*c66ec88fSEmmanuel Vadot	};
44