Message ID | 20191003222130.2015617-1-jernej.skrabec@siol.net (mailing list archive) |
---|---|
State | Mainlined |
Commit | 6db1aaf4d9735e04f6f310db6410d1dcf340a749 |
Headers | show |
Series | arm64: dts: allwinner: a64: orangepi-win: Enable audio codec | expand |
On Fri, Oct 04, 2019 at 12:21:30AM +0200, Jernej Skrabec wrote: > This patch enables internal audio codec on OrangePi Win board by > enabling all relevant nodes and adding appropriate routing. Board has > on-board microphone (MIC1) and 3.5 mm jack with stereo audio and > microphone (MIC2). > > Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Applied, thanks! Maxime
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index 04446e4716c4..f54a415f2e3b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -114,6 +114,19 @@ }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + cpvdd-supply = <®_eldo1>; + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &de { status = "okay"; }; @@ -333,6 +346,22 @@ vcc-hdmi-supply = <®_dldo1>; }; +&sound { + status = "okay"; + simple-audio-card,widgets = "Headphone", "Headphone Jack", + "Microphone", "Microphone Jack", + "Microphone", "Onboard Microphone"; + simple-audio-card,routing = + "Left DAC", "AIF1 Slot 0 Left", + "Right DAC", "AIF1 Slot 0 Right", + "AIF1 Slot 0 Left ADC", "Left ADC", + "AIF1 Slot 0 Right ADC", "Right ADC", + "Headphone Jack", "HP", + "MIC2", "Microphone Jack", + "Onboard Microphone", "MBIAS", + "MIC1", "Onboard Microphone"; +}; + &spi0 { status = "okay";
This patch enables internal audio codec on OrangePi Win board by enabling all relevant nodes and adding appropriate routing. Board has on-board microphone (MIC1) and 3.5 mm jack with stereo audio and microphone (MIC2). Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> --- .../dts/allwinner/sun50i-a64-orangepi-win.dts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+)