]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sun8i-h3: orange-pi-2: Enable audio codec
authorMarcus Cooper <codekipper@gmail.com>
Wed, 10 May 2017 11:51:38 +0000 (11:51 +0000)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 14 May 2017 06:32:33 +0000 (08:32 +0200)
The Orange Pi 2 routes the LINEOUT pins through a SGM8900 PA which
needs to be enabled. The onboard microphone is routed to MIC1, with
MBIAS providing power.

Signed-off-by: Marcus Cooper <codekipper@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-h3-orangepi-2.dts

index d7d5330c566f1d66b92adb9fa47e025e484852d6..8ff71b1bb45b1c918d71e686ef4da4de7250306a 100644 (file)
@@ -104,6 +104,15 @@ wifi_pwrseq: wifi_pwrseq {
        };
 };
 
+&codec {
+       allwinner,pa-gpios = <&pio 0 16 GPIO_ACTIVE_HIGH>; /* PA16 */
+       allwinner,audio-routing =
+               "Speaker", "LINEOUT",
+               "MIC1", "Mic",
+               "Mic",  "MBIAS";
+       status = "okay";
+};
+
 &ehci1 {
        status = "okay";
 };