aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Geyer <harald@ccbib.org>2019-05-16 11:51:39 -0400
committerMaxime Ripard <maxime.ripard@bootlin.com>2019-05-20 04:09:17 -0400
commit439152ae0efff2e9e72b6a193e98972b4acf8fc0 (patch)
treee0b1fe28e51a88d47004e839e5e96fb5ef705c64
parentcc072fb6df848e2c957cf31427c4ca5cb4c38f7e (diff)
arm64: dts: allwinner: a64: Enable audio on Teres-I
The TERES-I has internal speakers (left, right), internal microphone and a headset combo jack (headphones + mic), "CTIA" (android) pinout. The headphone and mic detect lines of the A64 are connected properly, but AFAIK currently unsupported by the driver. Reviewed-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Harald Geyer <harald@ccbib.org> Signed-off-by: Torsten Duwe <duwe@suse.de> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
-rw-r--r--arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts42
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts
index 12afc52e169e..1069e7012c9c 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts
@@ -79,6 +79,25 @@
79 compatible = "mmc-pwrseq-simple"; 79 compatible = "mmc-pwrseq-simple";
80 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ 80 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
81 }; 81 };
82
83 speaker_amp: audio-amplifier {
84 compatible = "simple-audio-amplifier";
85 enable-gpios = <&r_pio 0 12 GPIO_ACTIVE_HIGH>; /* PL12 */
86 sound-name-prefix = "Speaker Amp";
87 };
88};
89
90&codec {
91 status = "okay";
92};
93
94&codec_analog {
95 cpvdd-supply = <&reg_eldo1>;
96 status = "okay";
97};
98
99&dai {
100 status = "okay";
82}; 101};
83 102
84&ehci1 { 103&ehci1 {
@@ -277,6 +296,29 @@
277 vcc-hdmi-supply = <&reg_dldo1>; 296 vcc-hdmi-supply = <&reg_dldo1>;
278}; 297};
279 298
299&sound {
300 simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>;
301 simple-audio-card,widgets = "Headphone", "Headphone Jack",
302 "Microphone", "Headset Microphone",
303 "Microphone", "Internal Microphone",
304 "Speaker", "Internal Speaker";
305 simple-audio-card,routing =
306 "Left DAC", "AIF1 Slot 0 Left",
307 "Right DAC", "AIF1 Slot 0 Right",
308 "AIF1 Slot 0 Left ADC", "Left ADC",
309 "AIF1 Slot 0 Right ADC", "Right ADC",
310 "Headphone Jack", "HP",
311 "Speaker Amp INL", "LINEOUT",
312 "Speaker Amp INR", "LINEOUT",
313 "Internal Speaker", "Speaker Amp OUTL",
314 "Internal Speaker", "Speaker Amp OUTR",
315 "Internal Microphone", "MBIAS",
316 "MIC1", "Internal Microphone",
317 "Headset Microphone", "HBIAS",
318 "MIC2", "Headset Microphone";
319 status = "okay";
320};
321
280&uart0 { 322&uart0 {
281 pinctrl-names = "default"; 323 pinctrl-names = "default";
282 pinctrl-0 = <&uart0_pb_pins>; 324 pinctrl-0 = <&uart0_pb_pins>;