Skip to content

Commit c56689e

Browse files
wensmripard
authored andcommitted
arm64: dts: allwinner: a64: bananapi-m64: Enable audio codec
This patch enables audio via the SoC's internal audio codec. All relevant device nodes are enabled, and the routing is set to match the board design. MIC1 is routed to an onboard microphone, with MBIAS providing power. MIC2 and HP are routed to the 3.5mm headset TRRS jack. No phantom power is provided to the headset microphone. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
1 parent 6de8e71 commit c56689e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,19 @@
9797
};
9898
};
9999

100+
&codec {
101+
status = "okay";
102+
};
103+
104+
&codec_analog {
105+
hpvcc-supply = <&reg_eldo1>;
106+
status = "okay";
107+
};
108+
109+
&dai {
110+
status = "okay";
111+
};
112+
100113
&de {
101114
status = "okay";
102115
};
@@ -326,6 +339,22 @@
326339
vcc-hdmi-supply = <&reg_dldo1>;
327340
};
328341

342+
&sound {
343+
status = "okay";
344+
simple-audio-card,widgets = "Headphone", "Headphone Jack",
345+
"Microphone", "Microphone Jack",
346+
"Microphone", "Onboard Microphone";
347+
simple-audio-card,routing =
348+
"Left DAC", "AIF1 Slot 0 Left",
349+
"Right DAC", "AIF1 Slot 0 Right",
350+
"AIF1 Slot 0 Left ADC", "Left ADC",
351+
"AIF1 Slot 0 Right ADC", "Right ADC",
352+
"Headphone Jack", "HP",
353+
"MIC2", "Microphone Jack",
354+
"Onboard Microphone", "MBIAS",
355+
"MIC1", "Onboard Microphone";
356+
};
357+
329358
&uart0 {
330359
pinctrl-names = "default";
331360
pinctrl-0 = <&uart0_pb_pins>;

0 commit comments

Comments
 (0)