* [PATCH v4] arm64: dts: allwinner: a64: olinuxino: Enable audio
[not found] <4fc41278-c46c-6486-a336-f2a329bd6bd0@sholland.org>
@ 2022-04-07 15:51 ` Philip Rinn
2022-04-07 22:06 ` Samuel Holland
0 siblings, 1 reply; 4+ messages in thread
From: Philip Rinn @ 2022-04-07 15:51 UTC (permalink / raw)
To: robh+dt, krzk+dt, wens, jernej.skrabec, samuel, devicetree,
linux-arm-kernel, linux-sunxi, linux-kernel
Cc: Philip Rinn
Enable the audio hardware on the Olimex A64-OLinuXino board family.
Tested on the A64-OLinuXino-2Ge8G-IND variant.
Signed-off-by: Philip Rinn <rinni@inventati.org>
---
Changes in v2: added missing &sound {...} part
Changes in v3: removed HDMI audio part as requested by Jernej Škrabec
Changes in v4: right microphone jack is also biased on MBIAS
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 30 +++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
index ec7e2c0e82c1..6f2674bb1b7f 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
@@ -58,6 +58,15 @@ wifi_pwrseq: wifi_pwrseq {
};
};
+&codec {
+ status = "okay";
+};
+
+&codec_analog {
+ cpvdd-supply = <®_eldo1>;
+ status = "okay";
+};
+
&cpu0 {
cpu-supply = <®_dcdc2>;
};
@@ -74,6 +83,10 @@ &cpu3 {
cpu-supply = <®_dcdc2>;
};
+&dai {
+ status = "okay";
+};
+
&de {
status = "okay";
};
@@ -328,6 +341,23 @@ &simplefb_hdmi {
vcc-hdmi-supply = <®_dldo1>;
};
+&sound {
+ simple-audio-card,aux-devs = <&codec_analog>;
+ simple-audio-card,widgets = "Microphone", "Microphone Jack Left",
+ "Microphone", "Microphone Jack Right",
+ "Headphone", "Headphone Jack";
+ simple-audio-card,routing = "Left DAC", "DACL",
+ "Right DAC", "DACR",
+ "Headphone Jack", "HP",
+ "ADCL", "Left ADC",
+ "ADCR", "Right ADC",
+ "Microphone Jack Left", "MBIAS",
+ "MIC1", "Microphone Jack Left",
+ "Microphone Jack Right", "MBIAS",
+ "MIC2", "Microphone Jack Right";
+ status = "okay";
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pb_pins>;
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v4] arm64: dts: allwinner: a64: olinuxino: Enable audio
2022-04-07 15:51 ` [PATCH v4] arm64: dts: allwinner: a64: olinuxino: Enable audio Philip Rinn
@ 2022-04-07 22:06 ` Samuel Holland
2022-04-10 18:23 ` Jernej Škrabec
0 siblings, 1 reply; 4+ messages in thread
From: Samuel Holland @ 2022-04-07 22:06 UTC (permalink / raw)
To: Philip Rinn, wens, jernej.skrabec
Cc: robh+dt, krzk+dt, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel
On 4/7/22 10:51 AM, Philip Rinn wrote:
> Enable the audio hardware on the Olimex A64-OLinuXino board family.
> Tested on the A64-OLinuXino-2Ge8G-IND variant.
>
> Signed-off-by: Philip Rinn <rinni@inventati.org>
Acked-by: Samuel Holland <samuel@sholland.org>
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: [PATCH v4] arm64: dts: allwinner: a64: olinuxino: Enable audio
2022-04-07 22:06 ` Samuel Holland
@ 2022-04-10 18:23 ` Jernej Škrabec
2022-05-08 17:38 ` Milan P. Stanić
0 siblings, 1 reply; 4+ messages in thread
From: Jernej Škrabec @ 2022-04-10 18:23 UTC (permalink / raw)
To: Philip Rinn, wens, Samuel Holland
Cc: robh+dt, krzk+dt, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel
Dne petek, 08. april 2022 ob 00:06:01 CEST je Samuel Holland napisal(a):
> On 4/7/22 10:51 AM, Philip Rinn wrote:
> > Enable the audio hardware on the Olimex A64-OLinuXino board family.
> > Tested on the A64-OLinuXino-2Ge8G-IND variant.
> >
> > Signed-off-by: Philip Rinn <rinni@inventati.org>
>
> Acked-by: Samuel Holland <samuel@sholland.org>
Applied to sunxi/dt-for-5.19. Thanks!
Best regards,
Jernej
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] arm64: dts: allwinner: a64: olinuxino: Enable audio
2022-04-10 18:23 ` Jernej Škrabec
@ 2022-05-08 17:38 ` Milan P. Stanić
0 siblings, 0 replies; 4+ messages in thread
From: Milan P. Stanić @ 2022-05-08 17:38 UTC (permalink / raw)
To: Jernej Škrabec
Cc: Philip Rinn, wens, Samuel Holland, robh+dt, krzk+dt, devicetree,
linux-arm-kernel, linux-sunxi, linux-kernel
On Sun, 2022-04-10 at 20:23, Jernej Škrabec wrote:
> Dne petek, 08. april 2022 ob 00:06:01 CEST je Samuel Holland napisal(a):
> > On 4/7/22 10:51 AM, Philip Rinn wrote:
> > > Enable the audio hardware on the Olimex A64-OLinuXino board family.
> > > Tested on the A64-OLinuXino-2Ge8G-IND variant.
> > >
> > > Signed-off-by: Philip Rinn <rinni@inventati.org>
> >
> > Acked-by: Samuel Holland <samuel@sholland.org>
>
> Applied to sunxi/dt-for-5.19. Thanks!
About week ago I made nearly same patch but Jernej pointed me to this
one. I applied this patch and it works like one I made.
Audio output works fine, but recording doesn't work at all in my tests.
I can hear myself from microphone on headphones quite fine but 'arecord'
records only some kind of white noise. Tried all alsamixer widget
combinations but didn't managed to record anything.
Kind regards
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-08 19:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4fc41278-c46c-6486-a336-f2a329bd6bd0@sholland.org>
2022-04-07 15:51 ` [PATCH v4] arm64: dts: allwinner: a64: olinuxino: Enable audio Philip Rinn
2022-04-07 22:06 ` Samuel Holland
2022-04-10 18:23 ` Jernej Škrabec
2022-05-08 17:38 ` Milan P. Stanić
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).